d: Merge upstream dmd d579c467c1, phobos 88aa69b14.
[official-gcc.git] / configure
blobe7604dc6ff08cdf96aefd61a42bdd27e064451e8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
632 LIPO
634 DSYMUTIL
635 DLLTOOL
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_shared
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
691 islinc
692 isllibs
693 poststage1_ldflags
694 poststage1_libs
695 stage1_ldflags
696 stage1_libs
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
701 gmpinc
702 gmplibs
703 PGO_BUILD_LTO_CFLAGS
704 PGO_BUILD_USE_CFLAGS
705 PGO_BUILD_GEN_CFLAGS
706 HAVE_CXX11_FOR_BUILD
707 HAVE_CXX11
708 do_compare
710 GNATMAKE
711 GNATBIND
712 ac_ct_CXX
713 CXXFLAGS
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 extra_liboffloadmic_configure_flags
723 target_subdir
724 host_subdir
725 build_subdir
726 build_libsubdir
729 LN_S
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 target_noncanonical
743 host_noncanonical
744 build_noncanonical
745 build_os
746 build_vendor
747 build_cpu
748 build
749 TOPLEVEL_CONFIGURE_ARGUMENTS
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='serialization_dependencies
789 host_makefile_frag
790 target_makefile_frag
791 alphaieee_frag
792 ospace_frag'
793 ac_user_opts='
794 enable_option_checking
795 with_build_libsubdir
796 with_system_zlib
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
800 enable_gold
801 enable_ld
802 enable_compressed_debug_sections
803 enable_libquadmath
804 enable_libquadmath_support
805 enable_libada
806 enable_libssp
807 enable_libstdcxx
808 enable_liboffloadmic
809 enable_bootstrap
810 enable_pgo_build
811 with_mpc
812 with_mpc_include
813 with_mpc_lib
814 with_mpfr
815 with_mpfr_include
816 with_mpfr_lib
817 with_gmp
818 with_gmp_include
819 with_gmp_lib
820 with_stage1_libs
821 with_static_standard_libraries
822 with_stage1_ldflags
823 with_boot_libs
824 with_boot_ldflags
825 with_isl
826 with_isl_include
827 with_isl_lib
828 enable_isl_version_check
829 enable_lto
830 enable_linker_plugin_configure_flags
831 enable_linker_plugin_flags
832 enable_host_shared
833 enable_stage1_languages
834 enable_objc_gc
835 with_target_bdw_gc
836 with_target_bdw_gc_include
837 with_target_bdw_gc_lib
838 with_gcc_major_version_only
839 with_build_sysroot
840 with_debug_prefix_map
841 with_build_config
842 enable_vtable_verify
843 enable_serial_configure
844 with_build_time_tools
845 enable_maintainer_mode
846 enable_stage1_checking
847 enable_werror
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
858 CXXFLAGS
860 build_configargs
861 host_configargs
862 target_configargs
865 DLLTOOL
866 DSYMUTIL
868 LIPO
870 RANLIB
871 STRIP
872 WINDRES
873 WINDMC
874 OBJCOPY
875 OBJDUMP
876 OTOOL
877 READELF
878 CC_FOR_TARGET
879 CXX_FOR_TARGET
880 GCC_FOR_TARGET
881 GFORTRAN_FOR_TARGET
882 GOC_FOR_TARGET
883 GDC_FOR_TARGET
884 AR_FOR_TARGET
885 AS_FOR_TARGET
886 DLLTOOL_FOR_TARGET
887 DSYMUTIL_FOR_TARGET
888 LD_FOR_TARGET
889 LIPO_FOR_TARGET
890 NM_FOR_TARGET
891 OBJCOPY_FOR_TARGET
892 OBJDUMP_FOR_TARGET
893 OTOOL_FOR_TARGET
894 RANLIB_FOR_TARGET
895 READELF_FOR_TARGET
896 STRIP_FOR_TARGET
897 WINDRES_FOR_TARGET
898 WINDMC_FOR_TARGET'
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
949 ac_prev=
950 ac_dashdash=
951 for ac_option
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
970 ac_dashdash=yes ;;
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
989 --config-cache | -C)
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 esac
1307 done
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1391 /^X\(\/\/\)$/{
1392 s//\1/
1395 /^X\(\/\).*/{
1396 s//\1/
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1404 else
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 case $srcdir in
1426 *" "*)
1427 as_fn_error $? "path to source, $srcdir, contains spaces"
1429 esac
1430 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446 \`configure' configures this package to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1455 Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 [PREFIX]
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1499 _ACEOF
1501 cat <<\_ACEOF
1503 Program names:
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508 System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 --target=TARGET configure for building compilers for TARGET [HOST]
1512 _ACEOF
1515 if test -n "$ac_init_help"; then
1517 cat <<\_ACEOF
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-as-accelerator-for=ARG
1524 build as offload target compiler. Specify offload
1525 host triple by ARG
1526 --enable-offload-targets=LIST
1527 enable offloading to devices from comma-separated
1528 LIST of TARGET[=DIR]. Use optional path to find
1529 offload target compiler during the build
1530 --enable-offload-defaulted
1531 If enabled, configured but not installed offload compilers and
1532 libgomp plugins are silently ignored. Useful for distribution
1533 compilers where those are in separate optional packages.
1535 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1536 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1537 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1538 Enable compressed debug sections for gas, gold or ld
1539 by default
1540 --disable-libquadmath do not build libquadmath directory
1541 --disable-libquadmath-support
1542 disable libquadmath support for Fortran
1543 --enable-libada build libada directory
1544 --enable-libssp build libssp directory
1545 --disable-libstdcxx do not build libstdc++-v3 directory
1546 --enable-liboffloadmic=ARG
1547 build liboffloadmic [ARG={no,host,target}]
1548 --enable-bootstrap enable bootstrapping [yes if native build]
1549 --enable-pgo-build[=lto]
1550 enable the PGO build
1551 --disable-isl-version-check
1552 disable check for isl version
1553 --enable-lto enable link time optimization support
1554 --enable-linker-plugin-configure-flags=FLAGS
1555 additional flags for configuring linker plugins
1556 [none]
1557 --enable-linker-plugin-flags=FLAGS
1558 additional flags for configuring and building linker
1559 plugins [none]
1560 --enable-host-shared build host code as shared libraries
1561 --enable-stage1-languages[=all]
1562 choose additional languages to build during stage1.
1563 Mostly useful for compiler development
1564 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1565 Objective-C runtime
1566 --enable-vtable-verify Enable vtable verification feature
1567 --enable-serial-[{host,target,build}-]configure
1568 force sequential configuration of sub-packages for
1569 the host, target or build machine, or all
1570 sub-packages
1571 --enable-maintainer-mode
1572 enable make rules and dependencies not useful (and
1573 sometimes confusing) to the casual installer
1574 --enable-stage1-checking[=all]
1575 choose additional checking for stage1 of the
1576 compiler
1577 --enable-werror enable -Werror in bootstrap stage2 and later
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-build-libsubdir=DIR Directory where to find libraries for build system
1583 --with-system-zlib use installed libz
1584 --with-mpc=PATH specify prefix directory for installed MPC package.
1585 Equivalent to --with-mpc-include=PATH/include plus
1586 --with-mpc-lib=PATH/lib
1587 --with-mpc-include=PATH specify directory for installed MPC include files
1588 --with-mpc-lib=PATH specify directory for the installed MPC library
1589 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1590 Equivalent to --with-mpfr-include=PATH/include plus
1591 --with-mpfr-lib=PATH/lib
1592 --with-mpfr-include=PATH
1593 specify directory for installed MPFR include files
1594 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1595 --with-gmp=PATH specify prefix directory for the installed GMP
1596 package. Equivalent to
1597 --with-gmp-include=PATH/include plus
1598 --with-gmp-lib=PATH/lib
1599 --with-gmp-include=PATH specify directory for installed GMP include files
1600 --with-gmp-lib=PATH specify directory for the installed GMP library
1601 --with-stage1-libs=LIBS libraries for stage1
1602 --with-static-standard-libraries
1603 use -static-libstdc++ and -static-libgcc
1604 (default=auto)
1605 --with-stage1-ldflags=FLAGS
1606 linker flags for stage1
1607 --with-boot-libs=LIBS libraries for stage2 and later
1608 --with-boot-ldflags=FLAGS
1609 linker flags for stage2 and later
1610 --with-isl=PATH Specify prefix directory for the installed isl
1611 package. Equivalent to
1612 --with-isl-include=PATH/include plus
1613 --with-isl-lib=PATH/lib
1614 --with-isl-include=PATH Specify directory for installed isl include files
1615 --with-isl-lib=PATH Specify the directory for the installed isl library
1616 --with-target-bdw-gc=PATHLIST
1617 specify prefix directory for installed bdw-gc
1618 package. Equivalent to
1619 --with-target-bdw-gc-include=PATH/include plus
1620 --with-target-bdw-gc-lib=PATH/lib
1621 --with-target-bdw-gc-include=PATHLIST
1622 specify directories for installed bdw-gc include
1623 files
1624 --with-target-bdw-gc-lib=PATHLIST
1625 specify directories for installed bdw-gc library
1626 --with-gcc-major-version-only
1627 use only GCC major number in filesystem paths
1628 --with-build-sysroot=SYSROOT
1629 use sysroot as the system root during the build
1630 --with-debug-prefix-map='A=B C=D ...'
1631 map A to B, C to D ... in debug information
1632 --with-build-config='NAME NAME2...'
1633 use config/NAME.mk build configuration
1634 --with-build-time-tools=PATH
1635 use given path to find target tools during the build
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
1647 build_configargs
1648 additional configure arguments for build directories
1649 host_configargs
1650 additional configure arguments for host directories
1651 target_configargs
1652 additional configure arguments for target directories
1653 AR AR for the host
1654 AS AS for the host
1655 DLLTOOL DLLTOOL for the host
1656 DSYMUTIL DSYMUTIL for the host
1657 LD LD for the host
1658 LIPO LIPO for the host
1659 NM NM for the host
1660 RANLIB RANLIB for the host
1661 STRIP STRIP for the host
1662 WINDRES WINDRES for the host
1663 WINDMC WINDMC for the host
1664 OBJCOPY OBJCOPY for the host
1665 OBJDUMP OBJDUMP for the host
1666 OTOOL OTOOL for the host
1667 READELF READELF for the host
1668 CC_FOR_TARGET
1669 CC for the target
1670 CXX_FOR_TARGET
1671 CXX for the target
1672 GCC_FOR_TARGET
1673 GCC for the target
1674 GFORTRAN_FOR_TARGET
1675 GFORTRAN for the target
1676 GOC_FOR_TARGET
1677 GOC for the target
1678 GDC_FOR_TARGET
1679 GDC for the target
1680 AR_FOR_TARGET
1681 AR for the target
1682 AS_FOR_TARGET
1683 AS for the target
1684 DLLTOOL_FOR_TARGET
1685 DLLTOOL for the target
1686 DSYMUTIL_FOR_TARGET
1687 DSYMUTIL for the target
1688 LD_FOR_TARGET
1689 LD for the target
1690 LIPO_FOR_TARGET
1691 LIPO for the target
1692 NM_FOR_TARGET
1693 NM for the target
1694 OBJCOPY_FOR_TARGET
1695 OBJCOPY for the target
1696 OBJDUMP_FOR_TARGET
1697 OBJDUMP for the target
1698 OTOOL_FOR_TARGET
1699 OTOOL for the target
1700 RANLIB_FOR_TARGET
1701 RANLIB for the target
1702 READELF_FOR_TARGET
1703 READELF for the target
1704 STRIP_FOR_TARGET
1705 STRIP for the target
1706 WINDRES_FOR_TARGET
1707 WINDRES for the target
1708 WINDMC_FOR_TARGET
1709 WINDMC for the target
1711 Use these variables to override the choices made by `configure' or to help
1712 it to find libraries and programs with nonstandard names/locations.
1714 Report bugs to the package provider.
1715 _ACEOF
1716 ac_status=$?
1719 if test "$ac_init_help" = "recursive"; then
1720 # If there are subdirs, report their specific --help.
1721 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722 test -d "$ac_dir" ||
1723 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 continue
1725 ac_builddir=.
1727 case "$ac_dir" in
1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731 # A ".." for each directory in $ac_dir_suffix.
1732 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733 case $ac_top_builddir_sub in
1734 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736 esac ;;
1737 esac
1738 ac_abs_top_builddir=$ac_pwd
1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir=$ac_top_build_prefix
1743 case $srcdir in
1744 .) # We are building in place.
1745 ac_srcdir=.
1746 ac_top_srcdir=$ac_top_builddir_sub
1747 ac_abs_top_srcdir=$ac_pwd ;;
1748 [\\/]* | ?:[\\/]* ) # Absolute name.
1749 ac_srcdir=$srcdir$ac_dir_suffix;
1750 ac_top_srcdir=$srcdir
1751 ac_abs_top_srcdir=$srcdir ;;
1752 *) # Relative name.
1753 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754 ac_top_srcdir=$ac_top_build_prefix$srcdir
1755 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 esac
1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1759 cd "$ac_dir" || { ac_status=$?; continue; }
1760 # Check for guested configure.
1761 if test -f "$ac_srcdir/configure.gnu"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764 elif test -f "$ac_srcdir/configure"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure" --help=recursive
1767 else
1768 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 fi || ac_status=$?
1770 cd "$ac_pwd" || { ac_status=$?; break; }
1771 done
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1776 cat <<\_ACEOF
1777 configure
1778 generated by GNU Autoconf 2.69
1780 Copyright (C) 2012 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784 exit
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_compile
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_cxx_try_compile
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_cxx_try_link
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_c_try_link ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest$ac_exeext
1941 }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1947 ac_retval=1
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_c_try_link
1958 cat >config.log <<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69. Invocation command line was
1965 $ $0 $@
1967 _ACEOF
1968 exec 5>>config.log
1970 cat <<_ASUNAME
1971 ## --------- ##
1972 ## Platform. ##
1973 ## --------- ##
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1992 _ASUNAME
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 $as_echo "PATH: $as_dir"
2000 done
2001 IFS=$as_save_IFS
2003 } >&5
2005 cat >&5 <<_ACEOF
2008 ## ----------- ##
2009 ## Core tests. ##
2010 ## ----------- ##
2012 _ACEOF
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_configure_args=
2021 ac_configure_args0=
2022 ac_configure_args1=
2023 ac_must_keep_next=false
2024 for ac_pass in 1 2
2026 for ac_arg
2028 case $ac_arg in
2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031 | -silent | --silent | --silen | --sile | --sil)
2032 continue ;;
2033 *\'*)
2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 esac
2036 case $ac_pass in
2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2039 as_fn_append ac_configure_args1 " '$ac_arg'"
2040 if test $ac_must_keep_next = true; then
2041 ac_must_keep_next=false # Got value, back to normal.
2042 else
2043 case $ac_arg in
2044 *=* | --config-cache | -C | -disable-* | --disable-* \
2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047 | -with-* | --with-* | -without-* | --without-* | --x)
2048 case "$ac_configure_args0 " in
2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050 esac
2052 -* ) ac_must_keep_next=true ;;
2053 esac
2055 as_fn_append ac_configure_args " '$ac_arg'"
2057 esac
2058 done
2059 done
2060 { ac_configure_args0=; unset ac_configure_args0;}
2061 { ac_configure_args1=; unset ac_configure_args1;}
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log. We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069 # Save into config.log some information that might help in debugging.
2071 echo
2073 $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
2094 (set) 2>&1 |
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2097 sed -n \
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 esac |
2105 sort
2107 echo
2109 $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112 echo
2113 for ac_var in $ac_subst_vars
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2123 if test -n "$ac_subst_files"; then
2124 $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127 echo
2128 for ac_var in $ac_subst_files
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 $as_echo "$ac_var='\''$ac_val'\''"
2135 done | sort
2136 echo
2139 if test -s confdefs.h; then
2140 $as_echo "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143 echo
2144 cat confdefs.h
2145 echo
2147 test "$ac_signal" != 0 &&
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
2150 } >&5
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153 exit $exit_status
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2163 $as_echo "/* confdefs.h */" > confdefs.h
2165 # Predefined preprocessor variables.
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2189 _ACEOF
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 ac_site_file1=NONE
2195 ac_site_file2=NONE
2196 if test -n "$CONFIG_SITE"; then
2197 # We do not want a PATH search for config.site.
2198 case $CONFIG_SITE in #((
2199 -*) ac_site_file1=./$CONFIG_SITE;;
2200 */*) ac_site_file1=$CONFIG_SITE;;
2201 *) ac_site_file1=./$CONFIG_SITE;;
2202 esac
2203 elif test "x$prefix" != xNONE; then
2204 ac_site_file1=$prefix/share/config.site
2205 ac_site_file2=$prefix/etc/config.site
2206 else
2207 ac_site_file1=$ac_default_prefix/share/config.site
2208 ac_site_file2=$ac_default_prefix/etc/config.site
2210 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2212 test "x$ac_site_file" = xNONE && continue
2213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216 sed 's/^/| /' "$ac_site_file" >&5
2217 . "$ac_site_file" \
2218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2223 done
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231 case $cache_file in
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
2234 esac
2236 else
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239 >$cache_file
2242 # Check that the precious variables saved in the cache have kept the same
2243 # value.
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2251 set,)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,set)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,);;
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2278 fi;;
2279 esac
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2282 case $ac_new_val in
2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg=$ac_var=$ac_new_val ;;
2285 esac
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289 esac
2291 done
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316 progname=$0
2317 # if PWD already has a value, it is probably wrong.
2318 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2320 # Export original configure arguments for use by sub-configures.
2321 # Quote arguments with shell meta charatcers.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS=
2323 set -- "$progname" "$@"
2324 for ac_arg
2326 case "$ac_arg" in
2327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329 # if the argument is of the form -foo=baz, quote the baz part only
2330 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2331 *) ;;
2332 esac
2333 # Add the quoted argument to the list.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2335 done
2336 if test "$silent" = yes; then
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2339 # Remove the initial space we just introduced and, as these will be
2340 # expanded by make, quote '$'.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2344 # Find the build, host, and target systems.
2345 ac_aux_dir=
2346 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347 if test -f "$ac_dir/install-sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install-sh -c"
2350 break
2351 elif test -f "$ac_dir/install.sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install.sh -c"
2354 break
2355 elif test -f "$ac_dir/shtool"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/shtool install -c"
2358 break
2360 done
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 case ${build_alias} in
2413 "") build_noncanonical=${build} ;;
2414 *) build_noncanonical=${build_alias} ;;
2415 esac
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2422 esac
2426 case ${target_alias} in
2427 "") target_noncanonical=${host_noncanonical} ;;
2428 *) target_noncanonical=${target_alias} ;;
2429 esac
2434 test "$host_noncanonical" = "$target_noncanonical" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
2437 program_transform_name=s,y,y,
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2446 else
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2454 case $ac_cv_host in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 esac
2458 host=$ac_cv_host
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_host
2461 shift
2462 host_cpu=$1
2463 host_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 host_os=$*
2468 IFS=$ac_save_IFS
2469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2479 else
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2488 *-*-*) ;;
2489 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2490 esac
2491 target=$ac_cv_target
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_target
2494 shift
2495 target_cpu=$1
2496 target_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 target_os=$*
2501 IFS=$ac_save_IFS
2502 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2509 NONENONEs,x,x, &&
2510 program_prefix=${target_alias}-
2512 test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524 # Get 'install' or 'install-sh' and its variants.
2525 # Find a good install program. We prefer a C program (faster),
2526 # so one script is as good as another. But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2531 # AIX /bin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552 ./ | .// | /[cC]/* | \
2553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2555 /usr/ucb/* ) ;;
2557 # OSF1 and SCO ODT 3.0 have their own names for install.
2558 # Don't use installbsd from OSF since it installs stuff as root
2559 # by default.
2560 for ac_prog in ginstall scoinst install; do
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2563 if test $ac_prog = install &&
2564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # AIX install. It has an incompatible calling convention.
2567 elif test $ac_prog = install &&
2568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # program-specific install script used by HP pwplus--don't use.
2571 else
2572 rm -rf conftest.one conftest.two conftest.dir
2573 echo one > conftest.one
2574 echo two > conftest.two
2575 mkdir conftest.dir
2576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577 test -s conftest.one && test -s conftest.two &&
2578 test -s conftest.dir/conftest.one &&
2579 test -s conftest.dir/conftest.two
2580 then
2581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582 break 3
2586 done
2587 done
2589 esac
2591 done
2592 IFS=$as_save_IFS
2594 rm -rf conftest.one conftest.two conftest.dir
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 INSTALL=$ac_install_sh
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619 $as_echo_n "checking whether ln works... " >&6; }
2620 if ${acx_cv_prog_LN+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 rm -f conftestdata_t
2624 echo >conftestdata_f
2625 if ln conftestdata_f conftestdata_t 2>/dev/null
2626 then
2627 acx_cv_prog_LN=ln
2628 else
2629 acx_cv_prog_LN=no
2631 rm -f conftestdata_f conftestdata_t
2634 if test $acx_cv_prog_LN = no; then
2635 LN="cp"
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637 $as_echo "no, using $LN" >&6; }
2638 else
2639 LN="$acx_cv_prog_LN"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645 $as_echo_n "checking whether ln -s works... " >&6; }
2646 LN_S=$as_ln_s
2647 if test "$LN_S" = "ln -s"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652 $as_echo "no, using $LN_S" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657 if ${ac_cv_path_SED+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661 for ac_i in 1 2 3 4 5 6 7; do
2662 ac_script="$ac_script$as_nl$ac_script"
2663 done
2664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665 { ac_script=; unset ac_script;}
2666 if test -z "$SED"; then
2667 ac_path_SED_found=false
2668 # Loop through the user's path and test for each of PROGNAME-LIST
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in sed gsed; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2677 as_fn_executable_p "$ac_path_SED" || continue
2678 # Check for GNU ac_path_SED and select it if it is found.
2679 # Check for GNU $ac_path_SED
2680 case `"$ac_path_SED" --version 2>&1` in
2681 *GNU*)
2682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2684 ac_count=0
2685 $as_echo_n 0123456789 >"conftest.in"
2686 while :
2688 cat "conftest.in" "conftest.in" >"conftest.tmp"
2689 mv "conftest.tmp" "conftest.in"
2690 cp "conftest.in" "conftest.nl"
2691 $as_echo '' >> "conftest.nl"
2692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694 as_fn_arith $ac_count + 1 && ac_count=$as_val
2695 if test $ac_count -gt ${ac_path_SED_max-0}; then
2696 # Best one so far, save it but keep looking for a better one
2697 ac_cv_path_SED="$ac_path_SED"
2698 ac_path_SED_max=$ac_count
2700 # 10*(2^10) chars as input seems more than enough
2701 test $ac_count -gt 10 && break
2702 done
2703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2704 esac
2706 $ac_path_SED_found && break 3
2707 done
2708 done
2709 done
2710 IFS=$as_save_IFS
2711 if test -z "$ac_cv_path_SED"; then
2712 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2714 else
2715 ac_cv_path_SED=$SED
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720 $as_echo "$ac_cv_path_SED" >&6; }
2721 SED="$ac_cv_path_SED"
2722 rm -f conftest.sed
2724 for ac_prog in gawk mawk nawk awk
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2763 test -n "$AWK" && break
2764 done
2767 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2769 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2770 # a relative path.
2771 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772 INSTALL="${srcpwd}/install-sh -c"
2775 # Set srcdir to "." if that's what it is.
2776 # This is important for multilib support.
2777 pwd=`${PWDCMD-pwd}`
2778 if test "${pwd}" = "${srcpwd}" ; then
2779 srcdir=.
2782 topsrcdir=$srcpwd
2784 extra_host_args=
2786 ### To add a new directory to the tree, first choose whether it is a target
2787 ### or a host dependent tool. Then put it into the appropriate list
2788 ### (library or tools, host or target), doing a dependency sort.
2790 # Subdirs will be configured in the order listed in build_configdirs,
2791 # configdirs, or target_configdirs; see the serialization section below.
2793 # Dependency sorting is only needed when *configuration* must be done in
2794 # a particular order. In all cases a dependency should be specified in
2795 # the Makefile, whether or not it's implicitly specified here.
2797 # Double entries in build_configdirs, configdirs, or target_configdirs may
2798 # cause circular dependencies and break everything horribly.
2800 # these library is used by various programs built for the build
2801 # environment
2803 build_libs="build-libiberty build-libcpp"
2805 # these tools are built for the build environment
2806 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2808 # these libraries are used by various programs built for the host environment
2810 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2812 # these tools are built for the host environment
2813 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814 # know that we are building the simulator.
2815 # binutils, gas and ld appear in that order because it makes sense to run
2816 # "make check" in that particular order.
2817 # If --enable-gold is used, "gold" may replace "ld".
2818 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2820 # these libraries are built for the target environment, and are built after
2821 # the host libraries and the host tools (which may be a cross compiler)
2822 # Note that libiberty is not a target library.
2823 target_libraries="target-libgcc \
2824 target-libbacktrace \
2825 target-libgloss \
2826 target-newlib \
2827 target-libgomp \
2828 target-liboffloadmic \
2829 target-libatomic \
2830 target-libitm \
2831 target-libstdc++-v3 \
2832 target-libsanitizer \
2833 target-libvtv \
2834 target-libssp \
2835 target-libquadmath \
2836 target-libgfortran \
2837 target-libffi \
2838 target-libobjc \
2839 target-libada \
2840 target-libgo \
2841 target-libphobos \
2842 target-zlib"
2844 # these tools are built using the target libraries, and are intended to
2845 # run only in the target environment
2847 # note: any program that *uses* libraries that are in the "target_libraries"
2848 # list belongs in this list.
2850 target_tools="target-rda"
2852 ################################################################################
2854 ## All tools belong in one of the four categories, and are assigned above
2855 ## We assign ${configdirs} this way to remove all embedded newlines. This
2856 ## is important because configure will choke if they ever get through.
2857 ## ${configdirs} is directories we build using the host tools.
2858 ## ${target_configdirs} is directories we build using the target tools.
2859 configdirs=`echo ${host_libs} ${host_tools}`
2860 target_configdirs=`echo ${target_libraries} ${target_tools}`
2861 build_configdirs=`echo ${build_libs} ${build_tools}`
2865 ################################################################################
2867 srcname="gnu development package"
2869 # This gets set non-empty for some net releases of packages.
2870 appdirs=""
2872 # Define is_cross_compiler to save on calls to 'test'.
2873 is_cross_compiler=
2874 if test x"${host}" = x"${target}" ; then
2875 is_cross_compiler=no
2876 else
2877 is_cross_compiler=yes
2880 # Find the build and target subdir names.
2882 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883 # have matching libraries, they should use host libraries: Makefile.tpl
2884 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885 # However, they still use the build modules, because the corresponding
2886 # host modules (e.g. bison) are only built for the host when bootstrap
2887 # finishes. So:
2888 # - build_subdir is where we find build modules, and never changes.
2889 # - build_libsubdir is where we find build libraries, and can be overridden.
2891 # Prefix 'build-' so this never conflicts with target_subdir.
2892 build_subdir="build-${build_noncanonical}"
2894 # Check whether --with-build-libsubdir was given.
2895 if test "${with_build_libsubdir+set}" = set; then :
2896 withval=$with_build_libsubdir; build_libsubdir="$withval"
2897 else
2898 build_libsubdir="$build_subdir"
2901 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902 if ( test $srcdir = . && test -d gcc ) \
2903 || test -d $srcdir/../host-${host_noncanonical}; then
2904 host_subdir="host-${host_noncanonical}"
2905 else
2906 host_subdir=.
2908 # No prefix.
2909 target_subdir=${target_noncanonical}
2911 # Be sure to cover against remnants of an in-tree build.
2912 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2913 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2914 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2917 # Skipdirs are removed silently.
2918 skipdirs=
2919 # Noconfigdirs are removed loudly.
2920 noconfigdirs=""
2922 use_gnu_ld=
2923 # Make sure we don't let GNU ld be added if we didn't want it.
2924 if test x$with_gnu_ld = xno ; then
2925 use_gnu_ld=no
2926 noconfigdirs="$noconfigdirs ld gold"
2929 use_gnu_as=
2930 # Make sure we don't let GNU as be added if we didn't want it.
2931 if test x$with_gnu_as = xno ; then
2932 use_gnu_as=no
2933 noconfigdirs="$noconfigdirs gas"
2936 use_included_zlib=
2938 # Check whether --with-system-zlib was given.
2939 if test "${with_system_zlib+set}" = set; then :
2940 withval=$with_system_zlib;
2943 # Make sure we don't let ZLIB be added if we didn't want it.
2944 if test x$with_system_zlib = xyes ; then
2945 use_included_zlib=no
2946 noconfigdirs="$noconfigdirs zlib"
2949 # some tools are so dependent upon X11 that if we're not building with X,
2950 # it's not even worth trying to configure, much less build, that tool.
2952 case ${with_x} in
2953 yes | "") ;; # the default value for this tree is that X11 is available
2955 skipdirs="${skipdirs} tk itcl libgui"
2956 # We won't be able to build gdbtk without X.
2957 enable_gdbtk=no
2959 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2960 esac
2962 # Some are only suitable for cross toolchains.
2963 # Remove these if host=target.
2964 cross_only="target-libgloss target-newlib target-opcodes"
2966 case $is_cross_compiler in
2967 no) skipdirs="${skipdirs} ${cross_only}" ;;
2968 esac
2970 # If both --with-headers and --with-libs are specified, default to
2971 # --without-newlib.
2972 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2973 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2974 if test x"${with_newlib}" = x ; then
2975 with_newlib=no
2979 # Recognize --with-newlib/--without-newlib.
2980 case ${with_newlib} in
2981 no) skipdirs="${skipdirs} target-newlib" ;;
2982 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2983 esac
2985 # Check whether --enable-as-accelerator-for was given.
2986 if test "${enable_as_accelerator_for+set}" = set; then :
2987 enableval=$enable_as_accelerator_for;
2991 # Check whether --enable-offload-targets was given.
2992 if test "${enable_offload_targets+set}" = set; then :
2993 enableval=$enable_offload_targets;
2994 if test x"$enable_offload_targets" = x; then
2995 as_fn_error $? "no offload targets specified" "$LINENO" 5
2998 else
2999 enable_offload_targets=
3003 # Check whether --enable-offload-defaulted was given.
3004 if test "${enable_offload_defaulted+set}" = set; then :
3005 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3006 else
3007 enable_offload_defaulted=
3011 # Handle --enable-gold, --enable-ld.
3012 # --disable-gold [--enable-ld]
3013 # Build only ld. Default option.
3014 # --enable-gold [--enable-ld]
3015 # Build both gold and ld. Install gold as "ld.gold", install ld
3016 # as "ld.bfd" and "ld".
3017 # --enable-gold=default [--enable-ld]
3018 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3019 # install ld as "ld.bfd".
3020 # --enable-gold[=default] --disable-ld
3021 # Build only gold, which is then installed as both "ld.gold" and "ld".
3022 # --enable-gold --enable-ld=default
3023 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3024 # and ld.bfd).
3025 # In other words, ld is default
3026 # --enable-gold=default --enable-ld=default
3027 # Error.
3029 default_ld=
3030 # Check whether --enable-gold was given.
3031 if test "${enable_gold+set}" = set; then :
3032 enableval=$enable_gold; ENABLE_GOLD=$enableval
3033 else
3034 ENABLE_GOLD=no
3037 case "${ENABLE_GOLD}" in
3038 yes|default)
3039 # Check for ELF target.
3040 is_elf=no
3041 case "${target}" in
3042 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3043 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3044 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3045 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3046 case "${target}" in
3047 *-*-linux*aout* | *-*-linux*oldld*)
3050 is_elf=yes
3052 esac
3053 esac
3055 if test "$is_elf" = "yes"; then
3056 # Check for target supported by gold.
3057 case "${target}" in
3058 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3059 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3060 configdirs="$configdirs gold"
3061 if test x${ENABLE_GOLD} = xdefault; then
3062 default_ld=gold
3064 ENABLE_GOLD=yes
3066 esac
3072 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3074 esac
3076 # Check whether --enable-ld was given.
3077 if test "${enable_ld+set}" = set; then :
3078 enableval=$enable_ld; ENABLE_LD=$enableval
3079 else
3080 ENABLE_LD=yes
3084 case "${ENABLE_LD}" in
3085 default)
3086 if test x${default_ld} != x; then
3087 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3090 yes)
3093 if test x${ENABLE_GOLD} != xyes; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3095 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3097 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3100 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3102 esac
3104 # PR gas/19109
3105 # Decide the default method for compressing debug sections.
3106 # Provide a configure time option to override our default.
3107 # Check whether --enable-compressed_debug_sections was given.
3108 if test "${enable_compressed_debug_sections+set}" = set; then :
3109 enableval=$enable_compressed_debug_sections;
3110 if test x"$enable_compressed_debug_sections" = xyes; then
3111 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3114 else
3115 enable_compressed_debug_sections=
3119 # Configure extra directories which are host specific
3121 case "${host}" in
3122 *-cygwin*)
3123 configdirs="$configdirs libtermcap" ;;
3124 esac
3126 # A target can indicate whether a language isn't supported for some reason.
3127 # Only spaces may be used in this macro; not newlines or tabs.
3128 unsupported_languages=
3130 # Remove more programs from consideration, based on the host or
3131 # target this usually means that a port of the program doesn't
3132 # exist yet.
3134 case "${host}" in
3135 i[3456789]86-*-msdosdjgpp*)
3136 noconfigdirs="$noconfigdirs tcl tk itcl"
3138 esac
3141 # Check whether --enable-libquadmath was given.
3142 if test "${enable_libquadmath+set}" = set; then :
3143 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3144 else
3145 ENABLE_LIBQUADMATH=yes
3148 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3149 noconfigdirs="$noconfigdirs target-libquadmath"
3153 # Check whether --enable-libquadmath-support was given.
3154 if test "${enable_libquadmath_support+set}" = set; then :
3155 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3156 else
3157 ENABLE_LIBQUADMATH_SUPPORT=yes
3160 enable_libquadmath_support=
3161 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3162 enable_libquadmath_support=no
3166 # Check whether --enable-libada was given.
3167 if test "${enable_libada+set}" = set; then :
3168 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3169 else
3170 ENABLE_LIBADA=yes
3173 if test "${ENABLE_LIBADA}" != "yes" ; then
3174 noconfigdirs="$noconfigdirs gnattools"
3177 # Check whether --enable-libssp was given.
3178 if test "${enable_libssp+set}" = set; then :
3179 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3180 else
3181 ENABLE_LIBSSP=yes
3185 # Check whether --enable-libstdcxx was given.
3186 if test "${enable_libstdcxx+set}" = set; then :
3187 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3188 else
3189 ENABLE_LIBSTDCXX=default
3192 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3193 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3196 # If this is accelerator compiler and its target is intelmic we enable
3197 # target liboffloadmic by default. If this is compiler with offloading
3198 # for intelmic we enable host liboffloadmic by default. Otherwise
3199 # liboffloadmic is disabled by default.
3200 # Check whether --enable-liboffloadmic was given.
3201 if test "${enable_liboffloadmic+set}" = set; then :
3202 enableval=$enable_liboffloadmic; case "$enableval" in
3203 no | host | target)
3204 enable_liboffloadmic=$enableval ;;
3206 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3207 esac
3208 else
3209 if test x"$enable_as_accelerator_for" != x; then
3210 case "${target}" in
3211 *-intelmic-* | *-intelmicemul-*)
3212 enable_liboffloadmic=target
3213 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3216 enable_liboffloadmic=no
3218 esac
3219 else
3220 case "${enable_offload_targets}" in
3221 *-intelmic-* | *-intelmicemul-*)
3222 enable_liboffloadmic=host
3223 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3226 enable_liboffloadmic=no
3228 esac
3234 # Enable libgomp by default on hosted POSIX systems, and a few others.
3235 if test x$enable_libgomp = x ; then
3236 case "${target}" in
3237 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3239 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3241 *-*-solaris2* | *-*-hpux11*)
3243 *-*-darwin* | *-*-aix*)
3245 nvptx*-*-* | amdgcn*-*-*)
3248 noconfigdirs="$noconfigdirs target-libgomp"
3250 esac
3253 # Disable libatomic on unsupported systems.
3254 if test -d ${srcdir}/libatomic; then
3255 if test x$enable_libatomic = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3257 $as_echo_n "checking for libatomic support... " >&6; }
3258 if (srcdir=${srcdir}/libatomic; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libatomic"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3272 # Disable liboffloadmic on unsupported systems.
3273 if test -d ${srcdir}/liboffloadmic; then
3274 if test x$enable_liboffloadmic != xno; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3276 $as_echo_n "checking for liboffloadmic support... " >&6; }
3277 if (srcdir=${srcdir}/liboffloadmic; \
3278 . ${srcdir}/configure.tgt; \
3279 test -n "$UNSUPPORTED")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-liboffloadmic"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3291 # Disable libitm on unsupported systems.
3292 if test -d ${srcdir}/libitm; then
3293 if test x$enable_libitm = x; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3295 $as_echo_n "checking for libitm support... " >&6; }
3296 if (srcdir=${srcdir}/libitm; \
3297 . ${srcdir}/configure.tgt; \
3298 test -n "$UNSUPPORTED")
3299 then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 noconfigdirs="$noconfigdirs target-libitm"
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3310 # Disable libsanitizer on unsupported systems.
3311 if test -d ${srcdir}/libsanitizer; then
3312 if test x$enable_libsanitizer = x; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3314 $as_echo_n "checking for libsanitizer support... " >&6; }
3315 if (srcdir=${srcdir}/libsanitizer; \
3316 . ${srcdir}/configure.tgt; \
3317 test -n "$UNSUPPORTED")
3318 then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 noconfigdirs="$noconfigdirs target-libsanitizer"
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3329 # Disable libvtv on unsupported systems.
3330 if test -d ${srcdir}/libvtv; then
3331 if test x$enable_libvtv = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3333 $as_echo_n "checking for libvtv support... " >&6; }
3334 if (srcdir=${srcdir}/libvtv; \
3335 . ${srcdir}/configure.tgt; \
3336 test "$VTV_SUPPORTED" != "yes")
3337 then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 noconfigdirs="$noconfigdirs target-libvtv"
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3348 # Disable libquadmath for some systems.
3349 case "${target}" in
3350 avr-*-*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3353 # libquadmath is unused on AIX and libquadmath build process use of
3354 # LD_LIBRARY_PATH can break AIX bootstrap.
3355 powerpc-*-aix* | rs6000-*-aix*)
3356 noconfigdirs="$noconfigdirs target-libquadmath"
3358 esac
3360 # Disable libssp for some systems.
3361 case "${target}" in
3362 avr-*-*)
3363 # No hosted I/O support.
3364 noconfigdirs="$noconfigdirs target-libssp"
3366 bpf-*-*)
3367 noconfigdirs="$noconfigdirs target-libssp"
3369 powerpc-*-aix* | rs6000-*-aix*)
3370 noconfigdirs="$noconfigdirs target-libssp"
3372 pru-*-*)
3373 # No hosted I/O support.
3374 noconfigdirs="$noconfigdirs target-libssp"
3376 rl78-*-*)
3377 # libssp uses a misaligned load to trigger a fault, but the RL78
3378 # doesn't fault for those - instead, it gives a build-time error
3379 # for explicit misaligned loads.
3380 noconfigdirs="$noconfigdirs target-libssp"
3382 visium-*-*)
3383 # No hosted I/O support.
3384 noconfigdirs="$noconfigdirs target-libssp"
3386 esac
3388 # Disable libstdc++-v3 for some systems.
3389 # Allow user to override this if they pass --enable-libstdcxx
3390 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3391 case "${target}" in
3392 *-*-vxworks*)
3393 # VxWorks uses the Dinkumware C++ library.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3396 amdgcn*-*-*)
3397 # Not ported/fails to build when using newlib.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400 arm*-wince-pe*)
3401 # the C++ libraries don't build on top of CE's C libraries
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3404 avr-*-*)
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 bpf-*-*)
3408 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ft32-*-*)
3411 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3413 esac
3416 # Disable C++ on systems where it is known to not work.
3417 # For testing, you can override this with --enable-languages=c++.
3418 case ,${enable_languages}, in
3419 *,c++,*)
3422 case "${target}" in
3423 bpf-*-*)
3424 unsupported_languages="$unsupported_languages c++"
3426 esac
3428 esac
3430 # Disable Objc on systems where it is known to not work.
3431 # For testing, you can override this with --enable-languages=objc.
3432 case ,${enable_languages}, in
3433 *,objc,*)
3436 case "${target}" in
3437 bpf-*-*)
3438 unsupported_languages="$unsupported_languages objc"
3440 esac
3442 esac
3444 # Disable D on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=d.
3446 case ,${enable_languages}, in
3447 *,d,*)
3450 case "${target}" in
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages d"
3454 esac
3456 esac
3458 # Disable libphobos on unsupported systems.
3459 # For testing, you can override this with --enable-libphobos.
3460 if test -d ${srcdir}/libphobos; then
3461 if test x$enable_libphobos = x; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3463 $as_echo_n "checking for libphobos support... " >&6; }
3464 if (srcdir=${srcdir}/libphobos; \
3465 . ${srcdir}/configure.tgt; \
3466 test "$LIBPHOBOS_SUPPORTED" != "yes")
3467 then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 noconfigdirs="$noconfigdirs target-libphobos"
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473 $as_echo "yes" >&6; }
3478 # Disable Fortran for some systems.
3479 case "${target}" in
3480 mmix-*-*)
3481 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3482 unsupported_languages="$unsupported_languages fortran"
3484 bpf-*-*)
3485 unsupported_languages="$unsupported_languages fortran"
3487 esac
3489 # Disable libffi for some systems.
3490 case "${target}" in
3491 powerpc-*-darwin*)
3493 i[3456789]86-*-darwin*)
3495 x86_64-*-darwin[912]*)
3497 *-*-darwin*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3500 *-*-netware*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3503 *-*-phoenix*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3506 *-*-rtems*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3509 *-*-tpf*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3512 *-*-uclinux*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3515 *-*-vxworks*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3518 aarch64*-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3521 alpha*-*-*vms*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3524 arm*-*-freebsd*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3527 arm-wince-pe)
3528 noconfigdirs="$noconfigdirs target-libffi"
3530 arm*-*-symbianelf*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3533 bpf-*-*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3536 cris-*-* | crisv32-*-*)
3537 case "${target}" in
3538 *-*-linux*)
3540 *) # See PR46792 regarding target-libffi.
3541 noconfigdirs="$noconfigdirs target-libffi";;
3542 esac
3544 hppa*64*-*-hpux*)
3545 noconfigdirs="$noconfigdirs target-libffi"
3547 ia64*-*-*vms*)
3548 noconfigdirs="$noconfigdirs target-libffi"
3550 i[3456789]86-w64-mingw*)
3551 noconfigdirs="$noconfigdirs target-libffi"
3553 i[3456789]86-*-mingw*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3556 x86_64-*-mingw*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3559 mmix-*-*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3562 powerpc-*-aix*)
3564 rs6000-*-aix*)
3566 ft32-*-*)
3567 noconfigdirs="$noconfigdirs target-libffi"
3569 *-*-lynxos*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3572 esac
3574 # Disable the go frontend on systems where it is known to not work. Please keep
3575 # this in sync with contrib/config-list.mk.
3576 case "${target}" in
3577 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3578 unsupported_languages="$unsupported_languages go"
3580 esac
3582 # Only allow gdbserver on some systems.
3583 if test -d ${srcdir}/gdbserver; then
3584 if test x$enable_gdbserver = x; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3586 $as_echo_n "checking for gdbserver support... " >&6; }
3587 if (srcdir=${srcdir}/gdbserver; \
3588 . ${srcdir}/configure.srv; \
3589 test -n "$UNSUPPORTED")
3590 then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 noconfigdirs="$noconfigdirs gdbserver"
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3601 # Disable libgo for some systems where it is known to not work.
3602 # For testing, you can easily override this with --enable-libgo.
3603 if test x$enable_libgo = x; then
3604 case "${target}" in
3605 *-*-darwin*)
3606 # PR 46986
3607 noconfigdirs="$noconfigdirs target-libgo"
3609 *-*-cygwin* | *-*-mingw*)
3610 noconfigdirs="$noconfigdirs target-libgo"
3612 bpf-*-*)
3613 noconfigdirs="$noconfigdirs target-libgo"
3615 esac
3618 # Default libgloss CPU subdirectory.
3619 libgloss_dir="$target_cpu"
3621 case "${target}" in
3622 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3623 libgloss_dir=wince
3625 aarch64*-*-* )
3626 libgloss_dir=aarch64
3628 arm*-*-*)
3629 libgloss_dir=arm
3631 cris-*-* | crisv32-*-*)
3632 libgloss_dir=cris
3634 hppa*-*-*)
3635 libgloss_dir=pa
3637 i[3456789]86-*-*)
3638 libgloss_dir=i386
3640 loongarch*-*-*)
3641 libgloss_dir=loongarch
3643 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3644 libgloss_dir=m68hc11
3646 m68*-*-* | fido-*-*)
3647 libgloss_dir=m68k
3649 mips*-*-*)
3650 libgloss_dir=mips
3652 powerpc*-*-*)
3653 libgloss_dir=rs6000
3655 pru-*-*)
3656 libgloss_dir=pru
3658 sparc*-*-*)
3659 libgloss_dir=sparc
3661 esac
3663 # Disable newlib and libgloss for various target OSes.
3664 case "${target}" in
3665 alpha*-dec-osf*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 i[3456789]86-*-linux*)
3669 # This section makes it possible to build newlib natively on linux.
3670 # If we are using a cross compiler then don't configure newlib.
3671 if test x${is_cross_compiler} != xno ; then
3672 noconfigdirs="$noconfigdirs target-newlib"
3674 noconfigdirs="$noconfigdirs target-libgloss"
3675 # If we are not using a cross compiler, do configure newlib.
3676 # Note however, that newlib will only be configured in this situation
3677 # if the --with-newlib option has been given, because otherwise
3678 # 'target-newlib' will appear in skipdirs.
3680 i[3456789]86-*-rdos*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 sparc-*-sunos4*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 bpf-*-*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 *-*-aix*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 *-*-beos*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 *-*-chorusos)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 *-*-dragonfly*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 *-*-freebsd*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 *-*-lynxos*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 *-*-mingw*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 *-*-netbsd*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 *-*-netware*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 *-*-tpf*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 *-*-uclinux*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-vxworks*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 esac
3733 case "${target}" in
3734 *-*-chorusos)
3736 aarch64-*-darwin*)
3737 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3738 noconfigdirs="$noconfigdirs sim target-rda"
3740 amdgcn*-*-*)
3742 arm-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3746 powerpc-*-darwin*)
3747 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3748 noconfigdirs="$noconfigdirs sim target-rda"
3750 i[3456789]86-*-darwin*)
3751 noconfigdirs="$noconfigdirs ld gprof"
3752 noconfigdirs="$noconfigdirs sim target-rda"
3754 x86_64-*-darwin[912]*)
3755 noconfigdirs="$noconfigdirs ld gas gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3758 *-*-darwin*)
3759 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs="$noconfigdirs sim target-rda"
3762 *-*-dragonfly*)
3764 *-*-freebsd*)
3765 if test "x$with_gmp" = x \
3766 && ! test -d ${srcdir}/gmp \
3767 && test -f /usr/local/include/gmp.h; then
3768 with_gmp=/usr/local
3771 *-*-kaos*)
3772 # Remove unsupported stuff on all kaOS configurations.
3773 noconfigdirs="$noconfigdirs target-libgloss"
3775 *-*-netbsd*)
3777 *-*-netware*)
3779 *-*-phoenix*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3782 *-*-rtems*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3785 # The tpf target doesn't support gdb yet.
3786 *-*-tpf*)
3787 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3789 *-*-uclinux*)
3790 noconfigdirs="$noconfigdirs target-rda"
3792 *-*-vxworks*)
3794 alpha*-dec-osf*)
3795 # ld works, but does not support shared libraries.
3796 # gas doesn't generate exception information.
3797 noconfigdirs="$noconfigdirs gas ld"
3799 alpha*-*-*vms*)
3800 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3802 alpha*-*-*)
3803 # newlib is not 64 bit ready
3804 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3806 bpf-*-*)
3807 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3809 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3810 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3812 arc*-*-*)
3813 noconfigdirs="$noconfigdirs sim"
3815 arm-*-pe*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3818 arm-*-riscix*)
3819 noconfigdirs="$noconfigdirs ld target-libgloss"
3821 avr-*-*)
3822 if test x${with_avrlibc} != xno; then
3823 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3826 c4x-*-* | tic4x-*-*)
3827 noconfigdirs="$noconfigdirs target-libgloss"
3829 tic54x-*-*)
3830 noconfigdirs="$noconfigdirs target-libgloss gdb"
3832 d10v-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3835 d30v-*-*)
3836 noconfigdirs="$noconfigdirs gdb"
3838 fr30-*-elf*)
3839 noconfigdirs="$noconfigdirs gdb"
3841 ft32-*-*)
3842 noconfigdirs="$noconfigdirs target-rda gprof"
3844 moxie-*-*)
3845 noconfigdirs="$noconfigdirs"
3847 h8300*-*-*)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3850 h8500-*-*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3853 hppa*64*-*-hpux*)
3854 noconfigdirs="$noconfigdirs gdb"
3856 hppa*64*-*-linux*)
3858 hppa*-*-linux*)
3860 hppa*-*-*elf* | \
3861 hppa*-*-lites* | \
3862 hppa*-*-openbsd* | \
3863 hppa*64*-*-*)
3865 hppa*-*-pro*)
3867 hppa*-*-*)
3868 noconfigdirs="$noconfigdirs ld"
3870 i960-*-*)
3871 noconfigdirs="$noconfigdirs gdb"
3873 ia64*-*-elf*)
3874 # No gdb support yet.
3875 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3877 ia64*-**-hpux*)
3878 # No ld support yet.
3879 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3881 ia64*-*-*vms*)
3882 # No ld support yet.
3883 noconfigdirs="$noconfigdirs libgui itcl ld"
3885 i[3456789]86-w64-mingw*)
3887 i[3456789]86-*-mingw*)
3888 target_configdirs="$target_configdirs target-winsup"
3890 *-*-cygwin*)
3891 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3892 noconfigdirs="$noconfigdirs target-libgloss"
3893 # always build newlib if winsup directory is present.
3894 if test -d "$srcdir/winsup/cygwin"; then
3895 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3896 elif test -d "$srcdir/newlib"; then
3897 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3900 i[3456789]86-*-pe)
3901 noconfigdirs="$noconfigdirs target-libgloss"
3903 i[3456789]86-*-sco3.2v5*)
3904 # The linker does not yet know about weak symbols in COFF,
3905 # and is not configured to handle mixed ELF and COFF.
3906 noconfigdirs="$noconfigdirs ld target-libgloss"
3908 i[3456789]86-*-sco*)
3909 noconfigdirs="$noconfigdirs gprof target-libgloss"
3911 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3912 noconfigdirs="$noconfigdirs target-libgloss"
3914 i[3456789]86-*-sysv4*)
3915 noconfigdirs="$noconfigdirs target-libgloss"
3917 i[3456789]86-*-beos*)
3918 noconfigdirs="$noconfigdirs gdb"
3920 i[3456789]86-*-rdos*)
3921 noconfigdirs="$noconfigdirs gdb"
3923 mmix-*-*)
3924 noconfigdirs="$noconfigdirs gdb"
3926 mt-*-*)
3927 noconfigdirs="$noconfigdirs sim"
3929 nfp-*-*)
3930 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3931 noconfigdirs="$noconfigdirs $target_libraries"
3933 pdp11-*-*)
3934 noconfigdirs="$noconfigdirs gdb gprof"
3936 powerpc-*-aix*)
3937 # copied from rs6000-*-* entry
3938 noconfigdirs="$noconfigdirs gprof"
3940 powerpc*-*-winnt* | powerpc*-*-pe*)
3941 target_configdirs="$target_configdirs target-winsup"
3942 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3943 # always build newlib.
3944 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3946 # This is temporary until we can link against shared libraries
3947 powerpcle-*-solaris*)
3948 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3950 powerpc-*-beos*)
3951 noconfigdirs="$noconfigdirs gdb"
3953 rs6000-*-lynxos*)
3954 noconfigdirs="$noconfigdirs gprof"
3956 rs6000-*-aix*)
3957 noconfigdirs="$noconfigdirs gprof"
3959 rs6000-*-*)
3960 noconfigdirs="$noconfigdirs gprof"
3962 m68k-apollo-*)
3963 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3965 microblaze*)
3966 noconfigdirs="$noconfigdirs gprof"
3968 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3969 if test x$with_newlib = xyes; then
3970 noconfigdirs="$noconfigdirs gprof"
3973 mips*-*-irix5*)
3974 noconfigdirs="$noconfigdirs gprof target-libgloss"
3976 mips*-*-irix6*)
3977 noconfigdirs="$noconfigdirs gprof target-libgloss"
3979 mips*-*-bsd*)
3980 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3982 mips*-*-linux*)
3984 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3985 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3986 noconfigdirs="$noconfigdirs ld gas gprof"
3988 mips*-*-*)
3989 noconfigdirs="$noconfigdirs gprof"
3991 nvptx*-*-*)
3992 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3994 sh-*-*)
3995 case "${target}" in
3996 sh*-*-elf)
3999 noconfigdirs="$noconfigdirs target-libgloss" ;;
4000 esac
4002 sparc-*-sunos4*)
4003 if test x${is_cross_compiler} = xno ; then
4004 use_gnu_ld=no
4007 tic6x-*-*)
4008 noconfigdirs="$noconfigdirs sim"
4010 v810-*-*)
4011 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4013 vax-*-*)
4014 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4016 wasm32-*-*)
4017 noconfigdirs="$noconfigdirs ld"
4019 loongarch*-*-linux*)
4021 loongarch*-*-*)
4022 noconfigdirs="$noconfigdirs gprof"
4024 esac
4026 # If we aren't building newlib, then don't build libgloss, since libgloss
4027 # depends upon some newlib header files.
4028 case "${noconfigdirs}" in
4029 *target-libgloss*) ;;
4030 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4031 esac
4033 # Work in distributions that contain no compiler tools, like Autoconf.
4034 host_makefile_frag=/dev/null
4035 if test -d ${srcdir}/config ; then
4036 case "${host}" in
4037 i[3456789]86-*-msdosdjgpp*)
4038 host_makefile_frag="config/mh-djgpp"
4040 *-cygwin*)
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4043 $as_echo_n "checking to see if cat works as expected... " >&6; }
4044 echo a >cygwin-cat-check
4045 if test `cat cygwin-cat-check` = a ; then
4046 rm cygwin-cat-check
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4048 $as_echo "yes" >&6; }
4049 else
4050 rm cygwin-cat-check
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 as_fn_error $? "The cat command does not ignore carriage return characters.
4054 Please either mount the build directory in binary mode or run the following
4055 commands before running any configure script:
4056 set -o igncr
4057 export SHELLOPTS
4058 " "$LINENO" 5
4061 host_makefile_frag="config/mh-cygwin"
4063 *-mingw*)
4064 host_makefile_frag="config/mh-mingw"
4066 alpha*-linux*)
4067 host_makefile_frag="config/mh-alpha-linux"
4069 hppa*-hp-hpux*)
4070 host_makefile_frag="config/mh-pa"
4072 hppa*-*)
4073 host_makefile_frag="config/mh-pa"
4075 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4076 host_makefile_frag="config/mh-darwin"
4078 powerpc-*-aix*)
4079 host_makefile_frag="config/mh-ppc-aix"
4081 rs6000-*-aix*)
4082 host_makefile_frag="config/mh-ppc-aix"
4084 esac
4087 if test "${build}" != "${host}" ; then
4088 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4089 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4090 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4091 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4092 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4093 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4094 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4095 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4096 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4097 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4098 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4099 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4100 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4101 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4102 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4103 else
4104 AR_FOR_BUILD="\$(AR)"
4105 AS_FOR_BUILD="\$(AS)"
4106 CC_FOR_BUILD="\$(CC)"
4107 CXX_FOR_BUILD="\$(CXX)"
4108 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4109 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4110 GOC_FOR_BUILD="\$(GOC)"
4111 GDC_FOR_BUILD="\$(GDC)"
4112 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4113 LD_FOR_BUILD="\$(LD)"
4114 NM_FOR_BUILD="\$(NM)"
4115 RANLIB_FOR_BUILD="\$(RANLIB)"
4116 WINDRES_FOR_BUILD="\$(WINDRES)"
4117 WINDMC_FOR_BUILD="\$(WINDMC)"
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 if test -n "$ac_tool_prefix"; then
4126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_CC+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -n "$CC"; then
4134 ac_cv_prog_CC="$CC" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4147 done
4148 done
4149 IFS=$as_save_IFS
4153 CC=$ac_cv_prog_CC
4154 if test -n "$CC"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4156 $as_echo "$CC" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4164 if test -z "$ac_cv_prog_CC"; then
4165 ac_ct_CC=$CC
4166 # Extract the first word of "gcc", so it can be a program name with args.
4167 set dummy gcc; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 if test -n "$ac_ct_CC"; then
4174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_ac_ct_CC="gcc"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4189 IFS=$as_save_IFS
4193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4194 if test -n "$ac_ct_CC"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4196 $as_echo "$ac_ct_CC" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4202 if test "x$ac_ct_CC" = x; then
4203 CC=""
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206 yes:)
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209 ac_tool_warned=yes ;;
4210 esac
4211 CC=$ac_ct_CC
4213 else
4214 CC="$ac_cv_prog_CC"
4217 if test -z "$CC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}cc; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_CC+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_CC="${ac_tool_prefix}cc"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4240 done
4241 done
4242 IFS=$as_save_IFS
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4258 if test -z "$CC"; then
4259 # Extract the first word of "cc", so it can be a program name with args.
4260 set dummy cc; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_CC+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4268 else
4269 ac_prog_rejected=no
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4278 ac_prog_rejected=yes
4279 continue
4281 ac_cv_prog_CC="cc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4285 done
4286 done
4287 IFS=$as_save_IFS
4289 if test $ac_prog_rejected = yes; then
4290 # We found a bogon in the path, so make sure we never use it.
4291 set dummy $ac_cv_prog_CC
4292 shift
4293 if test $# != 0; then
4294 # We chose a different compiler from the bogus one.
4295 # However, it has the same basename, so the bogon will be chosen
4296 # first if we set CC to just the basename; use the full file name.
4297 shift
4298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4303 CC=$ac_cv_prog_CC
4304 if test -n "$CC"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4306 $as_echo "$CC" >&6; }
4307 else
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4314 if test -z "$CC"; then
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog in cl.exe
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_prog_CC+:} false; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$CC"; then
4326 ac_cv_prog_CC="$CC" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4345 CC=$ac_cv_prog_CC
4346 if test -n "$CC"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4348 $as_echo "$CC" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 test -n "$CC" && break
4356 done
4358 if test -z "$CC"; then
4359 ac_ct_CC=$CC
4360 for ac_prog in cl.exe
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$ac_ct_CC"; then
4370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_ac_ct_CC="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4390 if test -n "$ac_ct_CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4392 $as_echo "$ac_ct_CC" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$ac_ct_CC" && break
4400 done
4402 if test "x$ac_ct_CC" = x; then
4403 CC=""
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411 CC=$ac_ct_CC
4418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4420 as_fn_error $? "no acceptable C compiler found in \$PATH
4421 See \`config.log' for more details" "$LINENO" 5; }
4423 # Provide some information about the compiler.
4424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4425 set X $ac_compile
4426 ac_compiler=$2
4427 for ac_option in --version -v -V -qversion; do
4428 { { ac_try="$ac_compiler $ac_option >&5"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4436 ac_status=$?
4437 if test -s conftest.err; then
4438 sed '10a\
4439 ... rest of stderr output deleted ...
4440 10q' conftest.err >conftest.er1
4441 cat conftest.er1 >&5
4443 rm -f conftest.er1 conftest.err
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }
4446 done
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4452 main ()
4456 return 0;
4458 _ACEOF
4459 ac_clean_files_save=$ac_clean_files
4460 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4461 # Try to create an executable without -o first, disregard a.out.
4462 # It will help us diagnose broken compilers, and finding out an intuition
4463 # of exeext.
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4465 $as_echo_n "checking whether the C compiler works... " >&6; }
4466 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4468 # The possible output files:
4469 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4471 ac_rmfiles=
4472 for ac_file in $ac_files
4474 case $ac_file in
4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4477 esac
4478 done
4479 rm -f $ac_rmfiles
4481 if { { ac_try="$ac_link_default"
4482 case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_link_default") 2>&5
4489 ac_status=$?
4490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }; then :
4492 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4493 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4494 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4495 # so that the user can short-circuit this test for compilers unknown to
4496 # Autoconf.
4497 for ac_file in $ac_files ''
4499 test -f "$ac_file" || continue
4500 case $ac_file in
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4503 [ab].out )
4504 # We found the default executable, but exeext='' is most
4505 # certainly right.
4506 break;;
4507 *.* )
4508 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4509 then :; else
4510 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4512 # We set ac_cv_exeext here because the later test for it is not
4513 # safe: cross compilers may not add the suffix if given an `-o'
4514 # argument, so we may need to know it at that point already.
4515 # Even if this section looks crufty: it has the advantage of
4516 # actually working.
4517 break;;
4519 break;;
4520 esac
4521 done
4522 test "$ac_cv_exeext" = no && ac_cv_exeext=
4524 else
4525 ac_file=''
4527 if test -z "$ac_file"; then :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535 as_fn_error 77 "C compiler cannot create executables
4536 See \`config.log' for more details" "$LINENO" 5; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 $as_echo "yes" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4542 $as_echo_n "checking for C compiler default output file name... " >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4544 $as_echo "$ac_file" >&6; }
4545 ac_exeext=$ac_cv_exeext
4547 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4548 ac_clean_files=$ac_clean_files_save
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4550 $as_echo_n "checking for suffix of executables... " >&6; }
4551 if { { ac_try="$ac_link"
4552 case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_link") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; then :
4562 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4563 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4564 # work properly (i.e., refer to `conftest.exe'), while it won't with
4565 # `rm'.
4566 for ac_file in conftest.exe conftest conftest.*; do
4567 test -f "$ac_file" || continue
4568 case $ac_file in
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4570 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4571 break;;
4572 * ) break;;
4573 esac
4574 done
4575 else
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4579 See \`config.log' for more details" "$LINENO" 5; }
4581 rm -f conftest conftest$ac_cv_exeext
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4583 $as_echo "$ac_cv_exeext" >&6; }
4585 rm -f conftest.$ac_ext
4586 EXEEXT=$ac_cv_exeext
4587 ac_exeext=$EXEEXT
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 #include <stdio.h>
4592 main ()
4594 FILE *f = fopen ("conftest.out", "w");
4595 return ferror (f) || fclose (f) != 0;
4598 return 0;
4600 _ACEOF
4601 ac_clean_files="$ac_clean_files conftest.out"
4602 # Check that the compiler produces executables we can run. If not, either
4603 # the compiler is broken, or we cross compile.
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4605 $as_echo_n "checking whether we are cross compiling... " >&6; }
4606 if test "$cross_compiling" != yes; then
4607 { { ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_link") 2>&5
4615 ac_status=$?
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4618 if { ac_try='./conftest$ac_cv_exeext'
4619 { { case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_try") 2>&5
4626 ac_status=$?
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }; }; then
4629 cross_compiling=no
4630 else
4631 if test "$cross_compiling" = maybe; then
4632 cross_compiling=yes
4633 else
4634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4636 as_fn_error $? "cannot run C compiled programs.
4637 If you meant to cross compile, use \`--host'.
4638 See \`config.log' for more details" "$LINENO" 5; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4643 $as_echo "$cross_compiling" >&6; }
4645 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4646 ac_clean_files=$ac_clean_files_save
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4648 $as_echo_n "checking for suffix of object files... " >&6; }
4649 if ${ac_cv_objext+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4656 main ()
4660 return 0;
4662 _ACEOF
4663 rm -f conftest.o conftest.obj
4664 if { { ac_try="$ac_compile"
4665 case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671 (eval "$ac_compile") 2>&5
4672 ac_status=$?
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }; then :
4675 for ac_file in conftest.o conftest.obj conftest.*; do
4676 test -f "$ac_file" || continue;
4677 case $ac_file in
4678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4680 break;;
4681 esac
4682 done
4683 else
4684 $as_echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689 as_fn_error $? "cannot compute suffix of object files: cannot compile
4690 See \`config.log' for more details" "$LINENO" 5; }
4692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4695 $as_echo "$ac_cv_objext" >&6; }
4696 OBJEXT=$ac_cv_objext
4697 ac_objext=$OBJEXT
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4700 if ${ac_cv_c_compiler_gnu+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 main ()
4709 #ifndef __GNUC__
4710 choke me
4711 #endif
4714 return 0;
4716 _ACEOF
4717 if ac_fn_c_try_compile "$LINENO"; then :
4718 ac_compiler_gnu=yes
4719 else
4720 ac_compiler_gnu=no
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4728 if test $ac_compiler_gnu = yes; then
4729 GCC=yes
4730 else
4731 GCC=
4733 ac_test_CFLAGS=${CFLAGS+set}
4734 ac_save_CFLAGS=$CFLAGS
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4737 if ${ac_cv_prog_cc_g+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 ac_save_c_werror_flag=$ac_c_werror_flag
4741 ac_c_werror_flag=yes
4742 ac_cv_prog_cc_g=no
4743 CFLAGS="-g"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 main ()
4752 return 0;
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756 ac_cv_prog_cc_g=yes
4757 else
4758 CFLAGS=""
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4763 main ()
4767 return 0;
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4772 else
4773 ac_c_werror_flag=$ac_save_c_werror_flag
4774 CFLAGS="-g"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4779 main ()
4783 return 0;
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_cv_prog_cc_g=yes
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 ac_c_werror_flag=$ac_save_c_werror_flag
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4797 $as_echo "$ac_cv_prog_cc_g" >&6; }
4798 if test "$ac_test_CFLAGS" = set; then
4799 CFLAGS=$ac_save_CFLAGS
4800 elif test $ac_cv_prog_cc_g = yes; then
4801 if test "$GCC" = yes; then
4802 CFLAGS="-g -O2"
4803 else
4804 CFLAGS="-g"
4806 else
4807 if test "$GCC" = yes; then
4808 CFLAGS="-O2"
4809 else
4810 CFLAGS=
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4815 if ${ac_cv_prog_cc_c89+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 ac_cv_prog_cc_c89=no
4819 ac_save_CC=$CC
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <stdarg.h>
4823 #include <stdio.h>
4824 struct stat;
4825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4826 struct buf { int x; };
4827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4828 static char *e (p, i)
4829 char **p;
4830 int i;
4832 return p[i];
4834 static char *f (char * (*g) (char **, int), char **p, ...)
4836 char *s;
4837 va_list v;
4838 va_start (v,p);
4839 s = g (p, va_arg (v,int));
4840 va_end (v);
4841 return s;
4844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4845 function prototypes and stuff, but not '\xHH' hex character constants.
4846 These don't provoke an error unfortunately, instead are silently treated
4847 as 'x'. The following induces an error, until -std is added to get
4848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4849 array size at least. It's necessary to write '\x00'==0 to get something
4850 that's true only with -std. */
4851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4854 inside strings and character constants. */
4855 #define FOO(x) 'x'
4856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4858 int test (int i, double x);
4859 struct s1 {int (*f) (int a);};
4860 struct s2 {int (*f) (double a);};
4861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4862 int argc;
4863 char **argv;
4865 main ()
4867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4869 return 0;
4871 _ACEOF
4872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4875 CC="$ac_save_CC $ac_arg"
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_prog_cc_c89=$ac_arg
4879 rm -f core conftest.err conftest.$ac_objext
4880 test "x$ac_cv_prog_cc_c89" != "xno" && break
4881 done
4882 rm -f conftest.$ac_ext
4883 CC=$ac_save_CC
4886 # AC_CACHE_VAL
4887 case "x$ac_cv_prog_cc_c89" in
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4890 $as_echo "none needed" >&6; } ;;
4891 xno)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4893 $as_echo "unsupported" >&6; } ;;
4895 CC="$CC $ac_cv_prog_cc_c89"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4898 esac
4899 if test "x$ac_cv_prog_cc_c89" != xno; then :
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4910 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4911 if ${ac_cv_prog_cc_c99+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 ac_cv_prog_cc_c99=no
4915 ac_save_CC=$CC
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #include <stdarg.h>
4919 #include <stdbool.h>
4920 #include <stdlib.h>
4921 #include <wchar.h>
4922 #include <stdio.h>
4924 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4925 #define debug(...) fprintf (stderr, __VA_ARGS__)
4926 #define showlist(...) puts (#__VA_ARGS__)
4927 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4928 static void
4929 test_varargs_macros (void)
4931 int x = 1234;
4932 int y = 5678;
4933 debug ("Flag");
4934 debug ("X = %d\n", x);
4935 showlist (The first, second, and third items.);
4936 report (x>y, "x is %d but y is %d", x, y);
4939 // Check long long types.
4940 #define BIG64 18446744073709551615ull
4941 #define BIG32 4294967295ul
4942 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4943 #if !BIG_OK
4944 your preprocessor is broken;
4945 #endif
4946 #if BIG_OK
4947 #else
4948 your preprocessor is broken;
4949 #endif
4950 static long long int bignum = -9223372036854775807LL;
4951 static unsigned long long int ubignum = BIG64;
4953 struct incomplete_array
4955 int datasize;
4956 double data[];
4959 struct named_init {
4960 int number;
4961 const wchar_t *name;
4962 double average;
4965 typedef const char *ccp;
4967 static inline int
4968 test_restrict (ccp restrict text)
4970 // See if C++-style comments work.
4971 // Iterate through items via the restricted pointer.
4972 // Also check for declarations in for loops.
4973 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4974 continue;
4975 return 0;
4978 // Check varargs and va_copy.
4979 static void
4980 test_varargs (const char *format, ...)
4982 va_list args;
4983 va_start (args, format);
4984 va_list args_copy;
4985 va_copy (args_copy, args);
4987 const char *str;
4988 int number;
4989 float fnumber;
4991 while (*format)
4993 switch (*format++)
4995 case 's': // string
4996 str = va_arg (args_copy, const char *);
4997 break;
4998 case 'd': // int
4999 number = va_arg (args_copy, int);
5000 break;
5001 case 'f': // float
5002 fnumber = va_arg (args_copy, double);
5003 break;
5004 default:
5005 break;
5008 va_end (args_copy);
5009 va_end (args);
5013 main ()
5016 // Check bool.
5017 _Bool success = false;
5019 // Check restrict.
5020 if (test_restrict ("String literal") == 0)
5021 success = true;
5022 char *restrict newvar = "Another string";
5024 // Check varargs.
5025 test_varargs ("s, d' f .", "string", 65, 34.234);
5026 test_varargs_macros ();
5028 // Check flexible array members.
5029 struct incomplete_array *ia =
5030 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5031 ia->datasize = 10;
5032 for (int i = 0; i < ia->datasize; ++i)
5033 ia->data[i] = i * 1.234;
5035 // Check named initializers.
5036 struct named_init ni = {
5037 .number = 34,
5038 .name = L"Test wide string",
5039 .average = 543.34343,
5042 ni.number = 58;
5044 int dynamic_array[ni.number];
5045 dynamic_array[ni.number - 1] = 543;
5047 // work around unused variable warnings
5048 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5049 || dynamic_array[ni.number - 1] != 543);
5052 return 0;
5054 _ACEOF
5055 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5057 CC="$ac_save_CC $ac_arg"
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 ac_cv_prog_cc_c99=$ac_arg
5061 rm -f core conftest.err conftest.$ac_objext
5062 test "x$ac_cv_prog_cc_c99" != "xno" && break
5063 done
5064 rm -f conftest.$ac_ext
5065 CC=$ac_save_CC
5068 # AC_CACHE_VAL
5069 case "x$ac_cv_prog_cc_c99" in
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5072 $as_echo "none needed" >&6; } ;;
5073 xno)
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5075 $as_echo "unsupported" >&6; } ;;
5077 CC="$CC $ac_cv_prog_cc_c99"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5079 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5080 esac
5081 if test "x$ac_cv_prog_cc_c99" != xno; then :
5086 ac_ext=cpp
5087 ac_cpp='$CXXCPP $CPPFLAGS'
5088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091 if test -z "$CXX"; then
5092 if test -n "$CCC"; then
5093 CXX=$CCC
5094 else
5095 if test -n "$ac_tool_prefix"; then
5096 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_CXX+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$CXX"; then
5106 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5125 CXX=$ac_cv_prog_CXX
5126 if test -n "$CXX"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5128 $as_echo "$CXX" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5135 test -n "$CXX" && break
5136 done
5138 if test -z "$CXX"; then
5139 ac_ct_CXX=$CXX
5140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5142 # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$ac_ct_CXX"; then
5150 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_ac_ct_CXX="$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5170 if test -n "$ac_ct_CXX"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5172 $as_echo "$ac_ct_CXX" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 test -n "$ac_ct_CXX" && break
5180 done
5182 if test "x$ac_ct_CXX" = x; then
5183 CXX="g++"
5184 else
5185 case $cross_compiling:$ac_tool_warned in
5186 yes:)
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5189 ac_tool_warned=yes ;;
5190 esac
5191 CXX=$ac_ct_CXX
5197 # Provide some information about the compiler.
5198 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5199 set X $ac_compile
5200 ac_compiler=$2
5201 for ac_option in --version -v -V -qversion; do
5202 { { ac_try="$ac_compiler $ac_option >&5"
5203 case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5208 $as_echo "$ac_try_echo"; } >&5
5209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5210 ac_status=$?
5211 if test -s conftest.err; then
5212 sed '10a\
5213 ... rest of stderr output deleted ...
5214 10q' conftest.err >conftest.er1
5215 cat conftest.er1 >&5
5217 rm -f conftest.er1 conftest.err
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; }
5220 done
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5223 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5224 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5231 main ()
5233 #ifndef __GNUC__
5234 choke me
5235 #endif
5238 return 0;
5240 _ACEOF
5241 if ac_fn_cxx_try_compile "$LINENO"; then :
5242 ac_compiler_gnu=yes
5243 else
5244 ac_compiler_gnu=no
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5251 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5252 if test $ac_compiler_gnu = yes; then
5253 GXX=yes
5254 else
5255 GXX=
5257 ac_test_CXXFLAGS=${CXXFLAGS+set}
5258 ac_save_CXXFLAGS=$CXXFLAGS
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5260 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5261 if ${ac_cv_prog_cxx_g+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5265 ac_cxx_werror_flag=yes
5266 ac_cv_prog_cxx_g=no
5267 CXXFLAGS="-g"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5272 main ()
5276 return 0;
5278 _ACEOF
5279 if ac_fn_cxx_try_compile "$LINENO"; then :
5280 ac_cv_prog_cxx_g=yes
5281 else
5282 CXXFLAGS=""
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5287 main ()
5291 return 0;
5293 _ACEOF
5294 if ac_fn_cxx_try_compile "$LINENO"; then :
5296 else
5297 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5298 CXXFLAGS="-g"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5303 main ()
5307 return 0;
5309 _ACEOF
5310 if ac_fn_cxx_try_compile "$LINENO"; then :
5311 ac_cv_prog_cxx_g=yes
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5321 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5322 if test "$ac_test_CXXFLAGS" = set; then
5323 CXXFLAGS=$ac_save_CXXFLAGS
5324 elif test $ac_cv_prog_cxx_g = yes; then
5325 if test "$GXX" = yes; then
5326 CXXFLAGS="-g -O2"
5327 else
5328 CXXFLAGS="-g"
5330 else
5331 if test "$GXX" = yes; then
5332 CXXFLAGS="-O2"
5333 else
5334 CXXFLAGS=
5337 ac_ext=c
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344 # We must set the default linker to the linker used by gcc for the correct
5345 # operation of libtool. If LD is not defined and we are using gcc, try to
5346 # set the LD default to the ld used by gcc.
5347 if test -z "$LD"; then
5348 if test "$GCC" = yes; then
5349 case $build in
5350 *-*-mingw*)
5351 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5353 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5354 esac
5355 case $gcc_prog_ld in
5356 # Accept absolute paths.
5357 [\\/]* | [A-Za-z]:[\\/]*)
5358 LD="$gcc_prog_ld" ;;
5359 esac
5363 # Check whether -static-libstdc++ -static-libgcc is supported.
5364 have_static_libs=no
5365 if test "$GCC" = yes; then
5366 saved_LDFLAGS="$LDFLAGS"
5368 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5370 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5371 ac_ext=cpp
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5381 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5382 #error -static-libstdc++ not implemented
5383 #endif
5384 int main() {}
5385 _ACEOF
5386 if ac_fn_cxx_try_link "$LINENO"; then :
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388 $as_echo "yes" >&6; }; have_static_libs=yes
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5393 rm -f core conftest.err conftest.$ac_objext \
5394 conftest$ac_exeext conftest.$ac_ext
5395 ac_ext=c
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 LDFLAGS="$saved_LDFLAGS"
5408 if test -n "$ac_tool_prefix"; then
5409 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5410 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_GNATBIND+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$GNATBIND"; then
5417 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5436 GNATBIND=$ac_cv_prog_GNATBIND
5437 if test -n "$GNATBIND"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5439 $as_echo "$GNATBIND" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5447 if test -z "$ac_cv_prog_GNATBIND"; then
5448 ac_ct_GNATBIND=$GNATBIND
5449 # Extract the first word of "gnatbind", so it can be a program name with args.
5450 set dummy gnatbind; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$ac_ct_GNATBIND"; then
5457 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5470 done
5471 done
5472 IFS=$as_save_IFS
5476 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5477 if test -n "$ac_ct_GNATBIND"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5479 $as_echo "$ac_ct_GNATBIND" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5485 if test "x$ac_ct_GNATBIND" = x; then
5486 GNATBIND="no"
5487 else
5488 case $cross_compiling:$ac_tool_warned in
5489 yes:)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492 ac_tool_warned=yes ;;
5493 esac
5494 GNATBIND=$ac_ct_GNATBIND
5496 else
5497 GNATBIND="$ac_cv_prog_GNATBIND"
5500 if test -n "$ac_tool_prefix"; then
5501 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5502 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_GNATMAKE+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -n "$GNATMAKE"; then
5509 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5522 done
5523 done
5524 IFS=$as_save_IFS
5528 GNATMAKE=$ac_cv_prog_GNATMAKE
5529 if test -n "$GNATMAKE"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5531 $as_echo "$GNATMAKE" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5539 if test -z "$ac_cv_prog_GNATMAKE"; then
5540 ac_ct_GNATMAKE=$GNATMAKE
5541 # Extract the first word of "gnatmake", so it can be a program name with args.
5542 set dummy gnatmake; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -n "$ac_ct_GNATMAKE"; then
5549 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5562 done
5563 done
5564 IFS=$as_save_IFS
5568 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5569 if test -n "$ac_ct_GNATMAKE"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5571 $as_echo "$ac_ct_GNATMAKE" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5577 if test "x$ac_ct_GNATMAKE" = x; then
5578 GNATMAKE="no"
5579 else
5580 case $cross_compiling:$ac_tool_warned in
5581 yes:)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586 GNATMAKE=$ac_ct_GNATMAKE
5588 else
5589 GNATMAKE="$ac_cv_prog_GNATMAKE"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5593 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5594 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 cat >conftest.adb <<EOF
5598 pragma Warnings (Off);
5599 with System.CRTL;
5600 pragma Warnings (On);
5601 use type System.CRTL.int64;
5602 procedure conftest is begin null; end conftest;
5604 acx_cv_cc_gcc_supports_ada=no
5605 # There is a bug in old released versions of GCC which causes the
5606 # driver to exit successfully when the appropriate language module
5607 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5608 # Therefore we must check for the error message as well as an
5609 # unsuccessful exit.
5610 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5611 # given a .adb file, but produce no object file. So we must check
5612 # if an object file was really produced to guard against this.
5613 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5614 if test x"$errors" = x && test -f conftest.$ac_objext; then
5615 acx_cv_cc_gcc_supports_ada=yes
5617 rm -f conftest.*
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5620 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5622 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5623 have_gnat=yes
5624 else
5625 have_gnat=no
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_GDC+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$GDC"; then
5639 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5658 GDC=$ac_cv_prog_GDC
5659 if test -n "$GDC"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5661 $as_echo "$GDC" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5669 if test -z "$ac_cv_prog_GDC"; then
5670 ac_ct_GDC=$GDC
5671 # Extract the first word of "gdc", so it can be a program name with args.
5672 set dummy gdc; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$ac_ct_GDC"; then
5679 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_ac_ct_GDC="gdc"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5692 done
5693 done
5694 IFS=$as_save_IFS
5698 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5699 if test -n "$ac_ct_GDC"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5701 $as_echo "$ac_ct_GDC" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5707 if test "x$ac_ct_GDC" = x; then
5708 GDC="no"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716 GDC=$ac_ct_GDC
5718 else
5719 GDC="$ac_cv_prog_GDC"
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5723 $as_echo_n "checking whether the D compiler works... " >&6; }
5724 if ${acx_cv_d_compiler_works+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 cat >conftest.d <<EOF
5728 module conftest; int main() { return 0; }
5730 acx_cv_d_compiler_works=no
5731 if test "x$GDC" != xno; then
5732 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5733 if test x"$errors" = x && test -f conftest.$ac_objext; then
5734 acx_cv_d_compiler_works=yes
5736 rm -f conftest.*
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5740 $as_echo "$acx_cv_d_compiler_works" >&6; }
5741 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5742 have_gdc=yes
5743 else
5744 have_gdc=no
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5748 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5749 if ${gcc_cv_prog_cmp_skip+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 echo abfoo >t1
5753 echo cdfoo >t2
5754 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5755 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5756 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5758 else
5759 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5762 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5763 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5765 else
5766 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5769 rm t1 t2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5773 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5774 do_compare="$gcc_cv_prog_cmp_skip"
5778 # Check whether --enable-bootstrap was given.
5779 if test "${enable_bootstrap+set}" = set; then :
5780 enableval=$enable_bootstrap;
5781 else
5782 enable_bootstrap=default
5786 # Issue errors and warnings for invalid/strange bootstrap combinations.
5787 if test -r $srcdir/gcc/configure; then
5788 have_compiler=yes
5789 else
5790 have_compiler=no
5793 case "$have_compiler:$host:$target:$enable_bootstrap" in
5794 *:*:*:no) ;;
5796 # Default behavior. Enable bootstrap if we have a compiler
5797 # and we are in a native configuration.
5798 yes:$build:$build:default)
5799 enable_bootstrap=yes ;;
5801 *:*:*:default)
5802 enable_bootstrap=no ;;
5804 # We have a compiler and we are in a native configuration, bootstrap is ok
5805 yes:$build:$build:yes)
5808 # Other configurations, but we have a compiler. Assume the user knows
5809 # what he's doing.
5810 yes:*:*:yes)
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5812 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5815 # No compiler: if they passed --enable-bootstrap explicitly, fail
5816 no:*:*:yes)
5817 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5819 # Fail if wrong command line
5821 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5823 esac
5825 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5826 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5827 # require C++11 (or higher).
5828 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5829 CXX="$CXX -std=c++11"
5830 elif test "$have_compiler" = yes; then
5831 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5832 ac_ext=cpp
5833 ac_cpp='$CXXCPP $CPPFLAGS'
5834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5837 ac_success=no
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5840 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5841 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5848 // If the compiler admits that it is not ready for C++11, why torture it?
5849 // Hopefully, this will speed up the test.
5851 #ifndef __cplusplus
5853 #error "This is not a C++ compiler"
5855 #elif __cplusplus < 201103L
5857 #error "This is not a C++11 compiler"
5859 #else
5861 namespace cxx11
5864 namespace test_static_assert
5867 template <typename T>
5868 struct check
5870 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5875 namespace test_final_override
5878 struct Base
5880 virtual ~Base() {}
5881 virtual void f() {}
5884 struct Derived : public Base
5886 virtual ~Derived() override {}
5887 virtual void f() override {}
5892 namespace test_double_right_angle_brackets
5895 template < typename T >
5896 struct check {};
5898 typedef check<void> single_type;
5899 typedef check<check<void>> double_type;
5900 typedef check<check<check<void>>> triple_type;
5901 typedef check<check<check<check<void>>>> quadruple_type;
5905 namespace test_decltype
5911 int a = 1;
5912 decltype(a) b = 2;
5913 return a + b;
5918 namespace test_type_deduction
5921 template < typename T1, typename T2 >
5922 struct is_same
5924 static const bool value = false;
5927 template < typename T >
5928 struct is_same<T, T>
5930 static const bool value = true;
5933 template < typename T1, typename T2 >
5934 auto
5935 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5937 return a1 + a2;
5941 test(const int c, volatile int v)
5943 static_assert(is_same<int, decltype(0)>::value == true, "");
5944 static_assert(is_same<int, decltype(c)>::value == false, "");
5945 static_assert(is_same<int, decltype(v)>::value == false, "");
5946 auto ac = c;
5947 auto av = v;
5948 auto sumi = ac + av + 'x';
5949 auto sumf = ac + av + 1.0;
5950 static_assert(is_same<int, decltype(ac)>::value == true, "");
5951 static_assert(is_same<int, decltype(av)>::value == true, "");
5952 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5953 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5954 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5955 return (sumf > 0.0) ? sumi : add(c, v);
5960 namespace test_noexcept
5963 int f() { return 0; }
5964 int g() noexcept { return 0; }
5966 static_assert(noexcept(f()) == false, "");
5967 static_assert(noexcept(g()) == true, "");
5971 namespace test_constexpr
5974 template < typename CharT >
5975 unsigned long constexpr
5976 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5978 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5981 template < typename CharT >
5982 unsigned long constexpr
5983 strlen_c(const CharT *const s) noexcept
5985 return strlen_c_r(s, 0UL);
5988 static_assert(strlen_c("") == 0UL, "");
5989 static_assert(strlen_c("1") == 1UL, "");
5990 static_assert(strlen_c("example") == 7UL, "");
5991 static_assert(strlen_c("another\0example") == 7UL, "");
5995 namespace test_rvalue_references
5998 template < int N >
5999 struct answer
6001 static constexpr int value = N;
6004 answer<1> f(int&) { return answer<1>(); }
6005 answer<2> f(const int&) { return answer<2>(); }
6006 answer<3> f(int&&) { return answer<3>(); }
6008 void
6009 test()
6011 int i = 0;
6012 const int c = 0;
6013 static_assert(decltype(f(i))::value == 1, "");
6014 static_assert(decltype(f(c))::value == 2, "");
6015 static_assert(decltype(f(0))::value == 3, "");
6020 namespace test_uniform_initialization
6023 struct test
6025 static const int zero {};
6026 static const int one {1};
6029 static_assert(test::zero == 0, "");
6030 static_assert(test::one == 1, "");
6034 namespace test_lambdas
6037 void
6038 test1()
6040 auto lambda1 = [](){};
6041 auto lambda2 = lambda1;
6042 lambda1();
6043 lambda2();
6047 test2()
6049 auto a = [](int i, int j){ return i + j; }(1, 2);
6050 auto b = []() -> int { return '0'; }();
6051 auto c = [=](){ return a + b; }();
6052 auto d = [&](){ return c; }();
6053 auto e = [a, &b](int x) mutable {
6054 const auto identity = [](int y){ return y; };
6055 for (auto i = 0; i < a; ++i)
6056 a += b--;
6057 return x + identity(a + b);
6058 }(0);
6059 return a + b + c + d + e;
6063 test3()
6065 const auto nullary = [](){ return 0; };
6066 const auto unary = [](int x){ return x; };
6067 using nullary_t = decltype(nullary);
6068 using unary_t = decltype(unary);
6069 const auto higher1st = [](nullary_t f){ return f(); };
6070 const auto higher2nd = [unary](nullary_t f1){
6071 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6073 return higher1st(nullary) + higher2nd(nullary)(unary);
6078 namespace test_variadic_templates
6081 template <int...>
6082 struct sum;
6084 template <int N0, int... N1toN>
6085 struct sum<N0, N1toN...>
6087 static constexpr auto value = N0 + sum<N1toN...>::value;
6090 template <>
6091 struct sum<>
6093 static constexpr auto value = 0;
6096 static_assert(sum<>::value == 0, "");
6097 static_assert(sum<1>::value == 1, "");
6098 static_assert(sum<23>::value == 23, "");
6099 static_assert(sum<1, 2>::value == 3, "");
6100 static_assert(sum<5, 5, 11>::value == 21, "");
6101 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6105 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6106 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6107 // because of this.
6108 namespace test_template_alias_sfinae
6111 struct foo {};
6113 template<typename T>
6114 using member = typename T::member_type;
6116 template<typename T>
6117 void func(...) {}
6119 template<typename T>
6120 void func(member<T>*) {}
6122 void test();
6124 void test() { func<foo>(0); }
6128 } // namespace cxx11
6130 #endif // __cplusplus >= 201103L
6134 _ACEOF
6135 if ac_fn_cxx_try_compile "$LINENO"; then :
6136 ax_cv_cxx_compile_cxx11=yes
6137 else
6138 ax_cv_cxx_compile_cxx11=no
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6143 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6144 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6145 ac_success=yes
6148 if test x$ac_success = xno; then
6149 for alternative in ${ax_cxx_compile_alternatives}; do
6150 switch="-std=gnu++${alternative}"
6151 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6153 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6154 if eval \${$cachevar+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 ac_save_CXX="$CXX"
6158 CXX="$CXX $switch"
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6163 // If the compiler admits that it is not ready for C++11, why torture it?
6164 // Hopefully, this will speed up the test.
6166 #ifndef __cplusplus
6168 #error "This is not a C++ compiler"
6170 #elif __cplusplus < 201103L
6172 #error "This is not a C++11 compiler"
6174 #else
6176 namespace cxx11
6179 namespace test_static_assert
6182 template <typename T>
6183 struct check
6185 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6190 namespace test_final_override
6193 struct Base
6195 virtual ~Base() {}
6196 virtual void f() {}
6199 struct Derived : public Base
6201 virtual ~Derived() override {}
6202 virtual void f() override {}
6207 namespace test_double_right_angle_brackets
6210 template < typename T >
6211 struct check {};
6213 typedef check<void> single_type;
6214 typedef check<check<void>> double_type;
6215 typedef check<check<check<void>>> triple_type;
6216 typedef check<check<check<check<void>>>> quadruple_type;
6220 namespace test_decltype
6226 int a = 1;
6227 decltype(a) b = 2;
6228 return a + b;
6233 namespace test_type_deduction
6236 template < typename T1, typename T2 >
6237 struct is_same
6239 static const bool value = false;
6242 template < typename T >
6243 struct is_same<T, T>
6245 static const bool value = true;
6248 template < typename T1, typename T2 >
6249 auto
6250 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6252 return a1 + a2;
6256 test(const int c, volatile int v)
6258 static_assert(is_same<int, decltype(0)>::value == true, "");
6259 static_assert(is_same<int, decltype(c)>::value == false, "");
6260 static_assert(is_same<int, decltype(v)>::value == false, "");
6261 auto ac = c;
6262 auto av = v;
6263 auto sumi = ac + av + 'x';
6264 auto sumf = ac + av + 1.0;
6265 static_assert(is_same<int, decltype(ac)>::value == true, "");
6266 static_assert(is_same<int, decltype(av)>::value == true, "");
6267 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6268 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6269 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6270 return (sumf > 0.0) ? sumi : add(c, v);
6275 namespace test_noexcept
6278 int f() { return 0; }
6279 int g() noexcept { return 0; }
6281 static_assert(noexcept(f()) == false, "");
6282 static_assert(noexcept(g()) == true, "");
6286 namespace test_constexpr
6289 template < typename CharT >
6290 unsigned long constexpr
6291 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6293 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6296 template < typename CharT >
6297 unsigned long constexpr
6298 strlen_c(const CharT *const s) noexcept
6300 return strlen_c_r(s, 0UL);
6303 static_assert(strlen_c("") == 0UL, "");
6304 static_assert(strlen_c("1") == 1UL, "");
6305 static_assert(strlen_c("example") == 7UL, "");
6306 static_assert(strlen_c("another\0example") == 7UL, "");
6310 namespace test_rvalue_references
6313 template < int N >
6314 struct answer
6316 static constexpr int value = N;
6319 answer<1> f(int&) { return answer<1>(); }
6320 answer<2> f(const int&) { return answer<2>(); }
6321 answer<3> f(int&&) { return answer<3>(); }
6323 void
6324 test()
6326 int i = 0;
6327 const int c = 0;
6328 static_assert(decltype(f(i))::value == 1, "");
6329 static_assert(decltype(f(c))::value == 2, "");
6330 static_assert(decltype(f(0))::value == 3, "");
6335 namespace test_uniform_initialization
6338 struct test
6340 static const int zero {};
6341 static const int one {1};
6344 static_assert(test::zero == 0, "");
6345 static_assert(test::one == 1, "");
6349 namespace test_lambdas
6352 void
6353 test1()
6355 auto lambda1 = [](){};
6356 auto lambda2 = lambda1;
6357 lambda1();
6358 lambda2();
6362 test2()
6364 auto a = [](int i, int j){ return i + j; }(1, 2);
6365 auto b = []() -> int { return '0'; }();
6366 auto c = [=](){ return a + b; }();
6367 auto d = [&](){ return c; }();
6368 auto e = [a, &b](int x) mutable {
6369 const auto identity = [](int y){ return y; };
6370 for (auto i = 0; i < a; ++i)
6371 a += b--;
6372 return x + identity(a + b);
6373 }(0);
6374 return a + b + c + d + e;
6378 test3()
6380 const auto nullary = [](){ return 0; };
6381 const auto unary = [](int x){ return x; };
6382 using nullary_t = decltype(nullary);
6383 using unary_t = decltype(unary);
6384 const auto higher1st = [](nullary_t f){ return f(); };
6385 const auto higher2nd = [unary](nullary_t f1){
6386 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6388 return higher1st(nullary) + higher2nd(nullary)(unary);
6393 namespace test_variadic_templates
6396 template <int...>
6397 struct sum;
6399 template <int N0, int... N1toN>
6400 struct sum<N0, N1toN...>
6402 static constexpr auto value = N0 + sum<N1toN...>::value;
6405 template <>
6406 struct sum<>
6408 static constexpr auto value = 0;
6411 static_assert(sum<>::value == 0, "");
6412 static_assert(sum<1>::value == 1, "");
6413 static_assert(sum<23>::value == 23, "");
6414 static_assert(sum<1, 2>::value == 3, "");
6415 static_assert(sum<5, 5, 11>::value == 21, "");
6416 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6420 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6421 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6422 // because of this.
6423 namespace test_template_alias_sfinae
6426 struct foo {};
6428 template<typename T>
6429 using member = typename T::member_type;
6431 template<typename T>
6432 void func(...) {}
6434 template<typename T>
6435 void func(member<T>*) {}
6437 void test();
6439 void test() { func<foo>(0); }
6443 } // namespace cxx11
6445 #endif // __cplusplus >= 201103L
6449 _ACEOF
6450 if ac_fn_cxx_try_compile "$LINENO"; then :
6451 eval $cachevar=yes
6452 else
6453 eval $cachevar=no
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 CXX="$ac_save_CXX"
6458 eval ac_res=\$$cachevar
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6460 $as_echo "$ac_res" >&6; }
6461 if eval test x\$$cachevar = xyes; then
6462 CXX="$CXX $switch"
6463 if test -n "$CXXCPP" ; then
6464 CXXCPP="$CXXCPP $switch"
6466 ac_success=yes
6467 break
6469 done
6472 if test x$ac_success = xno; then
6473 for alternative in ${ax_cxx_compile_alternatives}; do
6474 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6475 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6477 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6478 if eval \${$cachevar+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 ac_save_CXX="$CXX"
6482 CXX="$CXX $switch"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6487 // If the compiler admits that it is not ready for C++11, why torture it?
6488 // Hopefully, this will speed up the test.
6490 #ifndef __cplusplus
6492 #error "This is not a C++ compiler"
6494 #elif __cplusplus < 201103L
6496 #error "This is not a C++11 compiler"
6498 #else
6500 namespace cxx11
6503 namespace test_static_assert
6506 template <typename T>
6507 struct check
6509 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6514 namespace test_final_override
6517 struct Base
6519 virtual ~Base() {}
6520 virtual void f() {}
6523 struct Derived : public Base
6525 virtual ~Derived() override {}
6526 virtual void f() override {}
6531 namespace test_double_right_angle_brackets
6534 template < typename T >
6535 struct check {};
6537 typedef check<void> single_type;
6538 typedef check<check<void>> double_type;
6539 typedef check<check<check<void>>> triple_type;
6540 typedef check<check<check<check<void>>>> quadruple_type;
6544 namespace test_decltype
6550 int a = 1;
6551 decltype(a) b = 2;
6552 return a + b;
6557 namespace test_type_deduction
6560 template < typename T1, typename T2 >
6561 struct is_same
6563 static const bool value = false;
6566 template < typename T >
6567 struct is_same<T, T>
6569 static const bool value = true;
6572 template < typename T1, typename T2 >
6573 auto
6574 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6576 return a1 + a2;
6580 test(const int c, volatile int v)
6582 static_assert(is_same<int, decltype(0)>::value == true, "");
6583 static_assert(is_same<int, decltype(c)>::value == false, "");
6584 static_assert(is_same<int, decltype(v)>::value == false, "");
6585 auto ac = c;
6586 auto av = v;
6587 auto sumi = ac + av + 'x';
6588 auto sumf = ac + av + 1.0;
6589 static_assert(is_same<int, decltype(ac)>::value == true, "");
6590 static_assert(is_same<int, decltype(av)>::value == true, "");
6591 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6592 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6593 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6594 return (sumf > 0.0) ? sumi : add(c, v);
6599 namespace test_noexcept
6602 int f() { return 0; }
6603 int g() noexcept { return 0; }
6605 static_assert(noexcept(f()) == false, "");
6606 static_assert(noexcept(g()) == true, "");
6610 namespace test_constexpr
6613 template < typename CharT >
6614 unsigned long constexpr
6615 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6617 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6620 template < typename CharT >
6621 unsigned long constexpr
6622 strlen_c(const CharT *const s) noexcept
6624 return strlen_c_r(s, 0UL);
6627 static_assert(strlen_c("") == 0UL, "");
6628 static_assert(strlen_c("1") == 1UL, "");
6629 static_assert(strlen_c("example") == 7UL, "");
6630 static_assert(strlen_c("another\0example") == 7UL, "");
6634 namespace test_rvalue_references
6637 template < int N >
6638 struct answer
6640 static constexpr int value = N;
6643 answer<1> f(int&) { return answer<1>(); }
6644 answer<2> f(const int&) { return answer<2>(); }
6645 answer<3> f(int&&) { return answer<3>(); }
6647 void
6648 test()
6650 int i = 0;
6651 const int c = 0;
6652 static_assert(decltype(f(i))::value == 1, "");
6653 static_assert(decltype(f(c))::value == 2, "");
6654 static_assert(decltype(f(0))::value == 3, "");
6659 namespace test_uniform_initialization
6662 struct test
6664 static const int zero {};
6665 static const int one {1};
6668 static_assert(test::zero == 0, "");
6669 static_assert(test::one == 1, "");
6673 namespace test_lambdas
6676 void
6677 test1()
6679 auto lambda1 = [](){};
6680 auto lambda2 = lambda1;
6681 lambda1();
6682 lambda2();
6686 test2()
6688 auto a = [](int i, int j){ return i + j; }(1, 2);
6689 auto b = []() -> int { return '0'; }();
6690 auto c = [=](){ return a + b; }();
6691 auto d = [&](){ return c; }();
6692 auto e = [a, &b](int x) mutable {
6693 const auto identity = [](int y){ return y; };
6694 for (auto i = 0; i < a; ++i)
6695 a += b--;
6696 return x + identity(a + b);
6697 }(0);
6698 return a + b + c + d + e;
6702 test3()
6704 const auto nullary = [](){ return 0; };
6705 const auto unary = [](int x){ return x; };
6706 using nullary_t = decltype(nullary);
6707 using unary_t = decltype(unary);
6708 const auto higher1st = [](nullary_t f){ return f(); };
6709 const auto higher2nd = [unary](nullary_t f1){
6710 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6712 return higher1st(nullary) + higher2nd(nullary)(unary);
6717 namespace test_variadic_templates
6720 template <int...>
6721 struct sum;
6723 template <int N0, int... N1toN>
6724 struct sum<N0, N1toN...>
6726 static constexpr auto value = N0 + sum<N1toN...>::value;
6729 template <>
6730 struct sum<>
6732 static constexpr auto value = 0;
6735 static_assert(sum<>::value == 0, "");
6736 static_assert(sum<1>::value == 1, "");
6737 static_assert(sum<23>::value == 23, "");
6738 static_assert(sum<1, 2>::value == 3, "");
6739 static_assert(sum<5, 5, 11>::value == 21, "");
6740 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6744 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6745 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6746 // because of this.
6747 namespace test_template_alias_sfinae
6750 struct foo {};
6752 template<typename T>
6753 using member = typename T::member_type;
6755 template<typename T>
6756 void func(...) {}
6758 template<typename T>
6759 void func(member<T>*) {}
6761 void test();
6763 void test() { func<foo>(0); }
6767 } // namespace cxx11
6769 #endif // __cplusplus >= 201103L
6773 _ACEOF
6774 if ac_fn_cxx_try_compile "$LINENO"; then :
6775 eval $cachevar=yes
6776 else
6777 eval $cachevar=no
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 CXX="$ac_save_CXX"
6782 eval ac_res=\$$cachevar
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6784 $as_echo "$ac_res" >&6; }
6785 if eval test x\$$cachevar = xyes; then
6786 CXX="$CXX $switch"
6787 if test -n "$CXXCPP" ; then
6788 CXXCPP="$CXXCPP $switch"
6790 ac_success=yes
6791 break
6793 done
6794 if test x$ac_success = xyes; then
6795 break
6797 done
6800 ac_ext=c
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6807 if test x$ac_success = xno; then
6808 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6811 if test x$ac_success = xno; then
6812 HAVE_CXX11=0
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6814 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6815 else
6816 HAVE_CXX11=1
6818 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6824 if test "${build}" != "${host}"; then
6825 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6826 ac_ext=cpp
6827 ac_cpp='$CXXCPP $CPPFLAGS'
6828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6831 ac_success=no
6832 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6833 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6834 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6835 CXX="$CXX_FOR_BUILD"
6836 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6837 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6839 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6840 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6847 // If the compiler admits that it is not ready for C++11, why torture it?
6848 // Hopefully, this will speed up the test.
6850 #ifndef __cplusplus
6852 #error "This is not a C++ compiler"
6854 #elif __cplusplus < 201103L
6856 #error "This is not a C++11 compiler"
6858 #else
6860 namespace cxx11
6863 namespace test_static_assert
6866 template <typename T>
6867 struct check
6869 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6874 namespace test_final_override
6877 struct Base
6879 virtual ~Base() {}
6880 virtual void f() {}
6883 struct Derived : public Base
6885 virtual ~Derived() override {}
6886 virtual void f() override {}
6891 namespace test_double_right_angle_brackets
6894 template < typename T >
6895 struct check {};
6897 typedef check<void> single_type;
6898 typedef check<check<void>> double_type;
6899 typedef check<check<check<void>>> triple_type;
6900 typedef check<check<check<check<void>>>> quadruple_type;
6904 namespace test_decltype
6910 int a = 1;
6911 decltype(a) b = 2;
6912 return a + b;
6917 namespace test_type_deduction
6920 template < typename T1, typename T2 >
6921 struct is_same
6923 static const bool value = false;
6926 template < typename T >
6927 struct is_same<T, T>
6929 static const bool value = true;
6932 template < typename T1, typename T2 >
6933 auto
6934 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6936 return a1 + a2;
6940 test(const int c, volatile int v)
6942 static_assert(is_same<int, decltype(0)>::value == true, "");
6943 static_assert(is_same<int, decltype(c)>::value == false, "");
6944 static_assert(is_same<int, decltype(v)>::value == false, "");
6945 auto ac = c;
6946 auto av = v;
6947 auto sumi = ac + av + 'x';
6948 auto sumf = ac + av + 1.0;
6949 static_assert(is_same<int, decltype(ac)>::value == true, "");
6950 static_assert(is_same<int, decltype(av)>::value == true, "");
6951 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6952 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6953 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6954 return (sumf > 0.0) ? sumi : add(c, v);
6959 namespace test_noexcept
6962 int f() { return 0; }
6963 int g() noexcept { return 0; }
6965 static_assert(noexcept(f()) == false, "");
6966 static_assert(noexcept(g()) == true, "");
6970 namespace test_constexpr
6973 template < typename CharT >
6974 unsigned long constexpr
6975 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6977 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6980 template < typename CharT >
6981 unsigned long constexpr
6982 strlen_c(const CharT *const s) noexcept
6984 return strlen_c_r(s, 0UL);
6987 static_assert(strlen_c("") == 0UL, "");
6988 static_assert(strlen_c("1") == 1UL, "");
6989 static_assert(strlen_c("example") == 7UL, "");
6990 static_assert(strlen_c("another\0example") == 7UL, "");
6994 namespace test_rvalue_references
6997 template < int N >
6998 struct answer
7000 static constexpr int value = N;
7003 answer<1> f(int&) { return answer<1>(); }
7004 answer<2> f(const int&) { return answer<2>(); }
7005 answer<3> f(int&&) { return answer<3>(); }
7007 void
7008 test()
7010 int i = 0;
7011 const int c = 0;
7012 static_assert(decltype(f(i))::value == 1, "");
7013 static_assert(decltype(f(c))::value == 2, "");
7014 static_assert(decltype(f(0))::value == 3, "");
7019 namespace test_uniform_initialization
7022 struct test
7024 static const int zero {};
7025 static const int one {1};
7028 static_assert(test::zero == 0, "");
7029 static_assert(test::one == 1, "");
7033 namespace test_lambdas
7036 void
7037 test1()
7039 auto lambda1 = [](){};
7040 auto lambda2 = lambda1;
7041 lambda1();
7042 lambda2();
7046 test2()
7048 auto a = [](int i, int j){ return i + j; }(1, 2);
7049 auto b = []() -> int { return '0'; }();
7050 auto c = [=](){ return a + b; }();
7051 auto d = [&](){ return c; }();
7052 auto e = [a, &b](int x) mutable {
7053 const auto identity = [](int y){ return y; };
7054 for (auto i = 0; i < a; ++i)
7055 a += b--;
7056 return x + identity(a + b);
7057 }(0);
7058 return a + b + c + d + e;
7062 test3()
7064 const auto nullary = [](){ return 0; };
7065 const auto unary = [](int x){ return x; };
7066 using nullary_t = decltype(nullary);
7067 using unary_t = decltype(unary);
7068 const auto higher1st = [](nullary_t f){ return f(); };
7069 const auto higher2nd = [unary](nullary_t f1){
7070 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7072 return higher1st(nullary) + higher2nd(nullary)(unary);
7077 namespace test_variadic_templates
7080 template <int...>
7081 struct sum;
7083 template <int N0, int... N1toN>
7084 struct sum<N0, N1toN...>
7086 static constexpr auto value = N0 + sum<N1toN...>::value;
7089 template <>
7090 struct sum<>
7092 static constexpr auto value = 0;
7095 static_assert(sum<>::value == 0, "");
7096 static_assert(sum<1>::value == 1, "");
7097 static_assert(sum<23>::value == 23, "");
7098 static_assert(sum<1, 2>::value == 3, "");
7099 static_assert(sum<5, 5, 11>::value == 21, "");
7100 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7104 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7105 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7106 // because of this.
7107 namespace test_template_alias_sfinae
7110 struct foo {};
7112 template<typename T>
7113 using member = typename T::member_type;
7115 template<typename T>
7116 void func(...) {}
7118 template<typename T>
7119 void func(member<T>*) {}
7121 void test();
7123 void test() { func<foo>(0); }
7127 } // namespace cxx11
7129 #endif // __cplusplus >= 201103L
7133 _ACEOF
7134 if ac_fn_cxx_try_compile "$LINENO"; then :
7135 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7136 else
7137 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7142 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7143 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7144 ac_success=yes
7147 if test x$ac_success = xno; then
7148 for alternative in ${ax_cxx_compile_alternatives}; do
7149 switch="-std=gnu++${alternative}"
7150 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7152 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7153 if eval \${$cachevar+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 ac_save_CXX="$CXX"
7157 CXX="$CXX $switch"
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7162 // If the compiler admits that it is not ready for C++11, why torture it?
7163 // Hopefully, this will speed up the test.
7165 #ifndef __cplusplus
7167 #error "This is not a C++ compiler"
7169 #elif __cplusplus < 201103L
7171 #error "This is not a C++11 compiler"
7173 #else
7175 namespace cxx11
7178 namespace test_static_assert
7181 template <typename T>
7182 struct check
7184 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7189 namespace test_final_override
7192 struct Base
7194 virtual ~Base() {}
7195 virtual void f() {}
7198 struct Derived : public Base
7200 virtual ~Derived() override {}
7201 virtual void f() override {}
7206 namespace test_double_right_angle_brackets
7209 template < typename T >
7210 struct check {};
7212 typedef check<void> single_type;
7213 typedef check<check<void>> double_type;
7214 typedef check<check<check<void>>> triple_type;
7215 typedef check<check<check<check<void>>>> quadruple_type;
7219 namespace test_decltype
7225 int a = 1;
7226 decltype(a) b = 2;
7227 return a + b;
7232 namespace test_type_deduction
7235 template < typename T1, typename T2 >
7236 struct is_same
7238 static const bool value = false;
7241 template < typename T >
7242 struct is_same<T, T>
7244 static const bool value = true;
7247 template < typename T1, typename T2 >
7248 auto
7249 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7251 return a1 + a2;
7255 test(const int c, volatile int v)
7257 static_assert(is_same<int, decltype(0)>::value == true, "");
7258 static_assert(is_same<int, decltype(c)>::value == false, "");
7259 static_assert(is_same<int, decltype(v)>::value == false, "");
7260 auto ac = c;
7261 auto av = v;
7262 auto sumi = ac + av + 'x';
7263 auto sumf = ac + av + 1.0;
7264 static_assert(is_same<int, decltype(ac)>::value == true, "");
7265 static_assert(is_same<int, decltype(av)>::value == true, "");
7266 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7267 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7268 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7269 return (sumf > 0.0) ? sumi : add(c, v);
7274 namespace test_noexcept
7277 int f() { return 0; }
7278 int g() noexcept { return 0; }
7280 static_assert(noexcept(f()) == false, "");
7281 static_assert(noexcept(g()) == true, "");
7285 namespace test_constexpr
7288 template < typename CharT >
7289 unsigned long constexpr
7290 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7292 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7295 template < typename CharT >
7296 unsigned long constexpr
7297 strlen_c(const CharT *const s) noexcept
7299 return strlen_c_r(s, 0UL);
7302 static_assert(strlen_c("") == 0UL, "");
7303 static_assert(strlen_c("1") == 1UL, "");
7304 static_assert(strlen_c("example") == 7UL, "");
7305 static_assert(strlen_c("another\0example") == 7UL, "");
7309 namespace test_rvalue_references
7312 template < int N >
7313 struct answer
7315 static constexpr int value = N;
7318 answer<1> f(int&) { return answer<1>(); }
7319 answer<2> f(const int&) { return answer<2>(); }
7320 answer<3> f(int&&) { return answer<3>(); }
7322 void
7323 test()
7325 int i = 0;
7326 const int c = 0;
7327 static_assert(decltype(f(i))::value == 1, "");
7328 static_assert(decltype(f(c))::value == 2, "");
7329 static_assert(decltype(f(0))::value == 3, "");
7334 namespace test_uniform_initialization
7337 struct test
7339 static const int zero {};
7340 static const int one {1};
7343 static_assert(test::zero == 0, "");
7344 static_assert(test::one == 1, "");
7348 namespace test_lambdas
7351 void
7352 test1()
7354 auto lambda1 = [](){};
7355 auto lambda2 = lambda1;
7356 lambda1();
7357 lambda2();
7361 test2()
7363 auto a = [](int i, int j){ return i + j; }(1, 2);
7364 auto b = []() -> int { return '0'; }();
7365 auto c = [=](){ return a + b; }();
7366 auto d = [&](){ return c; }();
7367 auto e = [a, &b](int x) mutable {
7368 const auto identity = [](int y){ return y; };
7369 for (auto i = 0; i < a; ++i)
7370 a += b--;
7371 return x + identity(a + b);
7372 }(0);
7373 return a + b + c + d + e;
7377 test3()
7379 const auto nullary = [](){ return 0; };
7380 const auto unary = [](int x){ return x; };
7381 using nullary_t = decltype(nullary);
7382 using unary_t = decltype(unary);
7383 const auto higher1st = [](nullary_t f){ return f(); };
7384 const auto higher2nd = [unary](nullary_t f1){
7385 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7387 return higher1st(nullary) + higher2nd(nullary)(unary);
7392 namespace test_variadic_templates
7395 template <int...>
7396 struct sum;
7398 template <int N0, int... N1toN>
7399 struct sum<N0, N1toN...>
7401 static constexpr auto value = N0 + sum<N1toN...>::value;
7404 template <>
7405 struct sum<>
7407 static constexpr auto value = 0;
7410 static_assert(sum<>::value == 0, "");
7411 static_assert(sum<1>::value == 1, "");
7412 static_assert(sum<23>::value == 23, "");
7413 static_assert(sum<1, 2>::value == 3, "");
7414 static_assert(sum<5, 5, 11>::value == 21, "");
7415 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7419 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7420 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7421 // because of this.
7422 namespace test_template_alias_sfinae
7425 struct foo {};
7427 template<typename T>
7428 using member = typename T::member_type;
7430 template<typename T>
7431 void func(...) {}
7433 template<typename T>
7434 void func(member<T>*) {}
7436 void test();
7438 void test() { func<foo>(0); }
7442 } // namespace cxx11
7444 #endif // __cplusplus >= 201103L
7448 _ACEOF
7449 if ac_fn_cxx_try_compile "$LINENO"; then :
7450 eval $cachevar=yes
7451 else
7452 eval $cachevar=no
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 CXX="$ac_save_CXX"
7457 eval ac_res=\$$cachevar
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7459 $as_echo "$ac_res" >&6; }
7460 if eval test x\$$cachevar = xyes; then
7461 CXX="$CXX $switch"
7462 if test -n "$CXXCPP" ; then
7463 CXXCPP="$CXXCPP $switch"
7465 ac_success=yes
7466 break
7468 done
7471 if test x$ac_success = xno; then
7472 for alternative in ${ax_cxx_compile_alternatives}; do
7473 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7474 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7476 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7477 if eval \${$cachevar+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 ac_save_CXX="$CXX"
7481 CXX="$CXX $switch"
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7486 // If the compiler admits that it is not ready for C++11, why torture it?
7487 // Hopefully, this will speed up the test.
7489 #ifndef __cplusplus
7491 #error "This is not a C++ compiler"
7493 #elif __cplusplus < 201103L
7495 #error "This is not a C++11 compiler"
7497 #else
7499 namespace cxx11
7502 namespace test_static_assert
7505 template <typename T>
7506 struct check
7508 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7513 namespace test_final_override
7516 struct Base
7518 virtual ~Base() {}
7519 virtual void f() {}
7522 struct Derived : public Base
7524 virtual ~Derived() override {}
7525 virtual void f() override {}
7530 namespace test_double_right_angle_brackets
7533 template < typename T >
7534 struct check {};
7536 typedef check<void> single_type;
7537 typedef check<check<void>> double_type;
7538 typedef check<check<check<void>>> triple_type;
7539 typedef check<check<check<check<void>>>> quadruple_type;
7543 namespace test_decltype
7549 int a = 1;
7550 decltype(a) b = 2;
7551 return a + b;
7556 namespace test_type_deduction
7559 template < typename T1, typename T2 >
7560 struct is_same
7562 static const bool value = false;
7565 template < typename T >
7566 struct is_same<T, T>
7568 static const bool value = true;
7571 template < typename T1, typename T2 >
7572 auto
7573 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7575 return a1 + a2;
7579 test(const int c, volatile int v)
7581 static_assert(is_same<int, decltype(0)>::value == true, "");
7582 static_assert(is_same<int, decltype(c)>::value == false, "");
7583 static_assert(is_same<int, decltype(v)>::value == false, "");
7584 auto ac = c;
7585 auto av = v;
7586 auto sumi = ac + av + 'x';
7587 auto sumf = ac + av + 1.0;
7588 static_assert(is_same<int, decltype(ac)>::value == true, "");
7589 static_assert(is_same<int, decltype(av)>::value == true, "");
7590 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7591 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7592 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7593 return (sumf > 0.0) ? sumi : add(c, v);
7598 namespace test_noexcept
7601 int f() { return 0; }
7602 int g() noexcept { return 0; }
7604 static_assert(noexcept(f()) == false, "");
7605 static_assert(noexcept(g()) == true, "");
7609 namespace test_constexpr
7612 template < typename CharT >
7613 unsigned long constexpr
7614 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7616 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7619 template < typename CharT >
7620 unsigned long constexpr
7621 strlen_c(const CharT *const s) noexcept
7623 return strlen_c_r(s, 0UL);
7626 static_assert(strlen_c("") == 0UL, "");
7627 static_assert(strlen_c("1") == 1UL, "");
7628 static_assert(strlen_c("example") == 7UL, "");
7629 static_assert(strlen_c("another\0example") == 7UL, "");
7633 namespace test_rvalue_references
7636 template < int N >
7637 struct answer
7639 static constexpr int value = N;
7642 answer<1> f(int&) { return answer<1>(); }
7643 answer<2> f(const int&) { return answer<2>(); }
7644 answer<3> f(int&&) { return answer<3>(); }
7646 void
7647 test()
7649 int i = 0;
7650 const int c = 0;
7651 static_assert(decltype(f(i))::value == 1, "");
7652 static_assert(decltype(f(c))::value == 2, "");
7653 static_assert(decltype(f(0))::value == 3, "");
7658 namespace test_uniform_initialization
7661 struct test
7663 static const int zero {};
7664 static const int one {1};
7667 static_assert(test::zero == 0, "");
7668 static_assert(test::one == 1, "");
7672 namespace test_lambdas
7675 void
7676 test1()
7678 auto lambda1 = [](){};
7679 auto lambda2 = lambda1;
7680 lambda1();
7681 lambda2();
7685 test2()
7687 auto a = [](int i, int j){ return i + j; }(1, 2);
7688 auto b = []() -> int { return '0'; }();
7689 auto c = [=](){ return a + b; }();
7690 auto d = [&](){ return c; }();
7691 auto e = [a, &b](int x) mutable {
7692 const auto identity = [](int y){ return y; };
7693 for (auto i = 0; i < a; ++i)
7694 a += b--;
7695 return x + identity(a + b);
7696 }(0);
7697 return a + b + c + d + e;
7701 test3()
7703 const auto nullary = [](){ return 0; };
7704 const auto unary = [](int x){ return x; };
7705 using nullary_t = decltype(nullary);
7706 using unary_t = decltype(unary);
7707 const auto higher1st = [](nullary_t f){ return f(); };
7708 const auto higher2nd = [unary](nullary_t f1){
7709 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7711 return higher1st(nullary) + higher2nd(nullary)(unary);
7716 namespace test_variadic_templates
7719 template <int...>
7720 struct sum;
7722 template <int N0, int... N1toN>
7723 struct sum<N0, N1toN...>
7725 static constexpr auto value = N0 + sum<N1toN...>::value;
7728 template <>
7729 struct sum<>
7731 static constexpr auto value = 0;
7734 static_assert(sum<>::value == 0, "");
7735 static_assert(sum<1>::value == 1, "");
7736 static_assert(sum<23>::value == 23, "");
7737 static_assert(sum<1, 2>::value == 3, "");
7738 static_assert(sum<5, 5, 11>::value == 21, "");
7739 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7743 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7744 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7745 // because of this.
7746 namespace test_template_alias_sfinae
7749 struct foo {};
7751 template<typename T>
7752 using member = typename T::member_type;
7754 template<typename T>
7755 void func(...) {}
7757 template<typename T>
7758 void func(member<T>*) {}
7760 void test();
7762 void test() { func<foo>(0); }
7766 } // namespace cxx11
7768 #endif // __cplusplus >= 201103L
7772 _ACEOF
7773 if ac_fn_cxx_try_compile "$LINENO"; then :
7774 eval $cachevar=yes
7775 else
7776 eval $cachevar=no
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 CXX="$ac_save_CXX"
7781 eval ac_res=\$$cachevar
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7783 $as_echo "$ac_res" >&6; }
7784 if eval test x\$$cachevar = xyes; then
7785 CXX="$CXX $switch"
7786 if test -n "$CXXCPP" ; then
7787 CXXCPP="$CXXCPP $switch"
7789 ac_success=yes
7790 break
7792 done
7793 if test x$ac_success = xyes; then
7794 break
7796 done
7798 CXX_FOR_BUILD="$CXX"
7799 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7800 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7801 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7802 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7803 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7804 ac_ext=c
7805 ac_cpp='$CPP $CPPFLAGS'
7806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7811 if test x$ac_success = xno; then
7812 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7815 if test x$ac_success = xno; then
7816 HAVE_CXX11_FOR_BUILD=0
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7818 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7819 else
7820 HAVE_CXX11_FOR_BUILD=1
7822 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7830 # Check whether --enable-pgo-build was given.
7831 if test "${enable_pgo_build+set}" = set; then :
7832 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7833 else
7834 enable_pgo_build=no
7838 # Issue errors and warnings for invalid/strange PGO build combinations.
7839 case "$have_compiler:$host:$target:$enable_pgo_build" in
7840 *:*:*:no) ;;
7842 # Allow the PGO build only if we aren't building a compiler and
7843 # we are in a native configuration.
7844 no:$build:$build:yes | no:$build:$build:lto) ;;
7846 # Disallow the PGO bootstrap if we are building a compiler.
7847 yes:*:*:yes | yes:*:*:lto)
7848 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7851 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7853 esac
7855 if test "$enable_pgo_build" != "no"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7857 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7858 old_CFLAGS="$CFLAGS"
7859 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7860 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 int foo;
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7868 else
7869 PGO_BUILD_GEN_CFLAGS=
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 CFLAGS="$old_CFLAGS"
7873 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875 $as_echo "yes" >&6; }
7876 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7880 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7883 if test "$enable_pgo_build" = "lto"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7885 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7886 old_CFLAGS="$CFLAGS"
7887 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7888 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int foo;
7892 _ACEOF
7893 if ac_fn_c_try_compile "$LINENO"; then :
7895 else
7896 PGO_BUILD_LTO_CFLAGS=
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 CFLAGS="$old_CFLAGS"
7900 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7907 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7915 # Used for setting $lt_cv_objdir
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7917 $as_echo_n "checking for objdir... " >&6; }
7918 if ${lt_cv_objdir+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 rm -f .libs 2>/dev/null
7922 mkdir .libs 2>/dev/null
7923 if test -d .libs; then
7924 lt_cv_objdir=.libs
7925 else
7926 # MS-DOS does not allow filenames that begin with a dot.
7927 lt_cv_objdir=_libs
7929 rmdir .libs 2>/dev/null
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7932 $as_echo "$lt_cv_objdir" >&6; }
7933 objdir=$lt_cv_objdir
7939 cat >>confdefs.h <<_ACEOF
7940 #define LT_OBJDIR "$lt_cv_objdir/"
7941 _ACEOF
7945 # Check for GMP, MPFR and MPC
7946 gmplibs="-lmpc -lmpfr -lgmp"
7947 gmpinc=
7948 have_gmp=no
7950 # Specify a location for mpc
7951 # check for this first so it ends up on the link line before mpfr.
7953 # Check whether --with-mpc was given.
7954 if test "${with_mpc+set}" = set; then :
7955 withval=$with_mpc;
7959 # Check whether --with-mpc-include was given.
7960 if test "${with_mpc_include+set}" = set; then :
7961 withval=$with_mpc_include;
7965 # Check whether --with-mpc-lib was given.
7966 if test "${with_mpc_lib+set}" = set; then :
7967 withval=$with_mpc_lib;
7971 if test "x$with_mpc" != x; then
7972 gmplibs="-L$with_mpc/lib $gmplibs"
7973 gmpinc="-I$with_mpc/include $gmpinc"
7975 if test "x$with_mpc_include" != x; then
7976 gmpinc="-I$with_mpc_include $gmpinc"
7978 if test "x$with_mpc_lib" != x; then
7979 gmplibs="-L$with_mpc_lib $gmplibs"
7981 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7982 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7983 gmpinc='-I$$s/mpc/src '"$gmpinc"
7984 # Do not test the mpc version. Assume that it is sufficient, since
7985 # it is in the source tree, and the library has not been built yet
7986 # but it would be included on the link line in the version check below
7987 # hence making the test fail.
7988 have_gmp=yes
7991 # Specify a location for mpfr
7992 # check for this first so it ends up on the link line before gmp.
7994 # Check whether --with-mpfr was given.
7995 if test "${with_mpfr+set}" = set; then :
7996 withval=$with_mpfr;
8000 # Check whether --with-mpfr-include was given.
8001 if test "${with_mpfr_include+set}" = set; then :
8002 withval=$with_mpfr_include;
8006 # Check whether --with-mpfr-lib was given.
8007 if test "${with_mpfr_lib+set}" = set; then :
8008 withval=$with_mpfr_lib;
8012 if test "x$with_mpfr" != x; then
8013 gmplibs="-L$with_mpfr/lib $gmplibs"
8014 gmpinc="-I$with_mpfr/include $gmpinc"
8016 if test "x$with_mpfr_include" != x; then
8017 gmpinc="-I$with_mpfr_include $gmpinc"
8019 if test "x$with_mpfr_lib" != x; then
8020 gmplibs="-L$with_mpfr_lib $gmplibs"
8022 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8023 # MPFR v3.1.0 moved the sources into a src sub-directory.
8024 if ! test -d ${srcdir}/mpfr/src; then
8025 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8027 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8028 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8029 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8030 # Do not test the mpfr version. Assume that it is sufficient, since
8031 # it is in the source tree, and the library has not been built yet
8032 # but it would be included on the link line in the version check below
8033 # hence making the test fail.
8034 have_gmp=yes
8037 # Specify a location for gmp
8039 # Check whether --with-gmp was given.
8040 if test "${with_gmp+set}" = set; then :
8041 withval=$with_gmp;
8045 # Check whether --with-gmp-include was given.
8046 if test "${with_gmp_include+set}" = set; then :
8047 withval=$with_gmp_include;
8051 # Check whether --with-gmp-lib was given.
8052 if test "${with_gmp_lib+set}" = set; then :
8053 withval=$with_gmp_lib;
8058 if test "x$with_gmp" != x; then
8059 gmplibs="-L$with_gmp/lib $gmplibs"
8060 gmpinc="-I$with_gmp/include $gmpinc"
8062 if test "x$with_gmp_include" != x; then
8063 gmpinc="-I$with_gmp_include $gmpinc"
8065 if test "x$with_gmp_lib" != x; then
8066 gmplibs="-L$with_gmp_lib $gmplibs"
8068 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8069 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8070 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8071 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8072 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8073 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8074 # Do not test the gmp version. Assume that it is sufficient, since
8075 # it is in the source tree, and the library has not been built yet
8076 # but it would be included on the link line in the version check below
8077 # hence making the test fail.
8078 have_gmp=yes
8081 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8082 have_gmp=yes
8083 saved_CFLAGS="$CFLAGS"
8084 CFLAGS="$CFLAGS $gmpinc"
8085 # Check for the recommended and required versions of GMP.
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8087 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 #include "gmp.h"
8092 main ()
8095 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8096 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8097 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8098 choke me
8099 #endif
8102 return 0;
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"; then :
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 #include <gmp.h>
8110 main ()
8113 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8114 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8115 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8116 choke me
8117 #endif
8120 return 0;
8122 _ACEOF
8123 if ac_fn_c_try_compile "$LINENO"; then :
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125 $as_echo "yes" >&6; }
8126 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8128 $as_echo "buggy but acceptable" >&6; }
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }; have_gmp=no
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 # If we have GMP, check the MPFR version.
8138 if test x"$have_gmp" = xyes; then
8139 # Check for the recommended and required versions of MPFR.
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8141 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 #include <gmp.h>
8145 #include <mpfr.h>
8147 main ()
8150 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8151 choke me
8152 #endif
8155 return 0;
8157 _ACEOF
8158 if ac_fn_c_try_compile "$LINENO"; then :
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <gmp.h>
8162 #include <mpfr.h>
8164 main ()
8167 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8168 choke me
8169 #endif
8172 return 0;
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177 $as_echo "yes" >&6; }
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8180 $as_echo "buggy but acceptable" >&6; }
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }; have_gmp=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 # Check for the MPC header version.
8191 if test x"$have_gmp" = xyes ; then
8192 # Check for the recommended and required versions of MPC.
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8194 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 #include <mpc.h>
8199 main ()
8202 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8203 choke me
8204 #endif
8207 return 0;
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213 #include <mpc.h>
8215 main ()
8218 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8219 choke me
8220 #endif
8223 return 0;
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8228 $as_echo "yes" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8231 $as_echo "buggy but acceptable" >&6; }
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }; have_gmp=no
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 # Now check the MPFR library.
8242 if test x"$have_gmp" = xyes; then
8243 saved_LIBS="$LIBS"
8244 LIBS="$LIBS $gmplibs"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8246 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 #include <mpc.h>
8251 main ()
8254 mpfr_t n;
8255 mpfr_t x;
8256 mpc_t c;
8257 int t;
8258 mpfr_init (n);
8259 mpfr_init (x);
8260 mpfr_atan2 (n, n, x, MPFR_RNDN);
8261 mpfr_erfc (n, x, MPFR_RNDN);
8262 mpfr_subnormalize (x, t, MPFR_RNDN);
8263 mpfr_clear(n);
8264 mpfr_clear(x);
8265 mpc_init2 (c, 53);
8266 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8267 mpc_cosh (c, c, MPC_RNDNN);
8268 mpc_pow (c, c, c, MPC_RNDNN);
8269 mpc_acosh (c, c, MPC_RNDNN);
8270 mpc_clear (c);
8273 return 0;
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8278 $as_echo "yes" >&6; }
8279 else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }; have_gmp=no
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8285 LIBS="$saved_LIBS"
8288 CFLAGS="$saved_CFLAGS"
8290 # The library versions listed in the error message below should match
8291 # the HARD-minimums enforced above.
8292 if test x$have_gmp != xyes; then
8293 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8294 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8295 their locations. Source code for these libraries can be found at
8296 their respective hosting sites as well as at
8297 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8298 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8299 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8300 make sure that you have installed both the libraries and the header
8301 files. They may be located in separate packages." "$LINENO" 5
8305 # Flags needed for both GMP, MPFR and/or MPC.
8313 # Libraries to use for stage1 or when not bootstrapping.
8315 # Check whether --with-stage1-libs was given.
8316 if test "${with_stage1_libs+set}" = set; then :
8317 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8318 stage1_libs=
8319 else
8320 stage1_libs=$withval
8322 else
8323 stage1_libs=
8328 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8329 # default is yes if gcc is being built; no otherwise. The reason for
8330 # this default is that gdb is sometimes linked against GNU Source
8331 # Highlight, which is a shared library that uses C++ exceptions. In
8332 # this case, -static-libstdc++ will cause crashes.
8334 # Check whether --with-static-standard-libraries was given.
8335 if test "${with_static_standard_libraries+set}" = set; then :
8336 withval=$with_static_standard_libraries;
8337 else
8338 with_static_standard_libraries=auto
8341 if test "$with_static_standard_libraries" = auto; then
8342 with_static_standard_libraries=$have_compiler
8345 # Linker flags to use for stage1 or when not bootstrapping.
8347 # Check whether --with-stage1-ldflags was given.
8348 if test "${with_stage1_ldflags+set}" = set; then :
8349 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8350 stage1_ldflags=
8351 else
8352 stage1_ldflags=$withval
8354 else
8355 stage1_ldflags=
8356 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8357 # if supported. But if the user explicitly specified the libraries to use,
8358 # trust that they are doing what they want.
8359 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8360 -a "$have_static_libs" = yes; then
8361 stage1_ldflags="-static-libstdc++ -static-libgcc"
8367 # Libraries to use for stage2 and later builds.
8369 # Check whether --with-boot-libs was given.
8370 if test "${with_boot_libs+set}" = set; then :
8371 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8372 poststage1_libs=
8373 else
8374 poststage1_libs=$withval
8376 else
8377 poststage1_libs=
8382 # Linker flags to use for stage2 and later builds.
8384 # Check whether --with-boot-ldflags was given.
8385 if test "${with_boot_ldflags+set}" = set; then :
8386 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8387 poststage1_ldflags=
8388 else
8389 poststage1_ldflags=$withval
8391 else
8392 poststage1_ldflags=
8393 # In stages 2 and 3, default to linking libstdc++ and libgcc
8394 # statically. But if the user explicitly specified the libraries to
8395 # use, trust that they are doing what they want.
8396 if test "$poststage1_libs" = ""; then
8397 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8403 # GCC GRAPHITE dependency isl.
8404 # Basic setup is inlined here, actual checks are in config/isl.m4
8407 # Check whether --with-isl was given.
8408 if test "${with_isl+set}" = set; then :
8409 withval=$with_isl;
8413 # Treat --without-isl as a request to disable
8414 # GRAPHITE support and skip all following checks.
8415 if test "x$with_isl" != "xno"; then
8416 # Check for isl
8419 # Check whether --with-isl-include was given.
8420 if test "${with_isl_include+set}" = set; then :
8421 withval=$with_isl_include;
8425 # Check whether --with-isl-lib was given.
8426 if test "${with_isl_lib+set}" = set; then :
8427 withval=$with_isl_lib;
8431 # Check whether --enable-isl-version-check was given.
8432 if test "${enable_isl_version_check+set}" = set; then :
8433 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8434 else
8435 ENABLE_ISL_CHECK=yes
8439 # Initialize isllibs and islinc.
8440 case $with_isl in
8442 isllibs=
8443 islinc=
8445 "" | yes)
8448 isllibs="-L$with_isl/lib"
8449 islinc="-I$with_isl/include"
8451 esac
8452 if test "x${with_isl_include}" != x ; then
8453 islinc="-I$with_isl_include"
8455 if test "x${with_isl_lib}" != x; then
8456 isllibs="-L$with_isl_lib"
8458 if test "x${islinc}" = x && test "x${isllibs}" = x \
8459 && test -d ${srcdir}/isl; then
8460 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8461 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8462 ENABLE_ISL_CHECK=no
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8464 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8467 isllibs="${isllibs} -lisl"
8471 if test "${ENABLE_ISL_CHECK}" = yes ; then
8472 _isl_saved_CFLAGS=$CFLAGS
8473 _isl_saved_LDFLAGS=$LDFLAGS
8474 _isl_saved_LIBS=$LIBS
8476 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8477 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8478 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8481 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <isl/schedule.h>
8486 main ()
8488 isl_options_set_schedule_serialize_sccs (NULL, 0);
8490 return 0;
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494 gcc_cv_isl=yes
8495 else
8496 gcc_cv_isl=no
8498 rm -f core conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8501 $as_echo "$gcc_cv_isl" >&6; }
8503 if test "${gcc_cv_isl}" = no ; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8505 $as_echo "required isl version is 0.15 or later" >&6; }
8508 CFLAGS=$_isl_saved_CFLAGS
8509 LDFLAGS=$_isl_saved_LDFLAGS
8510 LIBS=$_isl_saved_LIBS
8518 if test "x${with_isl}" = xno; then
8519 graphite_requested=no
8520 elif test "x${with_isl}" != x \
8521 || test "x${with_isl_include}" != x \
8522 || test "x${with_isl_lib}" != x ; then
8523 graphite_requested=yes
8524 else
8525 graphite_requested=no
8530 if test "${gcc_cv_isl}" = no ; then
8531 isllibs=
8532 islinc=
8535 if test "${graphite_requested}" = yes \
8536 && test "x${isllibs}" = x \
8537 && test "x${islinc}" = x ; then
8539 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8545 # If the isl check failed, disable builds of in-tree variant of isl
8546 if test "x$with_isl" = xno ||
8547 test "x$gcc_cv_isl" = xno; then
8548 noconfigdirs="$noconfigdirs isl"
8549 islinc=
8555 # Check for LTO support.
8556 # Check whether --enable-lto was given.
8557 if test "${enable_lto+set}" = set; then :
8558 enableval=$enable_lto; enable_lto=$enableval
8559 else
8560 enable_lto=yes; default_enable_lto=yes
8567 target_elf=no
8568 case $target in
8569 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8570 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8571 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8572 nvptx-*-none)
8573 target_elf=no
8576 target_elf=yes
8578 esac
8580 if test $target_elf = yes; then :
8581 # ELF platforms build the lto-plugin always.
8582 build_lto_plugin=yes
8584 else
8585 if test x"$default_enable_lto" = x"yes" ; then
8586 case $target in
8587 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8588 # On other non-ELF platforms, LTO has yet to be validated.
8589 *) enable_lto=no ;;
8590 esac
8591 else
8592 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8593 # It would also be nice to check the binutils support, but we don't
8594 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8595 # warn during gcc/ subconfigure; unless you're bootstrapping with
8596 # -flto it won't be needed until after installation anyway.
8597 case $target in
8598 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8599 *) if test x"$enable_lto" = x"yes"; then
8600 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8603 esac
8605 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8606 # Build it unless LTO was explicitly disabled.
8607 case $target in
8608 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8609 *) ;;
8610 esac
8615 # Check whether --enable-linker-plugin-configure-flags was given.
8616 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8617 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8618 else
8619 extra_linker_plugin_configure_flags=
8623 # Check whether --enable-linker-plugin-flags was given.
8624 if test "${enable_linker_plugin_flags+set}" = set; then :
8625 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8626 else
8627 extra_linker_plugin_flags=
8632 # Enable --enable-host-shared.
8633 # Checked early to determine whether jit is an 'all' language
8634 # Check whether --enable-host-shared was given.
8635 if test "${enable_host_shared+set}" = set; then :
8636 enableval=$enable_host_shared; host_shared=$enableval
8637 case $host in
8638 x86_64-*-darwin* | aarch64-*-darwin*)
8639 if test x$host_shared != xyes ; then
8640 # PIC is the default, and actually cannot be switched off.
8641 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8642 host_shared=yes
8643 fi ;;
8644 *) ;;
8645 esac
8646 else
8647 case $host in
8648 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8649 *) host_shared=no ;;
8650 esac
8655 # By default, C and C++ are the only stage 1 languages.
8656 stage1_languages=,c,
8658 # Target libraries that we bootstrap.
8659 bootstrap_target_libs=,target-libgcc,
8661 # Figure out what language subdirectories are present.
8662 # Look if the user specified --enable-languages="..."; if not, use
8663 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8664 # go away some day.
8665 # NB: embedded tabs in this IF block -- do not untabify
8666 if test -d ${srcdir}/gcc; then
8667 if test x"${enable_languages+set}" != xset; then
8668 if test x"${LANGUAGES+set}" = xset; then
8669 enable_languages="${LANGUAGES}"
8670 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8671 else
8672 enable_languages=default
8674 else
8675 if test x"${enable_languages}" = x ||
8676 test x"${enable_languages}" = xyes;
8677 then
8678 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8679 exit 1
8682 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8684 # 'f95' is the old name for the 'fortran' language. We issue a warning
8685 # and make the substitution.
8686 case ,${enable_languages}, in
8687 *,f95,*)
8688 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8689 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8691 esac
8693 # If bootstrapping, C++ must be enabled.
8694 case ",$enable_languages,:$enable_bootstrap" in
8695 *,c++,*:*) ;;
8696 *:yes)
8697 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8698 enable_languages="${enable_languages},c++"
8699 else
8700 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8703 esac
8705 # First scan to see if an enabled language requires some other language.
8706 # We assume that a given config-lang.in will list all the language
8707 # front ends it requires, even if some are required indirectly.
8708 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8709 case ${lang_frag} in
8710 ..) ;;
8711 # The odd quoting in the next line works around
8712 # an apparent bug in bash 1.12 on linux.
8713 ${srcdir}/gcc/[*]/config-lang.in) ;;
8715 # From the config-lang.in, get $language, $lang_requires, and
8716 # $lang_requires_boot_languages.
8717 language=
8718 lang_requires=
8719 lang_requires_boot_languages=
8720 # set srcdir during sourcing lang_frag to the gcc dir.
8721 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8722 # polutes this shell
8723 saved_srcdir=${srcdir}
8724 srcdir=${srcdir}/gcc . ${lang_frag}
8725 srcdir=${saved_srcdir}
8726 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8727 case ,${enable_languages}, in
8728 *,$other,*) ;;
8729 *,default,*) ;;
8730 *,all,*) ;;
8731 *,$language,*)
8732 echo " \`$other' language required by \`$language'; enabling" 1>&2
8733 enable_languages="${enable_languages},${other}"
8735 esac
8736 done
8737 for other in ${lang_requires_boot_languages} ; do
8738 if test "$other" != "c"; then
8739 case ,${enable_stage1_languages}, in
8740 *,$other,*) ;;
8741 *,default,*) ;;
8742 *,all,*) ;;
8744 case ,${enable_languages}, in
8745 *,$language,*)
8746 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8747 enable_stage1_languages="$enable_stage1_languages,${other}"
8749 esac
8751 esac
8753 done
8755 esac
8756 done
8758 new_enable_languages=,c,
8760 # If LTO is enabled, add the LTO front end.
8761 if test "$enable_lto" = "yes" ; then
8762 case ,${enable_languages}, in
8763 *,lto,*) ;;
8764 *) enable_languages="${enable_languages},lto" ;;
8765 esac
8766 if test "${build_lto_plugin}" = "yes" ; then
8767 configdirs="$configdirs lto-plugin"
8771 # If we're building an offloading compiler, add the LTO front end.
8772 if test x"$enable_as_accelerator_for" != x ; then
8773 case ,${enable_languages}, in
8774 *,lto,*) ;;
8775 *) enable_languages="${enable_languages},lto" ;;
8776 esac
8779 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8780 potential_languages=,c,
8782 enabled_target_libs=
8783 disabled_target_libs=
8785 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8786 case ${lang_frag} in
8787 ..) ;;
8788 # The odd quoting in the next line works around
8789 # an apparent bug in bash 1.12 on linux.
8790 ${srcdir}/gcc/[*]/config-lang.in) ;;
8792 # From the config-lang.in, get $language, $target_libs,
8793 # $lang_dirs, $boot_language, and $build_by_default
8794 language=
8795 target_libs=
8796 lang_dirs=
8797 subdir_requires=
8798 boot_language=no
8799 build_by_default=yes
8800 # set srcdir during sourcing. See above about save & restore
8801 saved_srcdir=${srcdir}
8802 srcdir=${srcdir}/gcc . ${lang_frag}
8803 srcdir=${saved_srcdir}
8804 if test x${language} = x; then
8805 echo "${lang_frag} doesn't set \$language." 1>&2
8806 exit 1
8809 if test "$language" = "c++"; then
8810 boot_language=yes
8813 add_this_lang=no
8814 # C is always enabled, so no need to add it again
8815 if test "$language" != "c"; then
8816 case ,${enable_languages}, in
8817 *,${language},*)
8818 # Language was explicitly selected; include it
8819 add_this_lang=yes
8821 *,all,*)
8822 # All languages are enabled
8823 add_this_lang=all
8825 *,default,*)
8826 # 'default' was selected, select it if it is a default language
8827 add_this_lang=${build_by_default}
8829 esac
8832 # Disable languages that need other directories if these aren't available.
8833 for i in $subdir_requires; do
8834 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8835 case ${add_this_lang} in
8836 yes)
8837 # Specifically requested language; tell them.
8838 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8840 all)
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8842 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8843 add_this_lang=unsupported
8846 # Silently disable.
8847 add_this_lang=unsupported
8849 esac
8850 done
8852 # Disable Ada if no preexisting GNAT is available.
8853 case ${add_this_lang}:${language}:${have_gnat} in
8854 yes:ada:no)
8855 # Specifically requested language; tell them.
8856 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8858 all:ada:no)
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8860 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8861 add_this_lang=unsupported
8863 *:ada:no)
8864 # Silently disable.
8865 add_this_lang=unsupported
8867 esac
8869 # Disable D if no preexisting GDC is available.
8870 case ${add_this_lang}:${language}:${have_gdc} in
8871 yes:d:no)
8872 # Specifically requested language; tell them.
8873 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8875 all:d:no)
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8877 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8878 add_this_lang=unsupported
8880 *:d:no)
8881 # Silently disable.
8882 add_this_lang=unsupported
8884 esac
8886 # Disable jit if -enable-host-shared not specified
8887 # but not if building for Mingw. All code in Windows
8888 # is position independent code (PIC).
8889 case $target in
8890 *mingw*) ;;
8892 case ${add_this_lang}:${language}:${host_shared} in
8893 yes:jit:no)
8894 # PR jit/64780: explicitly specify --enable-host-shared
8895 as_fn_error $? "
8896 Enabling language \"jit\" requires --enable-host-shared.
8898 --enable-host-shared typically slows the rest of the compiler down by
8899 a few %, so you must explicitly enable it.
8901 If you want to build both the jit and the regular compiler, it is often
8902 best to do this via two separate configure/builds, in separate
8903 directories, to avoid imposing the performance cost of
8904 --enable-host-shared on the regular compiler." "$LINENO" 5
8906 all:jit:no)
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8908 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8909 add_this_lang=unsupported
8911 *:jit:no)
8912 # Silently disable.
8913 add_this_lang=unsupported
8915 esac
8917 esac
8919 # Disable a language that is unsupported by the target.
8920 case "${add_this_lang}: $unsupported_languages " in
8921 no:*) ;;
8922 unsupported:*) ;;
8923 *:*" $language "*)
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8925 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8926 add_this_lang=unsupported
8928 esac
8930 case $add_this_lang in
8931 unsupported)
8932 # Remove language-dependent dirs.
8933 disabled_target_libs="$disabled_target_libs $target_libs"
8934 noconfigdirs="$noconfigdirs $lang_dirs"
8937 # Remove language-dependent dirs; still show language as supported.
8938 disabled_target_libs="$disabled_target_libs $target_libs"
8939 noconfigdirs="$noconfigdirs $lang_dirs"
8940 potential_languages="${potential_languages}${language},"
8942 all|yes)
8943 new_enable_languages="${new_enable_languages}${language},"
8944 potential_languages="${potential_languages}${language},"
8945 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8946 enabled_target_libs="$enabled_target_libs $target_libs"
8947 case "${boot_language}:,$enable_stage1_languages," in
8948 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8949 # Add to (comma-separated) list of stage 1 languages.
8950 case ",$stage1_languages," in
8951 *,$language,* | ,yes, | ,all,) ;;
8952 *) stage1_languages="${stage1_languages}${language}," ;;
8953 esac
8954 # We need to bootstrap any supporting libraries.
8955 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8957 esac
8959 esac
8961 esac
8962 done
8964 # Add target libraries which are only needed for disabled languages
8965 # to noconfigdirs.
8966 if test -n "$disabled_target_libs"; then
8967 for dir in $disabled_target_libs; do
8968 case " $enabled_target_libs " in
8969 *" ${dir} "*) ;;
8970 *) noconfigdirs="$noconfigdirs $dir" ;;
8971 esac
8972 done
8975 # Check whether --enable-stage1-languages was given.
8976 if test "${enable_stage1_languages+set}" = set; then :
8977 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8978 ,no,|,,)
8979 # Set it to something that will have no effect in the loop below
8980 enable_stage1_languages=c ;;
8981 ,yes,)
8982 enable_stage1_languages=`echo $new_enable_languages | \
8983 sed -e "s/^,//" -e "s/,$//" ` ;;
8984 *,all,*)
8985 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8986 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8987 esac
8989 # Add "good" languages from enable_stage1_languages to stage1_languages,
8990 # while "bad" languages go in missing_languages. Leave no duplicates.
8991 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8992 case $potential_languages in
8993 *,$i,*)
8994 case $stage1_languages in
8995 *,$i,*) ;;
8996 *) stage1_languages="$stage1_languages$i," ;;
8997 esac ;;
8999 case $missing_languages in
9000 *,$i,*) ;;
9001 *) missing_languages="$missing_languages$i," ;;
9002 esac ;;
9003 esac
9004 done
9008 # Remove leading/trailing commas that were added for simplicity
9009 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9010 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9011 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9012 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9014 if test "x$missing_languages" != x; then
9015 as_fn_error $? "
9016 The following requested languages could not be built: ${missing_languages}
9017 Supported languages are: ${potential_languages}" "$LINENO" 5
9019 if test "x$new_enable_languages" != "x$enable_languages"; then
9020 echo The following languages will be built: ${new_enable_languages}
9021 enable_languages="$new_enable_languages"
9025 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9028 # Handle --disable-<component> generically.
9029 for dir in $configdirs $build_configdirs $target_configdirs ; do
9030 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9031 varname=`echo $dirname | sed -e s/+/_/g`
9032 if eval test x\${enable_${varname}} "=" xno ; then
9033 noconfigdirs="$noconfigdirs $dir"
9035 done
9037 # Check for Boehm's garbage collector
9038 # Check whether --enable-objc-gc was given.
9039 if test "${enable_objc_gc+set}" = set; then :
9040 enableval=$enable_objc_gc;
9044 # Check whether --with-target-bdw-gc was given.
9045 if test "${with_target_bdw_gc+set}" = set; then :
9046 withval=$with_target_bdw_gc;
9050 # Check whether --with-target-bdw-gc-include was given.
9051 if test "${with_target_bdw_gc_include+set}" = set; then :
9052 withval=$with_target_bdw_gc_include;
9056 # Check whether --with-target-bdw-gc-lib was given.
9057 if test "${with_target_bdw_gc_lib+set}" = set; then :
9058 withval=$with_target_bdw_gc_lib;
9062 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9064 $as_echo_n "checking for bdw garbage collector... " >&6; }
9065 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9067 $as_echo "using bdw-gc in default locations" >&6; }
9068 else
9069 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9070 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9071 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9072 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9073 else
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9075 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9078 esac
9080 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9081 case ,${enable_languages}, in
9082 *,c++,*)
9083 # Disable libitm, libsanitizer if we're not building libstdc++
9084 case "${noconfigdirs}" in
9085 *target-libstdc++-v3*)
9086 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9088 *) ;;
9089 esac
9092 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9094 esac
9096 # If gcc/ is not in the source tree then we'll not be building a
9097 # target compiler, assume in that case we don't want to build any
9098 # target libraries or tools.
9100 # This was added primarily for the benefit for binutils-gdb who reuse
9101 # this configure script, but don't always have target tools available.
9102 if test ! -d ${srcdir}/gcc; then
9103 skipdirs="${skipdirs} ${target_configdirs}"
9106 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9107 # $build_configdirs and $target_configdirs.
9108 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9110 notsupp=""
9111 for dir in . $skipdirs $noconfigdirs ; do
9112 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9113 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9114 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9115 if test -r $srcdir/$dirname/configure ; then
9116 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9117 true
9118 else
9119 notsupp="$notsupp $dir"
9123 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9124 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9125 if test -r $srcdir/$dirname/configure ; then
9126 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9127 true
9128 else
9129 notsupp="$notsupp $dir"
9133 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9134 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9135 if test -r $srcdir/$dirname/configure ; then
9136 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9137 true
9138 else
9139 notsupp="$notsupp $dir"
9143 done
9145 # Quietly strip out all directories which aren't configurable in this tree.
9146 # This relies on all configurable subdirectories being autoconfiscated, which
9147 # is now the case.
9148 build_configdirs_all="$build_configdirs"
9149 build_configdirs=
9150 for i in ${build_configdirs_all} ; do
9151 j=`echo $i | sed -e s/build-//g`
9152 if test -f ${srcdir}/$j/configure ; then
9153 build_configdirs="${build_configdirs} $i"
9155 done
9157 configdirs_all="$configdirs"
9158 configdirs=
9159 for i in ${configdirs_all} ; do
9160 if test -f ${srcdir}/$i/configure ; then
9161 configdirs="${configdirs} $i"
9163 done
9165 target_configdirs_all="$target_configdirs"
9166 target_configdirs=
9167 for i in ${target_configdirs_all} ; do
9168 j=`echo $i | sed -e s/target-//g`
9169 if test -f ${srcdir}/$j/configure ; then
9170 target_configdirs="${target_configdirs} $i"
9172 done
9174 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9175 # so we have to add it after the preceding checks.
9176 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9177 then
9178 case " $configdirs " in
9179 *" libiberty "*)
9180 # If we can build libiberty, we can also build libiberty-linker-plugin.
9181 configdirs="$configdirs libiberty-linker-plugin"
9182 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9183 --with-libiberty=../libiberty-linker-plugin";;
9185 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9186 esac
9189 # Sometimes we have special requirements for the host libiberty.
9190 extra_host_libiberty_configure_flags=
9191 case " $configdirs " in
9192 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9193 # When these are to be built as shared libraries, the same applies to
9194 # libiberty.
9195 extra_host_libiberty_configure_flags=--enable-shared
9197 esac
9200 # Sometimes we have special requirements for the host zlib.
9201 extra_host_zlib_configure_flags=
9202 case " $configdirs " in
9203 *" bfd "*)
9204 # When bfd is to be built as a shared library, the same applies to
9205 # zlib.
9206 if test "$enable_shared" = "yes"; then
9207 extra_host_zlib_configure_flags=--enable-host-shared
9210 esac
9213 # Produce a warning message for the subdirs we can't configure.
9214 # This isn't especially interesting in the Cygnus tree, but in the individual
9215 # FSF releases, it's important to let people know when their machine isn't
9216 # supported by the one or two programs in a package.
9218 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9219 # If $appdirs is non-empty, at least one of those directories must still
9220 # be configured, or we error out. (E.g., if the gas release supports a
9221 # specified target in some subdirs but not the gas subdir, we shouldn't
9222 # pretend that all is well.)
9223 if test -n "$appdirs" ; then
9224 for dir in $appdirs ; do
9225 if test -r $dir/Makefile.in ; then
9226 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9227 appdirs=""
9228 break
9230 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9231 appdirs=""
9232 break
9235 done
9236 if test -n "$appdirs" ; then
9237 echo "*** This configuration is not supported by this package." 1>&2
9238 exit 1
9241 # Okay, some application will build, or we don't care to check. Still
9242 # notify of subdirs not getting built.
9243 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9244 echo " ${notsupp}" 1>&2
9245 echo " (Any other directories should still work fine.)" 1>&2
9248 case "$host" in
9249 *msdosdjgpp*)
9250 enable_gdbtk=no ;;
9251 esac
9253 # To find our prefix, in gcc_cv_tool_prefix.
9255 # The user is always right.
9256 if test "${PATH_SEPARATOR+set}" != set; then
9257 echo "#! /bin/sh" >conf$$.sh
9258 echo "exit 0" >>conf$$.sh
9259 chmod +x conf$$.sh
9260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9261 PATH_SEPARATOR=';'
9262 else
9263 PATH_SEPARATOR=:
9265 rm -f conf$$.sh
9269 get_gcc_base_ver="cat"
9271 # Check whether --with-gcc-major-version-only was given.
9272 if test "${with_gcc_major_version_only+set}" = set; then :
9273 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9274 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9284 if test "x$exec_prefix" = xNONE; then
9285 if test "x$prefix" = xNONE; then
9286 gcc_cv_tool_prefix=$ac_default_prefix
9287 else
9288 gcc_cv_tool_prefix=$prefix
9290 else
9291 gcc_cv_tool_prefix=$exec_prefix
9294 # If there is no compiler in the tree, use the PATH only. In any
9295 # case, if there is no compiler in the tree nobody should use
9296 # AS_FOR_TARGET and LD_FOR_TARGET.
9297 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9298 if test x$with_gcc_major_version_only = xyes ; then
9299 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9300 else
9301 gcc_version=`cat $srcdir/gcc/BASE-VER`
9303 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9304 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9305 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9306 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9307 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9308 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9309 else
9310 gcc_cv_tool_dirs=
9313 if test x$build = x$target && test -n "$md_exec_prefix"; then
9314 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9319 copy_dirs=
9322 # Check whether --with-build-sysroot was given.
9323 if test "${with_build_sysroot+set}" = set; then :
9324 withval=$with_build_sysroot; if test x"$withval" != x ; then
9325 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9327 else
9328 SYSROOT_CFLAGS_FOR_TARGET=
9334 # Check whether --with-debug-prefix-map was given.
9335 if test "${with_debug_prefix_map+set}" = set; then :
9336 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9337 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9338 for debug_map in $withval; do
9339 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9340 done
9342 else
9343 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9348 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9349 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9350 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9351 # We want to ensure that TARGET libraries (which we know are built with
9352 # gcc) are built with "-O2 -g", so include those options when setting
9353 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9354 if test "x$CFLAGS_FOR_TARGET" = x; then
9355 if test "x${is_cross_compiler}" = xyes; then
9356 CFLAGS_FOR_TARGET="-g -O2"
9357 else
9358 CFLAGS_FOR_TARGET=$CFLAGS
9359 case " $CFLAGS " in
9360 *" -O2 "*) ;;
9361 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9362 esac
9363 case " $CFLAGS " in
9364 *" -g "* | *" -g3 "*) ;;
9365 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9366 esac
9371 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9372 if test "x${is_cross_compiler}" = xyes; then
9373 CXXFLAGS_FOR_TARGET="-g -O2"
9374 else
9375 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9376 case " $CXXFLAGS " in
9377 *" -O2 "*) ;;
9378 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9379 esac
9380 case " $CXXFLAGS " in
9381 *" -g "* | *" -g3 "*) ;;
9382 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9383 esac
9390 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9391 # the named directory are copied to $(tooldir)/sys-include.
9392 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9393 if test x${is_cross_compiler} = xno ; then
9394 echo 1>&2 '***' --with-headers is only supported when cross compiling
9395 exit 1
9397 if test x"${with_headers}" != xyes ; then
9398 x=${gcc_cv_tool_prefix}
9399 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9403 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9404 # the name directories are copied to $(tooldir)/lib. Multiple directories
9405 # are permitted.
9406 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9407 if test x${is_cross_compiler} = xno ; then
9408 echo 1>&2 '***' --with-libs is only supported when cross compiling
9409 exit 1
9411 if test x"${with_libs}" != xyes ; then
9412 # Copy the libraries in reverse order, so that files in the first named
9413 # library override files in subsequent libraries.
9414 x=${gcc_cv_tool_prefix}
9415 for l in ${with_libs}; do
9416 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9417 done
9421 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9423 # This is done by determining whether or not the appropriate directory
9424 # is available, and by checking whether or not specific configurations
9425 # have requested that this magic not happen.
9427 # The command line options always override the explicit settings in
9428 # configure.ac, and the settings in configure.ac override this magic.
9430 # If the default for a toolchain is to use GNU as and ld, and you don't
9431 # want to do that, then you should use the --without-gnu-as and
9432 # --without-gnu-ld options for the configure script. Similarly, if
9433 # the default is to use the included zlib and you don't want to do that,
9434 # you should use the --with-system-zlib option for the configure script.
9436 if test x${use_gnu_as} = x &&
9437 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9438 with_gnu_as=yes
9439 extra_host_args="$extra_host_args --with-gnu-as"
9442 if test x${use_gnu_ld} = x &&
9443 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9444 with_gnu_ld=yes
9445 extra_host_args="$extra_host_args --with-gnu-ld"
9448 if test x${use_included_zlib} = x &&
9449 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9451 else
9452 with_system_zlib=yes
9453 extra_host_args="$extra_host_args --with-system-zlib"
9456 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9457 # can detect this case.
9459 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9460 with_newlib=yes
9461 extra_host_args="$extra_host_args --with-newlib"
9464 # Handle ${copy_dirs}
9465 set fnord ${copy_dirs}
9466 shift
9467 while test $# != 0 ; do
9468 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9470 else
9471 echo Copying $1 to $2
9473 # Use the install script to create the directory and all required
9474 # parent directories.
9475 if test -d $2 ; then
9477 else
9478 echo >config.temp
9479 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9482 # Copy the directory, assuming we have tar.
9483 # FIXME: Should we use B in the second tar? Not all systems support it.
9484 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9486 # It is the responsibility of the user to correctly adjust all
9487 # symlinks. If somebody can figure out how to handle them correctly
9488 # here, feel free to add the code.
9490 echo $1 > $2/COPIED
9492 shift; shift
9493 done
9495 # Determine a target-dependent exec_prefix that the installed
9496 # gcc will search in. Keep this list sorted by triplet, with
9497 # the *-*-osname triplets last.
9498 md_exec_prefix=
9499 case "${target}" in
9500 i[34567]86-pc-msdosdjgpp*)
9501 md_exec_prefix=/dev/env/DJDIR/bin
9503 *-*-hpux* | \
9504 *-*-nto-qnx* | \
9505 *-*-solaris2*)
9506 md_exec_prefix=/usr/ccs/bin
9508 esac
9510 extra_arflags_for_target=
9511 extra_nmflags_for_target=
9512 extra_ranlibflags_for_target=
9513 target_makefile_frag=/dev/null
9514 case "${target}" in
9515 spu-*-*)
9516 target_makefile_frag="config/mt-spu"
9518 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9519 target_makefile_frag="config/mt-sde"
9521 mipsisa*-*-elfoabi*)
9522 target_makefile_frag="config/mt-mips-elfoabi"
9524 mips*-*-*linux* | mips*-*-gnu*)
9525 target_makefile_frag="config/mt-mips-gnu"
9527 nios2-*-elf*)
9528 target_makefile_frag="config/mt-nios2-elf"
9530 *-*-linux-android*)
9531 target_makefile_frag="config/mt-android"
9533 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9534 target_makefile_frag="config/mt-gnu"
9536 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9537 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9538 # commands to handle both 32-bit and 64-bit objects. These flags are
9539 # harmless if we're using GNU nm or ar.
9540 extra_arflags_for_target=" -X32_64"
9541 extra_nmflags_for_target=" -B -X32_64"
9543 esac
9545 alphaieee_frag=/dev/null
9546 case $target in
9547 alpha*-*-*)
9548 # This just makes sure to use the -mieee option to build target libs.
9549 # This should probably be set individually by each library.
9550 alphaieee_frag="config/mt-alphaieee"
9552 esac
9554 # If --enable-target-optspace always use -Os instead of -O2 to build
9555 # the target libraries, similarly if it is not specified, use -Os
9556 # on selected platforms.
9557 ospace_frag=/dev/null
9558 case "${enable_target_optspace}:${target}" in
9559 yes:*)
9560 ospace_frag="config/mt-ospace"
9562 :d30v-*)
9563 ospace_frag="config/mt-d30v"
9565 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9566 ospace_frag="config/mt-ospace"
9568 no:* | :*)
9571 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9573 esac
9575 # Some systems (e.g., one of the i386-aix systems the gas testers are
9576 # using) don't handle "\$" correctly, so don't use it here.
9577 tooldir='${exec_prefix}'/${target_noncanonical}
9578 build_tooldir=${tooldir}
9580 # Create a .gdbinit file which runs the one in srcdir
9581 # and tells GDB to look there for source files.
9583 if test -r ${srcdir}/.gdbinit ; then
9584 case ${srcdir} in
9585 .) ;;
9586 *) cat > ./.gdbinit <<EOF
9587 # ${NO_EDIT}
9588 dir ${srcdir}
9589 dir .
9590 source ${srcdir}/.gdbinit
9593 esac
9596 # Make sure that the compiler is able to generate an executable. If it
9597 # can't, we are probably in trouble. We don't care whether we can run the
9598 # executable--we might be using a cross compiler--we only care whether it
9599 # can be created. At this point the main configure script has set CC.
9600 we_are_ok=no
9601 echo "int main () { return 0; }" > conftest.c
9602 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9603 if test $? = 0 ; then
9604 if test -s conftest || test -s conftest.exe ; then
9605 we_are_ok=yes
9608 case $we_are_ok in
9610 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9611 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9612 rm -f conftest*
9613 exit 1
9615 esac
9616 rm -f conftest*
9618 # Decide which environment variable is used to find dynamic libraries.
9619 case "${host}" in
9620 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9621 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9622 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9623 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9624 esac
9626 # On systems where the dynamic library environment variable is PATH,
9627 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9628 # built executables to PATH.
9629 if test "$RPATH_ENVVAR" = PATH; then
9630 GCC_SHLIB_SUBDIR=/shlib
9631 else
9632 GCC_SHLIB_SUBDIR=
9635 # Adjust the toplevel makefile according to whether bootstrap was selected.
9636 case $enable_bootstrap in
9637 yes)
9638 bootstrap_suffix=bootstrap
9639 BUILD_CONFIG=bootstrap-debug
9642 bootstrap_suffix=no-bootstrap
9643 BUILD_CONFIG=
9645 esac
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9648 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9651 # Check whether --with-build-config was given.
9652 if test "${with_build_config+set}" = set; then :
9653 withval=$with_build_config; case $with_build_config in
9654 yes) with_build_config= ;;
9655 no) with_build_config= BUILD_CONFIG= ;;
9656 esac
9660 if test "x${with_build_config}" != x; then
9661 BUILD_CONFIG=$with_build_config
9662 else
9663 case $BUILD_CONFIG in
9664 bootstrap-debug)
9665 if echo "int f (void) { return 0; }" > conftest.c &&
9666 ${CC} -c conftest.c &&
9667 mv conftest.o conftest.o.g0 &&
9668 ${CC} -c -g conftest.c &&
9669 mv conftest.o conftest.o.g &&
9670 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9672 else
9673 BUILD_CONFIG=
9675 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9677 esac
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9680 $as_echo "$BUILD_CONFIG" >&6; }
9683 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9685 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9686 # Check whether --enable-vtable-verify was given.
9687 if test "${enable_vtable_verify+set}" = set; then :
9688 enableval=$enable_vtable_verify; case "$enableval" in
9689 yes) enable_vtable_verify=yes ;;
9690 no) enable_vtable_verify=no ;;
9691 *) enable_vtable_verify=no;;
9692 esac
9693 else
9694 enable_vtable_verify=no
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9698 $as_echo "$enable_vtable_verify" >&6; }
9700 # Record target_configdirs and the configure arguments for target and
9701 # build configuration in Makefile.
9702 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9703 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9704 bootstrap_fixincludes=no
9706 # If we are building libgomp, bootstrap it.
9707 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9708 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9711 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9712 # or bootstrap-ubsan, bootstrap it.
9713 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9714 case "$BUILD_CONFIG" in
9715 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9716 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9717 bootstrap_fixincludes=yes
9719 esac
9722 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9723 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9724 test "$enable_vtable_verify" != no; then
9725 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9728 # If we are building libatomic and the list of enabled languages includes the
9729 # D frontend, bootstrap it.
9730 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9731 case ,${enable_languages}, in
9732 *,d,*)
9733 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9735 esac
9738 # Determine whether gdb needs tk/tcl or not.
9739 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9740 # and in that case we want gdb to be built without tk. Ugh!
9741 # In fact I believe gdb is the *only* package directly dependent on tk,
9742 # so we should be able to put the 'maybe's in unconditionally and
9743 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9744 # 100% sure that that's safe though.
9746 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9747 case "$enable_gdbtk" in
9749 GDB_TK="" ;;
9750 yes)
9751 GDB_TK="${gdb_tk}" ;;
9753 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9754 # distro. Eventually someone will fix this and move Insight, nee
9755 # gdbtk to a separate directory.
9756 if test -d ${srcdir}/gdb/gdbtk ; then
9757 GDB_TK="${gdb_tk}"
9758 else
9759 GDB_TK=""
9762 esac
9763 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9764 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9766 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9767 # else does, only include them if one of these is built. The Makefile
9768 # provides the ordering, so it's enough here to add to the list.
9769 case " ${configdirs} " in
9770 *\ gdb\ *)
9771 configdirs="${configdirs} gnulib gdbsupport"
9773 *\ gdbserver\ *)
9774 configdirs="${configdirs} gnulib gdbsupport"
9776 *\ sim\ *)
9777 configdirs="${configdirs} gnulib"
9779 esac
9781 # Strip out unwanted targets.
9783 # While at that, we remove Makefiles if we were started for recursive
9784 # configuration, so that the top-level Makefile reconfigures them,
9785 # like we used to do when configure itself was recursive.
9787 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9788 # but now we're fixing up the Makefile ourselves with the additional
9789 # commands passed to AC_CONFIG_FILES. Use separate variables
9790 # extrasub-{build,host,target} not because there is any reason to split
9791 # the substitutions up that way, but only to remain below the limit of
9792 # 99 commands in a script, for HP-UX sed.
9794 # Do not nest @if/@endif or @unless/@endunless pairs, because
9795 # configure will not warn you at all.
9797 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9798 yes:yes:*\ gold\ *:*,c++,*) ;;
9799 yes:yes:*\ gold\ *:*)
9800 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9802 esac
9804 extrasub_build=
9805 for module in ${build_configdirs} ; do
9806 if test -z "${no_recursion}" \
9807 && test -f ${build_subdir}/${module}/Makefile; then
9808 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9809 rm -f ${build_subdir}/${module}/Makefile
9811 extrasub_build="$extrasub_build
9812 /^@if build-$module\$/d
9813 /^@endif build-$module\$/d
9814 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9815 /^@if build-$module-$bootstrap_suffix\$/d
9816 /^@endif build-$module-$bootstrap_suffix\$/d
9817 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9818 done
9819 extrasub_host=
9820 for module in ${configdirs} ; do
9821 if test -z "${no_recursion}"; then
9822 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9823 if test -f ${file}; then
9824 echo 1>&2 "*** removing ${file} to force reconfigure"
9825 rm -f ${file}
9827 done
9829 case ${module},${bootstrap_fixincludes} in
9830 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9831 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9832 esac
9833 extrasub_host="$extrasub_host
9834 /^@if $module\$/d
9835 /^@endif $module\$/d
9836 /^@unless $module\$/,/^@endunless $module\$/d
9837 /^@if $module-$host_bootstrap_suffix\$/d
9838 /^@endif $module-$host_bootstrap_suffix\$/d
9839 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9840 done
9841 extrasub_target=
9842 for module in ${target_configdirs} ; do
9843 if test -z "${no_recursion}" \
9844 && test -f ${target_subdir}/${module}/Makefile; then
9845 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9846 rm -f ${target_subdir}/${module}/Makefile
9849 # We only bootstrap target libraries listed in bootstrap_target_libs.
9850 case $bootstrap_target_libs in
9851 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9852 *) target_bootstrap_suffix=no-bootstrap ;;
9853 esac
9855 extrasub_target="$extrasub_target
9856 /^@if target-$module\$/d
9857 /^@endif target-$module\$/d
9858 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9859 /^@if target-$module-$target_bootstrap_suffix\$/d
9860 /^@endif target-$module-$target_bootstrap_suffix\$/d
9861 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9862 done
9864 # Do the final fixup along with target modules.
9865 extrasub_target="$extrasub_target
9866 /^@if /,/^@endif /d
9867 /^@unless /d
9868 /^@endunless /d"
9870 if test "$enable_pgo_build" != "no"; then
9871 extrasub_build="$extrasub_build
9872 /^@if pgo-build\$/d
9873 /^@endif pgo-build\$/d"
9876 # Create the serialization dependencies. This uses a temporary file.
9878 # Check whether --enable-serial-configure was given.
9879 if test "${enable_serial_configure+set}" = set; then :
9880 enableval=$enable_serial_configure;
9884 case ${enable_serial_configure} in
9885 yes)
9886 enable_serial_build_configure=yes
9887 enable_serial_host_configure=yes
9888 enable_serial_target_configure=yes
9890 esac
9892 # These force 'configure's to be done one at a time, to avoid problems
9893 # with contention over a shared config.cache.
9894 rm -f serdep.tmp
9895 echo '# serdep.tmp' > serdep.tmp
9896 olditem=
9897 test "x${enable_serial_build_configure}" = xyes &&
9898 for item in ${build_configdirs} ; do
9899 case ${olditem} in
9900 "") ;;
9901 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9902 esac
9903 olditem=${item}
9904 done
9905 olditem=
9906 test "x${enable_serial_host_configure}" = xyes &&
9907 for item in ${configdirs} ; do
9908 case ${olditem} in
9909 "") ;;
9910 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9911 esac
9912 olditem=${item}
9913 done
9914 olditem=
9915 test "x${enable_serial_target_configure}" = xyes &&
9916 for item in ${target_configdirs} ; do
9917 case ${olditem} in
9918 "") ;;
9919 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9920 esac
9921 olditem=${item}
9922 done
9923 serialization_dependencies=serdep.tmp
9926 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9927 # target, nonopt, and variable assignments. These are the ones we
9928 # might not want to pass down to subconfigures. The exception being
9929 # --cache-file=/dev/null, which is used to turn off the use of cache
9930 # files altogether, and which should be passed on to subconfigures.
9931 # Also strip program-prefix, program-suffix, and program-transform-name,
9932 # so that we can pass down a consistent program-transform-name.
9933 baseargs=
9934 tbaseargs=
9935 keep_next=no
9936 skip_next=no
9937 eval "set -- $ac_configure_args"
9938 for ac_arg
9940 if test X"$skip_next" = X"yes"; then
9941 skip_next=no
9942 continue
9944 if test X"$keep_next" = X"yes"; then
9945 case $ac_arg in
9946 *\'*)
9947 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9948 esac
9949 baseargs="$baseargs '$ac_arg'"
9950 tbaseargs="$tbaseargs '$ac_arg'"
9951 keep_next=no
9952 continue
9955 # Handle separated arguments. Based on the logic generated by
9956 # autoconf 2.59.
9957 case $ac_arg in
9958 *=* | --config-cache | -C | -disable-* | --disable-* \
9959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9961 | -with-* | --with-* | -without-* | --without-* | --x)
9962 separate_arg=no
9965 separate_arg=yes
9968 separate_arg=no
9970 esac
9972 skip_targ=no
9973 case $ac_arg in
9975 --with-* | --without-*)
9976 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9978 case $libopt in
9979 *[-_]include)
9980 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9982 *[-_]lib)
9983 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9986 lib=$libopt
9988 esac
9991 case $lib in
9992 mpc | mpfr | gmp | isl)
9993 # If we're processing --with-$lib, --with-$lib-include or
9994 # --with-$lib-lib, for one of the libs above, and target is
9995 # different from host, don't pass the current argument to any
9996 # target library's configure.
9997 if test x$is_cross_compiler = xyes; then
9998 skip_targ=yes
10001 esac
10003 esac
10005 case "$ac_arg" in
10006 --cache-file=/dev/null | \
10007 -cache-file=/dev/null )
10008 # Handled here to avoid the test to skip args below.
10009 baseargs="$baseargs '$ac_arg'"
10010 tbaseargs="$tbaseargs '$ac_arg'"
10011 # Assert: $separate_arg should always be no.
10012 keep_next=$separate_arg
10014 --no*)
10015 continue
10017 --c* | \
10018 --sr* | \
10019 --ho* | \
10020 --bu* | \
10021 --t* | \
10022 --program-* | \
10023 -cache_file* | \
10024 -srcdir* | \
10025 -host* | \
10026 -build* | \
10027 -target* | \
10028 -program-prefix* | \
10029 -program-suffix* | \
10030 -program-transform-name* )
10031 skip_next=$separate_arg
10032 continue
10035 # An option. Add it.
10036 case $ac_arg in
10037 *\'*)
10038 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10039 esac
10040 baseargs="$baseargs '$ac_arg'"
10041 if test X"$skip_targ" = Xno; then
10042 tbaseargs="$tbaseargs '$ac_arg'"
10044 keep_next=$separate_arg
10047 # Either a variable assignment, or a nonopt (triplet). Don't
10048 # pass it down; let the Makefile handle this.
10049 continue
10051 esac
10052 done
10053 # Remove the initial space we just introduced and, as these will be
10054 # expanded by make, quote '$'.
10055 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10057 # Add in --program-transform-name, after --program-prefix and
10058 # --program-suffix have been applied to it. Autoconf has already
10059 # doubled dollar signs and backslashes in program_transform_name; we want
10060 # the backslashes un-doubled, and then the entire thing wrapped in single
10061 # quotes, because this will be expanded first by make and then by the shell.
10062 # Also, because we want to override the logic in subdir configure scripts to
10063 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10064 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10065 ${program_transform_name}
10066 EOF_SED
10067 gcc_transform_name=`cat conftestsed.out`
10068 rm -f conftestsed.out
10069 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10070 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10071 if test "$silent" = yes; then
10072 baseargs="$baseargs --silent"
10073 tbaseargs="$tbaseargs --silent"
10075 baseargs="$baseargs --disable-option-checking"
10076 tbaseargs="$tbaseargs --disable-option-checking"
10078 # Record and document user additions to sub configure arguments.
10083 # For the build-side libraries, we just need to pretend we're native,
10084 # and not use the same cache file. Multilibs are neither needed nor
10085 # desired. We can't even use the same cache file for all build-side
10086 # libraries, as they're compiled differently; some with C, some with
10087 # C++ or with different feature-enabling options.
10088 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10090 # For host modules, accept cache file option, or specification as blank.
10091 case "${cache_file}" in
10092 "") # empty
10093 cache_file_option="" ;;
10094 /* | [A-Za-z]:[\\/]* ) # absolute path
10095 cache_file_option="--cache-file=${cache_file}" ;;
10096 *) # relative path
10097 cache_file_option="--cache-file=../${cache_file}" ;;
10098 esac
10100 # Host dirs don't like to share a cache file either, horribly enough.
10101 # This seems to be due to autoconf 2.5x stupidity.
10102 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10104 target_configargs="$target_configargs ${tbaseargs}"
10106 # Passing a --with-cross-host argument lets the target libraries know
10107 # whether they are being built with a cross-compiler or being built
10108 # native. However, it would be better to use other mechanisms to make the
10109 # sorts of decisions they want to make on this basis. Please consider
10110 # this option to be deprecated. FIXME.
10111 if test x${is_cross_compiler} = xyes ; then
10112 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10115 # Special user-friendly check for native x86_64-linux build, if
10116 # multilib is not explicitly enabled.
10117 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10118 x86_64-*linux*:yes:$build:$build:)
10119 # Make sure we have a development environment that handles 32-bit
10120 dev64=no
10121 echo "int main () { return 0; }" > conftest.c
10122 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10123 if test $? = 0 ; then
10124 if test -s conftest || test -s conftest.exe ; then
10125 dev64=yes
10128 rm -f conftest*
10129 if test x${dev64} != xyes ; then
10130 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
10133 esac
10135 # Default to --enable-multilib.
10136 if test x${enable_multilib} = x ; then
10137 target_configargs="--enable-multilib ${target_configargs}"
10140 # Pass --with-newlib if appropriate. Note that target_configdirs has
10141 # changed from the earlier setting of with_newlib.
10142 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10143 target_configargs="--with-newlib ${target_configargs}"
10146 # Different target subdirs use different values of certain variables
10147 # (notably CXX). Worse, multilibs use *lots* of different values.
10148 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10149 # it doesn't automatically accept command-line overrides of them.
10150 # This means it's not safe for target subdirs to share a cache file,
10151 # which is disgusting, but there you have it. Hopefully this can be
10152 # fixed in future. It's still worthwhile to use a cache file for each
10153 # directory. I think.
10155 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10156 # We need to pass --target, as newer autoconf's requires consistency
10157 # for target_alias and gcc doesn't manage it consistently.
10158 target_configargs="--cache-file=./config.cache ${target_configargs}"
10160 FLAGS_FOR_TARGET=
10161 case " $target_configdirs " in
10162 *" newlib "*)
10163 case " $target_configargs " in
10164 *" --with-newlib "*)
10165 case "$target" in
10166 *-cygwin*)
10167 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10169 esac
10171 # If we're not building GCC, don't discard standard headers.
10172 if test -d ${srcdir}/gcc; then
10173 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10175 if test "${build}" != "${host}"; then
10176 # On Canadian crosses, CC_FOR_TARGET will have already been set
10177 # by `configure', so we won't have an opportunity to add -Bgcc/
10178 # to it. This is right: we don't want to search that directory
10179 # for binaries, but we want the header files in there, so add
10180 # them explicitly.
10181 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10183 # Someone might think of using the pre-installed headers on
10184 # Canadian crosses, in case the installed compiler is not fully
10185 # compatible with the compiler being built. In this case, it
10186 # would be better to flag an error than risking having
10187 # incompatible object files being constructed. We can't
10188 # guarantee that an error will be flagged, but let's hope the
10189 # compiler will do it, when presented with incompatible header
10190 # files.
10194 case "${target}-${is_cross_compiler}" in
10195 i[3456789]86-*-linux*-no)
10196 # Here host == target, so we don't need to build gcc,
10197 # so we don't want to discard standard headers.
10198 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10201 # If we're building newlib, use its generic headers last, but search
10202 # for any libc-related directories first (so make it the last -B
10203 # switch).
10204 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10206 # If we're building libgloss, find the startup file, simulator library
10207 # and linker script.
10208 case " $target_configdirs " in
10209 *" libgloss "*)
10210 # Look for startup file, simulator library and maybe linker script.
10211 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10212 # Look for libnosys.a in case the target needs it.
10213 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10214 # Most targets have the linker script in the source directory.
10215 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10217 esac
10219 esac
10221 esac
10223 esac
10225 case "$target" in
10226 x86_64-*mingw* | *-w64-mingw*)
10227 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10228 # however, use a symlink named 'mingw' in ${prefix} .
10229 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10231 *-mingw*)
10232 # MinGW can't be handled as Cygwin above since it does not use newlib.
10233 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'
10235 esac
10237 # Allow the user to override the flags for
10238 # our build compiler if desired.
10239 if test x"${build}" = x"${host}" ; then
10240 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10241 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10242 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10243 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10246 # On Canadian crosses, we'll be searching the right directories for
10247 # the previously-installed cross compiler, so don't bother to add
10248 # flags for directories within the install tree of the compiler
10249 # being built; programs in there won't even run.
10250 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10251 # Search for pre-installed headers if nothing else fits.
10252 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10255 if test "x${use_gnu_ld}" = x &&
10256 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10257 # Arrange for us to find uninstalled linker scripts.
10258 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10261 # Search for other target-specific linker scripts and such.
10262 case "${target}" in
10263 mep*)
10264 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10266 esac
10268 # Makefile fragments.
10269 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10271 eval fragval=\$$frag
10272 if test $fragval != /dev/null; then
10273 eval $frag=${srcdir}/$fragval
10275 done
10281 # Miscellanea: directories, flags, etc.
10290 # Build module lists & subconfigure args.
10294 # Host module lists & subconfigure args.
10299 # Target module lists & subconfigure args.
10303 # Build tools.
10324 # Generate default definitions for YACC, M4, LEX and other programs that run
10325 # on the build machine. These are used if the Makefile can't locate these
10326 # programs in objdir.
10327 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10329 for ac_prog in 'bison -y' byacc yacc
10331 # Extract the first word of "$ac_prog", so it can be a program name with args.
10332 set dummy $ac_prog; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if ${ac_cv_prog_YACC+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 if test -n "$YACC"; then
10339 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10340 else
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_YACC="$ac_prog"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10352 done
10353 done
10354 IFS=$as_save_IFS
10358 YACC=$ac_cv_prog_YACC
10359 if test -n "$YACC"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10361 $as_echo "$YACC" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10368 test -n "$YACC" && break
10369 done
10370 test -n "$YACC" || YACC="$MISSING bison -y"
10372 case " $build_configdirs " in
10373 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10374 esac
10376 for ac_prog in bison
10378 # Extract the first word of "$ac_prog", so it can be a program name with args.
10379 set dummy $ac_prog; ac_word=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if ${ac_cv_prog_BISON+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 if test -n "$BISON"; then
10386 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10395 ac_cv_prog_BISON="$ac_prog"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10399 done
10400 done
10401 IFS=$as_save_IFS
10405 BISON=$ac_cv_prog_BISON
10406 if test -n "$BISON"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10408 $as_echo "$BISON" >&6; }
10409 else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10415 test -n "$BISON" && break
10416 done
10417 test -n "$BISON" || BISON="$MISSING bison"
10419 case " $build_configdirs " in
10420 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10421 esac
10423 for ac_prog in gm4 gnum4 m4
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426 set dummy $ac_prog; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_prog_M4+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 if test -n "$M4"; then
10433 ac_cv_prog_M4="$M4" # Let the user override the test.
10434 else
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10442 ac_cv_prog_M4="$ac_prog"
10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10446 done
10447 done
10448 IFS=$as_save_IFS
10452 M4=$ac_cv_prog_M4
10453 if test -n "$M4"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10455 $as_echo "$M4" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10462 test -n "$M4" && break
10463 done
10464 test -n "$M4" || M4="$MISSING m4"
10466 case " $build_configdirs " in
10467 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10468 esac
10470 for ac_prog in flex lex
10472 # Extract the first word of "$ac_prog", so it can be a program name with args.
10473 set dummy $ac_prog; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if ${ac_cv_prog_LEX+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 if test -n "$LEX"; then
10480 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10481 else
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489 ac_cv_prog_LEX="$ac_prog"
10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 break 2
10493 done
10494 done
10495 IFS=$as_save_IFS
10499 LEX=$ac_cv_prog_LEX
10500 if test -n "$LEX"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10502 $as_echo "$LEX" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10509 test -n "$LEX" && break
10510 done
10511 test -n "$LEX" || LEX="$MISSING flex"
10513 case " $build_configdirs " in
10514 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10515 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10516 esac
10518 for ac_prog in flex
10520 # Extract the first word of "$ac_prog", so it can be a program name with args.
10521 set dummy $ac_prog; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if ${ac_cv_prog_FLEX+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 if test -n "$FLEX"; then
10528 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10529 else
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10533 IFS=$as_save_IFS
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10537 ac_cv_prog_FLEX="$ac_prog"
10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 break 2
10541 done
10542 done
10543 IFS=$as_save_IFS
10547 FLEX=$ac_cv_prog_FLEX
10548 if test -n "$FLEX"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10550 $as_echo "$FLEX" >&6; }
10551 else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10557 test -n "$FLEX" && break
10558 done
10559 test -n "$FLEX" || FLEX="$MISSING flex"
10561 case " $build_configdirs " in
10562 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10563 esac
10565 for ac_prog in makeinfo
10567 # Extract the first word of "$ac_prog", so it can be a program name with args.
10568 set dummy $ac_prog; ac_word=$2
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10570 $as_echo_n "checking for $ac_word... " >&6; }
10571 if ${ac_cv_prog_MAKEINFO+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 if test -n "$MAKEINFO"; then
10575 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10576 else
10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578 for as_dir in $PATH
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_MAKEINFO="$ac_prog"
10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10588 done
10589 done
10590 IFS=$as_save_IFS
10594 MAKEINFO=$ac_cv_prog_MAKEINFO
10595 if test -n "$MAKEINFO"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10597 $as_echo "$MAKEINFO" >&6; }
10598 else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; }
10604 test -n "$MAKEINFO" && break
10605 done
10606 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10608 case " $build_configdirs " in
10609 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10612 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10613 # higher, else we use the "missing" dummy.
10614 if ${MAKEINFO} --version \
10615 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10617 else
10618 MAKEINFO="$MISSING makeinfo"
10622 esac
10624 # FIXME: expect and dejagnu may become build tools?
10626 for ac_prog in expect
10628 # Extract the first word of "$ac_prog", so it can be a program name with args.
10629 set dummy $ac_prog; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_prog_EXPECT+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 if test -n "$EXPECT"; then
10636 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10637 else
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645 ac_cv_prog_EXPECT="$ac_prog"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10649 done
10650 done
10651 IFS=$as_save_IFS
10655 EXPECT=$ac_cv_prog_EXPECT
10656 if test -n "$EXPECT"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10658 $as_echo "$EXPECT" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10665 test -n "$EXPECT" && break
10666 done
10667 test -n "$EXPECT" || EXPECT="expect"
10669 case " $configdirs " in
10670 *" expect "*)
10671 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10673 esac
10675 for ac_prog in runtest
10677 # Extract the first word of "$ac_prog", so it can be a program name with args.
10678 set dummy $ac_prog; ac_word=$2
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10680 $as_echo_n "checking for $ac_word... " >&6; }
10681 if ${ac_cv_prog_RUNTEST+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 if test -n "$RUNTEST"; then
10685 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10686 else
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_RUNTEST="$ac_prog"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10698 done
10699 done
10700 IFS=$as_save_IFS
10704 RUNTEST=$ac_cv_prog_RUNTEST
10705 if test -n "$RUNTEST"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10707 $as_echo "$RUNTEST" >&6; }
10708 else
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10714 test -n "$RUNTEST" && break
10715 done
10716 test -n "$RUNTEST" || RUNTEST="runtest"
10718 case " $configdirs " in
10719 *" dejagnu "*)
10720 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10722 esac
10725 # Host tools.
10726 ncn_tool_prefix=
10727 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10728 ncn_target_tool_prefix=
10729 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10733 if test -n "$AR"; then
10734 ac_cv_prog_AR=$AR
10735 elif test -n "$ac_cv_prog_AR"; then
10736 AR=$ac_cv_prog_AR
10739 if test -n "$ac_cv_prog_AR"; then
10740 for ncn_progname in ar; do
10741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10742 set dummy ${ncn_progname}; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_prog_AR+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 if test -n "$AR"; then
10749 ac_cv_prog_AR="$AR" # Let the user override the test.
10750 else
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_prog_AR="${ncn_progname}"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10762 done
10763 done
10764 IFS=$as_save_IFS
10768 AR=$ac_cv_prog_AR
10769 if test -n "$AR"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10771 $as_echo "$AR" >&6; }
10772 else
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10778 done
10781 for ncn_progname in ar; do
10782 if test -n "$ncn_tool_prefix"; then
10783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10784 set dummy ${ncn_tool_prefix}${ncn_progname}; 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_AR+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 if test -n "$AR"; then
10791 ac_cv_prog_AR="$AR" # 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_AR="${ncn_tool_prefix}${ncn_progname}"
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 AR=$ac_cv_prog_AR
10811 if test -n "$AR"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10813 $as_echo "$AR" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10821 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10823 set dummy ${ncn_progname}; ac_word=$2
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825 $as_echo_n "checking for $ac_word... " >&6; }
10826 if ${ac_cv_prog_AR+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 if test -n "$AR"; then
10830 ac_cv_prog_AR="$AR" # Let the user override the test.
10831 else
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_AR="${ncn_progname}"
10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10843 done
10844 done
10845 IFS=$as_save_IFS
10849 AR=$ac_cv_prog_AR
10850 if test -n "$AR"; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10852 $as_echo "$AR" >&6; }
10853 else
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10860 test -n "$ac_cv_prog_AR" && break
10861 done
10863 if test -z "$ac_cv_prog_AR" ; then
10864 set dummy ar
10865 if test $build = $host ; then
10866 AR="$2"
10867 else
10868 AR="${ncn_tool_prefix}$2"
10874 if test -n "$AS"; then
10875 ac_cv_prog_AS=$AS
10876 elif test -n "$ac_cv_prog_AS"; then
10877 AS=$ac_cv_prog_AS
10880 if test -n "$ac_cv_prog_AS"; then
10881 for ncn_progname in as; do
10882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10883 set dummy ${ncn_progname}; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_prog_AS+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 if test -n "$AS"; then
10890 ac_cv_prog_AS="$AS" # Let the user override the test.
10891 else
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in $PATH
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10899 ac_cv_prog_AS="${ncn_progname}"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 break 2
10903 done
10904 done
10905 IFS=$as_save_IFS
10909 AS=$ac_cv_prog_AS
10910 if test -n "$AS"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10912 $as_echo "$AS" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10919 done
10922 for ncn_progname in as; do
10923 if test -n "$ncn_tool_prefix"; then
10924 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10925 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 $as_echo_n "checking for $ac_word... " >&6; }
10928 if ${ac_cv_prog_AS+:} false; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 if test -n "$AS"; then
10932 ac_cv_prog_AS="$AS" # Let the user override the test.
10933 else
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10945 done
10946 done
10947 IFS=$as_save_IFS
10951 AS=$ac_cv_prog_AS
10952 if test -n "$AS"; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10954 $as_echo "$AS" >&6; }
10955 else
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10962 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10964 set dummy ${ncn_progname}; ac_word=$2
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966 $as_echo_n "checking for $ac_word... " >&6; }
10967 if ${ac_cv_prog_AS+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 if test -n "$AS"; then
10971 ac_cv_prog_AS="$AS" # Let the user override the test.
10972 else
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10980 ac_cv_prog_AS="${ncn_progname}"
10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10984 done
10985 done
10986 IFS=$as_save_IFS
10990 AS=$ac_cv_prog_AS
10991 if test -n "$AS"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10993 $as_echo "$AS" >&6; }
10994 else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
11001 test -n "$ac_cv_prog_AS" && break
11002 done
11004 if test -z "$ac_cv_prog_AS" ; then
11005 set dummy as
11006 if test $build = $host ; then
11007 AS="$2"
11008 else
11009 AS="${ncn_tool_prefix}$2"
11015 if test -n "$DLLTOOL"; then
11016 ac_cv_prog_DLLTOOL=$DLLTOOL
11017 elif test -n "$ac_cv_prog_DLLTOOL"; then
11018 DLLTOOL=$ac_cv_prog_DLLTOOL
11021 if test -n "$ac_cv_prog_DLLTOOL"; then
11022 for ncn_progname in dlltool; do
11023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11024 set dummy ${ncn_progname}; ac_word=$2
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026 $as_echo_n "checking for $ac_word... " >&6; }
11027 if ${ac_cv_prog_DLLTOOL+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 if test -n "$DLLTOOL"; then
11031 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11032 else
11033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034 for as_dir in $PATH
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11040 ac_cv_prog_DLLTOOL="${ncn_progname}"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11042 break 2
11044 done
11045 done
11046 IFS=$as_save_IFS
11050 DLLTOOL=$ac_cv_prog_DLLTOOL
11051 if test -n "$DLLTOOL"; then
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11053 $as_echo "$DLLTOOL" >&6; }
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11060 done
11063 for ncn_progname in dlltool; do
11064 if test -n "$ncn_tool_prefix"; then
11065 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11066 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if ${ac_cv_prog_DLLTOOL+:} false; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 if test -n "$DLLTOOL"; then
11073 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11086 done
11087 done
11088 IFS=$as_save_IFS
11092 DLLTOOL=$ac_cv_prog_DLLTOOL
11093 if test -n "$DLLTOOL"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11095 $as_echo "$DLLTOOL" >&6; }
11096 else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11103 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11105 set dummy ${ncn_progname}; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_prog_DLLTOOL+:} false; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111 if test -n "$DLLTOOL"; then
11112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11113 else
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11121 ac_cv_prog_DLLTOOL="${ncn_progname}"
11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 break 2
11125 done
11126 done
11127 IFS=$as_save_IFS
11131 DLLTOOL=$ac_cv_prog_DLLTOOL
11132 if test -n "$DLLTOOL"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11134 $as_echo "$DLLTOOL" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11142 test -n "$ac_cv_prog_DLLTOOL" && break
11143 done
11145 if test -z "$ac_cv_prog_DLLTOOL" ; then
11146 set dummy dlltool
11147 if test $build = $host ; then
11148 DLLTOOL="$2"
11149 else
11150 DLLTOOL="${ncn_tool_prefix}$2"
11156 if test -n "$DSYMUTIL"; then
11157 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11158 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11159 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11162 if test -n "$ac_cv_prog_DSYMUTIL"; then
11163 for ncn_progname in dsymutil; do
11164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 if test -n "$DSYMUTIL"; then
11172 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11173 else
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11181 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11185 done
11186 done
11187 IFS=$as_save_IFS
11191 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11192 if test -n "$DSYMUTIL"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11194 $as_echo "$DSYMUTIL" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11201 done
11204 for ncn_progname in dsymutil; do
11205 if test -n "$ncn_tool_prefix"; then
11206 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11207 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 if test -n "$DSYMUTIL"; then
11214 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11227 done
11228 done
11229 IFS=$as_save_IFS
11233 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11234 if test -n "$DSYMUTIL"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11236 $as_echo "$DSYMUTIL" >&6; }
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11244 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11246 set dummy ${ncn_progname}; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 if test -n "$DSYMUTIL"; then
11253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11266 done
11267 done
11268 IFS=$as_save_IFS
11272 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11273 if test -n "$DSYMUTIL"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11275 $as_echo "$DSYMUTIL" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11283 test -n "$ac_cv_prog_DSYMUTIL" && break
11284 done
11286 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11287 set dummy dsymutil
11288 if test $build = $host ; then
11289 DSYMUTIL="$2"
11290 else
11291 DSYMUTIL="${ncn_tool_prefix}$2"
11297 if test -n "$LD"; then
11298 ac_cv_prog_LD=$LD
11299 elif test -n "$ac_cv_prog_LD"; then
11300 LD=$ac_cv_prog_LD
11303 if test -n "$ac_cv_prog_LD"; then
11304 for ncn_progname in ld; do
11305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11306 set dummy ${ncn_progname}; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if ${ac_cv_prog_LD+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 if test -n "$LD"; then
11313 ac_cv_prog_LD="$LD" # Let the user override the test.
11314 else
11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in $PATH
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322 ac_cv_prog_LD="${ncn_progname}"
11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 break 2
11326 done
11327 done
11328 IFS=$as_save_IFS
11332 LD=$ac_cv_prog_LD
11333 if test -n "$LD"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11335 $as_echo "$LD" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11342 done
11345 for ncn_progname in ld; do
11346 if test -n "$ncn_tool_prefix"; then
11347 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11348 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350 $as_echo_n "checking for $ac_word... " >&6; }
11351 if ${ac_cv_prog_LD+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 if test -n "$LD"; then
11355 ac_cv_prog_LD="$LD" # Let the user override the test.
11356 else
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11360 IFS=$as_save_IFS
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11368 done
11369 done
11370 IFS=$as_save_IFS
11374 LD=$ac_cv_prog_LD
11375 if test -n "$LD"; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11377 $as_echo "$LD" >&6; }
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11385 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11387 set dummy ${ncn_progname}; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if ${ac_cv_prog_LD+:} false; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 if test -n "$LD"; then
11394 ac_cv_prog_LD="$LD" # Let the user override the test.
11395 else
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403 ac_cv_prog_LD="${ncn_progname}"
11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 break 2
11407 done
11408 done
11409 IFS=$as_save_IFS
11413 LD=$ac_cv_prog_LD
11414 if test -n "$LD"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11416 $as_echo "$LD" >&6; }
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11424 test -n "$ac_cv_prog_LD" && break
11425 done
11427 if test -z "$ac_cv_prog_LD" ; then
11428 set dummy ld
11429 if test $build = $host ; then
11430 LD="$2"
11431 else
11432 LD="${ncn_tool_prefix}$2"
11438 if test -n "$LIPO"; then
11439 ac_cv_prog_LIPO=$LIPO
11440 elif test -n "$ac_cv_prog_LIPO"; then
11441 LIPO=$ac_cv_prog_LIPO
11444 if test -n "$ac_cv_prog_LIPO"; then
11445 for ncn_progname in lipo; do
11446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11447 set dummy ${ncn_progname}; ac_word=$2
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11449 $as_echo_n "checking for $ac_word... " >&6; }
11450 if ${ac_cv_prog_LIPO+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 if test -n "$LIPO"; then
11454 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11455 else
11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457 for as_dir in $PATH
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
11461 for ac_exec_ext in '' $ac_executable_extensions; do
11462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11463 ac_cv_prog_LIPO="${ncn_progname}"
11464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11465 break 2
11467 done
11468 done
11469 IFS=$as_save_IFS
11473 LIPO=$ac_cv_prog_LIPO
11474 if test -n "$LIPO"; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11476 $as_echo "$LIPO" >&6; }
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479 $as_echo "no" >&6; }
11483 done
11486 for ncn_progname in lipo; do
11487 if test -n "$ncn_tool_prefix"; then
11488 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11489 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11491 $as_echo_n "checking for $ac_word... " >&6; }
11492 if ${ac_cv_prog_LIPO+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 if test -n "$LIPO"; then
11496 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11497 else
11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499 for as_dir in $PATH
11501 IFS=$as_save_IFS
11502 test -z "$as_dir" && as_dir=.
11503 for ac_exec_ext in '' $ac_executable_extensions; do
11504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11505 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 break 2
11509 done
11510 done
11511 IFS=$as_save_IFS
11515 LIPO=$ac_cv_prog_LIPO
11516 if test -n "$LIPO"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11518 $as_echo "$LIPO" >&6; }
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11526 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11528 set dummy ${ncn_progname}; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if ${ac_cv_prog_LIPO+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 if test -n "$LIPO"; then
11535 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11536 else
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538 for as_dir in $PATH
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
11542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11544 ac_cv_prog_LIPO="${ncn_progname}"
11545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 break 2
11548 done
11549 done
11550 IFS=$as_save_IFS
11554 LIPO=$ac_cv_prog_LIPO
11555 if test -n "$LIPO"; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11557 $as_echo "$LIPO" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11565 test -n "$ac_cv_prog_LIPO" && break
11566 done
11568 if test -z "$ac_cv_prog_LIPO" ; then
11569 set dummy lipo
11570 if test $build = $host ; then
11571 LIPO="$2"
11572 else
11573 LIPO="${ncn_tool_prefix}$2"
11579 if test -n "$NM"; then
11580 ac_cv_prog_NM=$NM
11581 elif test -n "$ac_cv_prog_NM"; then
11582 NM=$ac_cv_prog_NM
11585 if test -n "$ac_cv_prog_NM"; then
11586 for ncn_progname in nm; do
11587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11588 set dummy ${ncn_progname}; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_prog_NM+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 if test -n "$NM"; then
11595 ac_cv_prog_NM="$NM" # Let the user override the test.
11596 else
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_prog_NM="${ncn_progname}"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11614 NM=$ac_cv_prog_NM
11615 if test -n "$NM"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11617 $as_echo "$NM" >&6; }
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11624 done
11627 for ncn_progname in nm; do
11628 if test -n "$ncn_tool_prefix"; then
11629 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11630 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if ${ac_cv_prog_NM+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 if test -n "$NM"; then
11637 ac_cv_prog_NM="$NM" # Let the user override the test.
11638 else
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11650 done
11651 done
11652 IFS=$as_save_IFS
11656 NM=$ac_cv_prog_NM
11657 if test -n "$NM"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11659 $as_echo "$NM" >&6; }
11660 else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11667 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11669 set dummy ${ncn_progname}; ac_word=$2
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671 $as_echo_n "checking for $ac_word... " >&6; }
11672 if ${ac_cv_prog_NM+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 if test -n "$NM"; then
11676 ac_cv_prog_NM="$NM" # Let the user override the test.
11677 else
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685 ac_cv_prog_NM="${ncn_progname}"
11686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11689 done
11690 done
11691 IFS=$as_save_IFS
11695 NM=$ac_cv_prog_NM
11696 if test -n "$NM"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11698 $as_echo "$NM" >&6; }
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11706 test -n "$ac_cv_prog_NM" && break
11707 done
11709 if test -z "$ac_cv_prog_NM" ; then
11710 set dummy nm
11711 if test $build = $host ; then
11712 NM="$2"
11713 else
11714 NM="${ncn_tool_prefix}$2"
11720 if test -n "$RANLIB"; then
11721 ac_cv_prog_RANLIB=$RANLIB
11722 elif test -n "$ac_cv_prog_RANLIB"; then
11723 RANLIB=$ac_cv_prog_RANLIB
11726 if test -n "$ac_cv_prog_RANLIB"; then
11727 for ncn_progname in ranlib; do
11728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11729 set dummy ${ncn_progname}; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if ${ac_cv_prog_RANLIB+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 if test -n "$RANLIB"; then
11736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11737 else
11738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
11744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11745 ac_cv_prog_RANLIB="${ncn_progname}"
11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 break 2
11749 done
11750 done
11751 IFS=$as_save_IFS
11755 RANLIB=$ac_cv_prog_RANLIB
11756 if test -n "$RANLIB"; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11758 $as_echo "$RANLIB" >&6; }
11759 else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11765 done
11768 for ncn_progname in ranlib; do
11769 if test -n "$ncn_tool_prefix"; then
11770 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11771 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_prog_RANLIB+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 if test -n "$RANLIB"; then
11778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11779 else
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 for as_dir in $PATH
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
11785 for ac_exec_ext in '' $ac_executable_extensions; do
11786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11787 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 break 2
11791 done
11792 done
11793 IFS=$as_save_IFS
11797 RANLIB=$ac_cv_prog_RANLIB
11798 if test -n "$RANLIB"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11800 $as_echo "$RANLIB" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11808 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11810 set dummy ${ncn_progname}; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_prog_RANLIB+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 if test -n "$RANLIB"; then
11817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_prog_RANLIB="${ncn_progname}"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11830 done
11831 done
11832 IFS=$as_save_IFS
11836 RANLIB=$ac_cv_prog_RANLIB
11837 if test -n "$RANLIB"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11839 $as_echo "$RANLIB" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11847 test -n "$ac_cv_prog_RANLIB" && break
11848 done
11850 if test -z "$ac_cv_prog_RANLIB" ; then
11851 RANLIB="true"
11856 if test -n "$STRIP"; then
11857 ac_cv_prog_STRIP=$STRIP
11858 elif test -n "$ac_cv_prog_STRIP"; then
11859 STRIP=$ac_cv_prog_STRIP
11862 if test -n "$ac_cv_prog_STRIP"; then
11863 for ncn_progname in strip; do
11864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11865 set dummy ${ncn_progname}; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_prog_STRIP+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 if test -n "$STRIP"; then
11872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881 ac_cv_prog_STRIP="${ncn_progname}"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11885 done
11886 done
11887 IFS=$as_save_IFS
11891 STRIP=$ac_cv_prog_STRIP
11892 if test -n "$STRIP"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11894 $as_echo "$STRIP" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11901 done
11904 for ncn_progname in strip; do
11905 if test -n "$ncn_tool_prefix"; then
11906 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11907 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if ${ac_cv_prog_STRIP+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 if test -n "$STRIP"; then
11914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11915 else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11923 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11927 done
11928 done
11929 IFS=$as_save_IFS
11933 STRIP=$ac_cv_prog_STRIP
11934 if test -n "$STRIP"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11936 $as_echo "$STRIP" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11944 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11946 set dummy ${ncn_progname}; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if ${ac_cv_prog_STRIP+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test -n "$STRIP"; then
11953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11954 else
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11962 ac_cv_prog_STRIP="${ncn_progname}"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11966 done
11967 done
11968 IFS=$as_save_IFS
11972 STRIP=$ac_cv_prog_STRIP
11973 if test -n "$STRIP"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11975 $as_echo "$STRIP" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11983 test -n "$ac_cv_prog_STRIP" && break
11984 done
11986 if test -z "$ac_cv_prog_STRIP" ; then
11987 STRIP="true"
11992 if test -n "$WINDRES"; then
11993 ac_cv_prog_WINDRES=$WINDRES
11994 elif test -n "$ac_cv_prog_WINDRES"; then
11995 WINDRES=$ac_cv_prog_WINDRES
11998 if test -n "$ac_cv_prog_WINDRES"; then
11999 for ncn_progname in windres; do
12000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12001 set dummy ${ncn_progname}; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if ${ac_cv_prog_WINDRES+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 if test -n "$WINDRES"; then
12008 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12009 else
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_prog_WINDRES="${ncn_progname}"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12021 done
12022 done
12023 IFS=$as_save_IFS
12027 WINDRES=$ac_cv_prog_WINDRES
12028 if test -n "$WINDRES"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12030 $as_echo "$WINDRES" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12037 done
12040 for ncn_progname in windres; do
12041 if test -n "$ncn_tool_prefix"; then
12042 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12043 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if ${ac_cv_prog_WINDRES+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 if test -n "$WINDRES"; then
12050 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12051 else
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12059 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 break 2
12063 done
12064 done
12065 IFS=$as_save_IFS
12069 WINDRES=$ac_cv_prog_WINDRES
12070 if test -n "$WINDRES"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12072 $as_echo "$WINDRES" >&6; }
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12080 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12082 set dummy ${ncn_progname}; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_prog_WINDRES+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 if test -n "$WINDRES"; then
12089 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_prog_WINDRES="${ncn_progname}"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12102 done
12103 done
12104 IFS=$as_save_IFS
12108 WINDRES=$ac_cv_prog_WINDRES
12109 if test -n "$WINDRES"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12111 $as_echo "$WINDRES" >&6; }
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12119 test -n "$ac_cv_prog_WINDRES" && break
12120 done
12122 if test -z "$ac_cv_prog_WINDRES" ; then
12123 set dummy windres
12124 if test $build = $host ; then
12125 WINDRES="$2"
12126 else
12127 WINDRES="${ncn_tool_prefix}$2"
12133 if test -n "$WINDMC"; then
12134 ac_cv_prog_WINDMC=$WINDMC
12135 elif test -n "$ac_cv_prog_WINDMC"; then
12136 WINDMC=$ac_cv_prog_WINDMC
12139 if test -n "$ac_cv_prog_WINDMC"; then
12140 for ncn_progname in windmc; do
12141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12142 set dummy ${ncn_progname}; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if ${ac_cv_prog_WINDMC+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$WINDMC"; then
12149 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12158 ac_cv_prog_WINDMC="${ncn_progname}"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12162 done
12163 done
12164 IFS=$as_save_IFS
12168 WINDMC=$ac_cv_prog_WINDMC
12169 if test -n "$WINDMC"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12171 $as_echo "$WINDMC" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12178 done
12181 for ncn_progname in windmc; do
12182 if test -n "$ncn_tool_prefix"; then
12183 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12184 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_WINDMC+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test -n "$WINDMC"; then
12191 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12204 done
12205 done
12206 IFS=$as_save_IFS
12210 WINDMC=$ac_cv_prog_WINDMC
12211 if test -n "$WINDMC"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12213 $as_echo "$WINDMC" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12221 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12223 set dummy ${ncn_progname}; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if ${ac_cv_prog_WINDMC+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test -n "$WINDMC"; then
12230 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239 ac_cv_prog_WINDMC="${ncn_progname}"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12243 done
12244 done
12245 IFS=$as_save_IFS
12249 WINDMC=$ac_cv_prog_WINDMC
12250 if test -n "$WINDMC"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12252 $as_echo "$WINDMC" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12260 test -n "$ac_cv_prog_WINDMC" && break
12261 done
12263 if test -z "$ac_cv_prog_WINDMC" ; then
12264 set dummy windmc
12265 if test $build = $host ; then
12266 WINDMC="$2"
12267 else
12268 WINDMC="${ncn_tool_prefix}$2"
12274 if test -n "$OBJCOPY"; then
12275 ac_cv_prog_OBJCOPY=$OBJCOPY
12276 elif test -n "$ac_cv_prog_OBJCOPY"; then
12277 OBJCOPY=$ac_cv_prog_OBJCOPY
12280 if test -n "$ac_cv_prog_OBJCOPY"; then
12281 for ncn_progname in objcopy; do
12282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12283 set dummy ${ncn_progname}; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if ${ac_cv_prog_OBJCOPY+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if test -n "$OBJCOPY"; then
12290 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12291 else
12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12299 ac_cv_prog_OBJCOPY="${ncn_progname}"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12303 done
12304 done
12305 IFS=$as_save_IFS
12309 OBJCOPY=$ac_cv_prog_OBJCOPY
12310 if test -n "$OBJCOPY"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12312 $as_echo "$OBJCOPY" >&6; }
12313 else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12319 done
12322 for ncn_progname in objcopy; do
12323 if test -n "$ncn_tool_prefix"; then
12324 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12325 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if ${ac_cv_prog_OBJCOPY+:} false; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test -n "$OBJCOPY"; then
12332 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12345 done
12346 done
12347 IFS=$as_save_IFS
12351 OBJCOPY=$ac_cv_prog_OBJCOPY
12352 if test -n "$OBJCOPY"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12354 $as_echo "$OBJCOPY" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12362 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12364 set dummy ${ncn_progname}; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_prog_OBJCOPY+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -n "$OBJCOPY"; then
12371 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12372 else
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12380 ac_cv_prog_OBJCOPY="${ncn_progname}"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12384 done
12385 done
12386 IFS=$as_save_IFS
12390 OBJCOPY=$ac_cv_prog_OBJCOPY
12391 if test -n "$OBJCOPY"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12393 $as_echo "$OBJCOPY" >&6; }
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12401 test -n "$ac_cv_prog_OBJCOPY" && break
12402 done
12404 if test -z "$ac_cv_prog_OBJCOPY" ; then
12405 set dummy objcopy
12406 if test $build = $host ; then
12407 OBJCOPY="$2"
12408 else
12409 OBJCOPY="${ncn_tool_prefix}$2"
12415 if test -n "$OBJDUMP"; then
12416 ac_cv_prog_OBJDUMP=$OBJDUMP
12417 elif test -n "$ac_cv_prog_OBJDUMP"; then
12418 OBJDUMP=$ac_cv_prog_OBJDUMP
12421 if test -n "$ac_cv_prog_OBJDUMP"; then
12422 for ncn_progname in objdump; do
12423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12424 set dummy ${ncn_progname}; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_OBJDUMP+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 if test -n "$OBJDUMP"; then
12431 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_OBJDUMP="${ncn_progname}"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12444 done
12445 done
12446 IFS=$as_save_IFS
12450 OBJDUMP=$ac_cv_prog_OBJDUMP
12451 if test -n "$OBJDUMP"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12453 $as_echo "$OBJDUMP" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12460 done
12463 for ncn_progname in objdump; do
12464 if test -n "$ncn_tool_prefix"; then
12465 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12466 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if ${ac_cv_prog_OBJDUMP+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$OBJDUMP"; then
12473 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12474 else
12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476 for as_dir in $PATH
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12482 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12486 done
12487 done
12488 IFS=$as_save_IFS
12492 OBJDUMP=$ac_cv_prog_OBJDUMP
12493 if test -n "$OBJDUMP"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12495 $as_echo "$OBJDUMP" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12503 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12505 set dummy ${ncn_progname}; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if ${ac_cv_prog_OBJDUMP+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test -n "$OBJDUMP"; then
12512 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12513 else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_prog_OBJDUMP="${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12525 done
12526 done
12527 IFS=$as_save_IFS
12531 OBJDUMP=$ac_cv_prog_OBJDUMP
12532 if test -n "$OBJDUMP"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12534 $as_echo "$OBJDUMP" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12542 test -n "$ac_cv_prog_OBJDUMP" && break
12543 done
12545 if test -z "$ac_cv_prog_OBJDUMP" ; then
12546 set dummy objdump
12547 if test $build = $host ; then
12548 OBJDUMP="$2"
12549 else
12550 OBJDUMP="${ncn_tool_prefix}$2"
12556 if test -n "$OTOOL"; then
12557 ac_cv_prog_OTOOL=$OTOOL
12558 elif test -n "$ac_cv_prog_OTOOL"; then
12559 OTOOL=$ac_cv_prog_OTOOL
12562 if test -n "$ac_cv_prog_OTOOL"; then
12563 for ncn_progname in otool; do
12564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12565 set dummy ${ncn_progname}; ac_word=$2
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567 $as_echo_n "checking for $ac_word... " >&6; }
12568 if ${ac_cv_prog_OTOOL+:} false; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 if test -n "$OTOOL"; then
12572 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12573 else
12574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575 for as_dir in $PATH
12577 IFS=$as_save_IFS
12578 test -z "$as_dir" && as_dir=.
12579 for ac_exec_ext in '' $ac_executable_extensions; do
12580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12581 ac_cv_prog_OTOOL="${ncn_progname}"
12582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12583 break 2
12585 done
12586 done
12587 IFS=$as_save_IFS
12591 OTOOL=$ac_cv_prog_OTOOL
12592 if test -n "$OTOOL"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12594 $as_echo "$OTOOL" >&6; }
12595 else
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12601 done
12604 for ncn_progname in otool; do
12605 if test -n "$ncn_tool_prefix"; then
12606 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12607 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609 $as_echo_n "checking for $ac_word... " >&6; }
12610 if ${ac_cv_prog_OTOOL+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 if test -n "$OTOOL"; then
12614 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12615 else
12616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617 for as_dir in $PATH
12619 IFS=$as_save_IFS
12620 test -z "$as_dir" && as_dir=.
12621 for ac_exec_ext in '' $ac_executable_extensions; do
12622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12623 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12625 break 2
12627 done
12628 done
12629 IFS=$as_save_IFS
12633 OTOOL=$ac_cv_prog_OTOOL
12634 if test -n "$OTOOL"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12636 $as_echo "$OTOOL" >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12644 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12646 set dummy ${ncn_progname}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_OTOOL+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test -n "$OTOOL"; then
12653 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12654 else
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_prog_OTOOL="${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12672 OTOOL=$ac_cv_prog_OTOOL
12673 if test -n "$OTOOL"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12675 $as_echo "$OTOOL" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12683 test -n "$ac_cv_prog_OTOOL" && break
12684 done
12686 if test -z "$ac_cv_prog_OTOOL" ; then
12687 set dummy otool
12688 if test $build = $host ; then
12689 OTOOL="$2"
12690 else
12691 OTOOL="${ncn_tool_prefix}$2"
12697 if test -n "$READELF"; then
12698 ac_cv_prog_READELF=$READELF
12699 elif test -n "$ac_cv_prog_READELF"; then
12700 READELF=$ac_cv_prog_READELF
12703 if test -n "$ac_cv_prog_READELF"; then
12704 for ncn_progname in readelf; do
12705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12706 set dummy ${ncn_progname}; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708 $as_echo_n "checking for $ac_word... " >&6; }
12709 if ${ac_cv_prog_READELF+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 if test -n "$READELF"; then
12713 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12714 else
12715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716 for as_dir in $PATH
12718 IFS=$as_save_IFS
12719 test -z "$as_dir" && as_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
12721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12722 ac_cv_prog_READELF="${ncn_progname}"
12723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 break 2
12726 done
12727 done
12728 IFS=$as_save_IFS
12732 READELF=$ac_cv_prog_READELF
12733 if test -n "$READELF"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12735 $as_echo "$READELF" >&6; }
12736 else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12742 done
12745 for ncn_progname in readelf; do
12746 if test -n "$ncn_tool_prefix"; then
12747 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12748 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if ${ac_cv_prog_READELF+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 if test -n "$READELF"; then
12755 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12756 else
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12764 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 break 2
12768 done
12769 done
12770 IFS=$as_save_IFS
12774 READELF=$ac_cv_prog_READELF
12775 if test -n "$READELF"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12777 $as_echo "$READELF" >&6; }
12778 else
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12785 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12787 set dummy ${ncn_progname}; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 $as_echo_n "checking for $ac_word... " >&6; }
12790 if ${ac_cv_prog_READELF+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 if test -n "$READELF"; then
12794 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12795 else
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12799 IFS=$as_save_IFS
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803 ac_cv_prog_READELF="${ncn_progname}"
12804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12805 break 2
12807 done
12808 done
12809 IFS=$as_save_IFS
12813 READELF=$ac_cv_prog_READELF
12814 if test -n "$READELF"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12816 $as_echo "$READELF" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12824 test -n "$ac_cv_prog_READELF" && break
12825 done
12827 if test -z "$ac_cv_prog_READELF" ; then
12828 set dummy readelf
12829 if test $build = $host ; then
12830 READELF="$2"
12831 else
12832 READELF="${ncn_tool_prefix}$2"
12843 # Target tools.
12845 # Check whether --with-build-time-tools was given.
12846 if test "${with_build_time_tools+set}" = set; then :
12847 withval=$with_build_time_tools; case x"$withval" in
12848 x/*) ;;
12850 with_build_time_tools=
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12852 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12854 esac
12855 else
12856 with_build_time_tools=
12862 if test -n "$CC_FOR_TARGET"; then
12863 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12864 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12865 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12868 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12869 for ncn_progname in cc gcc; do
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 if test -n "$CC_FOR_TARGET"; then
12878 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12897 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12898 if test -n "$CC_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12900 $as_echo "$CC_FOR_TARGET" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12907 done
12910 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12911 for ncn_progname in cc gcc; do
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12913 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12914 if test -x $with_build_time_tools/${ncn_progname}; then
12915 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 $as_echo "yes" >&6; }
12918 break
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12923 done
12926 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12927 for ncn_progname in cc gcc; do
12928 if test -n "$ncn_target_tool_prefix"; then
12929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12930 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 if test -n "$CC_FOR_TARGET"; then
12937 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12938 else
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12942 IFS=$as_save_IFS
12943 test -z "$as_dir" && as_dir=.
12944 for ac_exec_ext in '' $ac_executable_extensions; do
12945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12946 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12948 break 2
12950 done
12951 done
12952 IFS=$as_save_IFS
12956 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12957 if test -n "$CC_FOR_TARGET"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12959 $as_echo "$CC_FOR_TARGET" >&6; }
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12967 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
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_CC_FOR_TARGET+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 if test -n "$CC_FOR_TARGET"; then
12976 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12996 if test -n "$CC_FOR_TARGET"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12998 $as_echo "$CC_FOR_TARGET" >&6; }
12999 else
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13006 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13007 done
13010 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13011 set dummy cc gcc
13012 if test $build = $target ; then
13013 CC_FOR_TARGET="$2"
13014 else
13015 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13017 else
13018 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13023 if test -n "$CXX_FOR_TARGET"; then
13024 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13025 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13026 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13029 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13030 for ncn_progname in c++ g++ cxx gxx; do
13031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13032 set dummy ${ncn_progname}; ac_word=$2
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034 $as_echo_n "checking for $ac_word... " >&6; }
13035 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 if test -n "$CXX_FOR_TARGET"; then
13039 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13040 else
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 break 2
13052 done
13053 done
13054 IFS=$as_save_IFS
13058 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13059 if test -n "$CXX_FOR_TARGET"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13061 $as_echo "$CXX_FOR_TARGET" >&6; }
13062 else
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13068 done
13071 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13072 for ncn_progname in c++ g++ cxx gxx; do
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13074 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13075 if test -x $with_build_time_tools/${ncn_progname}; then
13076 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; }
13079 break
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13084 done
13087 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13088 for ncn_progname in c++ g++ cxx gxx; do
13089 if test -n "$ncn_target_tool_prefix"; then
13090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13091 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093 $as_echo_n "checking for $ac_word... " >&6; }
13094 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13095 $as_echo_n "(cached) " >&6
13096 else
13097 if test -n "$CXX_FOR_TARGET"; then
13098 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13099 else
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13111 done
13112 done
13113 IFS=$as_save_IFS
13117 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13118 if test -n "$CXX_FOR_TARGET"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13120 $as_echo "$CXX_FOR_TARGET" >&6; }
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13128 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13130 set dummy ${ncn_progname}; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if test -n "$CXX_FOR_TARGET"; then
13137 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13150 done
13151 done
13152 IFS=$as_save_IFS
13156 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13157 if test -n "$CXX_FOR_TARGET"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13159 $as_echo "$CXX_FOR_TARGET" >&6; }
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13167 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13168 done
13171 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13172 set dummy c++ g++ cxx gxx
13173 if test $build = $target ; then
13174 CXX_FOR_TARGET="$2"
13175 else
13176 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13178 else
13179 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13184 if test -n "$GCC_FOR_TARGET"; then
13185 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13186 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13187 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13190 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13191 for ncn_progname in gcc; do
13192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13193 set dummy ${ncn_progname}; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 if test -n "$GCC_FOR_TARGET"; then
13200 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 break 2
13213 done
13214 done
13215 IFS=$as_save_IFS
13219 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13220 if test -n "$GCC_FOR_TARGET"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13222 $as_echo "$GCC_FOR_TARGET" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13229 done
13232 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13233 for ncn_progname in gcc; do
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13235 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13236 if test -x $with_build_time_tools/${ncn_progname}; then
13237 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13239 $as_echo "yes" >&6; }
13240 break
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13245 done
13248 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13249 for ncn_progname in gcc; do
13250 if test -n "$ncn_target_tool_prefix"; then
13251 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13252 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13254 $as_echo_n "checking for $ac_word... " >&6; }
13255 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13258 if test -n "$GCC_FOR_TARGET"; then
13259 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13260 else
13261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262 for as_dir in $PATH
13264 IFS=$as_save_IFS
13265 test -z "$as_dir" && as_dir=.
13266 for ac_exec_ext in '' $ac_executable_extensions; do
13267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13268 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13270 break 2
13272 done
13273 done
13274 IFS=$as_save_IFS
13278 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13279 if test -n "$GCC_FOR_TARGET"; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13281 $as_echo "$GCC_FOR_TARGET" >&6; }
13282 else
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13289 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13291 set dummy ${ncn_progname}; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 if test -n "$GCC_FOR_TARGET"; then
13298 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13299 else
13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
13305 for ac_exec_ext in '' $ac_executable_extensions; do
13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13307 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 break 2
13311 done
13312 done
13313 IFS=$as_save_IFS
13317 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13318 if test -n "$GCC_FOR_TARGET"; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13320 $as_echo "$GCC_FOR_TARGET" >&6; }
13321 else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13328 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13329 done
13332 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13333 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13334 else
13335 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13340 if test -n "$GFORTRAN_FOR_TARGET"; then
13341 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13342 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13343 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13346 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13347 for ncn_progname in gfortran; do
13348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13349 set dummy ${ncn_progname}; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$GFORTRAN_FOR_TARGET"; then
13356 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13369 done
13370 done
13371 IFS=$as_save_IFS
13375 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13376 if test -n "$GFORTRAN_FOR_TARGET"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13378 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13385 done
13388 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13389 for ncn_progname in gfortran; do
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13391 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13392 if test -x $with_build_time_tools/${ncn_progname}; then
13393 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13395 $as_echo "yes" >&6; }
13396 break
13397 else
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13401 done
13404 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13405 for ncn_progname in gfortran; do
13406 if test -n "$ncn_target_tool_prefix"; then
13407 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13408 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 if test -n "$GFORTRAN_FOR_TARGET"; then
13415 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13416 else
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13428 done
13429 done
13430 IFS=$as_save_IFS
13434 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13435 if test -n "$GFORTRAN_FOR_TARGET"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13437 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13438 else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13445 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13447 set dummy ${ncn_progname}; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test -n "$GFORTRAN_FOR_TARGET"; then
13454 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13455 else
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13463 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13467 done
13468 done
13469 IFS=$as_save_IFS
13473 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13474 if test -n "$GFORTRAN_FOR_TARGET"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13476 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13477 else
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13484 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13485 done
13488 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13489 set dummy gfortran
13490 if test $build = $target ; then
13491 GFORTRAN_FOR_TARGET="$2"
13492 else
13493 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13495 else
13496 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13501 if test -n "$GOC_FOR_TARGET"; then
13502 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13503 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13504 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13507 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13508 for ncn_progname in gccgo; do
13509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13510 set dummy ${ncn_progname}; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 if test -n "$GOC_FOR_TARGET"; then
13517 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13518 else
13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13522 IFS=$as_save_IFS
13523 test -z "$as_dir" && as_dir=.
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13526 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 break 2
13530 done
13531 done
13532 IFS=$as_save_IFS
13536 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13537 if test -n "$GOC_FOR_TARGET"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13539 $as_echo "$GOC_FOR_TARGET" >&6; }
13540 else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13546 done
13549 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13550 for ncn_progname in gccgo; do
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13552 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13553 if test -x $with_build_time_tools/${ncn_progname}; then
13554 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13556 $as_echo "yes" >&6; }
13557 break
13558 else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 $as_echo "no" >&6; }
13562 done
13565 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13566 for ncn_progname in gccgo; do
13567 if test -n "$ncn_target_tool_prefix"; then
13568 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13569 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571 $as_echo_n "checking for $ac_word... " >&6; }
13572 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 if test -n "$GOC_FOR_TARGET"; then
13576 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13577 else
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13589 done
13590 done
13591 IFS=$as_save_IFS
13595 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13596 if test -n "$GOC_FOR_TARGET"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13598 $as_echo "$GOC_FOR_TARGET" >&6; }
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13606 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13608 set dummy ${ncn_progname}; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 $as_echo_n "checking for $ac_word... " >&6; }
13611 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 if test -n "$GOC_FOR_TARGET"; then
13615 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13616 else
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13624 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13628 done
13629 done
13630 IFS=$as_save_IFS
13634 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13635 if test -n "$GOC_FOR_TARGET"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13637 $as_echo "$GOC_FOR_TARGET" >&6; }
13638 else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13645 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13646 done
13649 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13650 set dummy gccgo
13651 if test $build = $target ; then
13652 GOC_FOR_TARGET="$2"
13653 else
13654 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13656 else
13657 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13662 if test -n "$GDC_FOR_TARGET"; then
13663 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13664 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13665 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13668 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13669 for ncn_progname in gdc; do
13670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13671 set dummy ${ncn_progname}; ac_word=$2
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673 $as_echo_n "checking for $ac_word... " >&6; }
13674 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 if test -n "$GDC_FOR_TARGET"; then
13678 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13679 else
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 break 2
13691 done
13692 done
13693 IFS=$as_save_IFS
13697 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13698 if test -n "$GDC_FOR_TARGET"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13700 $as_echo "$GDC_FOR_TARGET" >&6; }
13701 else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13707 done
13710 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13711 for ncn_progname in gdc; do
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13713 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13714 if test -x $with_build_time_tools/${ncn_progname}; then
13715 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13717 $as_echo "yes" >&6; }
13718 break
13719 else
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721 $as_echo "no" >&6; }
13723 done
13726 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13727 for ncn_progname in gdc; do
13728 if test -n "$ncn_target_tool_prefix"; then
13729 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13730 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 if test -n "$GDC_FOR_TARGET"; then
13737 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13738 else
13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 for as_dir in $PATH
13742 IFS=$as_save_IFS
13743 test -z "$as_dir" && as_dir=.
13744 for ac_exec_ext in '' $ac_executable_extensions; do
13745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13746 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748 break 2
13750 done
13751 done
13752 IFS=$as_save_IFS
13756 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13757 if test -n "$GDC_FOR_TARGET"; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13759 $as_echo "$GDC_FOR_TARGET" >&6; }
13760 else
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 $as_echo "no" >&6; }
13767 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13769 set dummy ${ncn_progname}; ac_word=$2
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771 $as_echo_n "checking for $ac_word... " >&6; }
13772 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 if test -n "$GDC_FOR_TARGET"; then
13776 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13777 else
13778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in $PATH
13781 IFS=$as_save_IFS
13782 test -z "$as_dir" && as_dir=.
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13785 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 break 2
13789 done
13790 done
13791 IFS=$as_save_IFS
13795 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13796 if test -n "$GDC_FOR_TARGET"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13798 $as_echo "$GDC_FOR_TARGET" >&6; }
13799 else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801 $as_echo "no" >&6; }
13806 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13807 done
13810 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13811 set dummy gdc
13812 if test $build = $target ; then
13813 GDC_FOR_TARGET="$2"
13814 else
13815 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13817 else
13818 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13823 cat > conftest.c << \EOF
13824 #ifdef __GNUC__
13825 gcc_yay;
13826 #endif
13828 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13829 have_gcc_for_target=yes
13830 else
13831 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13832 have_gcc_for_target=no
13834 rm conftest.c
13839 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13840 if test -n "$with_build_time_tools"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13842 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13843 if test -x $with_build_time_tools/ar; then
13844 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13845 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13847 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13848 else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13852 elif test $build != $host && test $have_gcc_for_target = yes; then
13853 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13854 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13855 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13858 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13859 # Extract the first word of "ar", so it can be a program name with args.
13860 set dummy ar; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 case $AR_FOR_TARGET in
13867 [\\/]* | ?:[\\/]*)
13868 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $gcc_cv_tool_dirs
13874 IFS=$as_save_IFS
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13878 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13880 break 2
13882 done
13883 done
13884 IFS=$as_save_IFS
13887 esac
13889 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13890 if test -n "$AR_FOR_TARGET"; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13892 $as_echo "$AR_FOR_TARGET" >&6; }
13893 else
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13900 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13903 if test -n "$AR_FOR_TARGET"; then
13904 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13905 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13906 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13909 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13910 for ncn_progname in ar; do
13911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13912 set dummy ${ncn_progname}; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 if test -n "$AR_FOR_TARGET"; then
13919 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13920 else
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13932 done
13933 done
13934 IFS=$as_save_IFS
13938 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13939 if test -n "$AR_FOR_TARGET"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13941 $as_echo "$AR_FOR_TARGET" >&6; }
13942 else
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13948 done
13951 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13952 for ncn_progname in ar; do
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13954 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13955 if test -x $with_build_time_tools/${ncn_progname}; then
13956 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13958 $as_echo "yes" >&6; }
13959 break
13960 else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962 $as_echo "no" >&6; }
13964 done
13967 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13968 for ncn_progname in ar; do
13969 if test -n "$ncn_target_tool_prefix"; then
13970 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13971 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13973 $as_echo_n "checking for $ac_word... " >&6; }
13974 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 if test -n "$AR_FOR_TARGET"; then
13978 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13979 else
13980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981 for as_dir in $PATH
13983 IFS=$as_save_IFS
13984 test -z "$as_dir" && as_dir=.
13985 for ac_exec_ext in '' $ac_executable_extensions; do
13986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13987 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13989 break 2
13991 done
13992 done
13993 IFS=$as_save_IFS
13997 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13998 if test -n "$AR_FOR_TARGET"; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14000 $as_echo "$AR_FOR_TARGET" >&6; }
14001 else
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003 $as_echo "no" >&6; }
14008 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14010 set dummy ${ncn_progname}; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012 $as_echo_n "checking for $ac_word... " >&6; }
14013 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 if test -n "$AR_FOR_TARGET"; then
14017 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14018 else
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14026 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14030 done
14031 done
14032 IFS=$as_save_IFS
14036 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14037 if test -n "$AR_FOR_TARGET"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14039 $as_echo "$AR_FOR_TARGET" >&6; }
14040 else
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14047 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14048 done
14051 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14052 set dummy ar
14053 if test $build = $target ; then
14054 AR_FOR_TARGET="$2"
14055 else
14056 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14058 else
14059 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14062 else
14063 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14069 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14070 if test -n "$with_build_time_tools"; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14072 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14073 if test -x $with_build_time_tools/as; then
14074 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14075 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14077 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14082 elif test $build != $host && test $have_gcc_for_target = yes; then
14083 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14084 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14085 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14088 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14089 # Extract the first word of "as", so it can be a program name with args.
14090 set dummy as; ac_word=$2
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14092 $as_echo_n "checking for $ac_word... " >&6; }
14093 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 case $AS_FOR_TARGET in
14097 [\\/]* | ?:[\\/]*)
14098 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $gcc_cv_tool_dirs
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14108 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14112 done
14113 done
14114 IFS=$as_save_IFS
14117 esac
14119 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14120 if test -n "$AS_FOR_TARGET"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14122 $as_echo "$AS_FOR_TARGET" >&6; }
14123 else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14130 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14133 if test -n "$AS_FOR_TARGET"; then
14134 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14135 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14136 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14139 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14140 for ncn_progname in as; do
14141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14142 set dummy ${ncn_progname}; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144 $as_echo_n "checking for $ac_word... " >&6; }
14145 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 if test -n "$AS_FOR_TARGET"; then
14149 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14150 else
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14158 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14162 done
14163 done
14164 IFS=$as_save_IFS
14168 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14169 if test -n "$AS_FOR_TARGET"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14171 $as_echo "$AS_FOR_TARGET" >&6; }
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14178 done
14181 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14182 for ncn_progname in as; do
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14184 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14185 if test -x $with_build_time_tools/${ncn_progname}; then
14186 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14188 $as_echo "yes" >&6; }
14189 break
14190 else
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14192 $as_echo "no" >&6; }
14194 done
14197 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14198 for ncn_progname in as; do
14199 if test -n "$ncn_target_tool_prefix"; then
14200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203 $as_echo_n "checking for $ac_word... " >&6; }
14204 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 if test -n "$AS_FOR_TARGET"; then
14208 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14209 else
14210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211 for as_dir in $PATH
14213 IFS=$as_save_IFS
14214 test -z "$as_dir" && as_dir=.
14215 for ac_exec_ext in '' $ac_executable_extensions; do
14216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14217 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14219 break 2
14221 done
14222 done
14223 IFS=$as_save_IFS
14227 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14228 if test -n "$AS_FOR_TARGET"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14230 $as_echo "$AS_FOR_TARGET" >&6; }
14231 else
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14238 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14240 set dummy ${ncn_progname}; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$AS_FOR_TARGET"; then
14247 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14260 done
14261 done
14262 IFS=$as_save_IFS
14266 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14267 if test -n "$AS_FOR_TARGET"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14269 $as_echo "$AS_FOR_TARGET" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14277 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14278 done
14281 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14282 set dummy as
14283 if test $build = $target ; then
14284 AS_FOR_TARGET="$2"
14285 else
14286 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14288 else
14289 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14292 else
14293 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14299 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14300 if test -n "$with_build_time_tools"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14302 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14303 if test -x $with_build_time_tools/dlltool; then
14304 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14305 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14307 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14308 else
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14312 elif test $build != $host && test $have_gcc_for_target = yes; then
14313 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14314 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14315 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14318 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14319 # Extract the first word of "dlltool", so it can be a program name with args.
14320 set dummy dlltool; ac_word=$2
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14322 $as_echo_n "checking for $ac_word... " >&6; }
14323 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14324 $as_echo_n "(cached) " >&6
14325 else
14326 case $DLLTOOL_FOR_TARGET in
14327 [\\/]* | ?:[\\/]*)
14328 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14332 for as_dir in $gcc_cv_tool_dirs
14334 IFS=$as_save_IFS
14335 test -z "$as_dir" && as_dir=.
14336 for ac_exec_ext in '' $ac_executable_extensions; do
14337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14338 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14340 break 2
14342 done
14343 done
14344 IFS=$as_save_IFS
14347 esac
14349 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14350 if test -n "$DLLTOOL_FOR_TARGET"; then
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14352 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14353 else
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14360 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14363 if test -n "$DLLTOOL_FOR_TARGET"; then
14364 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14365 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14366 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14369 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14370 for ncn_progname in dlltool; do
14371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14372 set dummy ${ncn_progname}; ac_word=$2
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14374 $as_echo_n "checking for $ac_word... " >&6; }
14375 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14376 $as_echo_n "(cached) " >&6
14377 else
14378 if test -n "$DLLTOOL_FOR_TARGET"; then
14379 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14380 else
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382 for as_dir in $PATH
14384 IFS=$as_save_IFS
14385 test -z "$as_dir" && as_dir=.
14386 for ac_exec_ext in '' $ac_executable_extensions; do
14387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14388 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14390 break 2
14392 done
14393 done
14394 IFS=$as_save_IFS
14398 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14399 if test -n "$DLLTOOL_FOR_TARGET"; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14401 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14402 else
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14408 done
14411 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14412 for ncn_progname in dlltool; do
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14414 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14415 if test -x $with_build_time_tools/${ncn_progname}; then
14416 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14418 $as_echo "yes" >&6; }
14419 break
14420 else
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 $as_echo "no" >&6; }
14424 done
14427 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14428 for ncn_progname in dlltool; do
14429 if test -n "$ncn_target_tool_prefix"; then
14430 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14431 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14435 $as_echo_n "(cached) " >&6
14436 else
14437 if test -n "$DLLTOOL_FOR_TARGET"; then
14438 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14439 else
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14451 done
14452 done
14453 IFS=$as_save_IFS
14457 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14458 if test -n "$DLLTOOL_FOR_TARGET"; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14460 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14461 else
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14468 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14470 set dummy ${ncn_progname}; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476 if test -n "$DLLTOOL_FOR_TARGET"; then
14477 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14478 else
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14482 IFS=$as_save_IFS
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14486 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14488 break 2
14490 done
14491 done
14492 IFS=$as_save_IFS
14496 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14497 if test -n "$DLLTOOL_FOR_TARGET"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14499 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14500 else
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14507 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14508 done
14511 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14512 set dummy dlltool
14513 if test $build = $target ; then
14514 DLLTOOL_FOR_TARGET="$2"
14515 else
14516 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14518 else
14519 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14522 else
14523 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14529 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14530 if test -n "$with_build_time_tools"; then
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14532 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14533 if test -x $with_build_time_tools/dsymutil; then
14534 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14535 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14537 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14538 else
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 $as_echo "no" >&6; }
14542 elif test $build != $host && test $have_gcc_for_target = yes; then
14543 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14544 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14545 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14548 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14549 # Extract the first word of "dsymutil", so it can be a program name with args.
14550 set dummy dsymutil; ac_word=$2
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 $as_echo_n "checking for $ac_word... " >&6; }
14553 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 case $DSYMUTIL_FOR_TARGET in
14557 [\\/]* | ?:[\\/]*)
14558 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562 for as_dir in $gcc_cv_tool_dirs
14564 IFS=$as_save_IFS
14565 test -z "$as_dir" && as_dir=.
14566 for ac_exec_ext in '' $ac_executable_extensions; do
14567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14568 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14570 break 2
14572 done
14573 done
14574 IFS=$as_save_IFS
14577 esac
14579 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14580 if test -n "$DSYMUTIL_FOR_TARGET"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14582 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14583 else
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585 $as_echo "no" >&6; }
14590 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14593 if test -n "$DSYMUTIL_FOR_TARGET"; then
14594 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14595 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14596 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14599 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14600 for ncn_progname in dsymutil; do
14601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14602 set dummy ${ncn_progname}; ac_word=$2
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14604 $as_echo_n "checking for $ac_word... " >&6; }
14605 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 if test -n "$DSYMUTIL_FOR_TARGET"; then
14609 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14624 IFS=$as_save_IFS
14628 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14629 if test -n "$DSYMUTIL_FOR_TARGET"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14631 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14638 done
14641 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14642 for ncn_progname in dsymutil; do
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14644 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14645 if test -x $with_build_time_tools/${ncn_progname}; then
14646 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648 $as_echo "yes" >&6; }
14649 break
14650 else
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14652 $as_echo "no" >&6; }
14654 done
14657 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14658 for ncn_progname in dsymutil; do
14659 if test -n "$ncn_target_tool_prefix"; then
14660 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14661 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 if test -n "$DSYMUTIL_FOR_TARGET"; then
14668 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14669 else
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14673 IFS=$as_save_IFS
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14677 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 break 2
14681 done
14682 done
14683 IFS=$as_save_IFS
14687 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14688 if test -n "$DSYMUTIL_FOR_TARGET"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14690 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14698 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14700 set dummy ${ncn_progname}; ac_word=$2
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14702 $as_echo_n "checking for $ac_word... " >&6; }
14703 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 if test -n "$DSYMUTIL_FOR_TARGET"; then
14707 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14708 else
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14716 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14718 break 2
14720 done
14721 done
14722 IFS=$as_save_IFS
14726 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14727 if test -n "$DSYMUTIL_FOR_TARGET"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14729 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14730 else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732 $as_echo "no" >&6; }
14737 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14738 done
14741 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14742 set dummy dsymutil
14743 if test $build = $target ; then
14744 DSYMUTIL_FOR_TARGET="$2"
14745 else
14746 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14748 else
14749 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14752 else
14753 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14759 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14760 if test -n "$with_build_time_tools"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14762 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14763 if test -x $with_build_time_tools/ld; then
14764 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14765 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14767 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14768 else
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770 $as_echo "no" >&6; }
14772 elif test $build != $host && test $have_gcc_for_target = yes; then
14773 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14774 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14775 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14778 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14779 # Extract the first word of "ld", so it can be a program name with args.
14780 set dummy ld; ac_word=$2
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14782 $as_echo_n "checking for $ac_word... " >&6; }
14783 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 case $LD_FOR_TARGET in
14787 [\\/]* | ?:[\\/]*)
14788 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14792 for as_dir in $gcc_cv_tool_dirs
14794 IFS=$as_save_IFS
14795 test -z "$as_dir" && as_dir=.
14796 for ac_exec_ext in '' $ac_executable_extensions; do
14797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14798 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14800 break 2
14802 done
14803 done
14804 IFS=$as_save_IFS
14807 esac
14809 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14810 if test -n "$LD_FOR_TARGET"; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14812 $as_echo "$LD_FOR_TARGET" >&6; }
14813 else
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14815 $as_echo "no" >&6; }
14820 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14823 if test -n "$LD_FOR_TARGET"; then
14824 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14825 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14826 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14829 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14830 for ncn_progname in ld; do
14831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14832 set dummy ${ncn_progname}; ac_word=$2
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14834 $as_echo_n "checking for $ac_word... " >&6; }
14835 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 if test -n "$LD_FOR_TARGET"; then
14839 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14840 else
14841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14842 for as_dir in $PATH
14844 IFS=$as_save_IFS
14845 test -z "$as_dir" && as_dir=.
14846 for ac_exec_ext in '' $ac_executable_extensions; do
14847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14848 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14850 break 2
14852 done
14853 done
14854 IFS=$as_save_IFS
14858 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14859 if test -n "$LD_FOR_TARGET"; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14861 $as_echo "$LD_FOR_TARGET" >&6; }
14862 else
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14864 $as_echo "no" >&6; }
14868 done
14871 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14872 for ncn_progname in ld; do
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14874 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14875 if test -x $with_build_time_tools/${ncn_progname}; then
14876 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14878 $as_echo "yes" >&6; }
14879 break
14880 else
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14882 $as_echo "no" >&6; }
14884 done
14887 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14888 for ncn_progname in ld; do
14889 if test -n "$ncn_target_tool_prefix"; then
14890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14891 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14893 $as_echo_n "checking for $ac_word... " >&6; }
14894 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897 if test -n "$LD_FOR_TARGET"; then
14898 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14899 else
14900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14901 for as_dir in $PATH
14903 IFS=$as_save_IFS
14904 test -z "$as_dir" && as_dir=.
14905 for ac_exec_ext in '' $ac_executable_extensions; do
14906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14907 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14909 break 2
14911 done
14912 done
14913 IFS=$as_save_IFS
14917 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14918 if test -n "$LD_FOR_TARGET"; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14920 $as_echo "$LD_FOR_TARGET" >&6; }
14921 else
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923 $as_echo "no" >&6; }
14928 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14930 set dummy ${ncn_progname}; ac_word=$2
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14932 $as_echo_n "checking for $ac_word... " >&6; }
14933 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 if test -n "$LD_FOR_TARGET"; then
14937 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14938 else
14939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14940 for as_dir in $PATH
14942 IFS=$as_save_IFS
14943 test -z "$as_dir" && as_dir=.
14944 for ac_exec_ext in '' $ac_executable_extensions; do
14945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14946 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14948 break 2
14950 done
14951 done
14952 IFS=$as_save_IFS
14956 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14957 if test -n "$LD_FOR_TARGET"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14959 $as_echo "$LD_FOR_TARGET" >&6; }
14960 else
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 $as_echo "no" >&6; }
14967 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14968 done
14971 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14972 set dummy ld
14973 if test $build = $target ; then
14974 LD_FOR_TARGET="$2"
14975 else
14976 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14978 else
14979 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14982 else
14983 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14989 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14990 if test -n "$with_build_time_tools"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14992 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14993 if test -x $with_build_time_tools/lipo; then
14994 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14995 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14997 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14998 else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15002 elif test $build != $host && test $have_gcc_for_target = yes; then
15003 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15004 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15005 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15008 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15009 # Extract the first word of "lipo", so it can be a program name with args.
15010 set dummy lipo; ac_word=$2
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15012 $as_echo_n "checking for $ac_word... " >&6; }
15013 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 case $LIPO_FOR_TARGET in
15017 [\\/]* | ?:[\\/]*)
15018 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15022 for as_dir in $gcc_cv_tool_dirs
15024 IFS=$as_save_IFS
15025 test -z "$as_dir" && as_dir=.
15026 for ac_exec_ext in '' $ac_executable_extensions; do
15027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15028 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15030 break 2
15032 done
15033 done
15034 IFS=$as_save_IFS
15037 esac
15039 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15040 if test -n "$LIPO_FOR_TARGET"; then
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15042 $as_echo "$LIPO_FOR_TARGET" >&6; }
15043 else
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 $as_echo "no" >&6; }
15050 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15053 if test -n "$LIPO_FOR_TARGET"; then
15054 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15055 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15056 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15059 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15060 for ncn_progname in lipo; do
15061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15062 set dummy ${ncn_progname}; ac_word=$2
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15064 $as_echo_n "checking for $ac_word... " >&6; }
15065 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 if test -n "$LIPO_FOR_TARGET"; then
15069 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15070 else
15071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072 for as_dir in $PATH
15074 IFS=$as_save_IFS
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15078 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15080 break 2
15082 done
15083 done
15084 IFS=$as_save_IFS
15088 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15089 if test -n "$LIPO_FOR_TARGET"; then
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15091 $as_echo "$LIPO_FOR_TARGET" >&6; }
15092 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15098 done
15101 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15102 for ncn_progname in lipo; do
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15104 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15105 if test -x $with_build_time_tools/${ncn_progname}; then
15106 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15108 $as_echo "yes" >&6; }
15109 break
15110 else
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15114 done
15117 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15118 for ncn_progname in lipo; do
15119 if test -n "$ncn_target_tool_prefix"; then
15120 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15121 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15123 $as_echo_n "checking for $ac_word... " >&6; }
15124 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 if test -n "$LIPO_FOR_TARGET"; then
15128 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15129 else
15130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15131 for as_dir in $PATH
15133 IFS=$as_save_IFS
15134 test -z "$as_dir" && as_dir=.
15135 for ac_exec_ext in '' $ac_executable_extensions; do
15136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15139 break 2
15141 done
15142 done
15143 IFS=$as_save_IFS
15147 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15148 if test -n "$LIPO_FOR_TARGET"; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15150 $as_echo "$LIPO_FOR_TARGET" >&6; }
15151 else
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15153 $as_echo "no" >&6; }
15158 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15160 set dummy ${ncn_progname}; ac_word=$2
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15162 $as_echo_n "checking for $ac_word... " >&6; }
15163 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 if test -n "$LIPO_FOR_TARGET"; then
15167 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15168 else
15169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15170 for as_dir in $PATH
15172 IFS=$as_save_IFS
15173 test -z "$as_dir" && as_dir=.
15174 for ac_exec_ext in '' $ac_executable_extensions; do
15175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15176 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15178 break 2
15180 done
15181 done
15182 IFS=$as_save_IFS
15186 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15187 if test -n "$LIPO_FOR_TARGET"; then
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15189 $as_echo "$LIPO_FOR_TARGET" >&6; }
15190 else
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15192 $as_echo "no" >&6; }
15197 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15198 done
15201 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15202 set dummy lipo
15203 if test $build = $target ; then
15204 LIPO_FOR_TARGET="$2"
15205 else
15206 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15208 else
15209 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15212 else
15213 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15219 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15220 if test -n "$with_build_time_tools"; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15222 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15223 if test -x $with_build_time_tools/nm; then
15224 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15225 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15227 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15228 else
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15230 $as_echo "no" >&6; }
15232 elif test $build != $host && test $have_gcc_for_target = yes; then
15233 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15234 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15235 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15238 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15239 # Extract the first word of "nm", so it can be a program name with args.
15240 set dummy nm; ac_word=$2
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15242 $as_echo_n "checking for $ac_word... " >&6; }
15243 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15244 $as_echo_n "(cached) " >&6
15245 else
15246 case $NM_FOR_TARGET in
15247 [\\/]* | ?:[\\/]*)
15248 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $gcc_cv_tool_dirs
15254 IFS=$as_save_IFS
15255 test -z "$as_dir" && as_dir=.
15256 for ac_exec_ext in '' $ac_executable_extensions; do
15257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15260 break 2
15262 done
15263 done
15264 IFS=$as_save_IFS
15267 esac
15269 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15270 if test -n "$NM_FOR_TARGET"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15272 $as_echo "$NM_FOR_TARGET" >&6; }
15273 else
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 $as_echo "no" >&6; }
15280 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15283 if test -n "$NM_FOR_TARGET"; then
15284 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15285 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15286 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15289 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15290 for ncn_progname in nm; do
15291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15292 set dummy ${ncn_progname}; ac_word=$2
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15294 $as_echo_n "checking for $ac_word... " >&6; }
15295 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15296 $as_echo_n "(cached) " >&6
15297 else
15298 if test -n "$NM_FOR_TARGET"; then
15299 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15300 else
15301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15302 for as_dir in $PATH
15304 IFS=$as_save_IFS
15305 test -z "$as_dir" && as_dir=.
15306 for ac_exec_ext in '' $ac_executable_extensions; do
15307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15308 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15310 break 2
15312 done
15313 done
15314 IFS=$as_save_IFS
15318 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15319 if test -n "$NM_FOR_TARGET"; then
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15321 $as_echo "$NM_FOR_TARGET" >&6; }
15322 else
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15328 done
15331 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15332 for ncn_progname in nm; do
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15334 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15335 if test -x $with_build_time_tools/${ncn_progname}; then
15336 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15338 $as_echo "yes" >&6; }
15339 break
15340 else
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15344 done
15347 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15348 for ncn_progname in nm; do
15349 if test -n "$ncn_target_tool_prefix"; then
15350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15353 $as_echo_n "checking for $ac_word... " >&6; }
15354 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 if test -n "$NM_FOR_TARGET"; then
15358 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15359 else
15360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15361 for as_dir in $PATH
15363 IFS=$as_save_IFS
15364 test -z "$as_dir" && as_dir=.
15365 for ac_exec_ext in '' $ac_executable_extensions; do
15366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15367 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15369 break 2
15371 done
15372 done
15373 IFS=$as_save_IFS
15377 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15378 if test -n "$NM_FOR_TARGET"; then
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15380 $as_echo "$NM_FOR_TARGET" >&6; }
15381 else
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15383 $as_echo "no" >&6; }
15388 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15390 set dummy ${ncn_progname}; ac_word=$2
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15392 $as_echo_n "checking for $ac_word... " >&6; }
15393 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 if test -n "$NM_FOR_TARGET"; then
15397 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15398 else
15399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15402 IFS=$as_save_IFS
15403 test -z "$as_dir" && as_dir=.
15404 for ac_exec_ext in '' $ac_executable_extensions; do
15405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15406 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15408 break 2
15410 done
15411 done
15412 IFS=$as_save_IFS
15416 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15417 if test -n "$NM_FOR_TARGET"; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15419 $as_echo "$NM_FOR_TARGET" >&6; }
15420 else
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422 $as_echo "no" >&6; }
15427 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15428 done
15431 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15432 set dummy nm
15433 if test $build = $target ; then
15434 NM_FOR_TARGET="$2"
15435 else
15436 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15438 else
15439 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15442 else
15443 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15449 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15450 if test -n "$with_build_time_tools"; then
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15452 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15453 if test -x $with_build_time_tools/objcopy; then
15454 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15455 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15457 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15458 else
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15460 $as_echo "no" >&6; }
15462 elif test $build != $host && test $have_gcc_for_target = yes; then
15463 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15464 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15465 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15468 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15469 # Extract the first word of "objcopy", so it can be a program name with args.
15470 set dummy objcopy; ac_word=$2
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15472 $as_echo_n "checking for $ac_word... " >&6; }
15473 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15474 $as_echo_n "(cached) " >&6
15475 else
15476 case $OBJCOPY_FOR_TARGET in
15477 [\\/]* | ?:[\\/]*)
15478 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15482 for as_dir in $gcc_cv_tool_dirs
15484 IFS=$as_save_IFS
15485 test -z "$as_dir" && as_dir=.
15486 for ac_exec_ext in '' $ac_executable_extensions; do
15487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15488 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15490 break 2
15492 done
15493 done
15494 IFS=$as_save_IFS
15497 esac
15499 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15500 if test -n "$OBJCOPY_FOR_TARGET"; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15502 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15503 else
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15505 $as_echo "no" >&6; }
15510 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15513 if test -n "$OBJCOPY_FOR_TARGET"; then
15514 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15515 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15516 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15519 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15520 for ncn_progname in objcopy; do
15521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15522 set dummy ${ncn_progname}; ac_word=$2
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15524 $as_echo_n "checking for $ac_word... " >&6; }
15525 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15526 $as_echo_n "(cached) " >&6
15527 else
15528 if test -n "$OBJCOPY_FOR_TARGET"; then
15529 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15530 else
15531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532 for as_dir in $PATH
15534 IFS=$as_save_IFS
15535 test -z "$as_dir" && as_dir=.
15536 for ac_exec_ext in '' $ac_executable_extensions; do
15537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15538 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15540 break 2
15542 done
15543 done
15544 IFS=$as_save_IFS
15548 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15549 if test -n "$OBJCOPY_FOR_TARGET"; then
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15551 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15552 else
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15554 $as_echo "no" >&6; }
15558 done
15561 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15562 for ncn_progname in objcopy; do
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15564 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15565 if test -x $with_build_time_tools/${ncn_progname}; then
15566 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15568 $as_echo "yes" >&6; }
15569 break
15570 else
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15572 $as_echo "no" >&6; }
15574 done
15577 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15578 for ncn_progname in objcopy; do
15579 if test -n "$ncn_target_tool_prefix"; then
15580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15581 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15583 $as_echo_n "checking for $ac_word... " >&6; }
15584 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15585 $as_echo_n "(cached) " >&6
15586 else
15587 if test -n "$OBJCOPY_FOR_TARGET"; then
15588 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15589 else
15590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15591 for as_dir in $PATH
15593 IFS=$as_save_IFS
15594 test -z "$as_dir" && as_dir=.
15595 for ac_exec_ext in '' $ac_executable_extensions; do
15596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15597 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15599 break 2
15601 done
15602 done
15603 IFS=$as_save_IFS
15607 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15608 if test -n "$OBJCOPY_FOR_TARGET"; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15610 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15611 else
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15613 $as_echo "no" >&6; }
15618 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15620 set dummy ${ncn_progname}; ac_word=$2
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15622 $as_echo_n "checking for $ac_word... " >&6; }
15623 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 if test -n "$OBJCOPY_FOR_TARGET"; then
15627 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15628 else
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15632 IFS=$as_save_IFS
15633 test -z "$as_dir" && as_dir=.
15634 for ac_exec_ext in '' $ac_executable_extensions; do
15635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15638 break 2
15640 done
15641 done
15642 IFS=$as_save_IFS
15646 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15647 if test -n "$OBJCOPY_FOR_TARGET"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15649 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15650 else
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15657 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15658 done
15661 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15662 set dummy objcopy
15663 if test $build = $target ; then
15664 OBJCOPY_FOR_TARGET="$2"
15665 else
15666 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15668 else
15669 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15672 else
15673 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15679 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15680 if test -n "$with_build_time_tools"; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15682 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15683 if test -x $with_build_time_tools/objdump; then
15684 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15685 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15687 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15688 else
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15690 $as_echo "no" >&6; }
15692 elif test $build != $host && test $have_gcc_for_target = yes; then
15693 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15694 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15695 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15698 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15699 # Extract the first word of "objdump", so it can be a program name with args.
15700 set dummy objdump; ac_word=$2
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15702 $as_echo_n "checking for $ac_word... " >&6; }
15703 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15704 $as_echo_n "(cached) " >&6
15705 else
15706 case $OBJDUMP_FOR_TARGET in
15707 [\\/]* | ?:[\\/]*)
15708 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15712 for as_dir in $gcc_cv_tool_dirs
15714 IFS=$as_save_IFS
15715 test -z "$as_dir" && as_dir=.
15716 for ac_exec_ext in '' $ac_executable_extensions; do
15717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15718 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15720 break 2
15722 done
15723 done
15724 IFS=$as_save_IFS
15727 esac
15729 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15730 if test -n "$OBJDUMP_FOR_TARGET"; then
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15732 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15733 else
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 $as_echo "no" >&6; }
15740 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15743 if test -n "$OBJDUMP_FOR_TARGET"; then
15744 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15745 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15746 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15749 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15750 for ncn_progname in objdump; do
15751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15752 set dummy ${ncn_progname}; ac_word=$2
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15754 $as_echo_n "checking for $ac_word... " >&6; }
15755 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 if test -n "$OBJDUMP_FOR_TARGET"; then
15759 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15760 else
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $PATH
15764 IFS=$as_save_IFS
15765 test -z "$as_dir" && as_dir=.
15766 for ac_exec_ext in '' $ac_executable_extensions; do
15767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15768 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15770 break 2
15772 done
15773 done
15774 IFS=$as_save_IFS
15778 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15779 if test -n "$OBJDUMP_FOR_TARGET"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15781 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15782 else
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15788 done
15791 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15792 for ncn_progname in objdump; do
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15794 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15795 if test -x $with_build_time_tools/${ncn_progname}; then
15796 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15798 $as_echo "yes" >&6; }
15799 break
15800 else
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802 $as_echo "no" >&6; }
15804 done
15807 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15808 for ncn_progname in objdump; do
15809 if test -n "$ncn_target_tool_prefix"; then
15810 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15811 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15813 $as_echo_n "checking for $ac_word... " >&6; }
15814 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15815 $as_echo_n "(cached) " >&6
15816 else
15817 if test -n "$OBJDUMP_FOR_TARGET"; then
15818 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15819 else
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
15826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15827 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15829 break 2
15831 done
15832 done
15833 IFS=$as_save_IFS
15837 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15838 if test -n "$OBJDUMP_FOR_TARGET"; then
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15840 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15841 else
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15843 $as_echo "no" >&6; }
15848 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15850 set dummy ${ncn_progname}; ac_word=$2
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15852 $as_echo_n "checking for $ac_word... " >&6; }
15853 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 if test -n "$OBJDUMP_FOR_TARGET"; then
15857 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15858 else
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15868 break 2
15870 done
15871 done
15872 IFS=$as_save_IFS
15876 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15877 if test -n "$OBJDUMP_FOR_TARGET"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15879 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15880 else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882 $as_echo "no" >&6; }
15887 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15888 done
15891 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15892 set dummy objdump
15893 if test $build = $target ; then
15894 OBJDUMP_FOR_TARGET="$2"
15895 else
15896 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15898 else
15899 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15902 else
15903 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15909 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15910 if test -n "$with_build_time_tools"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15912 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15913 if test -x $with_build_time_tools/otool; then
15914 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15915 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15917 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15918 else
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15920 $as_echo "no" >&6; }
15922 elif test $build != $host && test $have_gcc_for_target = yes; then
15923 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15924 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15925 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15928 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15929 # Extract the first word of "otool", so it can be a program name with args.
15930 set dummy otool; ac_word=$2
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15932 $as_echo_n "checking for $ac_word... " >&6; }
15933 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15934 $as_echo_n "(cached) " >&6
15935 else
15936 case $OTOOL_FOR_TARGET in
15937 [\\/]* | ?:[\\/]*)
15938 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15942 for as_dir in $gcc_cv_tool_dirs
15944 IFS=$as_save_IFS
15945 test -z "$as_dir" && as_dir=.
15946 for ac_exec_ext in '' $ac_executable_extensions; do
15947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15948 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15950 break 2
15952 done
15953 done
15954 IFS=$as_save_IFS
15957 esac
15959 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15960 if test -n "$OTOOL_FOR_TARGET"; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15962 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15963 else
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965 $as_echo "no" >&6; }
15970 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15973 if test -n "$OTOOL_FOR_TARGET"; then
15974 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15975 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15976 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15979 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15980 for ncn_progname in otool; do
15981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15982 set dummy ${ncn_progname}; ac_word=$2
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15984 $as_echo_n "checking for $ac_word... " >&6; }
15985 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15986 $as_echo_n "(cached) " >&6
15987 else
15988 if test -n "$OTOOL_FOR_TARGET"; then
15989 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15990 else
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in $PATH
15994 IFS=$as_save_IFS
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16000 break 2
16002 done
16003 done
16004 IFS=$as_save_IFS
16008 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16009 if test -n "$OTOOL_FOR_TARGET"; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16011 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16012 else
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014 $as_echo "no" >&6; }
16018 done
16021 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16022 for ncn_progname in otool; do
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16024 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16025 if test -x $with_build_time_tools/${ncn_progname}; then
16026 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16028 $as_echo "yes" >&6; }
16029 break
16030 else
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032 $as_echo "no" >&6; }
16034 done
16037 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16038 for ncn_progname in otool; do
16039 if test -n "$ncn_target_tool_prefix"; then
16040 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16041 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16043 $as_echo_n "checking for $ac_word... " >&6; }
16044 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16045 $as_echo_n "(cached) " >&6
16046 else
16047 if test -n "$OTOOL_FOR_TARGET"; then
16048 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16049 else
16050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16051 for as_dir in $PATH
16053 IFS=$as_save_IFS
16054 test -z "$as_dir" && as_dir=.
16055 for ac_exec_ext in '' $ac_executable_extensions; do
16056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16057 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16059 break 2
16061 done
16062 done
16063 IFS=$as_save_IFS
16067 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16068 if test -n "$OTOOL_FOR_TARGET"; then
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16070 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16071 else
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16073 $as_echo "no" >&6; }
16078 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16080 set dummy ${ncn_progname}; ac_word=$2
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16082 $as_echo_n "checking for $ac_word... " >&6; }
16083 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085 else
16086 if test -n "$OTOOL_FOR_TARGET"; then
16087 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16088 else
16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090 for as_dir in $PATH
16092 IFS=$as_save_IFS
16093 test -z "$as_dir" && as_dir=.
16094 for ac_exec_ext in '' $ac_executable_extensions; do
16095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16096 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16098 break 2
16100 done
16101 done
16102 IFS=$as_save_IFS
16106 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16107 if test -n "$OTOOL_FOR_TARGET"; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16109 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16110 else
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 $as_echo "no" >&6; }
16117 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16118 done
16121 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16122 set dummy otool
16123 if test $build = $target ; then
16124 OTOOL_FOR_TARGET="$2"
16125 else
16126 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16128 else
16129 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16132 else
16133 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16139 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16140 if test -n "$with_build_time_tools"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16142 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16143 if test -x $with_build_time_tools/ranlib; then
16144 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16145 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16147 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16148 else
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 $as_echo "no" >&6; }
16152 elif test $build != $host && test $have_gcc_for_target = yes; then
16153 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16154 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16155 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16158 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16159 # Extract the first word of "ranlib", so it can be a program name with args.
16160 set dummy ranlib; ac_word=$2
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16162 $as_echo_n "checking for $ac_word... " >&6; }
16163 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16164 $as_echo_n "(cached) " >&6
16165 else
16166 case $RANLIB_FOR_TARGET in
16167 [\\/]* | ?:[\\/]*)
16168 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16172 for as_dir in $gcc_cv_tool_dirs
16174 IFS=$as_save_IFS
16175 test -z "$as_dir" && as_dir=.
16176 for ac_exec_ext in '' $ac_executable_extensions; do
16177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16178 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16180 break 2
16182 done
16183 done
16184 IFS=$as_save_IFS
16187 esac
16189 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16190 if test -n "$RANLIB_FOR_TARGET"; then
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16192 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16193 else
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16195 $as_echo "no" >&6; }
16200 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16203 if test -n "$RANLIB_FOR_TARGET"; then
16204 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16205 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16206 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16209 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16210 for ncn_progname in ranlib; do
16211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16212 set dummy ${ncn_progname}; ac_word=$2
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16214 $as_echo_n "checking for $ac_word... " >&6; }
16215 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 if test -n "$RANLIB_FOR_TARGET"; then
16219 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16220 else
16221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222 for as_dir in $PATH
16224 IFS=$as_save_IFS
16225 test -z "$as_dir" && as_dir=.
16226 for ac_exec_ext in '' $ac_executable_extensions; do
16227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16228 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16230 break 2
16232 done
16233 done
16234 IFS=$as_save_IFS
16238 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16239 if test -n "$RANLIB_FOR_TARGET"; then
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16241 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16242 else
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16244 $as_echo "no" >&6; }
16248 done
16251 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16252 for ncn_progname in ranlib; do
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16254 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16255 if test -x $with_build_time_tools/${ncn_progname}; then
16256 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16258 $as_echo "yes" >&6; }
16259 break
16260 else
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262 $as_echo "no" >&6; }
16264 done
16267 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16268 for ncn_progname in ranlib; do
16269 if test -n "$ncn_target_tool_prefix"; then
16270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16271 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16273 $as_echo_n "checking for $ac_word... " >&6; }
16274 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 if test -n "$RANLIB_FOR_TARGET"; then
16278 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16279 else
16280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16281 for as_dir in $PATH
16283 IFS=$as_save_IFS
16284 test -z "$as_dir" && as_dir=.
16285 for ac_exec_ext in '' $ac_executable_extensions; do
16286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16287 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16289 break 2
16291 done
16292 done
16293 IFS=$as_save_IFS
16297 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16298 if test -n "$RANLIB_FOR_TARGET"; then
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16300 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16301 else
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16303 $as_echo "no" >&6; }
16308 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16310 set dummy ${ncn_progname}; ac_word=$2
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16312 $as_echo_n "checking for $ac_word... " >&6; }
16313 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16314 $as_echo_n "(cached) " >&6
16315 else
16316 if test -n "$RANLIB_FOR_TARGET"; then
16317 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16318 else
16319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16320 for as_dir in $PATH
16322 IFS=$as_save_IFS
16323 test -z "$as_dir" && as_dir=.
16324 for ac_exec_ext in '' $ac_executable_extensions; do
16325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16326 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16328 break 2
16330 done
16331 done
16332 IFS=$as_save_IFS
16336 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16337 if test -n "$RANLIB_FOR_TARGET"; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16339 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16340 else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342 $as_echo "no" >&6; }
16347 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16348 done
16351 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16352 set dummy ranlib
16353 if test $build = $target ; then
16354 RANLIB_FOR_TARGET="$2"
16355 else
16356 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16358 else
16359 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16362 else
16363 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16369 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16370 if test -n "$with_build_time_tools"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16372 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16373 if test -x $with_build_time_tools/readelf; then
16374 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16375 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16377 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16378 else
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16382 elif test $build != $host && test $have_gcc_for_target = yes; then
16383 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16384 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16385 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16388 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16389 # Extract the first word of "readelf", so it can be a program name with args.
16390 set dummy readelf; ac_word=$2
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16392 $as_echo_n "checking for $ac_word... " >&6; }
16393 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16394 $as_echo_n "(cached) " >&6
16395 else
16396 case $READELF_FOR_TARGET in
16397 [\\/]* | ?:[\\/]*)
16398 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16402 for as_dir in $gcc_cv_tool_dirs
16404 IFS=$as_save_IFS
16405 test -z "$as_dir" && as_dir=.
16406 for ac_exec_ext in '' $ac_executable_extensions; do
16407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16408 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16410 break 2
16412 done
16413 done
16414 IFS=$as_save_IFS
16417 esac
16419 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16420 if test -n "$READELF_FOR_TARGET"; then
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16422 $as_echo "$READELF_FOR_TARGET" >&6; }
16423 else
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16425 $as_echo "no" >&6; }
16430 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16433 if test -n "$READELF_FOR_TARGET"; then
16434 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16435 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16436 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16439 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16440 for ncn_progname in readelf; do
16441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16442 set dummy ${ncn_progname}; ac_word=$2
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16444 $as_echo_n "checking for $ac_word... " >&6; }
16445 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16446 $as_echo_n "(cached) " >&6
16447 else
16448 if test -n "$READELF_FOR_TARGET"; then
16449 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16450 else
16451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16452 for as_dir in $PATH
16454 IFS=$as_save_IFS
16455 test -z "$as_dir" && as_dir=.
16456 for ac_exec_ext in '' $ac_executable_extensions; do
16457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16458 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16460 break 2
16462 done
16463 done
16464 IFS=$as_save_IFS
16468 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16469 if test -n "$READELF_FOR_TARGET"; then
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16471 $as_echo "$READELF_FOR_TARGET" >&6; }
16472 else
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16474 $as_echo "no" >&6; }
16478 done
16481 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16482 for ncn_progname in readelf; do
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16484 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16485 if test -x $with_build_time_tools/${ncn_progname}; then
16486 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16488 $as_echo "yes" >&6; }
16489 break
16490 else
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16492 $as_echo "no" >&6; }
16494 done
16497 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16498 for ncn_progname in readelf; do
16499 if test -n "$ncn_target_tool_prefix"; then
16500 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16501 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16503 $as_echo_n "checking for $ac_word... " >&6; }
16504 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16505 $as_echo_n "(cached) " >&6
16506 else
16507 if test -n "$READELF_FOR_TARGET"; then
16508 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16509 else
16510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16511 for as_dir in $PATH
16513 IFS=$as_save_IFS
16514 test -z "$as_dir" && as_dir=.
16515 for ac_exec_ext in '' $ac_executable_extensions; do
16516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16517 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16519 break 2
16521 done
16522 done
16523 IFS=$as_save_IFS
16527 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16528 if test -n "$READELF_FOR_TARGET"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16530 $as_echo "$READELF_FOR_TARGET" >&6; }
16531 else
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16538 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16540 set dummy ${ncn_progname}; ac_word=$2
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542 $as_echo_n "checking for $ac_word... " >&6; }
16543 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 if test -n "$READELF_FOR_TARGET"; then
16547 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16548 else
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16552 IFS=$as_save_IFS
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558 break 2
16560 done
16561 done
16562 IFS=$as_save_IFS
16566 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16567 if test -n "$READELF_FOR_TARGET"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16569 $as_echo "$READELF_FOR_TARGET" >&6; }
16570 else
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16577 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16578 done
16581 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16582 set dummy readelf
16583 if test $build = $target ; then
16584 READELF_FOR_TARGET="$2"
16585 else
16586 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16588 else
16589 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16592 else
16593 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16599 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16600 if test -n "$with_build_time_tools"; then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16602 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16603 if test -x $with_build_time_tools/strip; then
16604 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16605 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16607 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16608 else
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16610 $as_echo "no" >&6; }
16612 elif test $build != $host && test $have_gcc_for_target = yes; then
16613 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16614 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16615 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16618 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16619 # Extract the first word of "strip", so it can be a program name with args.
16620 set dummy strip; ac_word=$2
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16622 $as_echo_n "checking for $ac_word... " >&6; }
16623 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16624 $as_echo_n "(cached) " >&6
16625 else
16626 case $STRIP_FOR_TARGET in
16627 [\\/]* | ?:[\\/]*)
16628 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $gcc_cv_tool_dirs
16634 IFS=$as_save_IFS
16635 test -z "$as_dir" && as_dir=.
16636 for ac_exec_ext in '' $ac_executable_extensions; do
16637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16638 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16640 break 2
16642 done
16643 done
16644 IFS=$as_save_IFS
16647 esac
16649 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16650 if test -n "$STRIP_FOR_TARGET"; then
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16652 $as_echo "$STRIP_FOR_TARGET" >&6; }
16653 else
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655 $as_echo "no" >&6; }
16660 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16663 if test -n "$STRIP_FOR_TARGET"; then
16664 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16665 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16666 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16669 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16670 for ncn_progname in strip; do
16671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16672 set dummy ${ncn_progname}; ac_word=$2
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16674 $as_echo_n "checking for $ac_word... " >&6; }
16675 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16676 $as_echo_n "(cached) " >&6
16677 else
16678 if test -n "$STRIP_FOR_TARGET"; then
16679 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16680 else
16681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682 for as_dir in $PATH
16684 IFS=$as_save_IFS
16685 test -z "$as_dir" && as_dir=.
16686 for ac_exec_ext in '' $ac_executable_extensions; do
16687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16688 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16690 break 2
16692 done
16693 done
16694 IFS=$as_save_IFS
16698 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16699 if test -n "$STRIP_FOR_TARGET"; then
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16701 $as_echo "$STRIP_FOR_TARGET" >&6; }
16702 else
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16704 $as_echo "no" >&6; }
16708 done
16711 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16712 for ncn_progname in strip; do
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16714 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16715 if test -x $with_build_time_tools/${ncn_progname}; then
16716 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16718 $as_echo "yes" >&6; }
16719 break
16720 else
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722 $as_echo "no" >&6; }
16724 done
16727 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16728 for ncn_progname in strip; do
16729 if test -n "$ncn_target_tool_prefix"; then
16730 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16731 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16733 $as_echo_n "checking for $ac_word... " >&6; }
16734 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 if test -n "$STRIP_FOR_TARGET"; then
16738 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16739 else
16740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16741 for as_dir in $PATH
16743 IFS=$as_save_IFS
16744 test -z "$as_dir" && as_dir=.
16745 for ac_exec_ext in '' $ac_executable_extensions; do
16746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16747 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16749 break 2
16751 done
16752 done
16753 IFS=$as_save_IFS
16757 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16758 if test -n "$STRIP_FOR_TARGET"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16760 $as_echo "$STRIP_FOR_TARGET" >&6; }
16761 else
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16768 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16770 set dummy ${ncn_progname}; ac_word=$2
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16772 $as_echo_n "checking for $ac_word... " >&6; }
16773 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 if test -n "$STRIP_FOR_TARGET"; then
16777 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16778 else
16779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16780 for as_dir in $PATH
16782 IFS=$as_save_IFS
16783 test -z "$as_dir" && as_dir=.
16784 for ac_exec_ext in '' $ac_executable_extensions; do
16785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16786 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16788 break 2
16790 done
16791 done
16792 IFS=$as_save_IFS
16796 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16797 if test -n "$STRIP_FOR_TARGET"; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16799 $as_echo "$STRIP_FOR_TARGET" >&6; }
16800 else
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16802 $as_echo "no" >&6; }
16807 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16808 done
16811 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16812 set dummy strip
16813 if test $build = $target ; then
16814 STRIP_FOR_TARGET="$2"
16815 else
16816 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16818 else
16819 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16822 else
16823 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16829 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16830 if test -n "$with_build_time_tools"; then
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16832 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16833 if test -x $with_build_time_tools/windres; then
16834 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16835 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16837 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16838 else
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16840 $as_echo "no" >&6; }
16842 elif test $build != $host && test $have_gcc_for_target = yes; then
16843 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16844 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16845 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16848 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16849 # Extract the first word of "windres", so it can be a program name with args.
16850 set dummy windres; ac_word=$2
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16852 $as_echo_n "checking for $ac_word... " >&6; }
16853 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16854 $as_echo_n "(cached) " >&6
16855 else
16856 case $WINDRES_FOR_TARGET in
16857 [\\/]* | ?:[\\/]*)
16858 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16862 for as_dir in $gcc_cv_tool_dirs
16864 IFS=$as_save_IFS
16865 test -z "$as_dir" && as_dir=.
16866 for ac_exec_ext in '' $ac_executable_extensions; do
16867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16868 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16870 break 2
16872 done
16873 done
16874 IFS=$as_save_IFS
16877 esac
16879 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16880 if test -n "$WINDRES_FOR_TARGET"; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16882 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16883 else
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16885 $as_echo "no" >&6; }
16890 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16893 if test -n "$WINDRES_FOR_TARGET"; then
16894 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16895 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16896 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16899 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16900 for ncn_progname in windres; do
16901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16902 set dummy ${ncn_progname}; ac_word=$2
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16904 $as_echo_n "checking for $ac_word... " >&6; }
16905 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16906 $as_echo_n "(cached) " >&6
16907 else
16908 if test -n "$WINDRES_FOR_TARGET"; then
16909 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16910 else
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16914 IFS=$as_save_IFS
16915 test -z "$as_dir" && as_dir=.
16916 for ac_exec_ext in '' $ac_executable_extensions; do
16917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16918 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16920 break 2
16922 done
16923 done
16924 IFS=$as_save_IFS
16928 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16929 if test -n "$WINDRES_FOR_TARGET"; then
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16931 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16932 else
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16934 $as_echo "no" >&6; }
16938 done
16941 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16942 for ncn_progname in windres; do
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16944 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16945 if test -x $with_build_time_tools/${ncn_progname}; then
16946 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16948 $as_echo "yes" >&6; }
16949 break
16950 else
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16952 $as_echo "no" >&6; }
16954 done
16957 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16958 for ncn_progname in windres; do
16959 if test -n "$ncn_target_tool_prefix"; then
16960 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16961 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16963 $as_echo_n "checking for $ac_word... " >&6; }
16964 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16965 $as_echo_n "(cached) " >&6
16966 else
16967 if test -n "$WINDRES_FOR_TARGET"; then
16968 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16969 else
16970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16971 for as_dir in $PATH
16973 IFS=$as_save_IFS
16974 test -z "$as_dir" && as_dir=.
16975 for ac_exec_ext in '' $ac_executable_extensions; do
16976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16977 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16979 break 2
16981 done
16982 done
16983 IFS=$as_save_IFS
16987 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16988 if test -n "$WINDRES_FOR_TARGET"; then
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16990 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16991 else
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993 $as_echo "no" >&6; }
16998 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17000 set dummy ${ncn_progname}; ac_word=$2
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17002 $as_echo_n "checking for $ac_word... " >&6; }
17003 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17004 $as_echo_n "(cached) " >&6
17005 else
17006 if test -n "$WINDRES_FOR_TARGET"; then
17007 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17008 else
17009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010 for as_dir in $PATH
17012 IFS=$as_save_IFS
17013 test -z "$as_dir" && as_dir=.
17014 for ac_exec_ext in '' $ac_executable_extensions; do
17015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17016 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17018 break 2
17020 done
17021 done
17022 IFS=$as_save_IFS
17026 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17027 if test -n "$WINDRES_FOR_TARGET"; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17029 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17030 else
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17037 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17038 done
17041 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17042 set dummy windres
17043 if test $build = $target ; then
17044 WINDRES_FOR_TARGET="$2"
17045 else
17046 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17048 else
17049 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17052 else
17053 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17059 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17060 if test -n "$with_build_time_tools"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17062 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17063 if test -x $with_build_time_tools/windmc; then
17064 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17065 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17067 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17068 else
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070 $as_echo "no" >&6; }
17072 elif test $build != $host && test $have_gcc_for_target = yes; then
17073 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17074 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17075 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17078 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17079 # Extract the first word of "windmc", so it can be a program name with args.
17080 set dummy windmc; ac_word=$2
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17082 $as_echo_n "checking for $ac_word... " >&6; }
17083 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17084 $as_echo_n "(cached) " >&6
17085 else
17086 case $WINDMC_FOR_TARGET in
17087 [\\/]* | ?:[\\/]*)
17088 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $gcc_cv_tool_dirs
17094 IFS=$as_save_IFS
17095 test -z "$as_dir" && as_dir=.
17096 for ac_exec_ext in '' $ac_executable_extensions; do
17097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17098 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17100 break 2
17102 done
17103 done
17104 IFS=$as_save_IFS
17107 esac
17109 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17110 if test -n "$WINDMC_FOR_TARGET"; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17112 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17113 else
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17115 $as_echo "no" >&6; }
17120 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17123 if test -n "$WINDMC_FOR_TARGET"; then
17124 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17125 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17126 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17129 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17130 for ncn_progname in windmc; do
17131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17132 set dummy ${ncn_progname}; ac_word=$2
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17134 $as_echo_n "checking for $ac_word... " >&6; }
17135 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17136 $as_echo_n "(cached) " >&6
17137 else
17138 if test -n "$WINDMC_FOR_TARGET"; then
17139 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17140 else
17141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17142 for as_dir in $PATH
17144 IFS=$as_save_IFS
17145 test -z "$as_dir" && as_dir=.
17146 for ac_exec_ext in '' $ac_executable_extensions; do
17147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17148 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17150 break 2
17152 done
17153 done
17154 IFS=$as_save_IFS
17158 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17159 if test -n "$WINDMC_FOR_TARGET"; then
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17161 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17162 else
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17164 $as_echo "no" >&6; }
17168 done
17171 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17172 for ncn_progname in windmc; do
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17174 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17175 if test -x $with_build_time_tools/${ncn_progname}; then
17176 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17178 $as_echo "yes" >&6; }
17179 break
17180 else
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17182 $as_echo "no" >&6; }
17184 done
17187 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17188 for ncn_progname in windmc; do
17189 if test -n "$ncn_target_tool_prefix"; then
17190 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17191 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17193 $as_echo_n "checking for $ac_word... " >&6; }
17194 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17195 $as_echo_n "(cached) " >&6
17196 else
17197 if test -n "$WINDMC_FOR_TARGET"; then
17198 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17199 else
17200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17201 for as_dir in $PATH
17203 IFS=$as_save_IFS
17204 test -z "$as_dir" && as_dir=.
17205 for ac_exec_ext in '' $ac_executable_extensions; do
17206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17207 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17209 break 2
17211 done
17212 done
17213 IFS=$as_save_IFS
17217 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17218 if test -n "$WINDMC_FOR_TARGET"; then
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17220 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17221 else
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17223 $as_echo "no" >&6; }
17228 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17230 set dummy ${ncn_progname}; ac_word=$2
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232 $as_echo_n "checking for $ac_word... " >&6; }
17233 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 if test -n "$WINDMC_FOR_TARGET"; then
17237 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17238 else
17239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17240 for as_dir in $PATH
17242 IFS=$as_save_IFS
17243 test -z "$as_dir" && as_dir=.
17244 for ac_exec_ext in '' $ac_executable_extensions; do
17245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17246 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17248 break 2
17250 done
17251 done
17252 IFS=$as_save_IFS
17256 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17257 if test -n "$WINDMC_FOR_TARGET"; then
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17259 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17260 else
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17267 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17268 done
17271 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17272 set dummy windmc
17273 if test $build = $target ; then
17274 WINDMC_FOR_TARGET="$2"
17275 else
17276 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17278 else
17279 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17282 else
17283 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17287 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17290 $as_echo_n "checking where to find the target ar... " >&6; }
17291 if test "x${build}" != "x${host}" ; then
17292 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17293 # We already found the complete path
17294 ac_dir=`dirname $AR_FOR_TARGET`
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17296 $as_echo "pre-installed in $ac_dir" >&6; }
17297 else
17298 # Canadian cross, just use what we found
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17300 $as_echo "pre-installed" >&6; }
17302 else
17303 ok=yes
17304 case " ${configdirs} " in
17305 *" binutils "*) ;;
17306 *) ok=no ;;
17307 esac
17309 if test $ok = yes; then
17310 # An in-tree tool is available and we can use it
17311 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17313 $as_echo "just compiled" >&6; }
17314 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17315 # We already found the complete path
17316 ac_dir=`dirname $AR_FOR_TARGET`
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17318 $as_echo "pre-installed in $ac_dir" >&6; }
17319 elif test "x$target" = "x$host"; then
17320 # We can use an host tool
17321 AR_FOR_TARGET='$(AR)'
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17323 $as_echo "host tool" >&6; }
17324 else
17325 # We need a cross tool
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17327 $as_echo "pre-installed" >&6; }
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17332 $as_echo_n "checking where to find the target as... " >&6; }
17333 if test "x${build}" != "x${host}" ; then
17334 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17335 # We already found the complete path
17336 ac_dir=`dirname $AS_FOR_TARGET`
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17338 $as_echo "pre-installed in $ac_dir" >&6; }
17339 else
17340 # Canadian cross, just use what we found
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17342 $as_echo "pre-installed" >&6; }
17344 else
17345 ok=yes
17346 case " ${configdirs} " in
17347 *" gas "*) ;;
17348 *) ok=no ;;
17349 esac
17351 if test $ok = yes; then
17352 # An in-tree tool is available and we can use it
17353 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17355 $as_echo "just compiled" >&6; }
17356 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17357 # We already found the complete path
17358 ac_dir=`dirname $AS_FOR_TARGET`
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17360 $as_echo "pre-installed in $ac_dir" >&6; }
17361 elif test "x$target" = "x$host"; then
17362 # We can use an host tool
17363 AS_FOR_TARGET='$(AS)'
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17365 $as_echo "host tool" >&6; }
17366 else
17367 # We need a cross tool
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17369 $as_echo "pre-installed" >&6; }
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17374 $as_echo_n "checking where to find the target cc... " >&6; }
17375 if test "x${build}" != "x${host}" ; then
17376 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17377 # We already found the complete path
17378 ac_dir=`dirname $CC_FOR_TARGET`
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17380 $as_echo "pre-installed in $ac_dir" >&6; }
17381 else
17382 # Canadian cross, just use what we found
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17384 $as_echo "pre-installed" >&6; }
17386 else
17387 ok=yes
17388 case " ${configdirs} " in
17389 *" gcc "*) ;;
17390 *) ok=no ;;
17391 esac
17393 if test $ok = yes; then
17394 # An in-tree tool is available and we can use it
17395 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17397 $as_echo "just compiled" >&6; }
17398 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17399 # We already found the complete path
17400 ac_dir=`dirname $CC_FOR_TARGET`
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17402 $as_echo "pre-installed in $ac_dir" >&6; }
17403 elif test "x$target" = "x$host"; then
17404 # We can use an host tool
17405 CC_FOR_TARGET='$(CC)'
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17407 $as_echo "host tool" >&6; }
17408 else
17409 # We need a cross tool
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17411 $as_echo "pre-installed" >&6; }
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17416 $as_echo_n "checking where to find the target c++... " >&6; }
17417 if test "x${build}" != "x${host}" ; then
17418 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17419 # We already found the complete path
17420 ac_dir=`dirname $CXX_FOR_TARGET`
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17422 $as_echo "pre-installed in $ac_dir" >&6; }
17423 else
17424 # Canadian cross, just use what we found
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17426 $as_echo "pre-installed" >&6; }
17428 else
17429 ok=yes
17430 case " ${configdirs} " in
17431 *" gcc "*) ;;
17432 *) ok=no ;;
17433 esac
17434 case ,${enable_languages}, in
17435 *,c++,*) ;;
17436 *) ok=no ;;
17437 esac
17438 if test $ok = yes; then
17439 # An in-tree tool is available and we can use it
17440 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'
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17442 $as_echo "just compiled" >&6; }
17443 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17444 # We already found the complete path
17445 ac_dir=`dirname $CXX_FOR_TARGET`
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17447 $as_echo "pre-installed in $ac_dir" >&6; }
17448 elif test "x$target" = "x$host"; then
17449 # We can use an host tool
17450 CXX_FOR_TARGET='$(CXX)'
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17452 $as_echo "host tool" >&6; }
17453 else
17454 # We need a cross tool
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17456 $as_echo "pre-installed" >&6; }
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17461 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17462 if test "x${build}" != "x${host}" ; then
17463 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17464 # We already found the complete path
17465 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17467 $as_echo "pre-installed in $ac_dir" >&6; }
17468 else
17469 # Canadian cross, just use what we found
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17471 $as_echo "pre-installed" >&6; }
17473 else
17474 ok=yes
17475 case " ${configdirs} " in
17476 *" gcc "*) ;;
17477 *) ok=no ;;
17478 esac
17479 case ,${enable_languages}, in
17480 *,c++,*) ;;
17481 *) ok=no ;;
17482 esac
17483 if test $ok = yes; then
17484 # An in-tree tool is available and we can use it
17485 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'
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17487 $as_echo "just compiled" >&6; }
17488 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17489 # We already found the complete path
17490 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17492 $as_echo "pre-installed in $ac_dir" >&6; }
17493 elif test "x$target" = "x$host"; then
17494 # We can use an host tool
17495 RAW_CXX_FOR_TARGET='$(CXX)'
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17497 $as_echo "host tool" >&6; }
17498 else
17499 # We need a cross tool
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17501 $as_echo "pre-installed" >&6; }
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17506 $as_echo_n "checking where to find the target dlltool... " >&6; }
17507 if test "x${build}" != "x${host}" ; then
17508 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512 $as_echo "pre-installed in $ac_dir" >&6; }
17513 else
17514 # Canadian cross, just use what we found
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17516 $as_echo "pre-installed" >&6; }
17518 else
17519 ok=yes
17520 case " ${configdirs} " in
17521 *" binutils "*) ;;
17522 *) ok=no ;;
17523 esac
17525 if test $ok = yes; then
17526 # An in-tree tool is available and we can use it
17527 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17529 $as_echo "just compiled" >&6; }
17530 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17531 # We already found the complete path
17532 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17534 $as_echo "pre-installed in $ac_dir" >&6; }
17535 elif test "x$target" = "x$host"; then
17536 # We can use an host tool
17537 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17539 $as_echo "host tool" >&6; }
17540 else
17541 # We need a cross tool
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17543 $as_echo "pre-installed" >&6; }
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17548 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17549 if test "x${build}" != "x${host}" ; then
17550 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17551 # We already found the complete path
17552 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17554 $as_echo "pre-installed in $ac_dir" >&6; }
17555 else
17556 # Canadian cross, just use what we found
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17558 $as_echo "pre-installed" >&6; }
17560 else
17561 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17562 # We already found the complete path
17563 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17565 $as_echo "pre-installed in $ac_dir" >&6; }
17566 elif test "x$target" = "x$host"; then
17567 # We can use an host tool
17568 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17570 $as_echo "host tool" >&6; }
17571 else
17572 # We need a cross tool
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17574 $as_echo "pre-installed" >&6; }
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17579 $as_echo_n "checking where to find the target gcc... " >&6; }
17580 if test "x${build}" != "x${host}" ; then
17581 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17582 # We already found the complete path
17583 ac_dir=`dirname $GCC_FOR_TARGET`
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17585 $as_echo "pre-installed in $ac_dir" >&6; }
17586 else
17587 # Canadian cross, just use what we found
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17589 $as_echo "pre-installed" >&6; }
17591 else
17592 ok=yes
17593 case " ${configdirs} " in
17594 *" gcc "*) ;;
17595 *) ok=no ;;
17596 esac
17598 if test $ok = yes; then
17599 # An in-tree tool is available and we can use it
17600 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17602 $as_echo "just compiled" >&6; }
17603 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17604 # We already found the complete path
17605 ac_dir=`dirname $GCC_FOR_TARGET`
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17607 $as_echo "pre-installed in $ac_dir" >&6; }
17608 elif test "x$target" = "x$host"; then
17609 # We can use an host tool
17610 GCC_FOR_TARGET='$()'
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17612 $as_echo "host tool" >&6; }
17613 else
17614 # We need a cross tool
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17616 $as_echo "pre-installed" >&6; }
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17621 $as_echo_n "checking where to find the target gfortran... " >&6; }
17622 if test "x${build}" != "x${host}" ; then
17623 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17624 # We already found the complete path
17625 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17627 $as_echo "pre-installed in $ac_dir" >&6; }
17628 else
17629 # Canadian cross, just use what we found
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17631 $as_echo "pre-installed" >&6; }
17633 else
17634 ok=yes
17635 case " ${configdirs} " in
17636 *" gcc "*) ;;
17637 *) ok=no ;;
17638 esac
17639 case ,${enable_languages}, in
17640 *,fortran,*) ;;
17641 *) ok=no ;;
17642 esac
17643 if test $ok = yes; then
17644 # An in-tree tool is available and we can use it
17645 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17647 $as_echo "just compiled" >&6; }
17648 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17649 # We already found the complete path
17650 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17652 $as_echo "pre-installed in $ac_dir" >&6; }
17653 elif test "x$target" = "x$host"; then
17654 # We can use an host tool
17655 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17657 $as_echo "host tool" >&6; }
17658 else
17659 # We need a cross tool
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17661 $as_echo "pre-installed" >&6; }
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17666 $as_echo_n "checking where to find the target gccgo... " >&6; }
17667 if test "x${build}" != "x${host}" ; then
17668 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17669 # We already found the complete path
17670 ac_dir=`dirname $GOC_FOR_TARGET`
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17672 $as_echo "pre-installed in $ac_dir" >&6; }
17673 else
17674 # Canadian cross, just use what we found
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17676 $as_echo "pre-installed" >&6; }
17678 else
17679 ok=yes
17680 case " ${configdirs} " in
17681 *" gcc "*) ;;
17682 *) ok=no ;;
17683 esac
17684 case ,${enable_languages}, in
17685 *,go,*) ;;
17686 *) ok=no ;;
17687 esac
17688 if test $ok = yes; then
17689 # An in-tree tool is available and we can use it
17690 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17692 $as_echo "just compiled" >&6; }
17693 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17694 # We already found the complete path
17695 ac_dir=`dirname $GOC_FOR_TARGET`
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17697 $as_echo "pre-installed in $ac_dir" >&6; }
17698 elif test "x$target" = "x$host"; then
17699 # We can use an host tool
17700 GOC_FOR_TARGET='$(GOC)'
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17702 $as_echo "host tool" >&6; }
17703 else
17704 # We need a cross tool
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17706 $as_echo "pre-installed" >&6; }
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17711 $as_echo_n "checking where to find the target gdc... " >&6; }
17712 if test "x${build}" != "x${host}" ; then
17713 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $GDC_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717 $as_echo "pre-installed in $ac_dir" >&6; }
17718 else
17719 # Canadian cross, just use what we found
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17721 $as_echo "pre-installed" >&6; }
17723 else
17724 ok=yes
17725 case " ${configdirs} " in
17726 *" gcc "*) ;;
17727 *) ok=no ;;
17728 esac
17729 case ,${enable_languages}, in
17730 *,d,*) ;;
17731 *) ok=no ;;
17732 esac
17733 if test $ok = yes; then
17734 # An in-tree tool is available and we can use it
17735 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17737 $as_echo "just compiled" >&6; }
17738 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17739 # We already found the complete path
17740 ac_dir=`dirname $GDC_FOR_TARGET`
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17742 $as_echo "pre-installed in $ac_dir" >&6; }
17743 elif test "x$target" = "x$host"; then
17744 # We can use an host tool
17745 GDC_FOR_TARGET='$(GDC)'
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17747 $as_echo "host tool" >&6; }
17748 else
17749 # We need a cross tool
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17751 $as_echo "pre-installed" >&6; }
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17756 $as_echo_n "checking where to find the target ld... " >&6; }
17757 if test "x${build}" != "x${host}" ; then
17758 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $LD_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762 $as_echo "pre-installed in $ac_dir" >&6; }
17763 else
17764 # Canadian cross, just use what we found
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17766 $as_echo "pre-installed" >&6; }
17768 else
17769 ok=yes
17770 case " ${configdirs} " in
17771 *" ld "*) ;;
17772 *) ok=no ;;
17773 esac
17775 if test $ok = yes; then
17776 # An in-tree tool is available and we can use it
17777 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17779 $as_echo "just compiled" >&6; }
17780 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17781 # We already found the complete path
17782 ac_dir=`dirname $LD_FOR_TARGET`
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17784 $as_echo "pre-installed in $ac_dir" >&6; }
17785 elif test "x$target" = "x$host"; then
17786 # We can use an host tool
17787 LD_FOR_TARGET='$(LD)'
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17789 $as_echo "host tool" >&6; }
17790 else
17791 # We need a cross tool
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17793 $as_echo "pre-installed" >&6; }
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17798 $as_echo_n "checking where to find the target lipo... " >&6; }
17799 if test "x${build}" != "x${host}" ; then
17800 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17801 # We already found the complete path
17802 ac_dir=`dirname $LIPO_FOR_TARGET`
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17804 $as_echo "pre-installed in $ac_dir" >&6; }
17805 else
17806 # Canadian cross, just use what we found
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17808 $as_echo "pre-installed" >&6; }
17810 else
17811 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17812 # We already found the complete path
17813 ac_dir=`dirname $LIPO_FOR_TARGET`
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17815 $as_echo "pre-installed in $ac_dir" >&6; }
17816 elif test "x$target" = "x$host"; then
17817 # We can use an host tool
17818 LIPO_FOR_TARGET='$(LIPO)'
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17820 $as_echo "host tool" >&6; }
17821 else
17822 # We need a cross tool
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17824 $as_echo "pre-installed" >&6; }
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17829 $as_echo_n "checking where to find the target nm... " >&6; }
17830 if test "x${build}" != "x${host}" ; then
17831 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17832 # We already found the complete path
17833 ac_dir=`dirname $NM_FOR_TARGET`
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17835 $as_echo "pre-installed in $ac_dir" >&6; }
17836 else
17837 # Canadian cross, just use what we found
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17839 $as_echo "pre-installed" >&6; }
17841 else
17842 ok=yes
17843 case " ${configdirs} " in
17844 *" binutils "*) ;;
17845 *) ok=no ;;
17846 esac
17848 if test $ok = yes; then
17849 # An in-tree tool is available and we can use it
17850 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17852 $as_echo "just compiled" >&6; }
17853 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17854 # We already found the complete path
17855 ac_dir=`dirname $NM_FOR_TARGET`
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17857 $as_echo "pre-installed in $ac_dir" >&6; }
17858 elif test "x$target" = "x$host"; then
17859 # We can use an host tool
17860 NM_FOR_TARGET='$(NM)'
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17862 $as_echo "host tool" >&6; }
17863 else
17864 # We need a cross tool
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17866 $as_echo "pre-installed" >&6; }
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17871 $as_echo_n "checking where to find the target objcopy... " >&6; }
17872 if test "x${build}" != "x${host}" ; then
17873 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17874 # We already found the complete path
17875 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17877 $as_echo "pre-installed in $ac_dir" >&6; }
17878 else
17879 # Canadian cross, just use what we found
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17881 $as_echo "pre-installed" >&6; }
17883 else
17884 ok=yes
17885 case " ${configdirs} " in
17886 *" binutils "*) ;;
17887 *) ok=no ;;
17888 esac
17890 if test $ok = yes; then
17891 # An in-tree tool is available and we can use it
17892 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17894 $as_echo "just compiled" >&6; }
17895 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17896 # We already found the complete path
17897 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17899 $as_echo "pre-installed in $ac_dir" >&6; }
17900 elif test "x$target" = "x$host"; then
17901 # We can use an host tool
17902 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17904 $as_echo "host tool" >&6; }
17905 else
17906 # We need a cross tool
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17908 $as_echo "pre-installed" >&6; }
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17913 $as_echo_n "checking where to find the target objdump... " >&6; }
17914 if test "x${build}" != "x${host}" ; then
17915 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17916 # We already found the complete path
17917 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17919 $as_echo "pre-installed in $ac_dir" >&6; }
17920 else
17921 # Canadian cross, just use what we found
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17923 $as_echo "pre-installed" >&6; }
17925 else
17926 ok=yes
17927 case " ${configdirs} " in
17928 *" binutils "*) ;;
17929 *) ok=no ;;
17930 esac
17932 if test $ok = yes; then
17933 # An in-tree tool is available and we can use it
17934 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17936 $as_echo "just compiled" >&6; }
17937 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17938 # We already found the complete path
17939 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17941 $as_echo "pre-installed in $ac_dir" >&6; }
17942 elif test "x$target" = "x$host"; then
17943 # We can use an host tool
17944 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17946 $as_echo "host tool" >&6; }
17947 else
17948 # We need a cross tool
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17950 $as_echo "pre-installed" >&6; }
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17955 $as_echo_n "checking where to find the target otool... " >&6; }
17956 if test "x${build}" != "x${host}" ; then
17957 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17958 # We already found the complete path
17959 ac_dir=`dirname $OTOOL_FOR_TARGET`
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17961 $as_echo "pre-installed in $ac_dir" >&6; }
17962 else
17963 # Canadian cross, just use what we found
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17965 $as_echo "pre-installed" >&6; }
17967 else
17968 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17969 # We already found the complete path
17970 ac_dir=`dirname $OTOOL_FOR_TARGET`
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17972 $as_echo "pre-installed in $ac_dir" >&6; }
17973 elif test "x$target" = "x$host"; then
17974 # We can use an host tool
17975 OTOOL_FOR_TARGET='$(OTOOL)'
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17977 $as_echo "host tool" >&6; }
17978 else
17979 # We need a cross tool
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17981 $as_echo "pre-installed" >&6; }
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17986 $as_echo_n "checking where to find the target ranlib... " >&6; }
17987 if test "x${build}" != "x${host}" ; then
17988 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17989 # We already found the complete path
17990 ac_dir=`dirname $RANLIB_FOR_TARGET`
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17992 $as_echo "pre-installed in $ac_dir" >&6; }
17993 else
17994 # Canadian cross, just use what we found
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17996 $as_echo "pre-installed" >&6; }
17998 else
17999 ok=yes
18000 case " ${configdirs} " in
18001 *" binutils "*) ;;
18002 *) ok=no ;;
18003 esac
18005 if test $ok = yes; then
18006 # An in-tree tool is available and we can use it
18007 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18009 $as_echo "just compiled" >&6; }
18010 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18011 # We already found the complete path
18012 ac_dir=`dirname $RANLIB_FOR_TARGET`
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18014 $as_echo "pre-installed in $ac_dir" >&6; }
18015 elif test "x$target" = "x$host"; then
18016 # We can use an host tool
18017 RANLIB_FOR_TARGET='$(RANLIB)'
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18019 $as_echo "host tool" >&6; }
18020 else
18021 # We need a cross tool
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18023 $as_echo "pre-installed" >&6; }
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18028 $as_echo_n "checking where to find the target readelf... " >&6; }
18029 if test "x${build}" != "x${host}" ; then
18030 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18031 # We already found the complete path
18032 ac_dir=`dirname $READELF_FOR_TARGET`
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18034 $as_echo "pre-installed in $ac_dir" >&6; }
18035 else
18036 # Canadian cross, just use what we found
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18038 $as_echo "pre-installed" >&6; }
18040 else
18041 ok=yes
18042 case " ${configdirs} " in
18043 *" binutils "*) ;;
18044 *) ok=no ;;
18045 esac
18047 if test $ok = yes; then
18048 # An in-tree tool is available and we can use it
18049 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18051 $as_echo "just compiled" >&6; }
18052 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18053 # We already found the complete path
18054 ac_dir=`dirname $READELF_FOR_TARGET`
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18056 $as_echo "pre-installed in $ac_dir" >&6; }
18057 elif test "x$target" = "x$host"; then
18058 # We can use an host tool
18059 READELF_FOR_TARGET='$(READELF)'
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18061 $as_echo "host tool" >&6; }
18062 else
18063 # We need a cross tool
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18065 $as_echo "pre-installed" >&6; }
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18070 $as_echo_n "checking where to find the target strip... " >&6; }
18071 if test "x${build}" != "x${host}" ; then
18072 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18073 # We already found the complete path
18074 ac_dir=`dirname $STRIP_FOR_TARGET`
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18076 $as_echo "pre-installed in $ac_dir" >&6; }
18077 else
18078 # Canadian cross, just use what we found
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18080 $as_echo "pre-installed" >&6; }
18082 else
18083 ok=yes
18084 case " ${configdirs} " in
18085 *" binutils "*) ;;
18086 *) ok=no ;;
18087 esac
18089 if test $ok = yes; then
18090 # An in-tree tool is available and we can use it
18091 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18093 $as_echo "just compiled" >&6; }
18094 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18095 # We already found the complete path
18096 ac_dir=`dirname $STRIP_FOR_TARGET`
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18098 $as_echo "pre-installed in $ac_dir" >&6; }
18099 elif test "x$target" = "x$host"; then
18100 # We can use an host tool
18101 STRIP_FOR_TARGET='$(STRIP)'
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18103 $as_echo "host tool" >&6; }
18104 else
18105 # We need a cross tool
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18107 $as_echo "pre-installed" >&6; }
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18112 $as_echo_n "checking where to find the target windres... " >&6; }
18113 if test "x${build}" != "x${host}" ; then
18114 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18115 # We already found the complete path
18116 ac_dir=`dirname $WINDRES_FOR_TARGET`
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18118 $as_echo "pre-installed in $ac_dir" >&6; }
18119 else
18120 # Canadian cross, just use what we found
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18122 $as_echo "pre-installed" >&6; }
18124 else
18125 ok=yes
18126 case " ${configdirs} " in
18127 *" binutils "*) ;;
18128 *) ok=no ;;
18129 esac
18131 if test $ok = yes; then
18132 # An in-tree tool is available and we can use it
18133 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18135 $as_echo "just compiled" >&6; }
18136 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18137 # We already found the complete path
18138 ac_dir=`dirname $WINDRES_FOR_TARGET`
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18140 $as_echo "pre-installed in $ac_dir" >&6; }
18141 elif test "x$target" = "x$host"; then
18142 # We can use an host tool
18143 WINDRES_FOR_TARGET='$(WINDRES)'
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18145 $as_echo "host tool" >&6; }
18146 else
18147 # We need a cross tool
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18149 $as_echo "pre-installed" >&6; }
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18154 $as_echo_n "checking where to find the target windmc... " >&6; }
18155 if test "x${build}" != "x${host}" ; then
18156 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18157 # We already found the complete path
18158 ac_dir=`dirname $WINDMC_FOR_TARGET`
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18160 $as_echo "pre-installed in $ac_dir" >&6; }
18161 else
18162 # Canadian cross, just use what we found
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18164 $as_echo "pre-installed" >&6; }
18166 else
18167 ok=yes
18168 case " ${configdirs} " in
18169 *" binutils "*) ;;
18170 *) ok=no ;;
18171 esac
18173 if test $ok = yes; then
18174 # An in-tree tool is available and we can use it
18175 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18177 $as_echo "just compiled" >&6; }
18178 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18179 # We already found the complete path
18180 ac_dir=`dirname $WINDMC_FOR_TARGET`
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18182 $as_echo "pre-installed in $ac_dir" >&6; }
18183 elif test "x$target" = "x$host"; then
18184 # We can use an host tool
18185 WINDMC_FOR_TARGET='$(WINDMC)'
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18187 $as_echo "host tool" >&6; }
18188 else
18189 # We need a cross tool
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18191 $as_echo "pre-installed" >&6; }
18199 # Certain tools may need extra flags.
18200 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18201 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18202 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18204 # When building target libraries, except in a Canadian cross, we use
18205 # the same toolchain as the compiler we just built.
18206 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18207 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18208 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18209 if test $host = $build; then
18210 case " $configdirs " in
18211 *" gcc "*)
18212 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18213 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18214 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18216 esac
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18224 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18225 # Check whether --enable-maintainer-mode was given.
18226 if test "${enable_maintainer_mode+set}" = set; then :
18227 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18228 else
18229 USE_MAINTAINER_MODE=no
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18233 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18236 if test "$USE_MAINTAINER_MODE" = yes; then
18237 MAINTAINER_MODE_TRUE=
18238 MAINTAINER_MODE_FALSE='#'
18239 else
18240 MAINTAINER_MODE_TRUE='#'
18241 MAINTAINER_MODE_FALSE=
18243 MAINT=$MAINTAINER_MODE_TRUE
18245 # ---------------------
18246 # GCC bootstrap support
18247 # ---------------------
18249 # Stage specific cflags for build.
18250 stage1_cflags="-g"
18251 case $build in
18252 vax-*-*)
18253 case ${GCC} in
18254 yes) stage1_cflags="-g -Wa,-J" ;;
18255 *) stage1_cflags="-g -J" ;;
18256 esac ;;
18257 esac
18261 # Enable --enable-checking in stage1 of the compiler.
18262 # Check whether --enable-stage1-checking was given.
18263 if test "${enable_stage1_checking+set}" = set; then :
18264 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18265 else
18266 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18267 # For --disable-checking or implicit --enable-checking=release, avoid
18268 # setting --enable-checking=gc in the default stage1 checking for LTO
18269 # bootstraps. See PR62077.
18270 case $BUILD_CONFIG in
18271 *lto*)
18272 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18274 stage1_checking=--enable-checking=yes,types;;
18275 esac
18276 if test "x$enable_checking" = x && \
18277 test -d ${srcdir}/gcc && \
18278 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18279 stage1_checking=--enable-checking=yes,types,extra
18281 else
18282 stage1_checking=--enable-checking=$enable_checking,types
18288 # Enable -Werror in bootstrap stage2 and later.
18289 # Check whether --enable-werror was given.
18290 if test "${enable_werror+set}" = set; then :
18291 enableval=$enable_werror;
18292 case ${enable_werror} in
18293 yes) stage2_werror_flag="--enable-werror-always" ;;
18294 *) stage2_werror_flag="" ;;
18295 esac
18297 else
18299 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18300 case $BUILD_CONFIG in
18301 bootstrap-debug)
18302 stage2_werror_flag="--enable-werror-always" ;;
18304 stage2_werror_flag="--enable-werror-always" ;;
18305 esac
18313 # Specify what files to not compare during bootstrap.
18315 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18316 case "$target" in
18317 hppa*64*-*-hpux*) ;;
18318 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18319 esac
18322 ac_config_files="$ac_config_files Makefile"
18324 cat >confcache <<\_ACEOF
18325 # This file is a shell script that caches the results of configure
18326 # tests run on this system so they can be shared between configure
18327 # scripts and configure runs, see configure's option --config-cache.
18328 # It is not useful on other systems. If it contains results you don't
18329 # want to keep, you may remove or edit it.
18331 # config.status only pays attention to the cache file if you give it
18332 # the --recheck option to rerun configure.
18334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18336 # following values.
18338 _ACEOF
18340 # The following way of writing the cache mishandles newlines in values,
18341 # but we know of no workaround that is simple, portable, and efficient.
18342 # So, we kill variables containing newlines.
18343 # Ultrix sh set writes to stderr and can't be redirected directly,
18344 # and sets the high bit in the cache file unless we assign to the vars.
18346 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18347 eval ac_val=\$$ac_var
18348 case $ac_val in #(
18349 *${as_nl}*)
18350 case $ac_var in #(
18351 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18352 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18353 esac
18354 case $ac_var in #(
18355 _ | IFS | as_nl) ;; #(
18356 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18357 *) { eval $ac_var=; unset $ac_var;} ;;
18358 esac ;;
18359 esac
18360 done
18362 (set) 2>&1 |
18363 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18364 *${as_nl}ac_space=\ *)
18365 # `set' does not quote correctly, so add quotes: double-quote
18366 # substitution turns \\\\ into \\, and sed turns \\ into \.
18367 sed -n \
18368 "s/'/'\\\\''/g;
18369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18370 ;; #(
18372 # `set' quotes correctly as required by POSIX, so do not add quotes.
18373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18375 esac |
18376 sort
18378 sed '
18379 /^ac_cv_env_/b end
18380 t clear
18381 :clear
18382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18383 t end
18384 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18385 :end' >>confcache
18386 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18387 if test -w "$cache_file"; then
18388 if test "x$cache_file" != "x/dev/null"; then
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18390 $as_echo "$as_me: updating cache $cache_file" >&6;}
18391 if test ! -f "$cache_file" || test -h "$cache_file"; then
18392 cat confcache >"$cache_file"
18393 else
18394 case $cache_file in #(
18395 */* | ?:*)
18396 mv -f confcache "$cache_file"$$ &&
18397 mv -f "$cache_file"$$ "$cache_file" ;; #(
18399 mv -f confcache "$cache_file" ;;
18400 esac
18403 else
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18405 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18408 rm -f confcache
18410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18411 # Let make expand exec_prefix.
18412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18414 # Transform confdefs.h into DEFS.
18415 # Protect against shell expansion while executing Makefile rules.
18416 # Protect against Makefile macro expansion.
18418 # If the first sed substitution is executed (which looks for macros that
18419 # take arguments), then branch to the quote section. Otherwise,
18420 # look for a macro that doesn't take arguments.
18421 ac_script='
18422 :mline
18423 /\\$/{
18425 s,\\\n,,
18426 b mline
18428 t clear
18429 :clear
18430 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18431 t quote
18432 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18433 t quote
18434 b any
18435 :quote
18436 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18437 s/\[/\\&/g
18438 s/\]/\\&/g
18439 s/\$/$$/g
18441 :any
18444 s/^\n//
18445 s/\n/ /g
18449 DEFS=`sed -n "$ac_script" confdefs.h`
18452 ac_libobjs=
18453 ac_ltlibobjs=
18455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18456 # 1. Remove the extension, and $U if already installed.
18457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18460 # will be set to the directory where LIBOBJS objects are built.
18461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18463 done
18464 LIBOBJS=$ac_libobjs
18466 LTLIBOBJS=$ac_ltlibobjs
18470 : "${CONFIG_STATUS=./config.status}"
18471 ac_write_fail=0
18472 ac_clean_files_save=$ac_clean_files
18473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18475 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18476 as_write_fail=0
18477 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18478 #! $SHELL
18479 # Generated by $as_me.
18480 # Run this file to recreate the current configuration.
18481 # Compiler output produced by configure, useful for debugging
18482 # configure, is in config.log if it exists.
18484 debug=false
18485 ac_cs_recheck=false
18486 ac_cs_silent=false
18488 SHELL=\${CONFIG_SHELL-$SHELL}
18489 export SHELL
18490 _ASEOF
18491 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18492 ## -------------------- ##
18493 ## M4sh Initialization. ##
18494 ## -------------------- ##
18496 # Be more Bourne compatible
18497 DUALCASE=1; export DUALCASE # for MKS sh
18498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18499 emulate sh
18500 NULLCMD=:
18501 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18502 # is contrary to our usage. Disable this feature.
18503 alias -g '${1+"$@"}'='"$@"'
18504 setopt NO_GLOB_SUBST
18505 else
18506 case `(set -o) 2>/dev/null` in #(
18507 *posix*) :
18508 set -o posix ;; #(
18509 *) :
18511 esac
18515 as_nl='
18517 export as_nl
18518 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18519 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18522 # Prefer a ksh shell builtin over an external printf program on Solaris,
18523 # but without wasting forks for bash or zsh.
18524 if test -z "$BASH_VERSION$ZSH_VERSION" \
18525 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18526 as_echo='print -r --'
18527 as_echo_n='print -rn --'
18528 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18529 as_echo='printf %s\n'
18530 as_echo_n='printf %s'
18531 else
18532 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18533 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18534 as_echo_n='/usr/ucb/echo -n'
18535 else
18536 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18537 as_echo_n_body='eval
18538 arg=$1;
18539 case $arg in #(
18540 *"$as_nl"*)
18541 expr "X$arg" : "X\\(.*\\)$as_nl";
18542 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18543 esac;
18544 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18546 export as_echo_n_body
18547 as_echo_n='sh -c $as_echo_n_body as_echo'
18549 export as_echo_body
18550 as_echo='sh -c $as_echo_body as_echo'
18553 # The user is always right.
18554 if test "${PATH_SEPARATOR+set}" != set; then
18555 PATH_SEPARATOR=:
18556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18557 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18558 PATH_SEPARATOR=';'
18563 # IFS
18564 # We need space, tab and new line, in precisely that order. Quoting is
18565 # there to prevent editors from complaining about space-tab.
18566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18567 # splitting by setting IFS to empty value.)
18568 IFS=" "" $as_nl"
18570 # Find who we are. Look in the path if we contain no directory separator.
18571 as_myself=
18572 case $0 in #((
18573 *[\\/]* ) as_myself=$0 ;;
18574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18577 IFS=$as_save_IFS
18578 test -z "$as_dir" && as_dir=.
18579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18580 done
18581 IFS=$as_save_IFS
18584 esac
18585 # We did not find ourselves, most probably we were run as `sh COMMAND'
18586 # in which case we are not to be found in the path.
18587 if test "x$as_myself" = x; then
18588 as_myself=$0
18590 if test ! -f "$as_myself"; then
18591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18592 exit 1
18595 # Unset variables that we do not need and which cause bugs (e.g. in
18596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18597 # suppresses any "Segmentation fault" message there. '((' could
18598 # trigger a bug in pdksh 5.2.14.
18599 for as_var in BASH_ENV ENV MAIL MAILPATH
18600 do eval test x\${$as_var+set} = xset \
18601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18602 done
18603 PS1='$ '
18604 PS2='> '
18605 PS4='+ '
18607 # NLS nuisances.
18608 LC_ALL=C
18609 export LC_ALL
18610 LANGUAGE=C
18611 export LANGUAGE
18613 # CDPATH.
18614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18617 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18618 # ----------------------------------------
18619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18621 # script with STATUS, using 1 if that was 0.
18622 as_fn_error ()
18624 as_status=$1; test $as_status -eq 0 && as_status=1
18625 if test "$4"; then
18626 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18629 $as_echo "$as_me: error: $2" >&2
18630 as_fn_exit $as_status
18631 } # as_fn_error
18634 # as_fn_set_status STATUS
18635 # -----------------------
18636 # Set $? to STATUS, without forking.
18637 as_fn_set_status ()
18639 return $1
18640 } # as_fn_set_status
18642 # as_fn_exit STATUS
18643 # -----------------
18644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18645 as_fn_exit ()
18647 set +e
18648 as_fn_set_status $1
18649 exit $1
18650 } # as_fn_exit
18652 # as_fn_unset VAR
18653 # ---------------
18654 # Portably unset VAR.
18655 as_fn_unset ()
18657 { eval $1=; unset $1;}
18659 as_unset=as_fn_unset
18660 # as_fn_append VAR VALUE
18661 # ----------------------
18662 # Append the text in VALUE to the end of the definition contained in VAR. Take
18663 # advantage of any shell optimizations that allow amortized linear growth over
18664 # repeated appends, instead of the typical quadratic growth present in naive
18665 # implementations.
18666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18667 eval 'as_fn_append ()
18669 eval $1+=\$2
18671 else
18672 as_fn_append ()
18674 eval $1=\$$1\$2
18676 fi # as_fn_append
18678 # as_fn_arith ARG...
18679 # ------------------
18680 # Perform arithmetic evaluation on the ARGs, and store the result in the
18681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18682 # must be portable across $(()) and expr.
18683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18684 eval 'as_fn_arith ()
18686 as_val=$(( $* ))
18688 else
18689 as_fn_arith ()
18691 as_val=`expr "$@" || test $? -eq 1`
18693 fi # as_fn_arith
18696 if expr a : '\(a\)' >/dev/null 2>&1 &&
18697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18698 as_expr=expr
18699 else
18700 as_expr=false
18703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18704 as_basename=basename
18705 else
18706 as_basename=false
18709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18710 as_dirname=dirname
18711 else
18712 as_dirname=false
18715 as_me=`$as_basename -- "$0" ||
18716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18717 X"$0" : 'X\(//\)$' \| \
18718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18719 $as_echo X/"$0" |
18720 sed '/^.*\/\([^/][^/]*\)\/*$/{
18721 s//\1/
18724 /^X\/\(\/\/\)$/{
18725 s//\1/
18728 /^X\/\(\/\).*/{
18729 s//\1/
18732 s/.*/./; q'`
18734 # Avoid depending upon Character Ranges.
18735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18738 as_cr_digits='0123456789'
18739 as_cr_alnum=$as_cr_Letters$as_cr_digits
18741 ECHO_C= ECHO_N= ECHO_T=
18742 case `echo -n x` in #(((((
18743 -n*)
18744 case `echo 'xy\c'` in
18745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18746 xy) ECHO_C='\c';;
18747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18748 ECHO_T=' ';;
18749 esac;;
18751 ECHO_N='-n';;
18752 esac
18754 rm -f conf$$ conf$$.exe conf$$.file
18755 if test -d conf$$.dir; then
18756 rm -f conf$$.dir/conf$$.file
18757 else
18758 rm -f conf$$.dir
18759 mkdir conf$$.dir 2>/dev/null
18761 if (echo >conf$$.file) 2>/dev/null; then
18762 if ln -s conf$$.file conf$$ 2>/dev/null; then
18763 as_ln_s='ln -s'
18764 # ... but there are two gotchas:
18765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18767 # In both cases, we have to default to `cp -pR'.
18768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18769 as_ln_s='cp -pR'
18770 elif ln conf$$.file conf$$ 2>/dev/null; then
18771 as_ln_s=ln
18772 else
18773 as_ln_s='cp -pR'
18775 else
18776 as_ln_s='cp -pR'
18778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18779 rmdir conf$$.dir 2>/dev/null
18782 # as_fn_mkdir_p
18783 # -------------
18784 # Create "$as_dir" as a directory, including parents if necessary.
18785 as_fn_mkdir_p ()
18788 case $as_dir in #(
18789 -*) as_dir=./$as_dir;;
18790 esac
18791 test -d "$as_dir" || eval $as_mkdir_p || {
18792 as_dirs=
18793 while :; do
18794 case $as_dir in #(
18795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18796 *) as_qdir=$as_dir;;
18797 esac
18798 as_dirs="'$as_qdir' $as_dirs"
18799 as_dir=`$as_dirname -- "$as_dir" ||
18800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18801 X"$as_dir" : 'X\(//\)[^/]' \| \
18802 X"$as_dir" : 'X\(//\)$' \| \
18803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18804 $as_echo X"$as_dir" |
18805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18806 s//\1/
18809 /^X\(\/\/\)[^/].*/{
18810 s//\1/
18813 /^X\(\/\/\)$/{
18814 s//\1/
18817 /^X\(\/\).*/{
18818 s//\1/
18821 s/.*/./; q'`
18822 test -d "$as_dir" && break
18823 done
18824 test -z "$as_dirs" || eval "mkdir $as_dirs"
18825 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18828 } # as_fn_mkdir_p
18829 if mkdir -p . 2>/dev/null; then
18830 as_mkdir_p='mkdir -p "$as_dir"'
18831 else
18832 test -d ./-p && rmdir ./-p
18833 as_mkdir_p=false
18837 # as_fn_executable_p FILE
18838 # -----------------------
18839 # Test if FILE is an executable regular file.
18840 as_fn_executable_p ()
18842 test -f "$1" && test -x "$1"
18843 } # as_fn_executable_p
18844 as_test_x='test -x'
18845 as_executable_p=as_fn_executable_p
18847 # Sed expression to map a string onto a valid CPP name.
18848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18850 # Sed expression to map a string onto a valid variable name.
18851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18854 exec 6>&1
18855 ## ----------------------------------- ##
18856 ## Main body of $CONFIG_STATUS script. ##
18857 ## ----------------------------------- ##
18858 _ASEOF
18859 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18862 # Save the log message, to keep $0 and so on meaningful, and to
18863 # report actual input values of CONFIG_FILES etc. instead of their
18864 # values after options handling.
18865 ac_log="
18866 This file was extended by $as_me, which was
18867 generated by GNU Autoconf 2.69. Invocation command line was
18869 CONFIG_FILES = $CONFIG_FILES
18870 CONFIG_HEADERS = $CONFIG_HEADERS
18871 CONFIG_LINKS = $CONFIG_LINKS
18872 CONFIG_COMMANDS = $CONFIG_COMMANDS
18873 $ $0 $@
18875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18878 _ACEOF
18880 case $ac_config_files in *"
18881 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18882 esac
18886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18887 # Files that config.status was made for.
18888 config_files="$ac_config_files"
18890 _ACEOF
18892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18893 ac_cs_usage="\
18894 \`$as_me' instantiates files and other configuration actions
18895 from templates according to the current configuration. Unless the files
18896 and actions are specified as TAGs, all are instantiated by default.
18898 Usage: $0 [OPTION]... [TAG]...
18900 -h, --help print this help, then exit
18901 -V, --version print version number and configuration settings, then exit
18902 --config print configuration, then exit
18903 -q, --quiet, --silent
18904 do not print progress messages
18905 -d, --debug don't remove temporary files
18906 --recheck update $as_me by reconfiguring in the same conditions
18907 --file=FILE[:TEMPLATE]
18908 instantiate the configuration file FILE
18910 Configuration files:
18911 $config_files
18913 Report bugs to the package provider."
18915 _ACEOF
18916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18917 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18918 ac_cs_version="\\
18919 config.status
18920 configured by $0, generated by GNU Autoconf 2.69,
18921 with options \\"\$ac_cs_config\\"
18923 Copyright (C) 2012 Free Software Foundation, Inc.
18924 This config.status script is free software; the Free Software Foundation
18925 gives unlimited permission to copy, distribute and modify it."
18927 ac_pwd='$ac_pwd'
18928 srcdir='$srcdir'
18929 INSTALL='$INSTALL'
18930 AWK='$AWK'
18931 test -n "\$AWK" || AWK=awk
18932 _ACEOF
18934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18935 # The default lists apply if the user does not specify any file.
18936 ac_need_defaults=:
18937 while test $# != 0
18939 case $1 in
18940 --*=?*)
18941 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18942 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18943 ac_shift=:
18945 --*=)
18946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18947 ac_optarg=
18948 ac_shift=:
18951 ac_option=$1
18952 ac_optarg=$2
18953 ac_shift=shift
18955 esac
18957 case $ac_option in
18958 # Handling of the options.
18959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18960 ac_cs_recheck=: ;;
18961 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18962 $as_echo "$ac_cs_version"; exit ;;
18963 --config | --confi | --conf | --con | --co | --c )
18964 $as_echo "$ac_cs_config"; exit ;;
18965 --debug | --debu | --deb | --de | --d | -d )
18966 debug=: ;;
18967 --file | --fil | --fi | --f )
18968 $ac_shift
18969 case $ac_optarg in
18970 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18971 '') as_fn_error $? "missing file argument" ;;
18972 esac
18973 as_fn_append CONFIG_FILES " '$ac_optarg'"
18974 ac_need_defaults=false;;
18975 --he | --h | --help | --hel | -h )
18976 $as_echo "$ac_cs_usage"; exit ;;
18977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18978 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18979 ac_cs_silent=: ;;
18981 # This is an error.
18982 -*) as_fn_error $? "unrecognized option: \`$1'
18983 Try \`$0 --help' for more information." ;;
18985 *) as_fn_append ac_config_targets " $1"
18986 ac_need_defaults=false ;;
18988 esac
18989 shift
18990 done
18992 ac_configure_extra_args=
18994 if $ac_cs_silent; then
18995 exec 6>/dev/null
18996 ac_configure_extra_args="$ac_configure_extra_args --silent"
18999 _ACEOF
19000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19001 if \$ac_cs_recheck; then
19002 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19003 shift
19004 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19005 CONFIG_SHELL='$SHELL'
19006 export CONFIG_SHELL
19007 exec "\$@"
19010 _ACEOF
19011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19012 exec 5>>config.log
19014 echo
19015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19016 ## Running $as_me. ##
19017 _ASBOX
19018 $as_echo "$ac_log"
19019 } >&5
19021 _ACEOF
19022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19024 # INIT-COMMANDS
19026 extrasub_build="$extrasub_build"
19027 extrasub_host="$extrasub_host"
19028 extrasub_target="$extrasub_target"
19030 _ACEOF
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19034 # Handling of arguments.
19035 for ac_config_target in $ac_config_targets
19037 case $ac_config_target in
19038 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19040 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19041 esac
19042 done
19045 # If the user did not use the arguments to specify the items to instantiate,
19046 # then the envvar interface is used. Set only those that are not.
19047 # We use the long form for the default assignment because of an extremely
19048 # bizarre bug on SunOS 4.1.3.
19049 if $ac_need_defaults; then
19050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19053 # Have a temporary directory for convenience. Make it in the build tree
19054 # simply because there is no reason against having it here, and in addition,
19055 # creating and moving files from /tmp can sometimes cause problems.
19056 # Hook for its removal unless debugging.
19057 # Note that there is a small window in which the directory will not be cleaned:
19058 # after its creation but before its name has been assigned to `$tmp'.
19059 $debug ||
19061 tmp= ac_tmp=
19062 trap 'exit_status=$?
19063 : "${ac_tmp:=$tmp}"
19064 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19066 trap 'as_fn_exit 1' 1 2 13 15
19068 # Create a (secure) tmp directory for tmp files.
19071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19072 test -d "$tmp"
19073 } ||
19075 tmp=./conf$$-$RANDOM
19076 (umask 077 && mkdir "$tmp")
19077 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19078 ac_tmp=$tmp
19080 # Set up the scripts for CONFIG_FILES section.
19081 # No need to generate them if there are no CONFIG_FILES.
19082 # This happens for instance with `./config.status config.h'.
19083 if test -n "$CONFIG_FILES"; then
19085 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19086 ac_cs_awk_getline=:
19087 ac_cs_awk_pipe_init=
19088 ac_cs_awk_read_file='
19089 while ((getline aline < (F[key])) > 0)
19090 print(aline)
19091 close(F[key])'
19092 ac_cs_awk_pipe_fini=
19093 else
19094 ac_cs_awk_getline=false
19095 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19096 ac_cs_awk_read_file='
19097 print "|#_!!_#|"
19098 print "cat " F[key] " &&"
19099 '$ac_cs_awk_pipe_init
19100 # The final `:' finishes the AND list.
19101 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19103 ac_cr=`echo X | tr X '\015'`
19104 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19105 # But we know of no other shell where ac_cr would be empty at this
19106 # point, so we can use a bashism as a fallback.
19107 if test "x$ac_cr" = x; then
19108 eval ac_cr=\$\'\\r\'
19110 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19111 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19112 ac_cs_awk_cr='\\r'
19113 else
19114 ac_cs_awk_cr=$ac_cr
19117 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19118 _ACEOF
19120 # Create commands to substitute file output variables.
19122 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19123 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19124 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19125 echo "_ACAWK" &&
19126 echo "_ACEOF"
19127 } >conf$$files.sh &&
19128 . ./conf$$files.sh ||
19129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19130 rm -f conf$$files.sh
19133 echo "cat >conf$$subs.awk <<_ACEOF" &&
19134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19135 echo "_ACEOF"
19136 } >conf$$subs.sh ||
19137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19139 ac_delim='%!_!# '
19140 for ac_last_try in false false false false false :; do
19141 . ./conf$$subs.sh ||
19142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19145 if test $ac_delim_n = $ac_delim_num; then
19146 break
19147 elif $ac_last_try; then
19148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19149 else
19150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19152 done
19153 rm -f conf$$subs.sh
19155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19156 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19157 _ACEOF
19158 sed -n '
19160 s/^/S["/; s/!.*/"]=/
19163 s/^[^!]*!//
19164 :repl
19165 t repl
19166 s/'"$ac_delim"'$//
19167 t delim
19170 s/\(.\{148\}\)..*/\1/
19171 t more1
19172 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19175 b repl
19176 :more1
19177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19180 s/.\{148\}//
19181 t nl
19182 :delim
19184 s/\(.\{148\}\)..*/\1/
19185 t more2
19186 s/["\\]/\\&/g; s/^/"/; s/$/"/
19189 :more2
19190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19193 s/.\{148\}//
19194 t delim
19195 ' <conf$$subs.awk | sed '
19196 /^[^""]/{
19198 s/\n//
19200 ' >>$CONFIG_STATUS || ac_write_fail=1
19201 rm -f conf$$subs.awk
19202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19203 _ACAWK
19204 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19205 for (key in S) S_is_set[key] = 1
19206 FS = "\a"
19207 \$ac_cs_awk_pipe_init
19210 line = $ 0
19211 nfields = split(line, field, "@")
19212 substed = 0
19213 len = length(field[1])
19214 for (i = 2; i < nfields; i++) {
19215 key = field[i]
19216 keylen = length(key)
19217 if (S_is_set[key]) {
19218 value = S[key]
19219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19220 len += length(value) + length(field[++i])
19221 substed = 1
19222 } else
19223 len += 1 + keylen
19225 if (nfields == 3 && !substed) {
19226 key = field[2]
19227 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19228 \$ac_cs_awk_read_file
19229 next
19232 print line
19234 \$ac_cs_awk_pipe_fini
19235 _ACAWK
19236 _ACEOF
19237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19240 else
19242 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19243 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19244 _ACEOF
19246 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19247 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19248 # trailing colons and then remove the whole line if VPATH becomes empty
19249 # (actually we leave an empty line to preserve line numbers).
19250 if test "x$srcdir" = x.; then
19251 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19253 s///
19254 s/^/:/
19255 s/[ ]*$/:/
19256 s/:\$(srcdir):/:/g
19257 s/:\${srcdir}:/:/g
19258 s/:@srcdir@:/:/g
19259 s/^:*//
19260 s/:*$//
19262 s/\(=[ ]*\).*/\1/
19264 s/\n//
19265 s/^[^=]*=[ ]*$//
19269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19270 fi # test -n "$CONFIG_FILES"
19273 eval set X " :F $CONFIG_FILES "
19274 shift
19275 for ac_tag
19277 case $ac_tag in
19278 :[FHLC]) ac_mode=$ac_tag; continue;;
19279 esac
19280 case $ac_mode$ac_tag in
19281 :[FHL]*:*);;
19282 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19283 :[FH]-) ac_tag=-:-;;
19284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19285 esac
19286 ac_save_IFS=$IFS
19287 IFS=:
19288 set x $ac_tag
19289 IFS=$ac_save_IFS
19290 shift
19291 ac_file=$1
19292 shift
19294 case $ac_mode in
19295 :L) ac_source=$1;;
19296 :[FH])
19297 ac_file_inputs=
19298 for ac_f
19300 case $ac_f in
19301 -) ac_f="$ac_tmp/stdin";;
19302 *) # Look for the file first in the build tree, then in the source tree
19303 # (if the path is not absolute). The absolute path cannot be DOS-style,
19304 # because $ac_f cannot contain `:'.
19305 test -f "$ac_f" ||
19306 case $ac_f in
19307 [\\/$]*) false;;
19308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19309 esac ||
19310 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19311 esac
19312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19313 as_fn_append ac_file_inputs " '$ac_f'"
19314 done
19316 # Let's still pretend it is `configure' which instantiates (i.e., don't
19317 # use $as_me), people would be surprised to read:
19318 # /* config.h. Generated by config.status. */
19319 configure_input='Generated from '`
19320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19321 `' by configure.'
19322 if test x"$ac_file" != x-; then
19323 configure_input="$ac_file. $configure_input"
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19325 $as_echo "$as_me: creating $ac_file" >&6;}
19327 # Neutralize special characters interpreted by sed in replacement strings.
19328 case $configure_input in #(
19329 *\&* | *\|* | *\\* )
19330 ac_sed_conf_input=`$as_echo "$configure_input" |
19331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19332 *) ac_sed_conf_input=$configure_input;;
19333 esac
19335 case $ac_tag in
19336 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19338 esac
19340 esac
19342 ac_dir=`$as_dirname -- "$ac_file" ||
19343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19344 X"$ac_file" : 'X\(//\)[^/]' \| \
19345 X"$ac_file" : 'X\(//\)$' \| \
19346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19347 $as_echo X"$ac_file" |
19348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19349 s//\1/
19352 /^X\(\/\/\)[^/].*/{
19353 s//\1/
19356 /^X\(\/\/\)$/{
19357 s//\1/
19360 /^X\(\/\).*/{
19361 s//\1/
19364 s/.*/./; q'`
19365 as_dir="$ac_dir"; as_fn_mkdir_p
19366 ac_builddir=.
19368 case "$ac_dir" in
19369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19372 # A ".." for each directory in $ac_dir_suffix.
19373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19374 case $ac_top_builddir_sub in
19375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19377 esac ;;
19378 esac
19379 ac_abs_top_builddir=$ac_pwd
19380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19381 # for backward compatibility:
19382 ac_top_builddir=$ac_top_build_prefix
19384 case $srcdir in
19385 .) # We are building in place.
19386 ac_srcdir=.
19387 ac_top_srcdir=$ac_top_builddir_sub
19388 ac_abs_top_srcdir=$ac_pwd ;;
19389 [\\/]* | ?:[\\/]* ) # Absolute name.
19390 ac_srcdir=$srcdir$ac_dir_suffix;
19391 ac_top_srcdir=$srcdir
19392 ac_abs_top_srcdir=$srcdir ;;
19393 *) # Relative name.
19394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19395 ac_top_srcdir=$ac_top_build_prefix$srcdir
19396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19397 esac
19398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19401 case $ac_mode in
19404 # CONFIG_FILE
19407 case $INSTALL in
19408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19410 esac
19411 _ACEOF
19413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19414 # If the template does not know about datarootdir, expand it.
19415 # FIXME: This hack should be removed a few years after 2.60.
19416 ac_datarootdir_hack=; ac_datarootdir_seen=
19417 ac_sed_dataroot='
19418 /datarootdir/ {
19422 /@datadir@/p
19423 /@docdir@/p
19424 /@infodir@/p
19425 /@localedir@/p
19426 /@mandir@/p'
19427 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19428 *datarootdir*) ac_datarootdir_seen=yes;;
19429 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19431 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19432 _ACEOF
19433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19434 ac_datarootdir_hack='
19435 s&@datadir@&$datadir&g
19436 s&@docdir@&$docdir&g
19437 s&@infodir@&$infodir&g
19438 s&@localedir@&$localedir&g
19439 s&@mandir@&$mandir&g
19440 s&\\\${datarootdir}&$datarootdir&g' ;;
19441 esac
19442 _ACEOF
19444 # Neutralize VPATH when `$srcdir' = `.'.
19445 # Shell code in configure.ac might set extrasub.
19446 # FIXME: do we really want to maintain this feature?
19447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19448 ac_sed_extra="$ac_vpsub
19449 $extrasub
19450 _ACEOF
19451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19454 s|@configure_input@|$ac_sed_conf_input|;t t
19455 s&@top_builddir@&$ac_top_builddir_sub&;t t
19456 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19457 s&@srcdir@&$ac_srcdir&;t t
19458 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19459 s&@top_srcdir@&$ac_top_srcdir&;t t
19460 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19461 s&@builddir@&$ac_builddir&;t t
19462 s&@abs_builddir@&$ac_abs_builddir&;t t
19463 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19464 s&@INSTALL@&$ac_INSTALL&;t t
19465 $ac_datarootdir_hack
19467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19468 if $ac_cs_awk_getline; then
19469 $AWK -f "$ac_tmp/subs.awk"
19470 else
19471 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19472 fi \
19473 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19476 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19478 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19480 which seems to be undefined. Please make sure it is defined" >&5
19481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19482 which seems to be undefined. Please make sure it is defined" >&2;}
19484 rm -f "$ac_tmp/stdin"
19485 case $ac_file in
19486 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19487 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19488 esac \
19489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19494 esac
19497 case $ac_file$ac_mode in
19498 "Makefile":F) sed "$extrasub_build" Makefile |
19499 sed "$extrasub_host" |
19500 sed "$extrasub_target" > mf$$
19501 mv -f mf$$ Makefile ;;
19503 esac
19504 done # for ac_tag
19507 as_fn_exit 0
19508 _ACEOF
19509 ac_clean_files=$ac_clean_files_save
19511 test $ac_write_fail = 0 ||
19512 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19515 # configure is writing to config.log, and then calls config.status.
19516 # config.status does its own redirection, appending to config.log.
19517 # Unfortunately, on DOS this fails, as config.log is still kept open
19518 # by configure, so config.status won't be able to write to it; its
19519 # output is simply discarded. So we exec the FD to /dev/null,
19520 # effectively closing config.log, so it can be properly (re)opened and
19521 # appended to by config.status. When coming back to configure, we
19522 # need to make the FD available again.
19523 if test "$no_create" != yes; then
19524 ac_cs_success=:
19525 ac_config_status_args=
19526 test "$silent" = yes &&
19527 ac_config_status_args="$ac_config_status_args --quiet"
19528 exec 5>/dev/null
19529 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19530 exec 5>>config.log
19531 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19532 # would make configure fail if this is the last instruction.
19533 $ac_cs_success || as_fn_exit 1
19535 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19537 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}