Daily bump.
[official-gcc.git] / configure
blob4ae8e1242afae5e65990af909cb0a027aa00bbf7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 PKG_CONFIG_PATH
626 GDCFLAGS
627 READELF
628 OTOOL
629 OBJDUMP
630 OBJCOPY
631 WINDMC
632 WINDRES
633 STRIP
634 RANLIB
636 LIPO
638 DSYMUTIL
639 DLLTOOL
642 RUNTEST
643 EXPECT
644 MAKEINFO
645 FLEX
648 BISON
649 YACC
650 WINDRES_FOR_BUILD
651 WINDMC_FOR_BUILD
652 RANLIB_FOR_BUILD
653 NM_FOR_BUILD
654 LD_FOR_BUILD
655 LDFLAGS_FOR_BUILD
656 GDC_FOR_BUILD
657 GOC_FOR_BUILD
658 GFORTRAN_FOR_BUILD
659 DSYMUTIL_FOR_BUILD
660 DLLTOOL_FOR_BUILD
661 CXX_FOR_BUILD
662 CXXFLAGS_FOR_BUILD
663 CPPFLAGS_FOR_BUILD
664 CPP_FOR_BUILD
665 CFLAGS_FOR_BUILD
666 CC_FOR_BUILD
667 AS_FOR_BUILD
668 AR_FOR_BUILD
669 target_configdirs
670 configdirs
671 build_configdirs
672 INSTALL_GDB_TK
673 GDB_TK
674 CONFIGURE_GDB_TK
675 build_tooldir
676 tooldir
677 GCC_SHLIB_SUBDIR
678 RPATH_ENVVAR
679 target_configargs
680 host_configargs
681 build_configargs
682 BUILD_CONFIG
683 LDFLAGS_FOR_TARGET
684 CXXFLAGS_FOR_TARGET
685 CFLAGS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
688 get_gcc_base_ver
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
691 stage1_languages
692 host_libs_picflag
693 CRAB1_LIBS
694 enable_libgdiagnostics
695 PICFLAG
696 host_shared
697 gcc_host_pie
698 host_pie
699 extra_linker_plugin_flags
700 extra_linker_plugin_configure_flags
701 islinc
702 isllibs
703 poststage1_ldflags
704 poststage1_libs
705 stage1_ldflags
706 stage1_libs
707 extra_isl_gmp_configure_flags
708 extra_mpc_mpfr_configure_flags
709 extra_mpc_gmp_configure_flags
710 extra_mpfr_configure_flags
711 gmpinc
712 gmplibs
713 PGO_BUILD_LTO_CFLAGS
714 PGO_BUILD_USE_CFLAGS
715 PGO_BUILD_GEN_CFLAGS
716 HAVE_CXX14_FOR_BUILD
717 HAVE_CXX14
718 do_compare
719 CARGO
721 GNATMAKE
722 GNATBIND
723 ac_ct_CXX
724 CXXFLAGS
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
733 target_subdir
734 host_subdir
735 build_subdir
736 build_libsubdir
739 LN_S
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 target_noncanonical
753 host_noncanonical
754 build_noncanonical
755 build_os
756 build_vendor
757 build_cpu
758 build
759 TOPLEVEL_CONFIGURE_ARGUMENTS
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files='serialization_dependencies
799 host_makefile_frag
800 target_makefile_frag
801 alphaieee_frag
802 ospace_frag'
803 ac_user_opts='
804 enable_option_checking
805 with_build_libsubdir
806 with_system_zlib
807 with_zstd
808 enable_as_accelerator_for
809 enable_offload_targets
810 enable_offload_defaulted
811 enable_gold
812 enable_ld
813 enable_gprofng
814 enable_compressed_debug_sections
815 enable_default_compressed_debug_sections_algorithm
816 enable_year2038
817 enable_libquadmath
818 enable_libquadmath_support
819 enable_libada
820 enable_libgm2
821 enable_libssp
822 enable_libstdcxx
823 enable_bootstrap
824 enable_pgo_build
825 with_mpc
826 with_mpc_include
827 with_mpc_lib
828 with_mpfr
829 with_mpfr_include
830 with_mpfr_lib
831 with_gmp
832 with_gmp_include
833 with_gmp_lib
834 with_stage1_libs
835 with_static_standard_libraries
836 with_stage1_ldflags
837 with_boot_libs
838 with_boot_ldflags
839 with_isl
840 with_isl_include
841 with_isl_lib
842 enable_isl_version_check
843 enable_lto
844 enable_linker_plugin_configure_flags
845 enable_linker_plugin_flags
846 enable_host_pie
847 enable_host_shared
848 enable_libgdiagnostics
849 enable_stage1_languages
850 enable_objc_gc
851 with_target_bdw_gc
852 with_target_bdw_gc_include
853 with_target_bdw_gc_lib
854 with_gcc_major_version_only
855 with_build_sysroot
856 with_debug_prefix_map
857 with_build_config
858 enable_vtable_verify
859 enable_serial_configure
860 with_build_time_tools
861 enable_maintainer_mode
862 enable_stage1_checking
863 enable_werror
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
874 CXXFLAGS
876 build_configargs
877 host_configargs
878 target_configargs
881 DLLTOOL
882 DSYMUTIL
884 LIPO
886 RANLIB
887 STRIP
888 WINDRES
889 WINDMC
890 OBJCOPY
891 OBJDUMP
892 OTOOL
893 READELF
894 CC_FOR_TARGET
895 CXX_FOR_TARGET
896 GCC_FOR_TARGET
897 GFORTRAN_FOR_TARGET
898 GOC_FOR_TARGET
899 GDC_FOR_TARGET
900 GM2_FOR_TARGET
901 AR_FOR_TARGET
902 AS_FOR_TARGET
903 DLLTOOL_FOR_TARGET
904 DSYMUTIL_FOR_TARGET
905 LD_FOR_TARGET
906 LIPO_FOR_TARGET
907 NM_FOR_TARGET
908 OBJCOPY_FOR_TARGET
909 OBJDUMP_FOR_TARGET
910 OTOOL_FOR_TARGET
911 RANLIB_FOR_TARGET
912 READELF_FOR_TARGET
913 STRIP_FOR_TARGET
914 WINDRES_FOR_TARGET
915 WINDMC_FOR_TARGET'
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 ac_unrecognized_opts=
922 ac_unrecognized_sep=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
966 ac_prev=
967 ac_dashdash=
968 for ac_option
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
973 ac_prev=
974 continue
977 case $ac_option in
978 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 *=) ac_optarg= ;;
980 *) ac_optarg=yes ;;
981 esac
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
987 ac_dashdash=yes ;;
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=\$ac_optarg ;;
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1074 with_gas=yes ;;
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 ac_prev=htmldir ;;
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 | --ht=*)
1092 htmldir=$ac_optarg ;;
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 ac_prev=infodir ;;
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1106 -libdir | --libdir | --libdi | --libd)
1107 ac_prev=libdir ;;
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 ac_prev=mandir ;;
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1137 with_fp=no ;;
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1141 no_create=yes ;;
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 no_recursion=yes ;;
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 ac_prev=prefix ;;
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 ac_prev=pdfdir ;;
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1197 -psdir | --psdir | --psdi | --psd | --ps)
1198 ac_prev=psdir ;;
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 psdir=$ac_optarg ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 silent=yes ;;
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 ac_prev=sbindir ;;
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 | --sbi=* | --sb=*)
1210 sbindir=$ac_optarg ;;
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1215 | --sha | --sh)
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 | --sha=* | --sh=*)
1221 sharedstatedir=$ac_optarg ;;
1223 -site | --site | --sit)
1224 ac_prev=site ;;
1225 -site=* | --site=* | --sit=*)
1226 site=$ac_optarg ;;
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 ac_prev=srcdir ;;
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 verbose=yes ;;
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1251 -with-* | --with-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=no ;;
1283 --x)
1284 # Obsolete; use --with-x.
1285 with_x=yes ;;
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1301 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' | [0-9]* | *[!_$as_cr_alnum]* )
1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 esac
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 esac
1324 done
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $? "missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 esac
1339 # Check all directory arguments for consistency.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1346 # Remove trailing slashes.
1347 case $ac_val in
1348 */ )
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1351 esac
1352 # Be sure to have absolute directory names.
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1358 done
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $? "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $? "pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1408 /^X\(\/\/\)$/{
1409 s//\1/
1412 /^X\(\/\).*/{
1413 s//\1/
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1421 else
1422 ac_srcdir_defaulted=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 case $srcdir in
1443 *" "*)
1444 as_fn_error $? "path to source, $srcdir, contains spaces"
1446 esac
1447 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463 \`configure' configures this package to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1472 Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1518 cat <<\_ACEOF
1520 Program names:
1521 --program-prefix=PREFIX prepend PREFIX to installed program names
1522 --program-suffix=SUFFIX append SUFFIX to installed program names
1523 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 --target=TARGET configure for building compilers for TARGET [HOST]
1529 _ACEOF
1532 if test -n "$ac_init_help"; then
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-as-accelerator-for=ARG
1541 build as offload target compiler. Specify offload
1542 host triple by ARG
1543 --enable-offload-targets=LIST
1544 enable offloading to devices from comma-separated
1545 LIST of TARGET[=DIR]. Use optional path to find
1546 offload target compiler during the build
1547 --enable-offload-defaulted
1548 If enabled, configured but not installed offload compilers and
1549 libgomp plugins are silently ignored. Useful for distribution
1550 compilers where those are in separate optional packages.
1552 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1553 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1554 --disable-gprofng do not build gprofng
1555 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1556 Enable compressed debug sections for gas, gold or ld
1557 by default
1558 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1559 Default compression algorithm for
1560 --enable-compressed-debug-sections.
1561 --enable-year2038 enable support for timestamps past the year 2038
1562 --disable-libquadmath do not build libquadmath directory
1563 --disable-libquadmath-support
1564 disable libquadmath support for Fortran
1565 --enable-libada build libada directory
1566 --enable-libgm2 build libgm2 directory
1567 --enable-libssp build libssp directory
1568 --disable-libstdcxx do not build libstdc++-v3 directory
1569 --enable-bootstrap enable bootstrapping [yes if native build]
1570 --enable-pgo-build[=lto]
1571 enable the PGO build
1572 --disable-isl-version-check
1573 disable check for isl version
1574 --enable-lto enable link time optimization support
1575 --enable-linker-plugin-configure-flags=FLAGS
1576 additional flags for configuring linker plugins
1577 [none]
1578 --enable-linker-plugin-flags=FLAGS
1579 additional flags for configuring and building linker
1580 plugins [none]
1581 --enable-host-pie build position independent host executables
1582 --enable-host-shared build host code as shared libraries
1583 --enable-libgdiagnostics
1584 build libgdiagnostics shared library
1585 --enable-stage1-languages[=all]
1586 choose additional languages to build during stage1.
1587 Mostly useful for compiler development
1588 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1589 Objective-C runtime
1590 --enable-vtable-verify Enable vtable verification feature
1591 --enable-serial-[{host,target,build}-]configure
1592 force sequential configuration of sub-packages for
1593 the host, target or build machine, or all
1594 sub-packages
1595 --enable-maintainer-mode
1596 enable make rules and dependencies not useful (and
1597 sometimes confusing) to the casual installer
1598 --enable-stage1-checking[=all]
1599 choose additional checking for stage1 of the
1600 compiler
1601 --enable-werror enable -Werror in bootstrap stage2 and later
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-build-libsubdir=DIR Directory where to find libraries for build system
1607 --with-system-zlib use installed libz
1608 --with-zstd Support zstd compressed debug sections
1609 (default=auto)
1610 --with-mpc=PATH specify prefix directory for installed MPC package.
1611 Equivalent to --with-mpc-include=PATH/include plus
1612 --with-mpc-lib=PATH/lib
1613 --with-mpc-include=PATH specify directory for installed MPC include files
1614 --with-mpc-lib=PATH specify directory for the installed MPC library
1615 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1616 Equivalent to --with-mpfr-include=PATH/include plus
1617 --with-mpfr-lib=PATH/lib
1618 --with-mpfr-include=PATH
1619 specify directory for installed MPFR include files
1620 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1621 --with-gmp=PATH specify prefix directory for the installed GMP
1622 package. Equivalent to
1623 --with-gmp-include=PATH/include plus
1624 --with-gmp-lib=PATH/lib
1625 --with-gmp-include=PATH specify directory for installed GMP include files
1626 --with-gmp-lib=PATH specify directory for the installed GMP library
1627 --with-stage1-libs=LIBS libraries for stage1
1628 --with-static-standard-libraries
1629 use -static-libstdc++ and -static-libgcc
1630 (default=auto)
1631 --with-stage1-ldflags=FLAGS
1632 linker flags for stage1
1633 --with-boot-libs=LIBS libraries for stage2 and later
1634 --with-boot-ldflags=FLAGS
1635 linker flags for stage2 and later
1636 --with-isl=PATH Specify prefix directory for the installed isl
1637 package. Equivalent to
1638 --with-isl-include=PATH/include plus
1639 --with-isl-lib=PATH/lib
1640 --with-isl-include=PATH Specify directory for installed isl include files
1641 --with-isl-lib=PATH Specify the directory for the installed isl library
1642 --with-target-bdw-gc=PATHLIST
1643 specify prefix directory for installed bdw-gc
1644 package. Equivalent to
1645 --with-target-bdw-gc-include=PATH/include plus
1646 --with-target-bdw-gc-lib=PATH/lib
1647 --with-target-bdw-gc-include=PATHLIST
1648 specify directories for installed bdw-gc include
1649 files
1650 --with-target-bdw-gc-lib=PATHLIST
1651 specify directories for installed bdw-gc library
1652 --with-gcc-major-version-only
1653 use only GCC major number in filesystem paths
1654 --with-build-sysroot=SYSROOT
1655 use sysroot as the system root during the build
1656 --with-debug-prefix-map='A=B C=D ...'
1657 map A to B, C to D ... in debug information
1658 --with-build-config='NAME NAME2...'
1659 use config/NAME.mk build configuration
1660 --with-build-time-tools=PATH
1661 use given path to find target tools during the build
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CXX C++ compiler command
1672 CXXFLAGS C++ compiler flags
1673 build_configargs
1674 additional configure arguments for build directories
1675 host_configargs
1676 additional configure arguments for host directories
1677 target_configargs
1678 additional configure arguments for target directories
1679 AR AR for the host
1680 AS AS for the host
1681 DLLTOOL DLLTOOL for the host
1682 DSYMUTIL DSYMUTIL for the host
1683 LD LD for the host
1684 LIPO LIPO for the host
1685 NM NM for the host
1686 RANLIB RANLIB for the host
1687 STRIP STRIP for the host
1688 WINDRES WINDRES for the host
1689 WINDMC WINDMC for the host
1690 OBJCOPY OBJCOPY for the host
1691 OBJDUMP OBJDUMP for the host
1692 OTOOL OTOOL for the host
1693 READELF READELF for the host
1694 CC_FOR_TARGET
1695 CC for the target
1696 CXX_FOR_TARGET
1697 CXX for the target
1698 GCC_FOR_TARGET
1699 GCC for the target
1700 GFORTRAN_FOR_TARGET
1701 GFORTRAN for the target
1702 GOC_FOR_TARGET
1703 GOC for the target
1704 GDC_FOR_TARGET
1705 GDC for the target
1706 GM2_FOR_TARGET
1707 GM2 for the target
1708 AR_FOR_TARGET
1709 AR for the target
1710 AS_FOR_TARGET
1711 AS for the target
1712 DLLTOOL_FOR_TARGET
1713 DLLTOOL for the target
1714 DSYMUTIL_FOR_TARGET
1715 DSYMUTIL for the target
1716 LD_FOR_TARGET
1717 LD for the target
1718 LIPO_FOR_TARGET
1719 LIPO for the target
1720 NM_FOR_TARGET
1721 NM for the target
1722 OBJCOPY_FOR_TARGET
1723 OBJCOPY for the target
1724 OBJDUMP_FOR_TARGET
1725 OBJDUMP for the target
1726 OTOOL_FOR_TARGET
1727 OTOOL for the target
1728 RANLIB_FOR_TARGET
1729 RANLIB for the target
1730 READELF_FOR_TARGET
1731 READELF for the target
1732 STRIP_FOR_TARGET
1733 STRIP for the target
1734 WINDRES_FOR_TARGET
1735 WINDRES for the target
1736 WINDMC_FOR_TARGET
1737 WINDMC for the target
1739 Use these variables to override the choices made by `configure' or to help
1740 it to find libraries and programs with nonstandard names/locations.
1742 Report bugs to the package provider.
1743 _ACEOF
1744 ac_status=$?
1747 if test "$ac_init_help" = "recursive"; then
1748 # If there are subdirs, report their specific --help.
1749 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1750 test -d "$ac_dir" ||
1751 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1752 continue
1753 ac_builddir=.
1755 case "$ac_dir" in
1756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1759 # A ".." for each directory in $ac_dir_suffix.
1760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1761 case $ac_top_builddir_sub in
1762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1764 esac ;;
1765 esac
1766 ac_abs_top_builddir=$ac_pwd
1767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1768 # for backward compatibility:
1769 ac_top_builddir=$ac_top_build_prefix
1771 case $srcdir in
1772 .) # We are building in place.
1773 ac_srcdir=.
1774 ac_top_srcdir=$ac_top_builddir_sub
1775 ac_abs_top_srcdir=$ac_pwd ;;
1776 [\\/]* | ?:[\\/]* ) # Absolute name.
1777 ac_srcdir=$srcdir$ac_dir_suffix;
1778 ac_top_srcdir=$srcdir
1779 ac_abs_top_srcdir=$srcdir ;;
1780 *) # Relative name.
1781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1782 ac_top_srcdir=$ac_top_build_prefix$srcdir
1783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1784 esac
1785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1787 cd "$ac_dir" || { ac_status=$?; continue; }
1788 # Check for guested configure.
1789 if test -f "$ac_srcdir/configure.gnu"; then
1790 echo &&
1791 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1792 elif test -f "$ac_srcdir/configure"; then
1793 echo &&
1794 $SHELL "$ac_srcdir/configure" --help=recursive
1795 else
1796 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1797 fi || ac_status=$?
1798 cd "$ac_pwd" || { ac_status=$?; break; }
1799 done
1802 test -n "$ac_init_help" && exit $ac_status
1803 if $ac_init_version; then
1804 cat <<\_ACEOF
1805 configure
1806 generated by GNU Autoconf 2.69
1808 Copyright (C) 2012 Free Software Foundation, Inc.
1809 This configure script is free software; the Free Software Foundation
1810 gives unlimited permission to copy, distribute and modify it.
1811 _ACEOF
1812 exit
1815 ## ------------------------ ##
1816 ## Autoconf initialization. ##
1817 ## ------------------------ ##
1819 # ac_fn_c_try_compile LINENO
1820 # --------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_compile
1857 # ac_fn_cxx_try_compile LINENO
1858 # ----------------------------
1859 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_cxx_try_compile ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext
1864 if { { ac_try="$ac_compile"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_compile") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_cxx_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest.$ac_objext; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_cxx_try_compile
1895 # ac_fn_cxx_try_link LINENO
1896 # -------------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_link ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=1
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_cxx_try_link
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_link ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest$ac_exeext
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_retval=1
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_c_try_link
1986 cat >config.log <<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1990 It was created by $as_me, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
1993 $ $0 $@
1995 _ACEOF
1996 exec 5>>config.log
1998 cat <<_ASUNAME
1999 ## --------- ##
2000 ## Platform. ##
2001 ## --------- ##
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2020 _ASUNAME
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 $as_echo "PATH: $as_dir"
2028 done
2029 IFS=$as_save_IFS
2031 } >&5
2033 cat >&5 <<_ACEOF
2036 ## ----------- ##
2037 ## Core tests. ##
2038 ## ----------- ##
2040 _ACEOF
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_configure_args=
2049 ac_configure_args0=
2050 ac_configure_args1=
2051 ac_must_keep_next=false
2052 for ac_pass in 1 2
2054 for ac_arg
2056 case $ac_arg in
2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059 | -silent | --silent | --silen | --sile | --sil)
2060 continue ;;
2061 *\'*)
2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 esac
2064 case $ac_pass in
2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2067 as_fn_append ac_configure_args1 " '$ac_arg'"
2068 if test $ac_must_keep_next = true; then
2069 ac_must_keep_next=false # Got value, back to normal.
2070 else
2071 case $ac_arg in
2072 *=* | --config-cache | -C | -disable-* | --disable-* \
2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075 | -with-* | --with-* | -without-* | --without-* | --x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 esac
2080 -* ) ac_must_keep_next=true ;;
2081 esac
2083 as_fn_append ac_configure_args " '$ac_arg'"
2085 esac
2086 done
2087 done
2088 { ac_configure_args0=; unset ac_configure_args0;}
2089 { ac_configure_args1=; unset ac_configure_args1;}
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2099 echo
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2104 echo
2105 # The following way of writing the cache mishandles newlines in values,
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in #(
2110 *${as_nl}*)
2111 case $ac_var in #(
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 esac
2115 case $ac_var in #(
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2119 esac ;;
2120 esac
2121 done
2122 (set) 2>&1 |
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2125 sed -n \
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 ;; #(
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132 esac |
2133 sort
2135 echo
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2140 echo
2141 for ac_var in $ac_subst_vars
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2155 echo
2156 for ac_var in $ac_subst_files
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##"
2171 echo
2172 cat confdefs.h
2173 echo
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2183 for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2191 $as_echo "/* confdefs.h */" > confdefs.h
2193 # Predefined preprocessor variables.
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1=./$CONFIG_SITE;;
2228 */*) ac_site_file1=$CONFIG_SITE;;
2229 *) ac_site_file1=./$CONFIG_SITE;;
2230 esac
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2240 test "x$ac_site_file" = xNONE && continue
2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file" \
2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $? "failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2251 done
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 case $cache_file in
2260 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261 *) . "./$cache_file";;
2262 esac
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 >$cache_file
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344 progname=$0
2345 # if PWD already has a value, it is probably wrong.
2346 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2348 # Export original configure arguments for use by sub-configures.
2349 # Quote arguments with shell meta charatcers.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS=
2351 set -- "$progname" "$@"
2352 for ac_arg
2354 case "$ac_arg" in
2355 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2356 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2357 # if the argument is of the form -foo=baz, quote the baz part only
2358 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2359 *) ;;
2360 esac
2361 # Add the quoted argument to the list.
2362 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2363 done
2364 if test "$silent" = yes; then
2365 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2367 # Remove the initial space we just introduced and, as these will be
2368 # expanded by make, quote '$'.
2369 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2372 # Find the build, host, and target systems.
2373 ac_aux_dir=
2374 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375 if test -f "$ac_dir/install-sh"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/install-sh -c"
2378 break
2379 elif test -f "$ac_dir/install.sh"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/install.sh -c"
2382 break
2383 elif test -f "$ac_dir/shtool"; then
2384 ac_aux_dir=$ac_dir
2385 ac_install_sh="$ac_aux_dir/shtool install -c"
2386 break
2388 done
2389 if test -z "$ac_aux_dir"; then
2390 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2398 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2399 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402 # Make sure we can run config.sub.
2403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2404 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2407 $as_echo_n "checking build system type... " >&6; }
2408 if ${ac_cv_build+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 ac_build_alias=$build_alias
2412 test "x$ac_build_alias" = x &&
2413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2414 test "x$ac_build_alias" = x &&
2415 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2421 $as_echo "$ac_cv_build" >&6; }
2422 case $ac_cv_build in
2423 *-*-*) ;;
2424 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2425 esac
2426 build=$ac_cv_build
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_build
2429 shift
2430 build_cpu=$1
2431 build_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 build_os=$*
2436 IFS=$ac_save_IFS
2437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2440 case ${build_alias} in
2441 "") build_noncanonical=${build} ;;
2442 *) build_noncanonical=${build_alias} ;;
2443 esac
2447 case ${host_alias} in
2448 "") host_noncanonical=${build_noncanonical} ;;
2449 *) host_noncanonical=${host_alias} ;;
2450 esac
2454 case ${target_alias} in
2455 "") target_noncanonical=${host_noncanonical} ;;
2456 *) target_noncanonical=${target_alias} ;;
2457 esac
2462 test "$host_noncanonical" = "$target_noncanonical" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_transform_name=s,y,y,
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2468 $as_echo_n "checking host system type... " >&6; }
2469 if ${ac_cv_host+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test "x$host_alias" = x; then
2473 ac_cv_host=$ac_cv_build
2474 else
2475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2481 $as_echo "$ac_cv_host" >&6; }
2482 case $ac_cv_host in
2483 *-*-*) ;;
2484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2485 esac
2486 host=$ac_cv_host
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_host
2489 shift
2490 host_cpu=$1
2491 host_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 host_os=$*
2496 IFS=$ac_save_IFS
2497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2501 $as_echo_n "checking target system type... " >&6; }
2502 if ${ac_cv_target+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test "x$target_alias" = x; then
2506 ac_cv_target=$ac_cv_host
2507 else
2508 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2514 $as_echo "$ac_cv_target" >&6; }
2515 case $ac_cv_target in
2516 *-*-*) ;;
2517 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2518 esac
2519 target=$ac_cv_target
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_target
2522 shift
2523 target_cpu=$1
2524 target_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 target_os=$*
2529 IFS=$ac_save_IFS
2530 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533 # The aliases save the names the user supplied, while $host etc.
2534 # will get canonicalized.
2535 test -n "$target_alias" &&
2536 test "$program_prefix$program_suffix$program_transform_name" = \
2537 NONENONEs,x,x, &&
2538 program_prefix=${target_alias}-
2540 test "$program_prefix" != NONE &&
2541 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2542 # Use a double $ so make ignores it.
2543 test "$program_suffix" != NONE &&
2544 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2545 # Double any \ or $.
2546 # By default was `s,x,x', remove it if useless.
2547 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2548 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552 # Get 'install' or 'install-sh' and its variants.
2553 # Find a good install program. We prefer a C program (faster),
2554 # so one script is as good as another. But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2559 # AIX /bin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 # Reject install programs that cannot install multiple files.
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2569 if test -z "$INSTALL"; then
2570 if ${ac_cv_path_install+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 # Account for people who put trailing slashes in PATH elements.
2579 case $as_dir/ in #((
2580 ./ | .// | /[cC]/* | \
2581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2583 /usr/ucb/* ) ;;
2585 # OSF1 and SCO ODT 3.0 have their own names for install.
2586 # Don't use installbsd from OSF since it installs stuff as root
2587 # by default.
2588 for ac_prog in ginstall scoinst install; do
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2591 if test $ac_prog = install &&
2592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593 # AIX install. It has an incompatible calling convention.
2595 elif test $ac_prog = install &&
2596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597 # program-specific install script used by HP pwplus--don't use.
2599 else
2600 rm -rf conftest.one conftest.two conftest.dir
2601 echo one > conftest.one
2602 echo two > conftest.two
2603 mkdir conftest.dir
2604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2605 test -s conftest.one && test -s conftest.two &&
2606 test -s conftest.dir/conftest.one &&
2607 test -s conftest.dir/conftest.two
2608 then
2609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2610 break 3
2614 done
2615 done
2617 esac
2619 done
2620 IFS=$as_save_IFS
2622 rm -rf conftest.one conftest.two conftest.dir
2625 if test "${ac_cv_path_install+set}" = set; then
2626 INSTALL=$ac_cv_path_install
2627 else
2628 # As a last resort, use the slow shell script. Don't cache a
2629 # value for INSTALL within a source directory, because that will
2630 # break other packages using the cache if that directory is
2631 # removed, or if the value is a relative name.
2632 INSTALL=$ac_install_sh
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2636 $as_echo "$INSTALL" >&6; }
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2647 $as_echo_n "checking whether ln works... " >&6; }
2648 if ${acx_cv_prog_LN+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 rm -f conftestdata_t
2652 echo >conftestdata_f
2653 if ln conftestdata_f conftestdata_t 2>/dev/null
2654 then
2655 acx_cv_prog_LN=ln
2656 else
2657 acx_cv_prog_LN=no
2659 rm -f conftestdata_f conftestdata_t
2662 if test $acx_cv_prog_LN = no; then
2663 LN="cp"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2665 $as_echo "no, using $LN" >&6; }
2666 else
2667 LN="$acx_cv_prog_LN"
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2673 $as_echo_n "checking whether ln -s works... " >&6; }
2674 LN_S=$as_ln_s
2675 if test "$LN_S" = "ln -s"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677 $as_echo "yes" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2680 $as_echo "no, using $LN_S" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2685 if ${ac_cv_path_SED+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2689 for ac_i in 1 2 3 4 5 6 7; do
2690 ac_script="$ac_script$as_nl$ac_script"
2691 done
2692 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2693 { ac_script=; unset ac_script;}
2694 if test -z "$SED"; then
2695 ac_path_SED_found=false
2696 # Loop through the user's path and test for each of PROGNAME-LIST
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_prog in sed gsed; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2705 as_fn_executable_p "$ac_path_SED" || continue
2706 # Check for GNU ac_path_SED and select it if it is found.
2707 # Check for GNU $ac_path_SED
2708 case `"$ac_path_SED" --version 2>&1` in
2709 *GNU*)
2710 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2712 ac_count=0
2713 $as_echo_n 0123456789 >"conftest.in"
2714 while :
2716 cat "conftest.in" "conftest.in" >"conftest.tmp"
2717 mv "conftest.tmp" "conftest.in"
2718 cp "conftest.in" "conftest.nl"
2719 $as_echo '' >> "conftest.nl"
2720 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2722 as_fn_arith $ac_count + 1 && ac_count=$as_val
2723 if test $ac_count -gt ${ac_path_SED_max-0}; then
2724 # Best one so far, save it but keep looking for a better one
2725 ac_cv_path_SED="$ac_path_SED"
2726 ac_path_SED_max=$ac_count
2728 # 10*(2^10) chars as input seems more than enough
2729 test $ac_count -gt 10 && break
2730 done
2731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2732 esac
2734 $ac_path_SED_found && break 3
2735 done
2736 done
2737 done
2738 IFS=$as_save_IFS
2739 if test -z "$ac_cv_path_SED"; then
2740 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2742 else
2743 ac_cv_path_SED=$SED
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2748 $as_echo "$ac_cv_path_SED" >&6; }
2749 SED="$ac_cv_path_SED"
2750 rm -f conftest.sed
2752 for ac_prog in gawk mawk nawk awk
2754 # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy $ac_prog; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_AWK+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$AWK"; then
2762 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_AWK="$ac_prog"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2775 done
2776 done
2777 IFS=$as_save_IFS
2781 AWK=$ac_cv_prog_AWK
2782 if test -n "$AWK"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2784 $as_echo "$AWK" >&6; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2791 test -n "$AWK" && break
2792 done
2795 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2797 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2798 # a relative path.
2799 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2800 INSTALL="${srcpwd}/install-sh -c"
2803 # Set srcdir to "." if that's what it is.
2804 # This is important for multilib support.
2805 pwd=`${PWDCMD-pwd}`
2806 if test "${pwd}" = "${srcpwd}" ; then
2807 srcdir=.
2810 topsrcdir=$srcpwd
2812 extra_host_args=
2814 ### To add a new directory to the tree, first choose whether it is a target
2815 ### or a host dependent tool. Then put it into the appropriate list
2816 ### (library or tools, host or target), doing a dependency sort.
2818 # Subdirs will be configured in the order listed in build_configdirs,
2819 # configdirs, or target_configdirs; see the serialization section below.
2821 # Dependency sorting is only needed when *configuration* must be done in
2822 # a particular order. In all cases a dependency should be specified in
2823 # the Makefile, whether or not it's implicitly specified here.
2825 # Double entries in build_configdirs, configdirs, or target_configdirs may
2826 # cause circular dependencies and break everything horribly.
2828 # these library is used by various programs built for the build
2829 # environment
2831 build_libs="build-libiberty build-libcpp"
2833 # these tools are built for the build environment
2834 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2836 # these libraries are used by various programs built for the host environment
2838 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2840 # these tools are built for the host environment
2841 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2842 # know that we are building the simulator.
2843 # binutils, gas and ld appear in that order because it makes sense to run
2844 # "make check" in that particular order.
2845 # If --enable-gold is used, "gold" may replace "ld".
2846 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2848 # these libraries are built for the target environment, and are built after
2849 # the host libraries and the host tools (which may be a cross compiler)
2850 # Note that libiberty is not a target library.
2851 target_libraries="target-libgcc \
2852 target-libbacktrace \
2853 target-libgloss \
2854 target-newlib \
2855 target-libgomp \
2856 target-libatomic \
2857 target-libitm \
2858 target-libstdc++-v3 \
2859 target-libsanitizer \
2860 target-libvtv \
2861 target-libssp \
2862 target-libquadmath \
2863 target-libgfortran \
2864 target-libffi \
2865 target-libobjc \
2866 target-libada \
2867 target-libgm2 \
2868 target-libgo \
2869 target-libgrust \
2870 target-libphobos \
2871 target-zlib"
2873 # these tools are built using the target libraries, and are intended to
2874 # run only in the target environment
2876 # note: any program that *uses* libraries that are in the "target_libraries"
2877 # list belongs in this list.
2879 target_tools="target-rda"
2881 ################################################################################
2883 ## All tools belong in one of the four categories, and are assigned above
2884 ## We assign ${configdirs} this way to remove all embedded newlines. This
2885 ## is important because configure will choke if they ever get through.
2886 ## ${configdirs} is directories we build using the host tools.
2887 ## ${target_configdirs} is directories we build using the target tools.
2888 configdirs=`echo ${host_libs} ${host_tools}`
2889 target_configdirs=`echo ${target_libraries} ${target_tools}`
2890 build_configdirs=`echo ${build_libs} ${build_tools}`
2894 ################################################################################
2896 srcname="gnu development package"
2898 # This gets set non-empty for some net releases of packages.
2899 appdirs=""
2901 # Define is_cross_compiler to save on calls to 'test'.
2902 is_cross_compiler=
2903 if test x"${host}" = x"${target}" ; then
2904 is_cross_compiler=no
2905 else
2906 is_cross_compiler=yes
2909 # Find the build and target subdir names.
2911 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2912 # have matching libraries, they should use host libraries: Makefile.tpl
2913 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2914 # However, they still use the build modules, because the corresponding
2915 # host modules (e.g. bison) are only built for the host when bootstrap
2916 # finishes. So:
2917 # - build_subdir is where we find build modules, and never changes.
2918 # - build_libsubdir is where we find build libraries, and can be overridden.
2920 # Prefix 'build-' so this never conflicts with target_subdir.
2921 build_subdir="build-${build_noncanonical}"
2923 # Check whether --with-build-libsubdir was given.
2924 if test "${with_build_libsubdir+set}" = set; then :
2925 withval=$with_build_libsubdir; build_libsubdir="$withval"
2926 else
2927 build_libsubdir="$build_subdir"
2930 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2931 if ( test $srcdir = . && test -d gcc ) \
2932 || test -d $srcdir/../host-${host_noncanonical}; then
2933 host_subdir="host-${host_noncanonical}"
2934 else
2935 host_subdir=.
2937 # No prefix.
2938 target_subdir=${target_noncanonical}
2940 # Be sure to cover against remnants of an in-tree build.
2941 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2942 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2943 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2946 # Skipdirs are removed silently.
2947 skipdirs=
2948 # Noconfigdirs are removed loudly.
2949 noconfigdirs=""
2951 use_gnu_ld=
2952 # Make sure we don't let GNU ld be added if we didn't want it.
2953 if test x$with_gnu_ld = xno ; then
2954 use_gnu_ld=no
2955 noconfigdirs="$noconfigdirs ld gold"
2958 use_gnu_as=
2959 # Make sure we don't let GNU as be added if we didn't want it.
2960 if test x$with_gnu_as = xno ; then
2961 use_gnu_as=no
2962 noconfigdirs="$noconfigdirs gas"
2965 use_included_zlib=
2967 # Check whether --with-system-zlib was given.
2968 if test "${with_system_zlib+set}" = set; then :
2969 withval=$with_system_zlib;
2972 # Make sure we don't let ZLIB be added if we didn't want it.
2973 if test x$with_system_zlib = xyes ; then
2974 use_included_zlib=no
2975 noconfigdirs="$noconfigdirs zlib"
2978 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2979 # is provided.
2980 if test x$with_system_readline = xyes ; then
2981 noconfigdirs="$noconfigdirs readline"
2985 # Check whether --with-zstd was given.
2986 if test "${with_zstd+set}" = set; then :
2987 withval=$with_zstd;
2991 # some tools are so dependent upon X11 that if we're not building with X,
2992 # it's not even worth trying to configure, much less build, that tool.
2994 case ${with_x} in
2995 yes | "") ;; # the default value for this tree is that X11 is available
2997 skipdirs="${skipdirs} tk itcl libgui"
2998 # We won't be able to build gdbtk without X.
2999 enable_gdbtk=no
3001 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3002 esac
3004 # Some are only suitable for cross toolchains.
3005 # Remove these if host=target.
3006 cross_only="target-libgloss target-newlib target-opcodes"
3008 case $is_cross_compiler in
3009 no) skipdirs="${skipdirs} ${cross_only}" ;;
3010 esac
3012 # If both --with-headers and --with-libs are specified, default to
3013 # --without-newlib.
3014 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3015 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3016 if test x"${with_newlib}" = x ; then
3017 with_newlib=no
3021 # Recognize --with-newlib/--without-newlib.
3022 case ${with_newlib} in
3023 no) skipdirs="${skipdirs} target-newlib" ;;
3024 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3025 esac
3027 # Check whether --enable-as-accelerator-for was given.
3028 if test "${enable_as_accelerator_for+set}" = set; then :
3029 enableval=$enable_as_accelerator_for;
3033 # Check whether --enable-offload-targets was given.
3034 if test "${enable_offload_targets+set}" = set; then :
3035 enableval=$enable_offload_targets;
3036 if test x"$enable_offload_targets" = x; then
3037 as_fn_error $? "no offload targets specified" "$LINENO" 5
3040 else
3041 enable_offload_targets=
3045 # Check whether --enable-offload-defaulted was given.
3046 if test "${enable_offload_defaulted+set}" = set; then :
3047 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3048 else
3049 enable_offload_defaulted=
3053 # Handle --enable-gold, --enable-ld.
3054 # --disable-gold [--enable-ld]
3055 # Build only ld. Default option.
3056 # --enable-gold [--enable-ld]
3057 # Build both gold and ld. Install gold as "ld.gold", install ld
3058 # as "ld.bfd" and "ld".
3059 # --enable-gold=default [--enable-ld]
3060 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3061 # install ld as "ld.bfd".
3062 # --enable-gold[=default] --disable-ld
3063 # Build only gold, which is then installed as both "ld.gold" and "ld".
3064 # --enable-gold --enable-ld=default
3065 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3066 # and ld.bfd).
3067 # In other words, ld is default
3068 # --enable-gold=default --enable-ld=default
3069 # Error.
3071 default_ld=
3072 # Check whether --enable-gold was given.
3073 if test "${enable_gold+set}" = set; then :
3074 enableval=$enable_gold; ENABLE_GOLD=$enableval
3075 else
3076 ENABLE_GOLD=no
3079 case "${ENABLE_GOLD}" in
3080 yes|default)
3081 # Check for ELF target.
3082 is_elf=no
3083 case "${target}" in
3084 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3085 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3086 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3087 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3088 case "${target}" in
3089 *-*-linux*aout* | *-*-linux*oldld*)
3092 is_elf=yes
3094 esac
3095 esac
3097 if test "$is_elf" = "yes"; then
3098 # Check for target supported by gold.
3099 case "${target}" in
3100 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3101 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3102 configdirs="$configdirs gold"
3103 if test x${ENABLE_GOLD} = xdefault; then
3104 default_ld=gold
3106 ENABLE_GOLD=yes
3108 esac
3114 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3116 esac
3118 # Check whether --enable-ld was given.
3119 if test "${enable_ld+set}" = set; then :
3120 enableval=$enable_ld; ENABLE_LD=$enableval
3121 else
3122 ENABLE_LD=yes
3126 case "${ENABLE_LD}" in
3127 default)
3128 if test x${default_ld} != x; then
3129 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3132 yes)
3135 if test x${ENABLE_GOLD} != xyes; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3137 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3139 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3142 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3144 esac
3146 # Check whether --enable-gprofng was given.
3147 if test "${enable_gprofng+set}" = set; then :
3148 enableval=$enable_gprofng; enable_gprofng=$enableval
3149 else
3150 enable_gprofng=yes
3153 if test "$enable_gprofng" = "yes"; then
3154 case "${target}" in
3155 *-musl*)
3157 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
3158 configdirs="$configdirs gprofng"
3160 esac
3164 # PR gas/19109
3165 # Decide the default method for compressing debug sections.
3166 # Provide a configure time option to override our default.
3167 # Check whether --enable-compressed_debug_sections was given.
3168 if test "${enable_compressed_debug_sections+set}" = set; then :
3169 enableval=$enable_compressed_debug_sections;
3170 if test x"$enable_compressed_debug_sections" = xyes; then
3171 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3174 else
3175 enable_compressed_debug_sections=
3179 # Select default compression algorithm.
3180 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3181 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3182 enableval=$enable_default_compressed_debug_sections_algorithm;
3183 else
3184 default_compressed_debug_sections_algorithm=
3188 # Configure extra directories which are host specific
3190 case "${host}" in
3191 *-cygwin*)
3192 configdirs="$configdirs libtermcap" ;;
3193 esac
3195 # A target can indicate whether a language isn't supported for some reason.
3196 # Only spaces may be used in this macro; not newlines or tabs.
3197 unsupported_languages=
3199 # Remove more programs from consideration, based on the host or
3200 # target this usually means that a port of the program doesn't
3201 # exist yet.
3203 case "${host}" in
3204 i[3456789]86-*-msdosdjgpp*)
3205 noconfigdirs="$noconfigdirs tcl tk itcl"
3207 esac
3209 # Default to --disable-year2038 until we can handle differences between
3210 # projects that use gnulib (which understands year 2038) and projects that
3211 # do not (like BFD).
3212 # Check whether --enable-year2038 was given.
3213 if test "${enable_year2038+set}" = set; then :
3214 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3215 else
3216 ENABLE_YEAR2038=no
3219 enable_year2038=
3220 if test "${ENABLE_YEAR2038}" = "no" ; then
3221 enable_year2038=no
3224 # Check whether --enable-libquadmath was given.
3225 if test "${enable_libquadmath+set}" = set; then :
3226 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3227 else
3228 ENABLE_LIBQUADMATH=yes
3231 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3232 noconfigdirs="$noconfigdirs target-libquadmath"
3236 # Check whether --enable-libquadmath-support was given.
3237 if test "${enable_libquadmath_support+set}" = set; then :
3238 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3239 else
3240 ENABLE_LIBQUADMATH_SUPPORT=yes
3243 enable_libquadmath_support=
3244 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3245 enable_libquadmath_support=no
3249 # Check whether --enable-libada was given.
3250 if test "${enable_libada+set}" = set; then :
3251 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3252 else
3253 ENABLE_LIBADA=yes
3256 if test "${ENABLE_LIBADA}" != "yes" ; then
3257 noconfigdirs="$noconfigdirs gnattools"
3260 # Check whether --enable-libgm2 was given.
3261 if test "${enable_libgm2+set}" = set; then :
3262 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3263 else
3264 ENABLE_LIBGM2=no
3267 if test "${ENABLE_LIBGM2}" != "yes" ; then
3268 noconfigdirs="$noconfigdirs gm2tools"
3271 # Check whether --enable-libssp was given.
3272 if test "${enable_libssp+set}" = set; then :
3273 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3274 else
3275 ENABLE_LIBSSP=yes
3279 # Check whether --enable-libstdcxx was given.
3280 if test "${enable_libstdcxx+set}" = set; then :
3281 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3282 else
3283 ENABLE_LIBSTDCXX=default
3286 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3287 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3290 # Enable libgomp by default on hosted POSIX systems, and a few others.
3291 if test x$enable_libgomp = x ; then
3292 case "${target}" in
3293 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3295 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3297 *-*-solaris2* | *-*-hpux11*)
3299 *-*-darwin* | *-*-aix*)
3301 nvptx*-*-* | amdgcn*-*-*)
3304 noconfigdirs="$noconfigdirs target-libgomp"
3306 esac
3309 # Disable libatomic on unsupported systems.
3310 if test -d ${srcdir}/libatomic; then
3311 if test x$enable_libatomic = x; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3313 $as_echo_n "checking for libatomic support... " >&6; }
3314 if (srcdir=${srcdir}/libatomic; \
3315 . ${srcdir}/configure.tgt; \
3316 test -n "$UNSUPPORTED")
3317 then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 noconfigdirs="$noconfigdirs target-libatomic"
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3328 # Disable libitm on unsupported systems.
3329 if test -d ${srcdir}/libitm; then
3330 if test x$enable_libitm = x; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3332 $as_echo_n "checking for libitm support... " >&6; }
3333 if (srcdir=${srcdir}/libitm; \
3334 . ${srcdir}/configure.tgt; \
3335 test -n "$UNSUPPORTED")
3336 then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 noconfigdirs="$noconfigdirs target-libitm"
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3347 # Disable libsanitizer on unsupported systems.
3348 if test -d ${srcdir}/libsanitizer; then
3349 if test x$enable_libsanitizer = x; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3351 $as_echo_n "checking for libsanitizer support... " >&6; }
3352 if (srcdir=${srcdir}/libsanitizer; \
3353 . ${srcdir}/configure.tgt; \
3354 test -n "$UNSUPPORTED")
3355 then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 noconfigdirs="$noconfigdirs target-libsanitizer"
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361 $as_echo "yes" >&6; }
3366 # Disable libvtv on unsupported systems.
3367 if test -d ${srcdir}/libvtv; then
3368 if test x$enable_libvtv = x; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3370 $as_echo_n "checking for libvtv support... " >&6; }
3371 if (srcdir=${srcdir}/libvtv; \
3372 . ${srcdir}/configure.tgt; \
3373 test "$VTV_SUPPORTED" != "yes")
3374 then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 noconfigdirs="$noconfigdirs target-libvtv"
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3385 # Disable libquadmath for some systems.
3386 case "${target}" in
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libquadmath"
3390 # libquadmath is unused on AIX and libquadmath build process use of
3391 # LD_LIBRARY_PATH can break AIX bootstrap.
3392 powerpc-*-aix* | rs6000-*-aix*)
3393 noconfigdirs="$noconfigdirs target-libquadmath"
3395 esac
3397 # Disable libssp for some systems.
3398 case "${target}" in
3399 avr-*-*)
3400 # No hosted I/O support.
3401 noconfigdirs="$noconfigdirs target-libssp"
3403 bpf-*-*)
3404 noconfigdirs="$noconfigdirs target-libssp"
3406 powerpc-*-aix* | rs6000-*-aix*)
3407 noconfigdirs="$noconfigdirs target-libssp"
3409 pru-*-*)
3410 # No hosted I/O support.
3411 noconfigdirs="$noconfigdirs target-libssp"
3413 rl78-*-*)
3414 # libssp uses a misaligned load to trigger a fault, but the RL78
3415 # doesn't fault for those - instead, it gives a build-time error
3416 # for explicit misaligned loads.
3417 noconfigdirs="$noconfigdirs target-libssp"
3419 visium-*-*)
3420 # No hosted I/O support.
3421 noconfigdirs="$noconfigdirs target-libssp"
3423 esac
3425 # Disable libstdc++-v3 for some systems.
3426 # Allow user to override this if they pass --enable-libstdcxx
3427 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3428 case "${target}" in
3429 *-*-vxworks*)
3430 # VxWorks uses the Dinkumware C++ library.
3431 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3433 amdgcn*-*-*)
3434 # Not ported/fails to build when using newlib.
3435 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3437 arm*-wince-pe*)
3438 # the C++ libraries don't build on top of CE's C libraries
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 avr-*-*)
3442 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3444 bpf-*-*)
3445 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3447 ft32-*-*)
3448 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3450 esac
3453 # Disable C++ on systems where it is known to not work.
3454 # For testing, you can override this with --enable-languages=c++.
3455 case ,${enable_languages}, in
3456 *,c++,*)
3459 case "${target}" in
3460 bpf-*-*)
3461 unsupported_languages="$unsupported_languages c++"
3463 esac
3465 esac
3467 # Disable Objc on systems where it is known to not work.
3468 # For testing, you can override this with --enable-languages=objc.
3469 case ,${enable_languages}, in
3470 *,objc,*)
3473 case "${target}" in
3474 bpf-*-*)
3475 unsupported_languages="$unsupported_languages objc"
3477 esac
3479 esac
3481 # Disable D on systems where it is known to not work.
3482 # For testing, you can override this with --enable-languages=d.
3483 case ,${enable_languages}, in
3484 *,d,*)
3487 case "${target}" in
3488 bpf-*-*)
3489 unsupported_languages="$unsupported_languages d"
3491 esac
3493 esac
3495 # Disable libphobos on unsupported systems.
3496 # For testing, you can override this with --enable-libphobos.
3497 if test -d ${srcdir}/libphobos; then
3498 if test x$enable_libphobos = x; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3500 $as_echo_n "checking for libphobos support... " >&6; }
3501 if (srcdir=${srcdir}/libphobos; \
3502 . ${srcdir}/configure.tgt; \
3503 test "$LIBPHOBOS_SUPPORTED" != "yes")
3504 then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 noconfigdirs="$noconfigdirs target-libphobos"
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510 $as_echo "yes" >&6; }
3515 # Disable Fortran for some systems.
3516 case "${target}" in
3517 mmix-*-*)
3518 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3519 unsupported_languages="$unsupported_languages fortran"
3521 bpf-*-*)
3522 unsupported_languages="$unsupported_languages fortran"
3524 esac
3526 # Disable libffi for some systems.
3527 case "${target}" in
3528 powerpc-*-darwin*)
3530 i[3456789]86-*-darwin*)
3532 x86_64-*-darwin[912]*)
3534 *-*-darwin*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 *-*-netware*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 *-*-phoenix*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3543 *-*-rtems*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 *-*-tpf*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3549 *-*-uclinux*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3552 *-*-vxworks*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 aarch64*-*-freebsd*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 alpha*-*-*vms*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3561 arm*-*-freebsd*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3564 arm-wince-pe)
3565 noconfigdirs="$noconfigdirs target-libffi"
3567 arm*-*-symbianelf*)
3568 noconfigdirs="$noconfigdirs target-libffi"
3570 bpf-*-*)
3571 noconfigdirs="$noconfigdirs target-libffi"
3573 cris-*-* | crisv32-*-*)
3574 case "${target}" in
3575 *-*-linux*)
3577 *) # See PR46792 regarding target-libffi.
3578 noconfigdirs="$noconfigdirs target-libffi";;
3579 esac
3581 hppa*64*-*-hpux*)
3582 noconfigdirs="$noconfigdirs target-libffi"
3584 hppa*-hp-hpux11*)
3586 hppa*-*-hpux*)
3587 noconfigdirs="$noconfigdirs target-libffi"
3589 ia64*-*-*vms*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3592 i[3456789]86-w64-mingw*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3595 i[3456789]86-*-mingw*)
3596 noconfigdirs="$noconfigdirs target-libffi"
3598 x86_64-*-mingw*)
3599 noconfigdirs="$noconfigdirs target-libffi"
3601 mmix-*-*)
3602 noconfigdirs="$noconfigdirs target-libffi"
3604 powerpc-*-aix*)
3606 rs6000-*-aix*)
3608 ft32-*-*)
3609 noconfigdirs="$noconfigdirs target-libffi"
3611 *-*-lynxos*)
3612 noconfigdirs="$noconfigdirs target-libffi"
3614 esac
3616 # Disable the go frontend on systems where it is known to not work. Please keep
3617 # this in sync with contrib/config-list.mk.
3618 case "${target}" in
3619 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3620 unsupported_languages="$unsupported_languages go"
3622 esac
3624 # Only allow gdbserver on some systems.
3625 if test -d ${srcdir}/gdbserver; then
3626 if test x$enable_gdbserver = x; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3628 $as_echo_n "checking for gdbserver support... " >&6; }
3629 if (srcdir=${srcdir}/gdbserver; \
3630 . ${srcdir}/configure.srv; \
3631 test -n "$UNSUPPORTED")
3632 then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 noconfigdirs="$noconfigdirs gdbserver"
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3643 # Disable libgo for some systems where it is known to not work.
3644 # For testing, you can easily override this with --enable-libgo.
3645 if test x$enable_libgo = x; then
3646 case "${target}" in
3647 *-*-darwin*)
3648 # PR 46986
3649 noconfigdirs="$noconfigdirs target-libgo"
3651 *-*-cygwin* | *-*-mingw*)
3652 noconfigdirs="$noconfigdirs target-libgo"
3654 bpf-*-*)
3655 noconfigdirs="$noconfigdirs target-libgo"
3657 esac
3660 # Default libgloss CPU subdirectory.
3661 libgloss_dir="$target_cpu"
3663 case "${target}" in
3664 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3665 libgloss_dir=wince
3667 aarch64*-*-* )
3668 libgloss_dir=aarch64
3670 arm*-*-*)
3671 libgloss_dir=arm
3673 cris-*-* | crisv32-*-*)
3674 libgloss_dir=cris
3676 kvx-*-elf)
3677 libgloss_dir=kvx-elf
3679 kvx-*-mbr)
3680 libgloss_dir=kvx-mbr
3682 kvx-*-cos)
3683 libgloss_dir=kvx-cos
3685 hppa*-*-*)
3686 libgloss_dir=pa
3688 i[3456789]86-*-*)
3689 libgloss_dir=i386
3691 loongarch*-*-*)
3692 libgloss_dir=loongarch
3694 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3695 libgloss_dir=m68hc11
3697 m68*-*-* | fido-*-*)
3698 libgloss_dir=m68k
3700 mips*-*-*)
3701 libgloss_dir=mips
3703 powerpc*-*-*)
3704 libgloss_dir=rs6000
3706 pru-*-*)
3707 libgloss_dir=pru
3709 sparc*-*-*)
3710 libgloss_dir=sparc
3712 esac
3714 # Disable newlib and libgloss for various target OSes.
3715 case "${target}" in
3716 alpha*-dec-osf*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 i[3456789]86-*-linux*)
3720 # This section makes it possible to build newlib natively on linux.
3721 # If we are using a cross compiler then don't configure newlib.
3722 if test x${is_cross_compiler} != xno ; then
3723 noconfigdirs="$noconfigdirs target-newlib"
3725 noconfigdirs="$noconfigdirs target-libgloss"
3726 # If we are not using a cross compiler, do configure newlib.
3727 # Note however, that newlib will only be configured in this situation
3728 # if the --with-newlib option has been given, because otherwise
3729 # 'target-newlib' will appear in skipdirs.
3731 i[3456789]86-*-rdos*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 sparc-*-sunos4*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 bpf-*-*)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 *-*-aix*)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 *-*-beos*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 *-*-chorusos)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 *-*-dragonfly*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 *-*-freebsd*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 *-*-lynxos*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 *-*-mingw*)
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 *-*-netbsd*)
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3770 *-*-netware*)
3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 *-*-tpf*)
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3776 *-*-uclinux*)
3777 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3779 *-*-vxworks*)
3780 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3782 esac
3784 # The ARM simulator has been deprecated for all ARM targets.
3785 case "${target}" in
3786 arm*-*-*)
3787 noconfigdirs="$noconfigdirs sim"
3789 esac
3791 case "${target}" in
3792 *-*-chorusos)
3794 aarch64-*-darwin*)
3795 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3796 noconfigdirs="$noconfigdirs sim target-rda"
3798 amdgcn*-*-*)
3800 arm-*-darwin*)
3801 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3802 noconfigdirs="$noconfigdirs target-rda"
3804 powerpc-*-darwin*)
3805 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3806 noconfigdirs="$noconfigdirs sim target-rda"
3808 i[3456789]86-*-darwin*)
3809 noconfigdirs="$noconfigdirs ld gprof"
3810 noconfigdirs="$noconfigdirs sim target-rda"
3812 x86_64-*-darwin[912]*)
3813 noconfigdirs="$noconfigdirs ld gas gprof"
3814 noconfigdirs="$noconfigdirs sim target-rda"
3816 *-*-darwin*)
3817 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3818 noconfigdirs="$noconfigdirs sim target-rda"
3820 *-*-dragonfly*)
3822 *-*-freebsd*)
3823 if test "x$with_gmp" = x \
3824 && ! test -d ${srcdir}/gmp \
3825 && test -f /usr/local/include/gmp.h; then
3826 with_gmp=/usr/local
3829 *-*-kaos*)
3830 # Remove unsupported stuff on all kaOS configurations.
3831 noconfigdirs="$noconfigdirs target-libgloss"
3833 *-*-netbsd*)
3835 *-*-netware*)
3837 *-*-phoenix*)
3838 noconfigdirs="$noconfigdirs target-libgloss"
3840 *-*-rtems*)
3841 noconfigdirs="$noconfigdirs target-libgloss"
3843 # The tpf target doesn't support gdb yet.
3844 *-*-tpf*)
3845 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3847 *-*-uclinux*)
3848 noconfigdirs="$noconfigdirs target-rda"
3850 *-*-vxworks*)
3852 alpha*-dec-osf*)
3853 # ld works, but does not support shared libraries.
3854 # gas doesn't generate exception information.
3855 noconfigdirs="$noconfigdirs gas ld"
3857 alpha*-*-*vms*)
3858 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3860 alpha*-*-*)
3861 # newlib is not 64 bit ready
3862 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3864 bpf-*-*)
3865 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3867 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3868 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3870 arc*-*-*)
3871 noconfigdirs="$noconfigdirs sim"
3873 arm-*-pe*)
3874 noconfigdirs="$noconfigdirs target-libgloss"
3876 arm-*-riscix*)
3877 noconfigdirs="$noconfigdirs ld target-libgloss"
3879 avr-*-*)
3880 if test x${with_avrlibc} != xno; then
3881 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3884 c4x-*-* | tic4x-*-*)
3885 noconfigdirs="$noconfigdirs target-libgloss"
3887 tic54x-*-*)
3888 noconfigdirs="$noconfigdirs target-libgloss gdb"
3890 d10v-*-*)
3891 noconfigdirs="$noconfigdirs target-libgloss"
3893 d30v-*-*)
3894 noconfigdirs="$noconfigdirs gdb"
3896 fr30-*-elf*)
3897 noconfigdirs="$noconfigdirs gdb"
3899 ft32-*-*)
3900 noconfigdirs="$noconfigdirs target-rda gprof"
3902 moxie-*-*)
3903 noconfigdirs="$noconfigdirs"
3905 h8300*-*-*)
3906 noconfigdirs="$noconfigdirs target-libgloss"
3908 h8500-*-*)
3909 noconfigdirs="$noconfigdirs target-libgloss"
3911 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3913 hppa*64*-*-hpux*)
3914 noconfigdirs="$noconfigdirs gdb"
3916 hppa*-*-hpux11*)
3917 noconfigdirs="$noconfigdirs gdb ld"
3919 hppa*64*-*-linux*)
3921 hppa*-*-linux*)
3923 hppa*-*-*elf* | \
3924 hppa*-*-lites* | \
3925 hppa*-*-openbsd* | \
3926 hppa*64*-*-*)
3928 hppa*-*-pro*)
3930 hppa*-*-*)
3931 noconfigdirs="$noconfigdirs ld"
3933 i960-*-*)
3934 noconfigdirs="$noconfigdirs gdb"
3936 ia64*-*-elf*)
3937 # No gdb support yet.
3938 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3940 ia64*-**-hpux*)
3941 # No ld support yet.
3942 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3944 ia64*-*-*vms*)
3945 # No ld support yet.
3946 noconfigdirs="$noconfigdirs libgui itcl ld"
3948 i[3456789]86-w64-mingw*)
3950 i[3456789]86-*-mingw*)
3951 target_configdirs="$target_configdirs target-winsup"
3953 *-*-cygwin*)
3954 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3955 noconfigdirs="$noconfigdirs target-libgloss"
3956 # always build newlib if winsup directory is present.
3957 if test -d "$srcdir/winsup/cygwin"; then
3958 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3959 elif test -d "$srcdir/newlib"; then
3960 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3963 i[3456789]86-*-pe)
3964 noconfigdirs="$noconfigdirs target-libgloss"
3966 i[3456789]86-*-sco3.2v5*)
3967 # The linker does not yet know about weak symbols in COFF,
3968 # and is not configured to handle mixed ELF and COFF.
3969 noconfigdirs="$noconfigdirs ld target-libgloss"
3971 i[3456789]86-*-sco*)
3972 noconfigdirs="$noconfigdirs gprof target-libgloss"
3974 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3975 noconfigdirs="$noconfigdirs target-libgloss"
3977 i[3456789]86-*-sysv4*)
3978 noconfigdirs="$noconfigdirs target-libgloss"
3980 i[3456789]86-*-beos*)
3981 noconfigdirs="$noconfigdirs gdb"
3983 i[3456789]86-*-rdos*)
3984 noconfigdirs="$noconfigdirs gdb"
3986 kvx-*-*)
3987 noconfigdirs="$noconfigdirs gdb gdbserver sim"
3989 mmix-*-*)
3990 noconfigdirs="$noconfigdirs gdb"
3992 mt-*-*)
3993 noconfigdirs="$noconfigdirs sim"
3995 nfp-*-*)
3996 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3997 noconfigdirs="$noconfigdirs $target_libraries"
3999 pdp11-*-*)
4000 noconfigdirs="$noconfigdirs gdb gprof"
4002 powerpc-*-aix*)
4003 # copied from rs6000-*-* entry
4004 noconfigdirs="$noconfigdirs gprof"
4006 powerpc*-*-winnt* | powerpc*-*-pe*)
4007 target_configdirs="$target_configdirs target-winsup"
4008 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4009 # always build newlib.
4010 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4012 # This is temporary until we can link against shared libraries
4013 powerpcle-*-solaris*)
4014 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4016 powerpc-*-beos*)
4017 noconfigdirs="$noconfigdirs gdb"
4019 rs6000-*-lynxos*)
4020 noconfigdirs="$noconfigdirs gprof"
4022 rs6000-*-aix*)
4023 noconfigdirs="$noconfigdirs gprof"
4025 rs6000-*-*)
4026 noconfigdirs="$noconfigdirs gprof"
4028 m68k-apollo-*)
4029 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4031 microblaze*)
4032 noconfigdirs="$noconfigdirs gprof"
4034 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4035 if test x$with_newlib = xyes; then
4036 noconfigdirs="$noconfigdirs gprof"
4039 mips*-*-irix5*)
4040 noconfigdirs="$noconfigdirs gprof target-libgloss"
4042 mips*-*-irix6*)
4043 noconfigdirs="$noconfigdirs gprof target-libgloss"
4045 mips*-*-bsd*)
4046 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4048 mips*-*-linux*)
4050 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4051 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4052 noconfigdirs="$noconfigdirs ld gas gprof"
4054 mips*-*-*)
4055 noconfigdirs="$noconfigdirs gprof"
4057 nvptx*-*-*)
4058 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4060 sh-*-*)
4061 case "${target}" in
4062 sh*-*-elf)
4065 noconfigdirs="$noconfigdirs target-libgloss" ;;
4066 esac
4068 sparc-*-sunos4*)
4069 if test x${is_cross_compiler} = xno ; then
4070 use_gnu_ld=no
4073 tic6x-*-*)
4074 noconfigdirs="$noconfigdirs sim"
4076 tilepro*-*-* | tilegx*-*-*)
4077 noconfigdirs="$noconfigdirs sim"
4079 v810-*-*)
4080 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4082 vax-*-*)
4083 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4085 wasm32-*-*)
4086 noconfigdirs="$noconfigdirs ld"
4088 loongarch*-*-linux*)
4090 loongarch*-*-*)
4091 noconfigdirs="$noconfigdirs gprof"
4093 esac
4095 # If we aren't building newlib, then don't build libgloss, since libgloss
4096 # depends upon some newlib header files.
4097 case "${noconfigdirs}" in
4098 *target-libgloss*) ;;
4099 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4100 esac
4102 # Work in distributions that contain no compiler tools, like Autoconf.
4103 host_makefile_frag=/dev/null
4104 if test -d ${srcdir}/config ; then
4105 case "${host}" in
4106 i[3456789]86-*-msdosdjgpp*)
4107 host_makefile_frag="config/mh-djgpp"
4109 *-cygwin*)
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4112 $as_echo_n "checking to see if cat works as expected... " >&6; }
4113 echo a >cygwin-cat-check
4114 if test `cat cygwin-cat-check` = a ; then
4115 rm cygwin-cat-check
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4117 $as_echo "yes" >&6; }
4118 else
4119 rm cygwin-cat-check
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 as_fn_error $? "The cat command does not ignore carriage return characters.
4123 Please either mount the build directory in binary mode or run the following
4124 commands before running any configure script:
4125 set -o igncr
4126 export SHELLOPTS
4127 " "$LINENO" 5
4130 host_makefile_frag="config/mh-cygwin"
4132 *-mingw*)
4133 host_makefile_frag="config/mh-mingw"
4135 alpha*-linux*)
4136 host_makefile_frag="config/mh-alpha-linux"
4138 hppa*-hp-hpux*)
4139 host_makefile_frag="config/mh-pa"
4141 hppa*-*)
4142 host_makefile_frag="config/mh-pa"
4144 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4145 host_makefile_frag="config/mh-darwin"
4147 powerpc-*-aix*)
4148 host_makefile_frag="config/mh-ppc-aix"
4150 rs6000-*-aix*)
4151 host_makefile_frag="config/mh-ppc-aix"
4153 esac
4156 if test "${build}" != "${host}" ; then
4157 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4158 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4159 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4160 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4161 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4162 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4163 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4164 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4165 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4166 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4167 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4168 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4169 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4170 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4171 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4172 else
4173 AR_FOR_BUILD="\$(AR)"
4174 AS_FOR_BUILD="\$(AS)"
4175 CC_FOR_BUILD="\$(CC)"
4176 CXX_FOR_BUILD="\$(CXX)"
4177 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4178 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4179 GOC_FOR_BUILD="\$(GOC)"
4180 GDC_FOR_BUILD="\$(GDC)"
4181 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4182 LD_FOR_BUILD="\$(LD)"
4183 NM_FOR_BUILD="\$(NM)"
4184 RANLIB_FOR_BUILD="\$(RANLIB)"
4185 WINDRES_FOR_BUILD="\$(WINDRES)"
4186 WINDMC_FOR_BUILD="\$(WINDMC)"
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 if test -n "$ac_tool_prefix"; then
4195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_CC+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$CC"; then
4203 ac_cv_prog_CC="$CC" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4216 done
4217 done
4218 IFS=$as_save_IFS
4222 CC=$ac_cv_prog_CC
4223 if test -n "$CC"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4225 $as_echo "$CC" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4233 if test -z "$ac_cv_prog_CC"; then
4234 ac_ct_CC=$CC
4235 # Extract the first word of "gcc", so it can be a program name with args.
4236 set dummy gcc; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -n "$ac_ct_CC"; then
4243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_ac_ct_CC="gcc"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4258 IFS=$as_save_IFS
4262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4263 if test -n "$ac_ct_CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4265 $as_echo "$ac_ct_CC" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4271 if test "x$ac_ct_CC" = x; then
4272 CC=""
4273 else
4274 case $cross_compiling:$ac_tool_warned in
4275 yes:)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4278 ac_tool_warned=yes ;;
4279 esac
4280 CC=$ac_ct_CC
4282 else
4283 CC="$ac_cv_prog_CC"
4286 if test -z "$CC"; then
4287 if test -n "$ac_tool_prefix"; then
4288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}cc; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC="$CC" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_CC="${ac_tool_prefix}cc"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4327 if test -z "$CC"; then
4328 # Extract the first word of "cc", so it can be a program name with args.
4329 set dummy cc; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_CC+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 if test -n "$CC"; then
4336 ac_cv_prog_CC="$CC" # Let the user override the test.
4337 else
4338 ac_prog_rejected=no
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4347 ac_prog_rejected=yes
4348 continue
4350 ac_cv_prog_CC="cc"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4356 IFS=$as_save_IFS
4358 if test $ac_prog_rejected = yes; then
4359 # We found a bogon in the path, so make sure we never use it.
4360 set dummy $ac_cv_prog_CC
4361 shift
4362 if test $# != 0; then
4363 # We chose a different compiler from the bogus one.
4364 # However, it has the same basename, so the bogon will be chosen
4365 # first if we set CC to just the basename; use the full file name.
4366 shift
4367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4372 CC=$ac_cv_prog_CC
4373 if test -n "$CC"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4375 $as_echo "$CC" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4383 if test -z "$CC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog in cl.exe
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_CC+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4414 CC=$ac_cv_prog_CC
4415 if test -n "$CC"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4417 $as_echo "$CC" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4424 test -n "$CC" && break
4425 done
4427 if test -z "$CC"; then
4428 ac_ct_CC=$CC
4429 for ac_prog in cl.exe
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -n "$ac_ct_CC"; then
4439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_ac_ct_CC="$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4452 done
4453 done
4454 IFS=$as_save_IFS
4458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4459 if test -n "$ac_ct_CC"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4461 $as_echo "$ac_ct_CC" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4468 test -n "$ac_ct_CC" && break
4469 done
4471 if test "x$ac_ct_CC" = x; then
4472 CC=""
4473 else
4474 case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480 CC=$ac_ct_CC
4487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $? "no acceptable C compiler found in \$PATH
4490 See \`config.log' for more details" "$LINENO" 5; }
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4494 set X $ac_compile
4495 ac_compiler=$2
4496 for ac_option in --version -v -V -qversion; do
4497 { { ac_try="$ac_compiler $ac_option >&5"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505 ac_status=$?
4506 if test -s conftest.err; then
4507 sed '10a\
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 done
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4521 main ()
4525 return 0;
4527 _ACEOF
4528 ac_clean_files_save=$ac_clean_files
4529 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4530 # Try to create an executable without -o first, disregard a.out.
4531 # It will help us diagnose broken compilers, and finding out an intuition
4532 # of exeext.
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4534 $as_echo_n "checking whether the C compiler works... " >&6; }
4535 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4537 # The possible output files:
4538 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4540 ac_rmfiles=
4541 for ac_file in $ac_files
4543 case $ac_file in
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4545 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4546 esac
4547 done
4548 rm -f $ac_rmfiles
4550 if { { ac_try="$ac_link_default"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_link_default") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; then :
4561 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4562 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4563 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4564 # so that the user can short-circuit this test for compilers unknown to
4565 # Autoconf.
4566 for ac_file in $ac_files ''
4568 test -f "$ac_file" || continue
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4572 [ab].out )
4573 # We found the default executable, but exeext='' is most
4574 # certainly right.
4575 break;;
4576 *.* )
4577 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4578 then :; else
4579 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4581 # We set ac_cv_exeext here because the later test for it is not
4582 # safe: cross compilers may not add the suffix if given an `-o'
4583 # argument, so we may need to know it at that point already.
4584 # Even if this section looks crufty: it has the advantage of
4585 # actually working.
4586 break;;
4588 break;;
4589 esac
4590 done
4591 test "$ac_cv_exeext" = no && ac_cv_exeext=
4593 else
4594 ac_file=''
4596 if test -z "$ac_file"; then :
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error 77 "C compiler cannot create executables
4605 See \`config.log' for more details" "$LINENO" 5; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4608 $as_echo "yes" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4611 $as_echo_n "checking for C compiler default output file name... " >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4613 $as_echo "$ac_file" >&6; }
4614 ac_exeext=$ac_cv_exeext
4616 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4617 ac_clean_files=$ac_clean_files_save
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4619 $as_echo_n "checking for suffix of executables... " >&6; }
4620 if { { ac_try="$ac_link"
4621 case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then :
4631 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4632 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4633 # work properly (i.e., refer to `conftest.exe'), while it won't with
4634 # `rm'.
4635 for ac_file in conftest.exe conftest conftest.*; do
4636 test -f "$ac_file" || continue
4637 case $ac_file in
4638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4640 break;;
4641 * ) break;;
4642 esac
4643 done
4644 else
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4648 See \`config.log' for more details" "$LINENO" 5; }
4650 rm -f conftest conftest$ac_cv_exeext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4652 $as_echo "$ac_cv_exeext" >&6; }
4654 rm -f conftest.$ac_ext
4655 EXEEXT=$ac_cv_exeext
4656 ac_exeext=$EXEEXT
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <stdio.h>
4661 main ()
4663 FILE *f = fopen ("conftest.out", "w");
4664 return ferror (f) || fclose (f) != 0;
4667 return 0;
4669 _ACEOF
4670 ac_clean_files="$ac_clean_files conftest.out"
4671 # Check that the compiler produces executables we can run. If not, either
4672 # the compiler is broken, or we cross compile.
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4674 $as_echo_n "checking whether we are cross compiling... " >&6; }
4675 if test "$cross_compiling" != yes; then
4676 { { ac_try="$ac_link"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_link") 2>&5
4684 ac_status=$?
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }
4687 if { ac_try='./conftest$ac_cv_exeext'
4688 { { case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691 esac
4692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4693 $as_echo "$ac_try_echo"; } >&5
4694 (eval "$ac_try") 2>&5
4695 ac_status=$?
4696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4697 test $ac_status = 0; }; }; then
4698 cross_compiling=no
4699 else
4700 if test "$cross_compiling" = maybe; then
4701 cross_compiling=yes
4702 else
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "cannot run C compiled programs.
4706 If you meant to cross compile, use \`--host'.
4707 See \`config.log' for more details" "$LINENO" 5; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4712 $as_echo "$cross_compiling" >&6; }
4714 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4715 ac_clean_files=$ac_clean_files_save
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4717 $as_echo_n "checking for suffix of object files... " >&6; }
4718 if ${ac_cv_objext+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4725 main ()
4729 return 0;
4731 _ACEOF
4732 rm -f conftest.o conftest.obj
4733 if { { ac_try="$ac_compile"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739 $as_echo "$ac_try_echo"; } >&5
4740 (eval "$ac_compile") 2>&5
4741 ac_status=$?
4742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743 test $ac_status = 0; }; then :
4744 for ac_file in conftest.o conftest.obj conftest.*; do
4745 test -f "$ac_file" || continue;
4746 case $ac_file in
4747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4748 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4749 break;;
4750 esac
4751 done
4752 else
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "cannot compute suffix of object files: cannot compile
4759 See \`config.log' for more details" "$LINENO" 5; }
4761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4764 $as_echo "$ac_cv_objext" >&6; }
4765 OBJEXT=$ac_cv_objext
4766 ac_objext=$OBJEXT
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4768 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4769 if ${ac_cv_c_compiler_gnu+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4776 main ()
4778 #ifndef __GNUC__
4779 choke me
4780 #endif
4783 return 0;
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_compiler_gnu=yes
4788 else
4789 ac_compiler_gnu=no
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4796 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4797 if test $ac_compiler_gnu = yes; then
4798 GCC=yes
4799 else
4800 GCC=
4802 ac_test_CFLAGS=${CFLAGS+set}
4803 ac_save_CFLAGS=$CFLAGS
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4805 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4806 if ${ac_cv_prog_cc_g+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 ac_save_c_werror_flag=$ac_c_werror_flag
4810 ac_c_werror_flag=yes
4811 ac_cv_prog_cc_g=no
4812 CFLAGS="-g"
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4817 main ()
4821 return 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_cv_prog_cc_g=yes
4826 else
4827 CFLAGS=""
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4832 main ()
4836 return 0;
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4841 else
4842 ac_c_werror_flag=$ac_save_c_werror_flag
4843 CFLAGS="-g"
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4848 main ()
4852 return 0;
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 ac_cv_prog_cc_g=yes
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 ac_c_werror_flag=$ac_save_c_werror_flag
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4866 $as_echo "$ac_cv_prog_cc_g" >&6; }
4867 if test "$ac_test_CFLAGS" = set; then
4868 CFLAGS=$ac_save_CFLAGS
4869 elif test $ac_cv_prog_cc_g = yes; then
4870 if test "$GCC" = yes; then
4871 CFLAGS="-g -O2"
4872 else
4873 CFLAGS="-g"
4875 else
4876 if test "$GCC" = yes; then
4877 CFLAGS="-O2"
4878 else
4879 CFLAGS=
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4883 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4884 if ${ac_cv_prog_cc_c89+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 ac_cv_prog_cc_c89=no
4888 ac_save_CC=$CC
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #include <stdarg.h>
4892 #include <stdio.h>
4893 struct stat;
4894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4895 struct buf { int x; };
4896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4897 static char *e (p, i)
4898 char **p;
4899 int i;
4901 return p[i];
4903 static char *f (char * (*g) (char **, int), char **p, ...)
4905 char *s;
4906 va_list v;
4907 va_start (v,p);
4908 s = g (p, va_arg (v,int));
4909 va_end (v);
4910 return s;
4913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4914 function prototypes and stuff, but not '\xHH' hex character constants.
4915 These don't provoke an error unfortunately, instead are silently treated
4916 as 'x'. The following induces an error, until -std is added to get
4917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4918 array size at least. It's necessary to write '\x00'==0 to get something
4919 that's true only with -std. */
4920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4923 inside strings and character constants. */
4924 #define FOO(x) 'x'
4925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4927 int test (int i, double x);
4928 struct s1 {int (*f) (int a);};
4929 struct s2 {int (*f) (double a);};
4930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4931 int argc;
4932 char **argv;
4934 main ()
4936 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4938 return 0;
4940 _ACEOF
4941 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4942 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4944 CC="$ac_save_CC $ac_arg"
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_prog_cc_c89=$ac_arg
4948 rm -f core conftest.err conftest.$ac_objext
4949 test "x$ac_cv_prog_cc_c89" != "xno" && break
4950 done
4951 rm -f conftest.$ac_ext
4952 CC=$ac_save_CC
4955 # AC_CACHE_VAL
4956 case "x$ac_cv_prog_cc_c89" in
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4959 $as_echo "none needed" >&6; } ;;
4960 xno)
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4962 $as_echo "unsupported" >&6; } ;;
4964 CC="$CC $ac_cv_prog_cc_c89"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4967 esac
4968 if test "x$ac_cv_prog_cc_c89" != xno; then :
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4979 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4980 if ${ac_cv_prog_cc_c99+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 ac_cv_prog_cc_c99=no
4984 ac_save_CC=$CC
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #include <stdarg.h>
4988 #include <stdbool.h>
4989 #include <stdlib.h>
4990 #include <wchar.h>
4991 #include <stdio.h>
4993 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4994 #define debug(...) fprintf (stderr, __VA_ARGS__)
4995 #define showlist(...) puts (#__VA_ARGS__)
4996 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4997 static void
4998 test_varargs_macros (void)
5000 int x = 1234;
5001 int y = 5678;
5002 debug ("Flag");
5003 debug ("X = %d\n", x);
5004 showlist (The first, second, and third items.);
5005 report (x>y, "x is %d but y is %d", x, y);
5008 // Check long long types.
5009 #define BIG64 18446744073709551615ull
5010 #define BIG32 4294967295ul
5011 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5012 #if !BIG_OK
5013 your preprocessor is broken;
5014 #endif
5015 #if BIG_OK
5016 #else
5017 your preprocessor is broken;
5018 #endif
5019 static long long int bignum = -9223372036854775807LL;
5020 static unsigned long long int ubignum = BIG64;
5022 struct incomplete_array
5024 int datasize;
5025 double data[];
5028 struct named_init {
5029 int number;
5030 const wchar_t *name;
5031 double average;
5034 typedef const char *ccp;
5036 static inline int
5037 test_restrict (ccp restrict text)
5039 // See if C++-style comments work.
5040 // Iterate through items via the restricted pointer.
5041 // Also check for declarations in for loops.
5042 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5043 continue;
5044 return 0;
5047 // Check varargs and va_copy.
5048 static void
5049 test_varargs (const char *format, ...)
5051 va_list args;
5052 va_start (args, format);
5053 va_list args_copy;
5054 va_copy (args_copy, args);
5056 const char *str;
5057 int number;
5058 float fnumber;
5060 while (*format)
5062 switch (*format++)
5064 case 's': // string
5065 str = va_arg (args_copy, const char *);
5066 break;
5067 case 'd': // int
5068 number = va_arg (args_copy, int);
5069 break;
5070 case 'f': // float
5071 fnumber = va_arg (args_copy, double);
5072 break;
5073 default:
5074 break;
5077 va_end (args_copy);
5078 va_end (args);
5082 main ()
5085 // Check bool.
5086 _Bool success = false;
5088 // Check restrict.
5089 if (test_restrict ("String literal") == 0)
5090 success = true;
5091 char *restrict newvar = "Another string";
5093 // Check varargs.
5094 test_varargs ("s, d' f .", "string", 65, 34.234);
5095 test_varargs_macros ();
5097 // Check flexible array members.
5098 struct incomplete_array *ia =
5099 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5100 ia->datasize = 10;
5101 for (int i = 0; i < ia->datasize; ++i)
5102 ia->data[i] = i * 1.234;
5104 // Check named initializers.
5105 struct named_init ni = {
5106 .number = 34,
5107 .name = L"Test wide string",
5108 .average = 543.34343,
5111 ni.number = 58;
5113 int dynamic_array[ni.number];
5114 dynamic_array[ni.number - 1] = 543;
5116 // work around unused variable warnings
5117 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5118 || dynamic_array[ni.number - 1] != 543);
5121 return 0;
5123 _ACEOF
5124 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5126 CC="$ac_save_CC $ac_arg"
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 ac_cv_prog_cc_c99=$ac_arg
5130 rm -f core conftest.err conftest.$ac_objext
5131 test "x$ac_cv_prog_cc_c99" != "xno" && break
5132 done
5133 rm -f conftest.$ac_ext
5134 CC=$ac_save_CC
5137 # AC_CACHE_VAL
5138 case "x$ac_cv_prog_cc_c99" in
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5141 $as_echo "none needed" >&6; } ;;
5142 xno)
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5144 $as_echo "unsupported" >&6; } ;;
5146 CC="$CC $ac_cv_prog_cc_c99"
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5148 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5149 esac
5150 if test "x$ac_cv_prog_cc_c99" != xno; then :
5155 ac_ext=cpp
5156 ac_cpp='$CXXCPP $CPPFLAGS'
5157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160 if test -z "$CXX"; then
5161 if test -n "$CCC"; then
5162 CXX=$CCC
5163 else
5164 if test -n "$ac_tool_prefix"; then
5165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_CXX+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$CXX"; then
5175 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5194 CXX=$ac_cv_prog_CXX
5195 if test -n "$CXX"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5197 $as_echo "$CXX" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 test -n "$CXX" && break
5205 done
5207 if test -z "$CXX"; then
5208 ac_ct_CXX=$CXX
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy $ac_prog; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$ac_ct_CXX"; then
5219 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_CXX="$ac_prog"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5239 if test -n "$ac_ct_CXX"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5241 $as_echo "$ac_ct_CXX" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 test -n "$ac_ct_CXX" && break
5249 done
5251 if test "x$ac_ct_CXX" = x; then
5252 CXX="g++"
5253 else
5254 case $cross_compiling:$ac_tool_warned in
5255 yes:)
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258 ac_tool_warned=yes ;;
5259 esac
5260 CXX=$ac_ct_CXX
5266 # Provide some information about the compiler.
5267 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5268 set X $ac_compile
5269 ac_compiler=$2
5270 for ac_option in --version -v -V -qversion; do
5271 { { ac_try="$ac_compiler $ac_option >&5"
5272 case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277 $as_echo "$ac_try_echo"; } >&5
5278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5279 ac_status=$?
5280 if test -s conftest.err; then
5281 sed '10a\
5282 ... rest of stderr output deleted ...
5283 10q' conftest.err >conftest.er1
5284 cat conftest.er1 >&5
5286 rm -f conftest.er1 conftest.err
5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288 test $ac_status = 0; }
5289 done
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5292 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5293 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5300 main ()
5302 #ifndef __GNUC__
5303 choke me
5304 #endif
5307 return 0;
5309 _ACEOF
5310 if ac_fn_cxx_try_compile "$LINENO"; then :
5311 ac_compiler_gnu=yes
5312 else
5313 ac_compiler_gnu=no
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5320 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5321 if test $ac_compiler_gnu = yes; then
5322 GXX=yes
5323 else
5324 GXX=
5326 ac_test_CXXFLAGS=${CXXFLAGS+set}
5327 ac_save_CXXFLAGS=$CXXFLAGS
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5329 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5330 if ${ac_cv_prog_cxx_g+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5334 ac_cxx_werror_flag=yes
5335 ac_cv_prog_cxx_g=no
5336 CXXFLAGS="-g"
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5341 main ()
5345 return 0;
5347 _ACEOF
5348 if ac_fn_cxx_try_compile "$LINENO"; then :
5349 ac_cv_prog_cxx_g=yes
5350 else
5351 CXXFLAGS=""
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5356 main ()
5360 return 0;
5362 _ACEOF
5363 if ac_fn_cxx_try_compile "$LINENO"; then :
5365 else
5366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5367 CXXFLAGS="-g"
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5372 main ()
5376 return 0;
5378 _ACEOF
5379 if ac_fn_cxx_try_compile "$LINENO"; then :
5380 ac_cv_prog_cxx_g=yes
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5390 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5391 if test "$ac_test_CXXFLAGS" = set; then
5392 CXXFLAGS=$ac_save_CXXFLAGS
5393 elif test $ac_cv_prog_cxx_g = yes; then
5394 if test "$GXX" = yes; then
5395 CXXFLAGS="-g -O2"
5396 else
5397 CXXFLAGS="-g"
5399 else
5400 if test "$GXX" = yes; then
5401 CXXFLAGS="-O2"
5402 else
5403 CXXFLAGS=
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 # We must set the default linker to the linker used by gcc for the correct
5414 # operation of libtool. If LD is not defined and we are using gcc, try to
5415 # set the LD default to the ld used by gcc.
5416 if test -z "$LD"; then
5417 if test "$GCC" = yes; then
5418 case $build in
5419 *-*-mingw*)
5420 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5422 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5423 esac
5424 case $gcc_prog_ld in
5425 # Accept absolute paths.
5426 [\\/]* | [A-Za-z]:[\\/]*)
5427 LD="$gcc_prog_ld" ;;
5428 esac
5432 # Check whether -static-libstdc++ -static-libgcc is supported.
5433 have_static_libs=no
5434 if test "$GCC" = yes; then
5435 saved_LDFLAGS="$LDFLAGS"
5437 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5439 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5440 ac_ext=cpp
5441 ac_cpp='$CXXCPP $CPPFLAGS'
5442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5450 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5451 #error -static-libstdc++ not implemented
5452 #endif
5453 int main() {}
5454 _ACEOF
5455 if ac_fn_cxx_try_link "$LINENO"; then :
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5457 $as_echo "yes" >&6; }; have_static_libs=yes
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5462 rm -f core conftest.err conftest.$ac_objext \
5463 conftest$ac_exeext conftest.$ac_ext
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471 LDFLAGS="$saved_LDFLAGS"
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_GNATBIND+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test -n "$GNATBIND"; then
5486 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5501 IFS=$as_save_IFS
5505 GNATBIND=$ac_cv_prog_GNATBIND
5506 if test -n "$GNATBIND"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5508 $as_echo "$GNATBIND" >&6; }
5509 else
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5516 if test -z "$ac_cv_prog_GNATBIND"; then
5517 ac_ct_GNATBIND=$GNATBIND
5518 # Extract the first word of "gnatbind", so it can be a program name with args.
5519 set dummy gnatbind; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$ac_ct_GNATBIND"; then
5526 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5546 if test -n "$ac_ct_GNATBIND"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5548 $as_echo "$ac_ct_GNATBIND" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5554 if test "x$ac_ct_GNATBIND" = x; then
5555 GNATBIND="no"
5556 else
5557 case $cross_compiling:$ac_tool_warned in
5558 yes:)
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5561 ac_tool_warned=yes ;;
5562 esac
5563 GNATBIND=$ac_ct_GNATBIND
5565 else
5566 GNATBIND="$ac_cv_prog_GNATBIND"
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_GNATMAKE+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$GNATMAKE"; then
5578 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5591 done
5592 done
5593 IFS=$as_save_IFS
5597 GNATMAKE=$ac_cv_prog_GNATMAKE
5598 if test -n "$GNATMAKE"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5600 $as_echo "$GNATMAKE" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5608 if test -z "$ac_cv_prog_GNATMAKE"; then
5609 ac_ct_GNATMAKE=$GNATMAKE
5610 # Extract the first word of "gnatmake", so it can be a program name with args.
5611 set dummy gnatmake; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$ac_ct_GNATMAKE"; then
5618 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5631 done
5632 done
5633 IFS=$as_save_IFS
5637 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5638 if test -n "$ac_ct_GNATMAKE"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5640 $as_echo "$ac_ct_GNATMAKE" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5646 if test "x$ac_ct_GNATMAKE" = x; then
5647 GNATMAKE="no"
5648 else
5649 case $cross_compiling:$ac_tool_warned in
5650 yes:)
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned=yes ;;
5654 esac
5655 GNATMAKE=$ac_ct_GNATMAKE
5657 else
5658 GNATMAKE="$ac_cv_prog_GNATMAKE"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5662 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5663 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat >conftest.adb <<EOF
5667 pragma Warnings (Off);
5668 with System.CRTL;
5669 pragma Warnings (On);
5670 use type System.CRTL.int64;
5671 procedure conftest is begin null; end conftest;
5673 acx_cv_cc_gcc_supports_ada=no
5674 # There is a bug in old released versions of GCC which causes the
5675 # driver to exit successfully when the appropriate language module
5676 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5677 # Therefore we must check for the error message as well as an
5678 # unsuccessful exit.
5679 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5680 # given a .adb file, but produce no object file. So we must check
5681 # if an object file was really produced to guard against this.
5682 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5683 if test x"$errors" = x && test -f conftest.$ac_objext; then
5684 acx_cv_cc_gcc_supports_ada=yes
5686 rm -f conftest.*
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5689 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5691 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5692 have_gnat=yes
5693 else
5694 have_gnat=no
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_GDC+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$GDC"; then
5708 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5721 done
5722 done
5723 IFS=$as_save_IFS
5727 GDC=$ac_cv_prog_GDC
5728 if test -n "$GDC"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5730 $as_echo "$GDC" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5738 if test -z "$ac_cv_prog_GDC"; then
5739 ac_ct_GDC=$GDC
5740 # Extract the first word of "gdc", so it can be a program name with args.
5741 set dummy gdc; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$ac_ct_GDC"; then
5748 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_GDC="gdc"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5761 done
5762 done
5763 IFS=$as_save_IFS
5767 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5768 if test -n "$ac_ct_GDC"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5770 $as_echo "$ac_ct_GDC" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5776 if test "x$ac_ct_GDC" = x; then
5777 GDC="no"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 GDC=$ac_ct_GDC
5787 else
5788 GDC="$ac_cv_prog_GDC"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5792 $as_echo_n "checking whether the D compiler works... " >&6; }
5793 if ${acx_cv_d_compiler_works+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat >conftest.d <<EOF
5797 module conftest; int main() { return 0; }
5799 acx_cv_d_compiler_works=no
5800 if test "x$GDC" != xno; then
5801 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5802 if test x"$errors" = x && test -f conftest.$ac_objext; then
5803 acx_cv_d_compiler_works=yes
5805 rm -f conftest.*
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5809 $as_echo "$acx_cv_d_compiler_works" >&6; }
5810 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5811 have_gdc=yes
5812 else
5813 have_gdc=no
5816 for ac_prog in cargo
5818 # Extract the first word of "$ac_prog", so it can be a program name with args.
5819 set dummy $ac_prog; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_CARGO+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$CARGO"; then
5826 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_CARGO="$ac_prog"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5839 done
5840 done
5841 IFS=$as_save_IFS
5845 CARGO=$ac_cv_prog_CARGO
5846 if test -n "$CARGO"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5848 $as_echo "$CARGO" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5855 test -n "$CARGO" && break
5856 done
5857 test -n "$CARGO" || CARGO="no"
5859 if test "x$CARGO" != xno; then
5860 have_cargo=yes
5861 else
5862 have_cargo=no
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5865 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5866 if ${gcc_cv_prog_cmp_skip+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 echo abfoo >t1
5870 echo cdfoo >t2
5871 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5872 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5873 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5875 else
5876 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5879 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5880 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5882 else
5883 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5886 rm t1 t2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5890 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5891 do_compare="$gcc_cv_prog_cmp_skip"
5895 # Check whether --enable-bootstrap was given.
5896 if test "${enable_bootstrap+set}" = set; then :
5897 enableval=$enable_bootstrap;
5898 else
5899 enable_bootstrap=default
5903 # Issue errors and warnings for invalid/strange bootstrap combinations.
5904 if test -r $srcdir/gcc/configure; then
5905 have_compiler=yes
5906 else
5907 have_compiler=no
5910 case "$have_compiler:$host:$target:$enable_bootstrap" in
5911 *:*:*:no) ;;
5913 # Default behavior. Enable bootstrap if we have a compiler
5914 # and we are in a native configuration.
5915 yes:$build:$build:default)
5916 enable_bootstrap=yes ;;
5918 *:*:*:default)
5919 enable_bootstrap=no ;;
5921 # We have a compiler and we are in a native configuration, bootstrap is ok
5922 yes:$build:$build:yes)
5925 # Other configurations, but we have a compiler. Assume the user knows
5926 # what he's doing.
5927 yes:*:*:yes)
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5929 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5932 # No compiler: if they passed --enable-bootstrap explicitly, fail
5933 no:*:*:yes)
5934 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5936 # Fail if wrong command line
5938 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5940 esac
5942 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
5943 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
5944 # require C++14 (or higher).
5945 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5946 CXX="$CXX -std=c++14"
5947 elif test "$have_compiler" = yes; then
5948 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
5949 ac_ext=cpp
5950 ac_cpp='$CXXCPP $CPPFLAGS'
5951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5954 ac_success=no
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5957 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5958 if ${ax_cv_cxx_compile_cxx14+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5965 // If the compiler admits that it is not ready for C++11, why torture it?
5966 // Hopefully, this will speed up the test.
5968 #ifndef __cplusplus
5970 #error "This is not a C++ compiler"
5972 #elif __cplusplus < 201103L
5974 #error "This is not a C++11 compiler"
5976 #else
5978 namespace cxx11
5981 namespace test_static_assert
5984 template <typename T>
5985 struct check
5987 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5992 namespace test_final_override
5995 struct Base
5997 virtual ~Base() {}
5998 virtual void f() {}
6001 struct Derived : public Base
6003 virtual ~Derived() override {}
6004 virtual void f() override {}
6009 namespace test_double_right_angle_brackets
6012 template < typename T >
6013 struct check {};
6015 typedef check<void> single_type;
6016 typedef check<check<void>> double_type;
6017 typedef check<check<check<void>>> triple_type;
6018 typedef check<check<check<check<void>>>> quadruple_type;
6022 namespace test_decltype
6028 int a = 1;
6029 decltype(a) b = 2;
6030 return a + b;
6035 namespace test_type_deduction
6038 template < typename T1, typename T2 >
6039 struct is_same
6041 static const bool value = false;
6044 template < typename T >
6045 struct is_same<T, T>
6047 static const bool value = true;
6050 template < typename T1, typename T2 >
6051 auto
6052 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6054 return a1 + a2;
6058 test(const int c, volatile int v)
6060 static_assert(is_same<int, decltype(0)>::value == true, "");
6061 static_assert(is_same<int, decltype(c)>::value == false, "");
6062 static_assert(is_same<int, decltype(v)>::value == false, "");
6063 auto ac = c;
6064 auto av = v;
6065 auto sumi = ac + av + 'x';
6066 auto sumf = ac + av + 1.0;
6067 static_assert(is_same<int, decltype(ac)>::value == true, "");
6068 static_assert(is_same<int, decltype(av)>::value == true, "");
6069 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6070 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6071 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6072 return (sumf > 0.0) ? sumi : add(c, v);
6077 namespace test_noexcept
6080 int f() { return 0; }
6081 int g() noexcept { return 0; }
6083 static_assert(noexcept(f()) == false, "");
6084 static_assert(noexcept(g()) == true, "");
6088 namespace test_constexpr
6091 template < typename CharT >
6092 unsigned long constexpr
6093 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6095 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6098 template < typename CharT >
6099 unsigned long constexpr
6100 strlen_c(const CharT *const s) noexcept
6102 return strlen_c_r(s, 0UL);
6105 static_assert(strlen_c("") == 0UL, "");
6106 static_assert(strlen_c("1") == 1UL, "");
6107 static_assert(strlen_c("example") == 7UL, "");
6108 static_assert(strlen_c("another\0example") == 7UL, "");
6112 namespace test_rvalue_references
6115 template < int N >
6116 struct answer
6118 static constexpr int value = N;
6121 answer<1> f(int&) { return answer<1>(); }
6122 answer<2> f(const int&) { return answer<2>(); }
6123 answer<3> f(int&&) { return answer<3>(); }
6125 void
6126 test()
6128 int i = 0;
6129 const int c = 0;
6130 static_assert(decltype(f(i))::value == 1, "");
6131 static_assert(decltype(f(c))::value == 2, "");
6132 static_assert(decltype(f(0))::value == 3, "");
6137 namespace test_uniform_initialization
6140 struct test
6142 static const int zero {};
6143 static const int one {1};
6146 static_assert(test::zero == 0, "");
6147 static_assert(test::one == 1, "");
6151 namespace test_lambdas
6154 void
6155 test1()
6157 auto lambda1 = [](){};
6158 auto lambda2 = lambda1;
6159 lambda1();
6160 lambda2();
6164 test2()
6166 auto a = [](int i, int j){ return i + j; }(1, 2);
6167 auto b = []() -> int { return '0'; }();
6168 auto c = [=](){ return a + b; }();
6169 auto d = [&](){ return c; }();
6170 auto e = [a, &b](int x) mutable {
6171 const auto identity = [](int y){ return y; };
6172 for (auto i = 0; i < a; ++i)
6173 a += b--;
6174 return x + identity(a + b);
6175 }(0);
6176 return a + b + c + d + e;
6180 test3()
6182 const auto nullary = [](){ return 0; };
6183 const auto unary = [](int x){ return x; };
6184 using nullary_t = decltype(nullary);
6185 using unary_t = decltype(unary);
6186 const auto higher1st = [](nullary_t f){ return f(); };
6187 const auto higher2nd = [unary](nullary_t f1){
6188 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6190 return higher1st(nullary) + higher2nd(nullary)(unary);
6195 namespace test_variadic_templates
6198 template <int...>
6199 struct sum;
6201 template <int N0, int... N1toN>
6202 struct sum<N0, N1toN...>
6204 static constexpr auto value = N0 + sum<N1toN...>::value;
6207 template <>
6208 struct sum<>
6210 static constexpr auto value = 0;
6213 static_assert(sum<>::value == 0, "");
6214 static_assert(sum<1>::value == 1, "");
6215 static_assert(sum<23>::value == 23, "");
6216 static_assert(sum<1, 2>::value == 3, "");
6217 static_assert(sum<5, 5, 11>::value == 21, "");
6218 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6222 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6223 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6224 // because of this.
6225 namespace test_template_alias_sfinae
6228 struct foo {};
6230 template<typename T>
6231 using member = typename T::member_type;
6233 template<typename T>
6234 void func(...) {}
6236 template<typename T>
6237 void func(member<T>*) {}
6239 void test();
6241 void test() { func<foo>(0); }
6245 } // namespace cxx11
6247 #endif // __cplusplus >= 201103L
6252 // If the compiler admits that it is not ready for C++14, why torture it?
6253 // Hopefully, this will speed up the test.
6255 #ifndef __cplusplus
6257 #error "This is not a C++ compiler"
6259 #elif __cplusplus < 201402L
6261 #error "This is not a C++14 compiler"
6263 #else
6265 namespace cxx14
6268 namespace test_polymorphic_lambdas
6272 test()
6274 const auto lambda = [](auto&&... args){
6275 const auto istiny = [](auto x){
6276 return (sizeof(x) == 1UL) ? 1 : 0;
6278 const int aretiny[] = { istiny(args)... };
6279 return aretiny[0];
6281 return lambda(1, 1L, 1.0f, '1');
6286 namespace test_binary_literals
6289 constexpr auto ivii = 0b0000000000101010;
6290 static_assert(ivii == 42, "wrong value");
6294 namespace test_generalized_constexpr
6297 template < typename CharT >
6298 constexpr unsigned long
6299 strlen_c(const CharT *const s) noexcept
6301 auto length = 0UL;
6302 for (auto p = s; *p; ++p)
6303 ++length;
6304 return length;
6307 static_assert(strlen_c("") == 0UL, "");
6308 static_assert(strlen_c("x") == 1UL, "");
6309 static_assert(strlen_c("test") == 4UL, "");
6310 static_assert(strlen_c("another\0test") == 7UL, "");
6314 namespace test_lambda_init_capture
6318 test()
6320 auto x = 0;
6321 const auto lambda1 = [a = x](int b){ return a + b; };
6322 const auto lambda2 = [a = lambda1(x)](){ return a; };
6323 return lambda2();
6328 namespace test_digit_separators
6331 constexpr auto ten_million = 100'000'000;
6332 static_assert(ten_million == 100000000, "");
6336 namespace test_return_type_deduction
6339 auto f(int& x) { return x; }
6340 decltype(auto) g(int& x) { return x; }
6342 template < typename T1, typename T2 >
6343 struct is_same
6345 static constexpr auto value = false;
6348 template < typename T >
6349 struct is_same<T, T>
6351 static constexpr auto value = true;
6355 test()
6357 auto x = 0;
6358 static_assert(is_same<int, decltype(f(x))>::value, "");
6359 static_assert(is_same<int&, decltype(g(x))>::value, "");
6360 return x;
6365 } // namespace cxx14
6367 #endif // __cplusplus >= 201402L
6371 _ACEOF
6372 if ac_fn_cxx_try_compile "$LINENO"; then :
6373 ax_cv_cxx_compile_cxx14=yes
6374 else
6375 ax_cv_cxx_compile_cxx14=no
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6380 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6381 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
6382 ac_success=yes
6385 if test x$ac_success = xno; then
6386 for alternative in ${ax_cxx_compile_alternatives}; do
6387 switch="-std=gnu++${alternative}"
6388 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6390 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6391 if eval \${$cachevar+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 ac_save_CXX="$CXX"
6395 CXX="$CXX $switch"
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6400 // If the compiler admits that it is not ready for C++11, why torture it?
6401 // Hopefully, this will speed up the test.
6403 #ifndef __cplusplus
6405 #error "This is not a C++ compiler"
6407 #elif __cplusplus < 201103L
6409 #error "This is not a C++11 compiler"
6411 #else
6413 namespace cxx11
6416 namespace test_static_assert
6419 template <typename T>
6420 struct check
6422 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6427 namespace test_final_override
6430 struct Base
6432 virtual ~Base() {}
6433 virtual void f() {}
6436 struct Derived : public Base
6438 virtual ~Derived() override {}
6439 virtual void f() override {}
6444 namespace test_double_right_angle_brackets
6447 template < typename T >
6448 struct check {};
6450 typedef check<void> single_type;
6451 typedef check<check<void>> double_type;
6452 typedef check<check<check<void>>> triple_type;
6453 typedef check<check<check<check<void>>>> quadruple_type;
6457 namespace test_decltype
6463 int a = 1;
6464 decltype(a) b = 2;
6465 return a + b;
6470 namespace test_type_deduction
6473 template < typename T1, typename T2 >
6474 struct is_same
6476 static const bool value = false;
6479 template < typename T >
6480 struct is_same<T, T>
6482 static const bool value = true;
6485 template < typename T1, typename T2 >
6486 auto
6487 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6489 return a1 + a2;
6493 test(const int c, volatile int v)
6495 static_assert(is_same<int, decltype(0)>::value == true, "");
6496 static_assert(is_same<int, decltype(c)>::value == false, "");
6497 static_assert(is_same<int, decltype(v)>::value == false, "");
6498 auto ac = c;
6499 auto av = v;
6500 auto sumi = ac + av + 'x';
6501 auto sumf = ac + av + 1.0;
6502 static_assert(is_same<int, decltype(ac)>::value == true, "");
6503 static_assert(is_same<int, decltype(av)>::value == true, "");
6504 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6505 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6506 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6507 return (sumf > 0.0) ? sumi : add(c, v);
6512 namespace test_noexcept
6515 int f() { return 0; }
6516 int g() noexcept { return 0; }
6518 static_assert(noexcept(f()) == false, "");
6519 static_assert(noexcept(g()) == true, "");
6523 namespace test_constexpr
6526 template < typename CharT >
6527 unsigned long constexpr
6528 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6530 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6533 template < typename CharT >
6534 unsigned long constexpr
6535 strlen_c(const CharT *const s) noexcept
6537 return strlen_c_r(s, 0UL);
6540 static_assert(strlen_c("") == 0UL, "");
6541 static_assert(strlen_c("1") == 1UL, "");
6542 static_assert(strlen_c("example") == 7UL, "");
6543 static_assert(strlen_c("another\0example") == 7UL, "");
6547 namespace test_rvalue_references
6550 template < int N >
6551 struct answer
6553 static constexpr int value = N;
6556 answer<1> f(int&) { return answer<1>(); }
6557 answer<2> f(const int&) { return answer<2>(); }
6558 answer<3> f(int&&) { return answer<3>(); }
6560 void
6561 test()
6563 int i = 0;
6564 const int c = 0;
6565 static_assert(decltype(f(i))::value == 1, "");
6566 static_assert(decltype(f(c))::value == 2, "");
6567 static_assert(decltype(f(0))::value == 3, "");
6572 namespace test_uniform_initialization
6575 struct test
6577 static const int zero {};
6578 static const int one {1};
6581 static_assert(test::zero == 0, "");
6582 static_assert(test::one == 1, "");
6586 namespace test_lambdas
6589 void
6590 test1()
6592 auto lambda1 = [](){};
6593 auto lambda2 = lambda1;
6594 lambda1();
6595 lambda2();
6599 test2()
6601 auto a = [](int i, int j){ return i + j; }(1, 2);
6602 auto b = []() -> int { return '0'; }();
6603 auto c = [=](){ return a + b; }();
6604 auto d = [&](){ return c; }();
6605 auto e = [a, &b](int x) mutable {
6606 const auto identity = [](int y){ return y; };
6607 for (auto i = 0; i < a; ++i)
6608 a += b--;
6609 return x + identity(a + b);
6610 }(0);
6611 return a + b + c + d + e;
6615 test3()
6617 const auto nullary = [](){ return 0; };
6618 const auto unary = [](int x){ return x; };
6619 using nullary_t = decltype(nullary);
6620 using unary_t = decltype(unary);
6621 const auto higher1st = [](nullary_t f){ return f(); };
6622 const auto higher2nd = [unary](nullary_t f1){
6623 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6625 return higher1st(nullary) + higher2nd(nullary)(unary);
6630 namespace test_variadic_templates
6633 template <int...>
6634 struct sum;
6636 template <int N0, int... N1toN>
6637 struct sum<N0, N1toN...>
6639 static constexpr auto value = N0 + sum<N1toN...>::value;
6642 template <>
6643 struct sum<>
6645 static constexpr auto value = 0;
6648 static_assert(sum<>::value == 0, "");
6649 static_assert(sum<1>::value == 1, "");
6650 static_assert(sum<23>::value == 23, "");
6651 static_assert(sum<1, 2>::value == 3, "");
6652 static_assert(sum<5, 5, 11>::value == 21, "");
6653 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6657 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6658 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6659 // because of this.
6660 namespace test_template_alias_sfinae
6663 struct foo {};
6665 template<typename T>
6666 using member = typename T::member_type;
6668 template<typename T>
6669 void func(...) {}
6671 template<typename T>
6672 void func(member<T>*) {}
6674 void test();
6676 void test() { func<foo>(0); }
6680 } // namespace cxx11
6682 #endif // __cplusplus >= 201103L
6687 // If the compiler admits that it is not ready for C++14, why torture it?
6688 // Hopefully, this will speed up the test.
6690 #ifndef __cplusplus
6692 #error "This is not a C++ compiler"
6694 #elif __cplusplus < 201402L
6696 #error "This is not a C++14 compiler"
6698 #else
6700 namespace cxx14
6703 namespace test_polymorphic_lambdas
6707 test()
6709 const auto lambda = [](auto&&... args){
6710 const auto istiny = [](auto x){
6711 return (sizeof(x) == 1UL) ? 1 : 0;
6713 const int aretiny[] = { istiny(args)... };
6714 return aretiny[0];
6716 return lambda(1, 1L, 1.0f, '1');
6721 namespace test_binary_literals
6724 constexpr auto ivii = 0b0000000000101010;
6725 static_assert(ivii == 42, "wrong value");
6729 namespace test_generalized_constexpr
6732 template < typename CharT >
6733 constexpr unsigned long
6734 strlen_c(const CharT *const s) noexcept
6736 auto length = 0UL;
6737 for (auto p = s; *p; ++p)
6738 ++length;
6739 return length;
6742 static_assert(strlen_c("") == 0UL, "");
6743 static_assert(strlen_c("x") == 1UL, "");
6744 static_assert(strlen_c("test") == 4UL, "");
6745 static_assert(strlen_c("another\0test") == 7UL, "");
6749 namespace test_lambda_init_capture
6753 test()
6755 auto x = 0;
6756 const auto lambda1 = [a = x](int b){ return a + b; };
6757 const auto lambda2 = [a = lambda1(x)](){ return a; };
6758 return lambda2();
6763 namespace test_digit_separators
6766 constexpr auto ten_million = 100'000'000;
6767 static_assert(ten_million == 100000000, "");
6771 namespace test_return_type_deduction
6774 auto f(int& x) { return x; }
6775 decltype(auto) g(int& x) { return x; }
6777 template < typename T1, typename T2 >
6778 struct is_same
6780 static constexpr auto value = false;
6783 template < typename T >
6784 struct is_same<T, T>
6786 static constexpr auto value = true;
6790 test()
6792 auto x = 0;
6793 static_assert(is_same<int, decltype(f(x))>::value, "");
6794 static_assert(is_same<int&, decltype(g(x))>::value, "");
6795 return x;
6800 } // namespace cxx14
6802 #endif // __cplusplus >= 201402L
6806 _ACEOF
6807 if ac_fn_cxx_try_compile "$LINENO"; then :
6808 eval $cachevar=yes
6809 else
6810 eval $cachevar=no
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 CXX="$ac_save_CXX"
6815 eval ac_res=\$$cachevar
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6817 $as_echo "$ac_res" >&6; }
6818 if eval test x\$$cachevar = xyes; then
6819 CXX="$CXX $switch"
6820 if test -n "$CXXCPP" ; then
6821 CXXCPP="$CXXCPP $switch"
6823 ac_success=yes
6824 break
6826 done
6829 if test x$ac_success = xno; then
6830 for alternative in ${ax_cxx_compile_alternatives}; do
6831 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6832 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6834 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6835 if eval \${$cachevar+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 ac_save_CXX="$CXX"
6839 CXX="$CXX $switch"
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6844 // If the compiler admits that it is not ready for C++11, why torture it?
6845 // Hopefully, this will speed up the test.
6847 #ifndef __cplusplus
6849 #error "This is not a C++ compiler"
6851 #elif __cplusplus < 201103L
6853 #error "This is not a C++11 compiler"
6855 #else
6857 namespace cxx11
6860 namespace test_static_assert
6863 template <typename T>
6864 struct check
6866 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6871 namespace test_final_override
6874 struct Base
6876 virtual ~Base() {}
6877 virtual void f() {}
6880 struct Derived : public Base
6882 virtual ~Derived() override {}
6883 virtual void f() override {}
6888 namespace test_double_right_angle_brackets
6891 template < typename T >
6892 struct check {};
6894 typedef check<void> single_type;
6895 typedef check<check<void>> double_type;
6896 typedef check<check<check<void>>> triple_type;
6897 typedef check<check<check<check<void>>>> quadruple_type;
6901 namespace test_decltype
6907 int a = 1;
6908 decltype(a) b = 2;
6909 return a + b;
6914 namespace test_type_deduction
6917 template < typename T1, typename T2 >
6918 struct is_same
6920 static const bool value = false;
6923 template < typename T >
6924 struct is_same<T, T>
6926 static const bool value = true;
6929 template < typename T1, typename T2 >
6930 auto
6931 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6933 return a1 + a2;
6937 test(const int c, volatile int v)
6939 static_assert(is_same<int, decltype(0)>::value == true, "");
6940 static_assert(is_same<int, decltype(c)>::value == false, "");
6941 static_assert(is_same<int, decltype(v)>::value == false, "");
6942 auto ac = c;
6943 auto av = v;
6944 auto sumi = ac + av + 'x';
6945 auto sumf = ac + av + 1.0;
6946 static_assert(is_same<int, decltype(ac)>::value == true, "");
6947 static_assert(is_same<int, decltype(av)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6949 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6950 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6951 return (sumf > 0.0) ? sumi : add(c, v);
6956 namespace test_noexcept
6959 int f() { return 0; }
6960 int g() noexcept { return 0; }
6962 static_assert(noexcept(f()) == false, "");
6963 static_assert(noexcept(g()) == true, "");
6967 namespace test_constexpr
6970 template < typename CharT >
6971 unsigned long constexpr
6972 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6974 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6977 template < typename CharT >
6978 unsigned long constexpr
6979 strlen_c(const CharT *const s) noexcept
6981 return strlen_c_r(s, 0UL);
6984 static_assert(strlen_c("") == 0UL, "");
6985 static_assert(strlen_c("1") == 1UL, "");
6986 static_assert(strlen_c("example") == 7UL, "");
6987 static_assert(strlen_c("another\0example") == 7UL, "");
6991 namespace test_rvalue_references
6994 template < int N >
6995 struct answer
6997 static constexpr int value = N;
7000 answer<1> f(int&) { return answer<1>(); }
7001 answer<2> f(const int&) { return answer<2>(); }
7002 answer<3> f(int&&) { return answer<3>(); }
7004 void
7005 test()
7007 int i = 0;
7008 const int c = 0;
7009 static_assert(decltype(f(i))::value == 1, "");
7010 static_assert(decltype(f(c))::value == 2, "");
7011 static_assert(decltype(f(0))::value == 3, "");
7016 namespace test_uniform_initialization
7019 struct test
7021 static const int zero {};
7022 static const int one {1};
7025 static_assert(test::zero == 0, "");
7026 static_assert(test::one == 1, "");
7030 namespace test_lambdas
7033 void
7034 test1()
7036 auto lambda1 = [](){};
7037 auto lambda2 = lambda1;
7038 lambda1();
7039 lambda2();
7043 test2()
7045 auto a = [](int i, int j){ return i + j; }(1, 2);
7046 auto b = []() -> int { return '0'; }();
7047 auto c = [=](){ return a + b; }();
7048 auto d = [&](){ return c; }();
7049 auto e = [a, &b](int x) mutable {
7050 const auto identity = [](int y){ return y; };
7051 for (auto i = 0; i < a; ++i)
7052 a += b--;
7053 return x + identity(a + b);
7054 }(0);
7055 return a + b + c + d + e;
7059 test3()
7061 const auto nullary = [](){ return 0; };
7062 const auto unary = [](int x){ return x; };
7063 using nullary_t = decltype(nullary);
7064 using unary_t = decltype(unary);
7065 const auto higher1st = [](nullary_t f){ return f(); };
7066 const auto higher2nd = [unary](nullary_t f1){
7067 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7069 return higher1st(nullary) + higher2nd(nullary)(unary);
7074 namespace test_variadic_templates
7077 template <int...>
7078 struct sum;
7080 template <int N0, int... N1toN>
7081 struct sum<N0, N1toN...>
7083 static constexpr auto value = N0 + sum<N1toN...>::value;
7086 template <>
7087 struct sum<>
7089 static constexpr auto value = 0;
7092 static_assert(sum<>::value == 0, "");
7093 static_assert(sum<1>::value == 1, "");
7094 static_assert(sum<23>::value == 23, "");
7095 static_assert(sum<1, 2>::value == 3, "");
7096 static_assert(sum<5, 5, 11>::value == 21, "");
7097 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7101 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7102 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7103 // because of this.
7104 namespace test_template_alias_sfinae
7107 struct foo {};
7109 template<typename T>
7110 using member = typename T::member_type;
7112 template<typename T>
7113 void func(...) {}
7115 template<typename T>
7116 void func(member<T>*) {}
7118 void test();
7120 void test() { func<foo>(0); }
7124 } // namespace cxx11
7126 #endif // __cplusplus >= 201103L
7131 // If the compiler admits that it is not ready for C++14, why torture it?
7132 // Hopefully, this will speed up the test.
7134 #ifndef __cplusplus
7136 #error "This is not a C++ compiler"
7138 #elif __cplusplus < 201402L
7140 #error "This is not a C++14 compiler"
7142 #else
7144 namespace cxx14
7147 namespace test_polymorphic_lambdas
7151 test()
7153 const auto lambda = [](auto&&... args){
7154 const auto istiny = [](auto x){
7155 return (sizeof(x) == 1UL) ? 1 : 0;
7157 const int aretiny[] = { istiny(args)... };
7158 return aretiny[0];
7160 return lambda(1, 1L, 1.0f, '1');
7165 namespace test_binary_literals
7168 constexpr auto ivii = 0b0000000000101010;
7169 static_assert(ivii == 42, "wrong value");
7173 namespace test_generalized_constexpr
7176 template < typename CharT >
7177 constexpr unsigned long
7178 strlen_c(const CharT *const s) noexcept
7180 auto length = 0UL;
7181 for (auto p = s; *p; ++p)
7182 ++length;
7183 return length;
7186 static_assert(strlen_c("") == 0UL, "");
7187 static_assert(strlen_c("x") == 1UL, "");
7188 static_assert(strlen_c("test") == 4UL, "");
7189 static_assert(strlen_c("another\0test") == 7UL, "");
7193 namespace test_lambda_init_capture
7197 test()
7199 auto x = 0;
7200 const auto lambda1 = [a = x](int b){ return a + b; };
7201 const auto lambda2 = [a = lambda1(x)](){ return a; };
7202 return lambda2();
7207 namespace test_digit_separators
7210 constexpr auto ten_million = 100'000'000;
7211 static_assert(ten_million == 100000000, "");
7215 namespace test_return_type_deduction
7218 auto f(int& x) { return x; }
7219 decltype(auto) g(int& x) { return x; }
7221 template < typename T1, typename T2 >
7222 struct is_same
7224 static constexpr auto value = false;
7227 template < typename T >
7228 struct is_same<T, T>
7230 static constexpr auto value = true;
7234 test()
7236 auto x = 0;
7237 static_assert(is_same<int, decltype(f(x))>::value, "");
7238 static_assert(is_same<int&, decltype(g(x))>::value, "");
7239 return x;
7244 } // namespace cxx14
7246 #endif // __cplusplus >= 201402L
7250 _ACEOF
7251 if ac_fn_cxx_try_compile "$LINENO"; then :
7252 eval $cachevar=yes
7253 else
7254 eval $cachevar=no
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 CXX="$ac_save_CXX"
7259 eval ac_res=\$$cachevar
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7261 $as_echo "$ac_res" >&6; }
7262 if eval test x\$$cachevar = xyes; then
7263 CXX="$CXX $switch"
7264 if test -n "$CXXCPP" ; then
7265 CXXCPP="$CXXCPP $switch"
7267 ac_success=yes
7268 break
7270 done
7271 if test x$ac_success = xyes; then
7272 break
7274 done
7277 ac_ext=c
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7284 if test x$ac_success = xno; then
7285 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
7288 if test x$ac_success = xno; then
7289 HAVE_CXX14=0
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
7291 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
7292 else
7293 HAVE_CXX14=1
7295 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7301 if test "${build}" != "${host}"; then
7302 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
7303 ac_ext=cpp
7304 ac_cpp='$CXXCPP $CPPFLAGS'
7305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7308 ac_success=no
7309 ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
7310 ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
7311 ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
7312 CXX="$CXX_FOR_BUILD"
7313 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
7314 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7316 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7317 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7324 // If the compiler admits that it is not ready for C++11, why torture it?
7325 // Hopefully, this will speed up the test.
7327 #ifndef __cplusplus
7329 #error "This is not a C++ compiler"
7331 #elif __cplusplus < 201103L
7333 #error "This is not a C++11 compiler"
7335 #else
7337 namespace cxx11
7340 namespace test_static_assert
7343 template <typename T>
7344 struct check
7346 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7351 namespace test_final_override
7354 struct Base
7356 virtual ~Base() {}
7357 virtual void f() {}
7360 struct Derived : public Base
7362 virtual ~Derived() override {}
7363 virtual void f() override {}
7368 namespace test_double_right_angle_brackets
7371 template < typename T >
7372 struct check {};
7374 typedef check<void> single_type;
7375 typedef check<check<void>> double_type;
7376 typedef check<check<check<void>>> triple_type;
7377 typedef check<check<check<check<void>>>> quadruple_type;
7381 namespace test_decltype
7387 int a = 1;
7388 decltype(a) b = 2;
7389 return a + b;
7394 namespace test_type_deduction
7397 template < typename T1, typename T2 >
7398 struct is_same
7400 static const bool value = false;
7403 template < typename T >
7404 struct is_same<T, T>
7406 static const bool value = true;
7409 template < typename T1, typename T2 >
7410 auto
7411 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7413 return a1 + a2;
7417 test(const int c, volatile int v)
7419 static_assert(is_same<int, decltype(0)>::value == true, "");
7420 static_assert(is_same<int, decltype(c)>::value == false, "");
7421 static_assert(is_same<int, decltype(v)>::value == false, "");
7422 auto ac = c;
7423 auto av = v;
7424 auto sumi = ac + av + 'x';
7425 auto sumf = ac + av + 1.0;
7426 static_assert(is_same<int, decltype(ac)>::value == true, "");
7427 static_assert(is_same<int, decltype(av)>::value == true, "");
7428 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7429 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7430 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7431 return (sumf > 0.0) ? sumi : add(c, v);
7436 namespace test_noexcept
7439 int f() { return 0; }
7440 int g() noexcept { return 0; }
7442 static_assert(noexcept(f()) == false, "");
7443 static_assert(noexcept(g()) == true, "");
7447 namespace test_constexpr
7450 template < typename CharT >
7451 unsigned long constexpr
7452 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7454 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7457 template < typename CharT >
7458 unsigned long constexpr
7459 strlen_c(const CharT *const s) noexcept
7461 return strlen_c_r(s, 0UL);
7464 static_assert(strlen_c("") == 0UL, "");
7465 static_assert(strlen_c("1") == 1UL, "");
7466 static_assert(strlen_c("example") == 7UL, "");
7467 static_assert(strlen_c("another\0example") == 7UL, "");
7471 namespace test_rvalue_references
7474 template < int N >
7475 struct answer
7477 static constexpr int value = N;
7480 answer<1> f(int&) { return answer<1>(); }
7481 answer<2> f(const int&) { return answer<2>(); }
7482 answer<3> f(int&&) { return answer<3>(); }
7484 void
7485 test()
7487 int i = 0;
7488 const int c = 0;
7489 static_assert(decltype(f(i))::value == 1, "");
7490 static_assert(decltype(f(c))::value == 2, "");
7491 static_assert(decltype(f(0))::value == 3, "");
7496 namespace test_uniform_initialization
7499 struct test
7501 static const int zero {};
7502 static const int one {1};
7505 static_assert(test::zero == 0, "");
7506 static_assert(test::one == 1, "");
7510 namespace test_lambdas
7513 void
7514 test1()
7516 auto lambda1 = [](){};
7517 auto lambda2 = lambda1;
7518 lambda1();
7519 lambda2();
7523 test2()
7525 auto a = [](int i, int j){ return i + j; }(1, 2);
7526 auto b = []() -> int { return '0'; }();
7527 auto c = [=](){ return a + b; }();
7528 auto d = [&](){ return c; }();
7529 auto e = [a, &b](int x) mutable {
7530 const auto identity = [](int y){ return y; };
7531 for (auto i = 0; i < a; ++i)
7532 a += b--;
7533 return x + identity(a + b);
7534 }(0);
7535 return a + b + c + d + e;
7539 test3()
7541 const auto nullary = [](){ return 0; };
7542 const auto unary = [](int x){ return x; };
7543 using nullary_t = decltype(nullary);
7544 using unary_t = decltype(unary);
7545 const auto higher1st = [](nullary_t f){ return f(); };
7546 const auto higher2nd = [unary](nullary_t f1){
7547 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7549 return higher1st(nullary) + higher2nd(nullary)(unary);
7554 namespace test_variadic_templates
7557 template <int...>
7558 struct sum;
7560 template <int N0, int... N1toN>
7561 struct sum<N0, N1toN...>
7563 static constexpr auto value = N0 + sum<N1toN...>::value;
7566 template <>
7567 struct sum<>
7569 static constexpr auto value = 0;
7572 static_assert(sum<>::value == 0, "");
7573 static_assert(sum<1>::value == 1, "");
7574 static_assert(sum<23>::value == 23, "");
7575 static_assert(sum<1, 2>::value == 3, "");
7576 static_assert(sum<5, 5, 11>::value == 21, "");
7577 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7581 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7582 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7583 // because of this.
7584 namespace test_template_alias_sfinae
7587 struct foo {};
7589 template<typename T>
7590 using member = typename T::member_type;
7592 template<typename T>
7593 void func(...) {}
7595 template<typename T>
7596 void func(member<T>*) {}
7598 void test();
7600 void test() { func<foo>(0); }
7604 } // namespace cxx11
7606 #endif // __cplusplus >= 201103L
7611 // If the compiler admits that it is not ready for C++14, why torture it?
7612 // Hopefully, this will speed up the test.
7614 #ifndef __cplusplus
7616 #error "This is not a C++ compiler"
7618 #elif __cplusplus < 201402L
7620 #error "This is not a C++14 compiler"
7622 #else
7624 namespace cxx14
7627 namespace test_polymorphic_lambdas
7631 test()
7633 const auto lambda = [](auto&&... args){
7634 const auto istiny = [](auto x){
7635 return (sizeof(x) == 1UL) ? 1 : 0;
7637 const int aretiny[] = { istiny(args)... };
7638 return aretiny[0];
7640 return lambda(1, 1L, 1.0f, '1');
7645 namespace test_binary_literals
7648 constexpr auto ivii = 0b0000000000101010;
7649 static_assert(ivii == 42, "wrong value");
7653 namespace test_generalized_constexpr
7656 template < typename CharT >
7657 constexpr unsigned long
7658 strlen_c(const CharT *const s) noexcept
7660 auto length = 0UL;
7661 for (auto p = s; *p; ++p)
7662 ++length;
7663 return length;
7666 static_assert(strlen_c("") == 0UL, "");
7667 static_assert(strlen_c("x") == 1UL, "");
7668 static_assert(strlen_c("test") == 4UL, "");
7669 static_assert(strlen_c("another\0test") == 7UL, "");
7673 namespace test_lambda_init_capture
7677 test()
7679 auto x = 0;
7680 const auto lambda1 = [a = x](int b){ return a + b; };
7681 const auto lambda2 = [a = lambda1(x)](){ return a; };
7682 return lambda2();
7687 namespace test_digit_separators
7690 constexpr auto ten_million = 100'000'000;
7691 static_assert(ten_million == 100000000, "");
7695 namespace test_return_type_deduction
7698 auto f(int& x) { return x; }
7699 decltype(auto) g(int& x) { return x; }
7701 template < typename T1, typename T2 >
7702 struct is_same
7704 static constexpr auto value = false;
7707 template < typename T >
7708 struct is_same<T, T>
7710 static constexpr auto value = true;
7714 test()
7716 auto x = 0;
7717 static_assert(is_same<int, decltype(f(x))>::value, "");
7718 static_assert(is_same<int&, decltype(g(x))>::value, "");
7719 return x;
7724 } // namespace cxx14
7726 #endif // __cplusplus >= 201402L
7730 _ACEOF
7731 if ac_fn_cxx_try_compile "$LINENO"; then :
7732 ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
7733 else
7734 ax_cv_cxx_compile_cxx14_FOR_BUILD=no
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7739 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7740 if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
7741 ac_success=yes
7744 if test x$ac_success = xno; then
7745 for alternative in ${ax_cxx_compile_alternatives}; do
7746 switch="-std=gnu++${alternative}"
7747 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7749 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7750 if eval \${$cachevar+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 ac_save_CXX="$CXX"
7754 CXX="$CXX $switch"
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7759 // If the compiler admits that it is not ready for C++11, why torture it?
7760 // Hopefully, this will speed up the test.
7762 #ifndef __cplusplus
7764 #error "This is not a C++ compiler"
7766 #elif __cplusplus < 201103L
7768 #error "This is not a C++11 compiler"
7770 #else
7772 namespace cxx11
7775 namespace test_static_assert
7778 template <typename T>
7779 struct check
7781 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7786 namespace test_final_override
7789 struct Base
7791 virtual ~Base() {}
7792 virtual void f() {}
7795 struct Derived : public Base
7797 virtual ~Derived() override {}
7798 virtual void f() override {}
7803 namespace test_double_right_angle_brackets
7806 template < typename T >
7807 struct check {};
7809 typedef check<void> single_type;
7810 typedef check<check<void>> double_type;
7811 typedef check<check<check<void>>> triple_type;
7812 typedef check<check<check<check<void>>>> quadruple_type;
7816 namespace test_decltype
7822 int a = 1;
7823 decltype(a) b = 2;
7824 return a + b;
7829 namespace test_type_deduction
7832 template < typename T1, typename T2 >
7833 struct is_same
7835 static const bool value = false;
7838 template < typename T >
7839 struct is_same<T, T>
7841 static const bool value = true;
7844 template < typename T1, typename T2 >
7845 auto
7846 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7848 return a1 + a2;
7852 test(const int c, volatile int v)
7854 static_assert(is_same<int, decltype(0)>::value == true, "");
7855 static_assert(is_same<int, decltype(c)>::value == false, "");
7856 static_assert(is_same<int, decltype(v)>::value == false, "");
7857 auto ac = c;
7858 auto av = v;
7859 auto sumi = ac + av + 'x';
7860 auto sumf = ac + av + 1.0;
7861 static_assert(is_same<int, decltype(ac)>::value == true, "");
7862 static_assert(is_same<int, decltype(av)>::value == true, "");
7863 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7864 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7865 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7866 return (sumf > 0.0) ? sumi : add(c, v);
7871 namespace test_noexcept
7874 int f() { return 0; }
7875 int g() noexcept { return 0; }
7877 static_assert(noexcept(f()) == false, "");
7878 static_assert(noexcept(g()) == true, "");
7882 namespace test_constexpr
7885 template < typename CharT >
7886 unsigned long constexpr
7887 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7889 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7892 template < typename CharT >
7893 unsigned long constexpr
7894 strlen_c(const CharT *const s) noexcept
7896 return strlen_c_r(s, 0UL);
7899 static_assert(strlen_c("") == 0UL, "");
7900 static_assert(strlen_c("1") == 1UL, "");
7901 static_assert(strlen_c("example") == 7UL, "");
7902 static_assert(strlen_c("another\0example") == 7UL, "");
7906 namespace test_rvalue_references
7909 template < int N >
7910 struct answer
7912 static constexpr int value = N;
7915 answer<1> f(int&) { return answer<1>(); }
7916 answer<2> f(const int&) { return answer<2>(); }
7917 answer<3> f(int&&) { return answer<3>(); }
7919 void
7920 test()
7922 int i = 0;
7923 const int c = 0;
7924 static_assert(decltype(f(i))::value == 1, "");
7925 static_assert(decltype(f(c))::value == 2, "");
7926 static_assert(decltype(f(0))::value == 3, "");
7931 namespace test_uniform_initialization
7934 struct test
7936 static const int zero {};
7937 static const int one {1};
7940 static_assert(test::zero == 0, "");
7941 static_assert(test::one == 1, "");
7945 namespace test_lambdas
7948 void
7949 test1()
7951 auto lambda1 = [](){};
7952 auto lambda2 = lambda1;
7953 lambda1();
7954 lambda2();
7958 test2()
7960 auto a = [](int i, int j){ return i + j; }(1, 2);
7961 auto b = []() -> int { return '0'; }();
7962 auto c = [=](){ return a + b; }();
7963 auto d = [&](){ return c; }();
7964 auto e = [a, &b](int x) mutable {
7965 const auto identity = [](int y){ return y; };
7966 for (auto i = 0; i < a; ++i)
7967 a += b--;
7968 return x + identity(a + b);
7969 }(0);
7970 return a + b + c + d + e;
7974 test3()
7976 const auto nullary = [](){ return 0; };
7977 const auto unary = [](int x){ return x; };
7978 using nullary_t = decltype(nullary);
7979 using unary_t = decltype(unary);
7980 const auto higher1st = [](nullary_t f){ return f(); };
7981 const auto higher2nd = [unary](nullary_t f1){
7982 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7984 return higher1st(nullary) + higher2nd(nullary)(unary);
7989 namespace test_variadic_templates
7992 template <int...>
7993 struct sum;
7995 template <int N0, int... N1toN>
7996 struct sum<N0, N1toN...>
7998 static constexpr auto value = N0 + sum<N1toN...>::value;
8001 template <>
8002 struct sum<>
8004 static constexpr auto value = 0;
8007 static_assert(sum<>::value == 0, "");
8008 static_assert(sum<1>::value == 1, "");
8009 static_assert(sum<23>::value == 23, "");
8010 static_assert(sum<1, 2>::value == 3, "");
8011 static_assert(sum<5, 5, 11>::value == 21, "");
8012 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8016 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8017 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8018 // because of this.
8019 namespace test_template_alias_sfinae
8022 struct foo {};
8024 template<typename T>
8025 using member = typename T::member_type;
8027 template<typename T>
8028 void func(...) {}
8030 template<typename T>
8031 void func(member<T>*) {}
8033 void test();
8035 void test() { func<foo>(0); }
8039 } // namespace cxx11
8041 #endif // __cplusplus >= 201103L
8046 // If the compiler admits that it is not ready for C++14, why torture it?
8047 // Hopefully, this will speed up the test.
8049 #ifndef __cplusplus
8051 #error "This is not a C++ compiler"
8053 #elif __cplusplus < 201402L
8055 #error "This is not a C++14 compiler"
8057 #else
8059 namespace cxx14
8062 namespace test_polymorphic_lambdas
8066 test()
8068 const auto lambda = [](auto&&... args){
8069 const auto istiny = [](auto x){
8070 return (sizeof(x) == 1UL) ? 1 : 0;
8072 const int aretiny[] = { istiny(args)... };
8073 return aretiny[0];
8075 return lambda(1, 1L, 1.0f, '1');
8080 namespace test_binary_literals
8083 constexpr auto ivii = 0b0000000000101010;
8084 static_assert(ivii == 42, "wrong value");
8088 namespace test_generalized_constexpr
8091 template < typename CharT >
8092 constexpr unsigned long
8093 strlen_c(const CharT *const s) noexcept
8095 auto length = 0UL;
8096 for (auto p = s; *p; ++p)
8097 ++length;
8098 return length;
8101 static_assert(strlen_c("") == 0UL, "");
8102 static_assert(strlen_c("x") == 1UL, "");
8103 static_assert(strlen_c("test") == 4UL, "");
8104 static_assert(strlen_c("another\0test") == 7UL, "");
8108 namespace test_lambda_init_capture
8112 test()
8114 auto x = 0;
8115 const auto lambda1 = [a = x](int b){ return a + b; };
8116 const auto lambda2 = [a = lambda1(x)](){ return a; };
8117 return lambda2();
8122 namespace test_digit_separators
8125 constexpr auto ten_million = 100'000'000;
8126 static_assert(ten_million == 100000000, "");
8130 namespace test_return_type_deduction
8133 auto f(int& x) { return x; }
8134 decltype(auto) g(int& x) { return x; }
8136 template < typename T1, typename T2 >
8137 struct is_same
8139 static constexpr auto value = false;
8142 template < typename T >
8143 struct is_same<T, T>
8145 static constexpr auto value = true;
8149 test()
8151 auto x = 0;
8152 static_assert(is_same<int, decltype(f(x))>::value, "");
8153 static_assert(is_same<int&, decltype(g(x))>::value, "");
8154 return x;
8159 } // namespace cxx14
8161 #endif // __cplusplus >= 201402L
8165 _ACEOF
8166 if ac_fn_cxx_try_compile "$LINENO"; then :
8167 eval $cachevar=yes
8168 else
8169 eval $cachevar=no
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 CXX="$ac_save_CXX"
8174 eval ac_res=\$$cachevar
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8176 $as_echo "$ac_res" >&6; }
8177 if eval test x\$$cachevar = xyes; then
8178 CXX="$CXX $switch"
8179 if test -n "$CXXCPP" ; then
8180 CXXCPP="$CXXCPP $switch"
8182 ac_success=yes
8183 break
8185 done
8188 if test x$ac_success = xno; then
8189 for alternative in ${ax_cxx_compile_alternatives}; do
8190 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8191 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8193 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
8194 if eval \${$cachevar+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 ac_save_CXX="$CXX"
8198 CXX="$CXX $switch"
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8203 // If the compiler admits that it is not ready for C++11, why torture it?
8204 // Hopefully, this will speed up the test.
8206 #ifndef __cplusplus
8208 #error "This is not a C++ compiler"
8210 #elif __cplusplus < 201103L
8212 #error "This is not a C++11 compiler"
8214 #else
8216 namespace cxx11
8219 namespace test_static_assert
8222 template <typename T>
8223 struct check
8225 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8230 namespace test_final_override
8233 struct Base
8235 virtual ~Base() {}
8236 virtual void f() {}
8239 struct Derived : public Base
8241 virtual ~Derived() override {}
8242 virtual void f() override {}
8247 namespace test_double_right_angle_brackets
8250 template < typename T >
8251 struct check {};
8253 typedef check<void> single_type;
8254 typedef check<check<void>> double_type;
8255 typedef check<check<check<void>>> triple_type;
8256 typedef check<check<check<check<void>>>> quadruple_type;
8260 namespace test_decltype
8266 int a = 1;
8267 decltype(a) b = 2;
8268 return a + b;
8273 namespace test_type_deduction
8276 template < typename T1, typename T2 >
8277 struct is_same
8279 static const bool value = false;
8282 template < typename T >
8283 struct is_same<T, T>
8285 static const bool value = true;
8288 template < typename T1, typename T2 >
8289 auto
8290 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8292 return a1 + a2;
8296 test(const int c, volatile int v)
8298 static_assert(is_same<int, decltype(0)>::value == true, "");
8299 static_assert(is_same<int, decltype(c)>::value == false, "");
8300 static_assert(is_same<int, decltype(v)>::value == false, "");
8301 auto ac = c;
8302 auto av = v;
8303 auto sumi = ac + av + 'x';
8304 auto sumf = ac + av + 1.0;
8305 static_assert(is_same<int, decltype(ac)>::value == true, "");
8306 static_assert(is_same<int, decltype(av)>::value == true, "");
8307 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8308 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8309 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8310 return (sumf > 0.0) ? sumi : add(c, v);
8315 namespace test_noexcept
8318 int f() { return 0; }
8319 int g() noexcept { return 0; }
8321 static_assert(noexcept(f()) == false, "");
8322 static_assert(noexcept(g()) == true, "");
8326 namespace test_constexpr
8329 template < typename CharT >
8330 unsigned long constexpr
8331 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8333 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8336 template < typename CharT >
8337 unsigned long constexpr
8338 strlen_c(const CharT *const s) noexcept
8340 return strlen_c_r(s, 0UL);
8343 static_assert(strlen_c("") == 0UL, "");
8344 static_assert(strlen_c("1") == 1UL, "");
8345 static_assert(strlen_c("example") == 7UL, "");
8346 static_assert(strlen_c("another\0example") == 7UL, "");
8350 namespace test_rvalue_references
8353 template < int N >
8354 struct answer
8356 static constexpr int value = N;
8359 answer<1> f(int&) { return answer<1>(); }
8360 answer<2> f(const int&) { return answer<2>(); }
8361 answer<3> f(int&&) { return answer<3>(); }
8363 void
8364 test()
8366 int i = 0;
8367 const int c = 0;
8368 static_assert(decltype(f(i))::value == 1, "");
8369 static_assert(decltype(f(c))::value == 2, "");
8370 static_assert(decltype(f(0))::value == 3, "");
8375 namespace test_uniform_initialization
8378 struct test
8380 static const int zero {};
8381 static const int one {1};
8384 static_assert(test::zero == 0, "");
8385 static_assert(test::one == 1, "");
8389 namespace test_lambdas
8392 void
8393 test1()
8395 auto lambda1 = [](){};
8396 auto lambda2 = lambda1;
8397 lambda1();
8398 lambda2();
8402 test2()
8404 auto a = [](int i, int j){ return i + j; }(1, 2);
8405 auto b = []() -> int { return '0'; }();
8406 auto c = [=](){ return a + b; }();
8407 auto d = [&](){ return c; }();
8408 auto e = [a, &b](int x) mutable {
8409 const auto identity = [](int y){ return y; };
8410 for (auto i = 0; i < a; ++i)
8411 a += b--;
8412 return x + identity(a + b);
8413 }(0);
8414 return a + b + c + d + e;
8418 test3()
8420 const auto nullary = [](){ return 0; };
8421 const auto unary = [](int x){ return x; };
8422 using nullary_t = decltype(nullary);
8423 using unary_t = decltype(unary);
8424 const auto higher1st = [](nullary_t f){ return f(); };
8425 const auto higher2nd = [unary](nullary_t f1){
8426 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8428 return higher1st(nullary) + higher2nd(nullary)(unary);
8433 namespace test_variadic_templates
8436 template <int...>
8437 struct sum;
8439 template <int N0, int... N1toN>
8440 struct sum<N0, N1toN...>
8442 static constexpr auto value = N0 + sum<N1toN...>::value;
8445 template <>
8446 struct sum<>
8448 static constexpr auto value = 0;
8451 static_assert(sum<>::value == 0, "");
8452 static_assert(sum<1>::value == 1, "");
8453 static_assert(sum<23>::value == 23, "");
8454 static_assert(sum<1, 2>::value == 3, "");
8455 static_assert(sum<5, 5, 11>::value == 21, "");
8456 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8460 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8461 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8462 // because of this.
8463 namespace test_template_alias_sfinae
8466 struct foo {};
8468 template<typename T>
8469 using member = typename T::member_type;
8471 template<typename T>
8472 void func(...) {}
8474 template<typename T>
8475 void func(member<T>*) {}
8477 void test();
8479 void test() { func<foo>(0); }
8483 } // namespace cxx11
8485 #endif // __cplusplus >= 201103L
8490 // If the compiler admits that it is not ready for C++14, why torture it?
8491 // Hopefully, this will speed up the test.
8493 #ifndef __cplusplus
8495 #error "This is not a C++ compiler"
8497 #elif __cplusplus < 201402L
8499 #error "This is not a C++14 compiler"
8501 #else
8503 namespace cxx14
8506 namespace test_polymorphic_lambdas
8510 test()
8512 const auto lambda = [](auto&&... args){
8513 const auto istiny = [](auto x){
8514 return (sizeof(x) == 1UL) ? 1 : 0;
8516 const int aretiny[] = { istiny(args)... };
8517 return aretiny[0];
8519 return lambda(1, 1L, 1.0f, '1');
8524 namespace test_binary_literals
8527 constexpr auto ivii = 0b0000000000101010;
8528 static_assert(ivii == 42, "wrong value");
8532 namespace test_generalized_constexpr
8535 template < typename CharT >
8536 constexpr unsigned long
8537 strlen_c(const CharT *const s) noexcept
8539 auto length = 0UL;
8540 for (auto p = s; *p; ++p)
8541 ++length;
8542 return length;
8545 static_assert(strlen_c("") == 0UL, "");
8546 static_assert(strlen_c("x") == 1UL, "");
8547 static_assert(strlen_c("test") == 4UL, "");
8548 static_assert(strlen_c("another\0test") == 7UL, "");
8552 namespace test_lambda_init_capture
8556 test()
8558 auto x = 0;
8559 const auto lambda1 = [a = x](int b){ return a + b; };
8560 const auto lambda2 = [a = lambda1(x)](){ return a; };
8561 return lambda2();
8566 namespace test_digit_separators
8569 constexpr auto ten_million = 100'000'000;
8570 static_assert(ten_million == 100000000, "");
8574 namespace test_return_type_deduction
8577 auto f(int& x) { return x; }
8578 decltype(auto) g(int& x) { return x; }
8580 template < typename T1, typename T2 >
8581 struct is_same
8583 static constexpr auto value = false;
8586 template < typename T >
8587 struct is_same<T, T>
8589 static constexpr auto value = true;
8593 test()
8595 auto x = 0;
8596 static_assert(is_same<int, decltype(f(x))>::value, "");
8597 static_assert(is_same<int&, decltype(g(x))>::value, "");
8598 return x;
8603 } // namespace cxx14
8605 #endif // __cplusplus >= 201402L
8609 _ACEOF
8610 if ac_fn_cxx_try_compile "$LINENO"; then :
8611 eval $cachevar=yes
8612 else
8613 eval $cachevar=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 CXX="$ac_save_CXX"
8618 eval ac_res=\$$cachevar
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8620 $as_echo "$ac_res" >&6; }
8621 if eval test x\$$cachevar = xyes; then
8622 CXX="$CXX $switch"
8623 if test -n "$CXXCPP" ; then
8624 CXXCPP="$CXXCPP $switch"
8626 ac_success=yes
8627 break
8629 done
8630 if test x$ac_success = xyes; then
8631 break
8633 done
8635 CXX_FOR_BUILD="$CXX"
8636 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8637 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8638 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8639 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8640 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8641 ac_ext=c
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8647 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8648 if test x$ac_success = xno; then
8649 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8652 if test x$ac_success = xno; then
8653 HAVE_CXX14_FOR_BUILD=0
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8655 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
8656 else
8657 HAVE_CXX14_FOR_BUILD=1
8659 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8667 # Check whether --enable-pgo-build was given.
8668 if test "${enable_pgo_build+set}" = set; then :
8669 enableval=$enable_pgo_build; enable_pgo_build=$enableval
8670 else
8671 enable_pgo_build=no
8675 # Issue errors and warnings for invalid/strange PGO build combinations.
8676 case "$have_compiler:$host:$target:$enable_pgo_build" in
8677 *:*:*:no) ;;
8679 # Allow the PGO build only if we aren't building a compiler and
8680 # we are in a native configuration.
8681 no:$build:$build:yes | no:$build:$build:lto) ;;
8683 # Disallow the PGO bootstrap if we are building a compiler.
8684 yes:*:*:yes | yes:*:*:lto)
8685 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8688 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
8690 esac
8692 if test "$enable_pgo_build" != "no"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8694 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8695 old_CFLAGS="$CFLAGS"
8696 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
8697 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701 int foo;
8702 _ACEOF
8703 if ac_fn_c_try_compile "$LINENO"; then :
8705 else
8706 PGO_BUILD_GEN_CFLAGS=
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 CFLAGS="$old_CFLAGS"
8710 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8712 $as_echo "yes" >&6; }
8713 PGO_BUILD_USE_CFLAGS="-fprofile-use"
8714 else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8720 if test "$enable_pgo_build" = "lto"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8722 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8723 old_CFLAGS="$CFLAGS"
8724 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
8725 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 int foo;
8729 _ACEOF
8730 if ac_fn_c_try_compile "$LINENO"; then :
8732 else
8733 PGO_BUILD_LTO_CFLAGS=
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 CFLAGS="$old_CFLAGS"
8737 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8739 $as_echo "yes" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8744 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8752 # Used for setting $lt_cv_objdir
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8754 $as_echo_n "checking for objdir... " >&6; }
8755 if ${lt_cv_objdir+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 rm -f .libs 2>/dev/null
8759 mkdir .libs 2>/dev/null
8760 if test -d .libs; then
8761 lt_cv_objdir=.libs
8762 else
8763 # MS-DOS does not allow filenames that begin with a dot.
8764 lt_cv_objdir=_libs
8766 rmdir .libs 2>/dev/null
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8769 $as_echo "$lt_cv_objdir" >&6; }
8770 objdir=$lt_cv_objdir
8776 cat >>confdefs.h <<_ACEOF
8777 #define LT_OBJDIR "$lt_cv_objdir/"
8778 _ACEOF
8782 # Check for GMP, MPFR and MPC
8783 require_gmp=no
8784 require_mpc=no
8785 if test -d ${srcdir}/gcc ; then
8786 require_gmp=yes
8787 require_mpc=yes
8789 if test -d ${srcdir}/gdb ; then
8790 if test "x$enable_gdb" != xno; then
8791 require_gmp=yes
8795 gmplibs="-lmpfr -lgmp"
8796 if test x"$require_mpc" = "xyes" ; then
8797 gmplibs="-lmpc $gmplibs"
8799 gmpinc=
8800 have_gmp=no
8802 # Specify a location for mpc
8803 # check for this first so it ends up on the link line before mpfr.
8805 # Check whether --with-mpc was given.
8806 if test "${with_mpc+set}" = set; then :
8807 withval=$with_mpc;
8811 # Check whether --with-mpc-include was given.
8812 if test "${with_mpc_include+set}" = set; then :
8813 withval=$with_mpc_include;
8817 # Check whether --with-mpc-lib was given.
8818 if test "${with_mpc_lib+set}" = set; then :
8819 withval=$with_mpc_lib;
8823 if test "x$with_mpc" != x; then
8824 gmplibs="-L$with_mpc/lib $gmplibs"
8825 gmpinc="-I$with_mpc/include $gmpinc"
8827 if test "x$with_mpc_include" != x; then
8828 gmpinc="-I$with_mpc_include $gmpinc"
8830 if test "x$with_mpc_lib" != x; then
8831 gmplibs="-L$with_mpc_lib $gmplibs"
8833 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8834 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8835 gmpinc='-I$$s/mpc/src '"$gmpinc"
8836 # Do not test the mpc version. Assume that it is sufficient, since
8837 # it is in the source tree, and the library has not been built yet
8838 # but it would be included on the link line in the version check below
8839 # hence making the test fail.
8840 have_gmp=yes
8843 # Specify a location for mpfr
8844 # check for this first so it ends up on the link line before gmp.
8846 # Check whether --with-mpfr was given.
8847 if test "${with_mpfr+set}" = set; then :
8848 withval=$with_mpfr;
8852 # Check whether --with-mpfr-include was given.
8853 if test "${with_mpfr_include+set}" = set; then :
8854 withval=$with_mpfr_include;
8858 # Check whether --with-mpfr-lib was given.
8859 if test "${with_mpfr_lib+set}" = set; then :
8860 withval=$with_mpfr_lib;
8864 if test "x$with_mpfr" != x; then
8865 gmplibs="-L$with_mpfr/lib $gmplibs"
8866 gmpinc="-I$with_mpfr/include $gmpinc"
8868 if test "x$with_mpfr_include" != x; then
8869 gmpinc="-I$with_mpfr_include $gmpinc"
8871 if test "x$with_mpfr_lib" != x; then
8872 gmplibs="-L$with_mpfr_lib $gmplibs"
8874 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8875 # MPFR v3.1.0 moved the sources into a src sub-directory.
8876 if ! test -d ${srcdir}/mpfr/src; then
8877 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8879 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8880 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8881 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8882 # Do not test the mpfr version. Assume that it is sufficient, since
8883 # it is in the source tree, and the library has not been built yet
8884 # but it would be included on the link line in the version check below
8885 # hence making the test fail.
8886 have_gmp=yes
8889 # Specify a location for gmp
8891 # Check whether --with-gmp was given.
8892 if test "${with_gmp+set}" = set; then :
8893 withval=$with_gmp;
8897 # Check whether --with-gmp-include was given.
8898 if test "${with_gmp_include+set}" = set; then :
8899 withval=$with_gmp_include;
8903 # Check whether --with-gmp-lib was given.
8904 if test "${with_gmp_lib+set}" = set; then :
8905 withval=$with_gmp_lib;
8910 if test "x$with_gmp" != x; then
8911 gmplibs="-L$with_gmp/lib $gmplibs"
8912 gmpinc="-I$with_gmp/include $gmpinc"
8914 if test "x$with_gmp_include" != x; then
8915 gmpinc="-I$with_gmp_include $gmpinc"
8917 if test "x$with_gmp_lib" != x; then
8918 gmplibs="-L$with_gmp_lib $gmplibs"
8920 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8921 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8922 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8923 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8924 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8925 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8926 # Do not test the gmp version. Assume that it is sufficient, since
8927 # it is in the source tree, and the library has not been built yet
8928 # but it would be included on the link line in the version check below
8929 # hence making the test fail.
8930 have_gmp=yes
8933 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8934 have_gmp=yes
8935 saved_CFLAGS="$CFLAGS"
8936 CFLAGS="$CFLAGS $gmpinc"
8937 # Check for the recommended and required versions of GMP.
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8939 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include "gmp.h"
8944 main ()
8947 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8948 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8949 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8950 choke me
8951 #endif
8954 return 0;
8956 _ACEOF
8957 if ac_fn_c_try_compile "$LINENO"; then :
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 #include <gmp.h>
8962 main ()
8965 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8966 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8967 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8968 choke me
8969 #endif
8972 return 0;
8974 _ACEOF
8975 if ac_fn_c_try_compile "$LINENO"; then :
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8977 $as_echo "yes" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8980 $as_echo "buggy but acceptable" >&6; }
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }; have_gmp=no
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 # If we have GMP, check the MPFR version.
8990 if test x"$have_gmp" = xyes; then
8991 # Check for the recommended and required versions of MPFR.
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8993 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 #include <gmp.h>
8997 #include <mpfr.h>
8999 main ()
9002 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9003 choke me
9004 #endif
9007 return 0;
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 #include <gmp.h>
9014 #include <mpfr.h>
9016 main ()
9019 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9020 choke me
9021 #endif
9024 return 0;
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"; then :
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9029 $as_echo "yes" >&6; }
9030 else
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9032 $as_echo "buggy but acceptable" >&6; }
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }; have_gmp=no
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 # Check for the MPC header version.
9043 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
9044 # Check for the recommended and required versions of MPC.
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9046 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 #include <mpc.h>
9051 main ()
9054 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9055 choke me
9056 #endif
9059 return 0;
9061 _ACEOF
9062 if ac_fn_c_try_compile "$LINENO"; then :
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9065 #include <mpc.h>
9067 main ()
9070 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9071 choke me
9072 #endif
9075 return 0;
9077 _ACEOF
9078 if ac_fn_c_try_compile "$LINENO"; then :
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9080 $as_echo "yes" >&6; }
9081 else
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9083 $as_echo "buggy but acceptable" >&6; }
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }; have_gmp=no
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 # Now check the MPFR library.
9094 if test x"$have_gmp" = xyes; then
9095 saved_LIBS="$LIBS"
9096 LIBS="$LIBS $gmplibs"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9098 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 #include <mpfr.h>
9103 main ()
9106 mpfr_t n;
9107 mpfr_t x;
9108 int t;
9109 mpfr_init (n);
9110 mpfr_init (x);
9111 mpfr_atan2 (n, n, x, MPFR_RNDN);
9112 mpfr_erfc (n, x, MPFR_RNDN);
9113 mpfr_subnormalize (x, t, MPFR_RNDN);
9114 mpfr_clear(n);
9115 mpfr_clear(x);
9118 return 0;
9120 _ACEOF
9121 if ac_fn_c_try_link "$LINENO"; then :
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9123 $as_echo "yes" >&6; }
9124 else
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 $as_echo "no" >&6; }; have_gmp=no
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 LIBS="$saved_LIBS"
9133 # Now check the MPC library
9134 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
9135 saved_LIBS="$LIBS"
9136 LIBS="$LIBS $gmplibs"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9138 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 #include <mpc.h>
9143 main ()
9146 mpc_t c;
9147 mpc_init2 (c, 53);
9148 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9149 mpc_cosh (c, c, MPC_RNDNN);
9150 mpc_pow (c, c, c, MPC_RNDNN);
9151 mpc_acosh (c, c, MPC_RNDNN);
9152 mpc_clear (c);
9155 return 0;
9157 _ACEOF
9158 if ac_fn_c_try_link "$LINENO"; then :
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9160 $as_echo "yes" >&6; }
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }; have_gmp=no
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167 LIBS="$saved_LIBS"
9170 CFLAGS="$saved_CFLAGS"
9172 # The library versions listed in the error message below should match
9173 # the HARD-minimums enforced above.
9174 if test x$have_gmp != xyes; then
9175 if test -d ${srcdir}/gcc ; then
9176 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9177 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9178 their locations. Source code for these libraries can be found at
9179 their respective hosting sites as well as at
9180 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9181 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9182 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9183 make sure that you have installed both the libraries and the header
9184 files. They may be located in separate packages." "$LINENO" 5
9185 else
9186 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9187 Try the --with-gmp and/or --with-mpfr options to specify
9188 their locations. If you obtained GMP and/or MPFR from a vendor
9189 distribution package, make sure that you have installed both the libraries
9190 and the header files. They may be located in separate packages." "$LINENO" 5
9195 # Flags needed for both GMP, MPFR and/or MPC.
9203 # Libraries to use for stage1 or when not bootstrapping.
9205 # Check whether --with-stage1-libs was given.
9206 if test "${with_stage1_libs+set}" = set; then :
9207 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9208 stage1_libs=
9209 else
9210 stage1_libs=$withval
9212 else
9213 stage1_libs=
9218 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9219 # default is yes if gcc is being built; no otherwise. The reason for
9220 # this default is that gdb is sometimes linked against GNU Source
9221 # Highlight, which is a shared library that uses C++ exceptions. In
9222 # this case, -static-libstdc++ will cause crashes.
9224 # Check whether --with-static-standard-libraries was given.
9225 if test "${with_static_standard_libraries+set}" = set; then :
9226 withval=$with_static_standard_libraries;
9227 else
9228 with_static_standard_libraries=auto
9231 if test "$with_static_standard_libraries" = auto; then
9232 with_static_standard_libraries=$have_compiler
9235 # Linker flags to use for stage1 or when not bootstrapping.
9237 # Check whether --with-stage1-ldflags was given.
9238 if test "${with_stage1_ldflags+set}" = set; then :
9239 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9240 stage1_ldflags=
9241 else
9242 stage1_ldflags=$withval
9244 else
9245 stage1_ldflags=
9246 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9247 # if supported. But if the user explicitly specified the libraries to use,
9248 # trust that they are doing what they want.
9249 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9250 -a "$have_static_libs" = yes; then
9251 stage1_ldflags="-static-libstdc++ -static-libgcc"
9257 # Libraries to use for stage2 and later builds.
9259 # Check whether --with-boot-libs was given.
9260 if test "${with_boot_libs+set}" = set; then :
9261 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9262 poststage1_libs=
9263 else
9264 poststage1_libs=$withval
9266 else
9267 poststage1_libs=
9272 # Linker flags to use for stage2 and later builds.
9274 # Check whether --with-boot-ldflags was given.
9275 if test "${with_boot_ldflags+set}" = set; then :
9276 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9277 poststage1_ldflags=
9278 else
9279 poststage1_ldflags=$withval
9281 else
9282 poststage1_ldflags=
9283 # In stages 2 and 3, default to linking libstdc++ and libgcc
9284 # statically. But if the user explicitly specified the libraries to
9285 # use, trust that they are doing what they want.
9286 if test "$poststage1_libs" = ""; then
9287 poststage1_ldflags="-static-libstdc++ -static-libgcc"
9291 case $target in
9292 *-darwin2* | *-darwin1[56789]*)
9293 # For these versions, we default to using embedded rpaths.
9294 if test "x$enable_darwin_at_rpath" != "xno"; then
9295 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9298 *-darwin*)
9299 # For these versions, we only use embedded rpaths on demand.
9300 if test "x$enable_darwin_at_rpath" = "xyes"; then
9301 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9304 esac
9307 # GCC GRAPHITE dependency isl.
9308 # Basic setup is inlined here, actual checks are in config/isl.m4
9311 # Check whether --with-isl was given.
9312 if test "${with_isl+set}" = set; then :
9313 withval=$with_isl;
9317 # Treat --without-isl as a request to disable
9318 # GRAPHITE support and skip all following checks.
9319 if test "x$with_isl" != "xno"; then
9320 # Check for isl
9323 # Check whether --with-isl-include was given.
9324 if test "${with_isl_include+set}" = set; then :
9325 withval=$with_isl_include;
9329 # Check whether --with-isl-lib was given.
9330 if test "${with_isl_lib+set}" = set; then :
9331 withval=$with_isl_lib;
9335 # Check whether --enable-isl-version-check was given.
9336 if test "${enable_isl_version_check+set}" = set; then :
9337 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
9338 else
9339 ENABLE_ISL_CHECK=yes
9343 # Initialize isllibs and islinc.
9344 case $with_isl in
9346 isllibs=
9347 islinc=
9349 "" | yes)
9352 isllibs="-L$with_isl/lib"
9353 islinc="-I$with_isl/include"
9355 esac
9356 if test "x${with_isl_include}" != x ; then
9357 islinc="-I$with_isl_include"
9359 if test "x${with_isl_lib}" != x; then
9360 isllibs="-L$with_isl_lib"
9362 if test "x${islinc}" = x && test "x${isllibs}" = x \
9363 && test -d ${srcdir}/isl; then
9364 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9365 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9366 ENABLE_ISL_CHECK=no
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9368 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9371 isllibs="${isllibs} -lisl"
9375 if test "${ENABLE_ISL_CHECK}" = yes ; then
9376 _isl_saved_CFLAGS=$CFLAGS
9377 _isl_saved_LDFLAGS=$LDFLAGS
9378 _isl_saved_LIBS=$LIBS
9380 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9381 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9382 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9385 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <isl/schedule.h>
9390 main ()
9392 isl_options_set_schedule_serialize_sccs (NULL, 0);
9394 return 0;
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398 gcc_cv_isl=yes
9399 else
9400 gcc_cv_isl=no
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9405 $as_echo "$gcc_cv_isl" >&6; }
9407 if test "${gcc_cv_isl}" = no ; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9409 $as_echo "required isl version is 0.15 or later" >&6; }
9412 CFLAGS=$_isl_saved_CFLAGS
9413 LDFLAGS=$_isl_saved_LDFLAGS
9414 LIBS=$_isl_saved_LIBS
9422 if test "x${with_isl}" = xno; then
9423 graphite_requested=no
9424 elif test "x${with_isl}" != x \
9425 || test "x${with_isl_include}" != x \
9426 || test "x${with_isl_lib}" != x ; then
9427 graphite_requested=yes
9428 else
9429 graphite_requested=no
9434 if test "${gcc_cv_isl}" = no ; then
9435 isllibs=
9436 islinc=
9439 if test "${graphite_requested}" = yes \
9440 && test "x${isllibs}" = x \
9441 && test "x${islinc}" = x ; then
9443 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
9449 # If the isl check failed, disable builds of in-tree variant of isl
9450 if test "x$with_isl" = xno ||
9451 test "x$gcc_cv_isl" = xno; then
9452 noconfigdirs="$noconfigdirs isl"
9453 islinc=
9459 # Check for LTO support.
9460 # Check whether --enable-lto was given.
9461 if test "${enable_lto+set}" = set; then :
9462 enableval=$enable_lto; enable_lto=$enableval
9463 else
9464 enable_lto=yes; default_enable_lto=yes
9471 target_elf=no
9472 case $target in
9473 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
9474 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9475 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
9476 nvptx-*-none)
9477 target_elf=no
9480 target_elf=yes
9482 esac
9484 if test $target_elf = yes; then :
9485 # ELF platforms build the lto-plugin always.
9486 build_lto_plugin=yes
9488 else
9489 if test x"$default_enable_lto" = x"yes" ; then
9490 case $target in
9491 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
9492 # On other non-ELF platforms, LTO has yet to be validated.
9493 *) enable_lto=no ;;
9494 esac
9495 else
9496 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9497 # It would also be nice to check the binutils support, but we don't
9498 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9499 # warn during gcc/ subconfigure; unless you're bootstrapping with
9500 # -flto it won't be needed until after installation anyway.
9501 case $target in
9502 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9503 *) if test x"$enable_lto" = x"yes"; then
9504 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9507 esac
9509 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9510 # Build it unless LTO was explicitly disabled.
9511 case $target in
9512 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
9513 *) ;;
9514 esac
9519 # Check whether --enable-linker-plugin-configure-flags was given.
9520 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9521 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
9522 else
9523 extra_linker_plugin_configure_flags=
9527 # Check whether --enable-linker-plugin-flags was given.
9528 if test "${enable_linker_plugin_flags+set}" = set; then :
9529 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
9530 else
9531 extra_linker_plugin_flags=
9536 # Handle --enable-host-pie
9537 # If host PIE executables are the default (or must be forced on) for some host,
9538 # we must pass that configuration to the gcc directory.
9539 gcc_host_pie=
9540 # Check whether --enable-host-pie was given.
9541 if test "${enable_host_pie+set}" = set; then :
9542 enableval=$enable_host_pie; host_pie=$enableval
9543 case $host in
9544 *-*-darwin2*)
9545 if test x$host_pie != xyes ; then
9546 # for Darwin20+ this is required.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9548 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9549 host_pie=yes
9550 gcc_host_pie=--enable-host-pie
9551 fi ;;
9552 *) ;;
9553 esac
9554 else
9555 case $host in
9556 *-*-darwin2*)
9557 # Default to PIE (mandatory for aarch64).
9558 host_pie=yes
9559 gcc_host_pie=--enable-host-pie
9561 *) host_pie=no ;;
9562 esac
9569 # Enable --enable-host-shared.
9570 # Checked early to determine whether jit is an 'all' language
9571 # Check whether --enable-host-shared was given.
9572 if test "${enable_host_shared+set}" = set; then :
9573 enableval=$enable_host_shared; host_shared=$enableval
9574 case $host in
9575 x86_64-*-darwin* | aarch64-*-darwin*)
9576 if test x$host_shared != xyes ; then
9577 # PIC is the default, and actually cannot be switched off.
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9579 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9580 host_shared=yes
9581 fi ;;
9582 *-*-darwin*)
9583 if test x$host_pie = xyes -a x$host_shared != xyes ; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9585 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9586 host_shared=yes
9587 fi ;;
9588 *) ;;
9589 esac
9590 else
9591 case $host in
9592 # 64B x86_64 and Aarch64 Darwin default to PIC.
9593 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
9594 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9595 *-*-darwin*) host_shared=$host_pie ;;
9596 *) host_shared=no;;
9597 esac
9603 if test x$host_shared = xyes; then
9604 case $host in
9605 *-*-darwin*)
9606 # Since host shared is the default for 64b Darwin, and also enabled for
9607 # host_pie, ensure that we present the PIE flag when host_pie is active.
9608 if test x$host_pie = xyes; then
9609 PICFLAG=-fPIE
9613 PICFLAG=-fPIC
9615 esac
9616 elif test x$host_pie = xyes; then
9617 PICFLAG=-fPIE
9618 else
9619 PICFLAG=
9625 # Check for libgdiagnostics support.
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libgdiagnostics" >&5
9627 $as_echo_n "checking whether to enable libgdiagnostics... " >&6; }
9628 # Check whether --enable-libgdiagnostics was given.
9629 if test "${enable_libgdiagnostics+set}" = set; then :
9630 enableval=$enable_libgdiagnostics; enable_libgdiagnostics=$enableval
9631 else
9632 enable_libgdiagnostics=no
9636 if test x$enable_libgdiagnostics = xyes; then
9637 # Disable libgdiagnostics if -enable-host-shared not specified
9638 # but not if building for Mingw. All code in Windows
9639 # is position independent code (PIC).
9640 case $target in
9641 *mingw*) ;;
9643 if test x$host_shared != xyes; then
9644 as_fn_error $? "
9645 Enabling libgdiagnostics requires --enable-host-shared.
9647 --enable-host-shared typically slows the rest of the compiler down by
9648 a few %, so you must explicitly enable it.
9650 If you want to build both libgdiagnostics and the regular compiler, it is often
9651 best to do this via two separate configure/builds, in separate
9652 directories, to avoid imposing the performance cost of
9653 --enable-host-shared on the regular compiler." "$LINENO" 5
9656 esac
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgdiagnostics" >&5
9659 $as_echo "$enable_libgdiagnostics" >&6; }
9663 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9664 # default, so we check for them here
9665 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9666 # build of the Rust frontend in case a dep is missing.
9667 missing_rust_dynlibs=none
9669 save_LIBS="$LIBS"
9670 LIBS=
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9672 $as_echo_n "checking for library containing dlopen... " >&6; }
9673 if ${ac_cv_search_dlopen+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 ac_func_search_save_LIBS=$LIBS
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9680 /* Override any GCC internal prototype to avoid an error.
9681 Use char because int might match the return type of a GCC
9682 builtin and then its argument prototype would still apply. */
9683 #ifdef __cplusplus
9684 extern "C"
9685 #endif
9686 char dlopen ();
9688 main ()
9690 return dlopen ();
9692 return 0;
9694 _ACEOF
9695 for ac_lib in '' dl; do
9696 if test -z "$ac_lib"; then
9697 ac_res="none required"
9698 else
9699 ac_res=-l$ac_lib
9700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9702 if ac_fn_c_try_link "$LINENO"; then :
9703 ac_cv_search_dlopen=$ac_res
9705 rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext
9707 if ${ac_cv_search_dlopen+:} false; then :
9708 break
9710 done
9711 if ${ac_cv_search_dlopen+:} false; then :
9713 else
9714 ac_cv_search_dlopen=no
9716 rm conftest.$ac_ext
9717 LIBS=$ac_func_search_save_LIBS
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9720 $as_echo "$ac_cv_search_dlopen" >&6; }
9721 ac_res=$ac_cv_search_dlopen
9722 if test "$ac_res" != no; then :
9723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9728 $as_echo_n "checking for library containing pthread_create... " >&6; }
9729 if ${ac_cv_search_pthread_create+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 ac_func_search_save_LIBS=$LIBS
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9736 /* Override any GCC internal prototype to avoid an error.
9737 Use char because int might match the return type of a GCC
9738 builtin and then its argument prototype would still apply. */
9739 #ifdef __cplusplus
9740 extern "C"
9741 #endif
9742 char pthread_create ();
9744 main ()
9746 return pthread_create ();
9748 return 0;
9750 _ACEOF
9751 for ac_lib in '' pthread; do
9752 if test -z "$ac_lib"; then
9753 ac_res="none required"
9754 else
9755 ac_res=-l$ac_lib
9756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9758 if ac_fn_c_try_link "$LINENO"; then :
9759 ac_cv_search_pthread_create=$ac_res
9761 rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext
9763 if ${ac_cv_search_pthread_create+:} false; then :
9764 break
9766 done
9767 if ${ac_cv_search_pthread_create+:} false; then :
9769 else
9770 ac_cv_search_pthread_create=no
9772 rm conftest.$ac_ext
9773 LIBS=$ac_func_search_save_LIBS
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9776 $as_echo "$ac_cv_search_pthread_create" >&6; }
9777 ac_res=$ac_cv_search_pthread_create
9778 if test "$ac_res" != no; then :
9779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9783 CRAB1_LIBS="$LIBS"
9784 LIBS="$save_LIBS"
9786 if test "$ac_cv_search_dlopen" = no; then
9787 missing_rust_dynlibs="libdl"
9790 if test "$ac_cv_search_pthread_create" = no; then
9791 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9794 CRAB1_LIBS="$CRAB1_LIBS"
9797 # If we are building PIC/PIE host executables, and we are building dependent
9798 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9799 # code.
9800 host_libs_picflag=
9801 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9802 host_libs_picflag='--with-pic'
9806 # By default, C and C++ are the only stage 1 languages.
9807 stage1_languages=,c,
9809 # Target libraries that we bootstrap.
9810 bootstrap_target_libs=,target-libgcc,
9812 # Figure out what language subdirectories are present.
9813 # Look if the user specified --enable-languages="..."; if not, use
9814 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9815 # go away some day.
9816 # NB: embedded tabs in this IF block -- do not untabify
9817 if test -d ${srcdir}/gcc; then
9818 if test x"${enable_languages+set}" != xset; then
9819 if test x"${LANGUAGES+set}" = xset; then
9820 enable_languages="${LANGUAGES}"
9821 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9822 else
9823 enable_languages=default
9825 else
9826 if test x"${enable_languages}" = x ||
9827 test x"${enable_languages}" = xyes;
9828 then
9829 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9830 exit 1
9833 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9835 # 'f95' is the old name for the 'fortran' language. We issue a warning
9836 # and make the substitution.
9837 case ,${enable_languages}, in
9838 *,f95,*)
9839 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9840 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9842 esac
9844 # If bootstrapping, C++ must be enabled.
9845 case ",$enable_languages,:$enable_bootstrap" in
9846 *,c++,*:*) ;;
9847 *:yes)
9848 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9849 enable_languages="${enable_languages},c++"
9850 else
9851 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9854 esac
9856 # First scan to see if an enabled language requires some other language.
9857 # We assume that a given config-lang.in will list all the language
9858 # front ends it requires, even if some are required indirectly.
9859 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9860 case ${lang_frag} in
9861 ..) ;;
9862 # The odd quoting in the next line works around
9863 # an apparent bug in bash 1.12 on linux.
9864 ${srcdir}/gcc/[*]/config-lang.in) ;;
9866 # From the config-lang.in, get $language, $lang_requires, and
9867 # $lang_requires_boot_languages.
9868 language=
9869 lang_requires=
9870 lang_requires_boot_languages=
9871 # set srcdir during sourcing lang_frag to the gcc dir.
9872 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9873 # pollutes this shell
9874 saved_srcdir=${srcdir}
9875 srcdir=${srcdir}/gcc . ${lang_frag}
9876 srcdir=${saved_srcdir}
9877 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9878 case ,${enable_languages}, in
9879 *,$other,*) ;;
9880 *,default,*) ;;
9881 *,all,*) ;;
9882 *,$language,*)
9883 echo " \`$other' language required by \`$language'; enabling" 1>&2
9884 enable_languages="${enable_languages},${other}"
9886 esac
9887 done
9888 for other in ${lang_requires_boot_languages} ; do
9889 if test "$other" != "c"; then
9890 case ,${enable_stage1_languages}, in
9891 *,$other,*) ;;
9892 *,default,*) ;;
9893 *,all,*) ;;
9895 case ,${enable_languages}, in
9896 *,$language,*)
9897 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9898 enable_stage1_languages="$enable_stage1_languages,${other}"
9900 esac
9902 esac
9904 done
9906 esac
9907 done
9909 new_enable_languages=,c,
9911 # If LTO is enabled, add the LTO front end.
9912 if test "$enable_lto" = "yes" ; then
9913 case ,${enable_languages}, in
9914 *,lto,*) ;;
9915 *) enable_languages="${enable_languages},lto" ;;
9916 esac
9917 if test "${build_lto_plugin}" = "yes" ; then
9918 configdirs="$configdirs lto-plugin"
9922 # If we're building an offloading compiler, add the LTO front end.
9923 if test x"$enable_as_accelerator_for" != x ; then
9924 case ,${enable_languages}, in
9925 *,lto,*) ;;
9926 *) enable_languages="${enable_languages},lto" ;;
9927 esac
9930 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9931 potential_languages=,c,
9933 enabled_target_libs=
9934 disabled_target_libs=
9936 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9937 case ${lang_frag} in
9938 ..) ;;
9939 # The odd quoting in the next line works around
9940 # an apparent bug in bash 1.12 on linux.
9941 ${srcdir}/gcc/[*]/config-lang.in) ;;
9943 # From the config-lang.in, get $language, $target_libs,
9944 # $lang_dirs, $boot_language, and $build_by_default
9945 language=
9946 target_libs=
9947 lang_dirs=
9948 subdir_requires=
9949 boot_language=no
9950 build_by_default=yes
9951 # set srcdir during sourcing. See above about save & restore
9952 saved_srcdir=${srcdir}
9953 srcdir=${srcdir}/gcc . ${lang_frag}
9954 srcdir=${saved_srcdir}
9955 if test x${language} = x; then
9956 echo "${lang_frag} doesn't set \$language." 1>&2
9957 exit 1
9960 if test "$language" = "c++"; then
9961 boot_language=yes
9964 add_this_lang=no
9965 # C is always enabled, so no need to add it again
9966 if test "$language" != "c"; then
9967 case ,${enable_languages}, in
9968 *,${language},*)
9969 # Language was explicitly selected; include it
9970 add_this_lang=yes
9972 *,all,*)
9973 # All languages are enabled
9974 add_this_lang=all
9976 *,default,*)
9977 # 'default' was selected, select it if it is a default language
9978 add_this_lang=${build_by_default}
9980 esac
9983 # Disable languages that need other directories if these aren't available.
9984 for i in $subdir_requires; do
9985 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9986 case ${add_this_lang} in
9987 yes)
9988 # Specifically requested language; tell them.
9989 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9991 all)
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9993 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9994 add_this_lang=unsupported
9997 # Silently disable.
9998 add_this_lang=unsupported
10000 esac
10001 done
10003 # Disable Ada if no preexisting GNAT is available.
10004 case ${add_this_lang}:${language}:${have_gnat} in
10005 yes:ada:no)
10006 # Specifically requested language; tell them.
10007 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
10009 all:ada:no)
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10011 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10012 add_this_lang=unsupported
10014 *:ada:no)
10015 # Silently disable.
10016 add_this_lang=unsupported
10018 esac
10020 # Disable D if no preexisting GDC is available.
10021 case ${add_this_lang}:${language}:${have_gdc} in
10022 yes:d:no)
10023 # Specifically requested language; tell them.
10024 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
10026 all:d:no)
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10028 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10029 add_this_lang=unsupported
10031 *:d:no)
10032 # Silently disable.
10033 add_this_lang=unsupported
10035 esac
10037 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10038 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10039 *:rust:none)
10040 # Nothing to do - we're not missing any C libraries
10042 yes:rust:*)
10043 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10044 add_this_lang=unsupported
10046 all:rust:*)
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10048 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10049 add_this_lang=unsupported
10051 *:rust:*)
10052 # Silently disable.
10053 add_this_lang=unsupported
10055 esac
10057 # Disable jit if -enable-host-shared not specified
10058 # but not if building for Mingw. All code in Windows
10059 # is position independent code (PIC).
10060 case $target in
10061 *mingw*) ;;
10063 case ${add_this_lang}:${language}:${host_shared} in
10064 yes:jit:no)
10065 # PR jit/64780: explicitly specify --enable-host-shared
10066 as_fn_error $? "
10067 Enabling language \"jit\" requires --enable-host-shared.
10069 --enable-host-shared typically slows the rest of the compiler down by
10070 a few %, so you must explicitly enable it.
10072 If you want to build both the jit and the regular compiler, it is often
10073 best to do this via two separate configure/builds, in separate
10074 directories, to avoid imposing the performance cost of
10075 --enable-host-shared on the regular compiler." "$LINENO" 5
10077 all:jit:no)
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10079 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10080 add_this_lang=unsupported
10082 *:jit:no)
10083 # Silently disable.
10084 add_this_lang=unsupported
10086 esac
10088 esac
10090 # Pre-conditions to consider whether cargo being supported.
10091 if test x"$have_cargo" = xyes \
10092 && test x"$build" != x"$host"; then
10093 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10094 # "'cargo' should build for the host system" is resolved:
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10096 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10097 have_cargo=no
10098 else
10099 # Assume that cargo-produced object files are compatible with what
10100 # we're going to build here.
10103 # Disable Rust if cargo is unavailable.
10104 case ${add_this_lang}:${language}:${have_cargo} in
10105 yes:rust:no)
10106 # Specifically requested language; tell them.
10107 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
10109 all:rust:no)
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10111 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10112 add_this_lang=unsupported
10114 *:rust:no)
10115 # Silently disable.
10116 add_this_lang=unsupported
10118 esac
10121 # Disable a language that is unsupported by the target.
10122 case "${add_this_lang}: $unsupported_languages " in
10123 no:*) ;;
10124 unsupported:*) ;;
10125 *:*" $language "*)
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10127 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10128 add_this_lang=unsupported
10130 esac
10132 case $add_this_lang in
10133 unsupported)
10134 # Remove language-dependent dirs.
10135 disabled_target_libs="$disabled_target_libs $target_libs"
10136 noconfigdirs="$noconfigdirs $lang_dirs"
10139 # Remove language-dependent dirs; still show language as supported.
10140 disabled_target_libs="$disabled_target_libs $target_libs"
10141 noconfigdirs="$noconfigdirs $lang_dirs"
10142 potential_languages="${potential_languages}${language},"
10144 all|yes)
10145 new_enable_languages="${new_enable_languages}${language},"
10146 potential_languages="${potential_languages}${language},"
10147 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
10148 enabled_target_libs="$enabled_target_libs $target_libs"
10149 case "${boot_language}:,$enable_stage1_languages," in
10150 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
10151 # Add to (comma-separated) list of stage 1 languages.
10152 case ",$stage1_languages," in
10153 *,$language,* | ,yes, | ,all,) ;;
10154 *) stage1_languages="${stage1_languages}${language}," ;;
10155 esac
10156 # We need to bootstrap any supporting libraries.
10157 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10159 esac
10161 esac
10163 esac
10164 done
10166 # Add target libraries which are only needed for disabled languages
10167 # to noconfigdirs.
10168 if test -n "$disabled_target_libs"; then
10169 for dir in $disabled_target_libs; do
10170 case " $enabled_target_libs " in
10171 *" ${dir} "*) ;;
10172 *) noconfigdirs="$noconfigdirs $dir" ;;
10173 esac
10174 done
10177 # Check whether --enable-stage1-languages was given.
10178 if test "${enable_stage1_languages+set}" = set; then :
10179 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10180 ,no,|,,)
10181 # Set it to something that will have no effect in the loop below
10182 enable_stage1_languages=c ;;
10183 ,yes,)
10184 enable_stage1_languages=`echo $new_enable_languages | \
10185 sed -e "s/^,//" -e "s/,$//" ` ;;
10186 *,all,*)
10187 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
10188 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10189 esac
10191 # Add "good" languages from enable_stage1_languages to stage1_languages,
10192 # while "bad" languages go in missing_languages. Leave no duplicates.
10193 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10194 case $potential_languages in
10195 *,$i,*)
10196 case $stage1_languages in
10197 *,$i,*) ;;
10198 *) stage1_languages="$stage1_languages$i," ;;
10199 esac ;;
10201 case $missing_languages in
10202 *,$i,*) ;;
10203 *) missing_languages="$missing_languages$i," ;;
10204 esac ;;
10205 esac
10206 done
10210 # Remove leading/trailing commas that were added for simplicity
10211 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10212 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10213 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10214 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10216 if test "x$missing_languages" != x; then
10217 as_fn_error $? "
10218 The following requested languages could not be built: ${missing_languages}
10219 Supported languages are: ${potential_languages}" "$LINENO" 5
10221 if test "x$new_enable_languages" != "x$enable_languages"; then
10222 echo The following languages will be built: ${new_enable_languages}
10223 enable_languages="$new_enable_languages"
10227 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10230 # Handle --disable-<component> generically.
10231 for dir in $configdirs $build_configdirs $target_configdirs ; do
10232 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10233 varname=`echo $dirname | sed -e s/+/_/g`
10234 if eval test x\${enable_${varname}} "=" xno ; then
10235 noconfigdirs="$noconfigdirs $dir"
10237 done
10239 # Check for Boehm's garbage collector
10240 # Check whether --enable-objc-gc was given.
10241 if test "${enable_objc_gc+set}" = set; then :
10242 enableval=$enable_objc_gc;
10246 # Check whether --with-target-bdw-gc was given.
10247 if test "${with_target_bdw_gc+set}" = set; then :
10248 withval=$with_target_bdw_gc;
10252 # Check whether --with-target-bdw-gc-include was given.
10253 if test "${with_target_bdw_gc_include+set}" = set; then :
10254 withval=$with_target_bdw_gc_include;
10258 # Check whether --with-target-bdw-gc-lib was given.
10259 if test "${with_target_bdw_gc_lib+set}" = set; then :
10260 withval=$with_target_bdw_gc_lib;
10264 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10266 $as_echo_n "checking for bdw garbage collector... " >&6; }
10267 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10269 $as_echo "using bdw-gc in default locations" >&6; }
10270 else
10271 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
10272 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10273 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
10274 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10275 else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10277 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10280 esac
10282 # Disable libitm, libsanitizer, libvtv if we're not building C++
10283 case ,${enable_languages}, in
10284 *,c++,*)
10285 # Disable libitm, libsanitizer if we're not building libstdc++
10286 case "${noconfigdirs}" in
10287 *target-libstdc++-v3*)
10288 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
10290 *) ;;
10291 esac
10294 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10296 esac
10298 case ,${enable_languages}, in
10299 *,rust,*)
10300 case " ${noconfigdirs} " in
10301 *\ target-libstdc++-v3\ *)
10302 # Disable target libgrust if we're not building target libstdc++.
10303 noconfigdirs="$noconfigdirs target-libgrust"
10305 esac
10307 esac
10309 # If gcc/ is not in the source tree then we'll not be building a
10310 # target compiler, assume in that case we don't want to build any
10311 # target libraries or tools.
10313 # This was added primarily for the benefit for binutils-gdb who reuse
10314 # this configure script, but don't always have target tools available.
10315 if test ! -d ${srcdir}/gcc; then
10316 skipdirs="${skipdirs} ${target_configdirs}"
10319 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10320 # $build_configdirs and $target_configdirs.
10321 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10323 notsupp=""
10324 for dir in . $skipdirs $noconfigdirs ; do
10325 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10326 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10327 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10328 if test -r $srcdir/$dirname/configure ; then
10329 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10330 true
10331 else
10332 notsupp="$notsupp $dir"
10336 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10337 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10338 if test -r $srcdir/$dirname/configure ; then
10339 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10340 true
10341 else
10342 notsupp="$notsupp $dir"
10346 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10347 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10348 if test -r $srcdir/$dirname/configure ; then
10349 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10350 true
10351 else
10352 notsupp="$notsupp $dir"
10356 done
10358 # Quietly strip out all directories which aren't configurable in this tree.
10359 # This relies on all configurable subdirectories being autoconfiscated, which
10360 # is now the case.
10361 build_configdirs_all="$build_configdirs"
10362 build_configdirs=
10363 for i in ${build_configdirs_all} ; do
10364 j=`echo $i | sed -e s/build-//g`
10365 if test -f ${srcdir}/$j/configure ; then
10366 build_configdirs="${build_configdirs} $i"
10368 done
10370 configdirs_all="$configdirs"
10371 configdirs=
10372 for i in ${configdirs_all} ; do
10373 if test -f ${srcdir}/$i/configure ; then
10374 configdirs="${configdirs} $i"
10376 done
10378 target_configdirs_all="$target_configdirs"
10379 target_configdirs=
10380 for i in ${target_configdirs_all} ; do
10381 j=`echo $i | sed -e s/target-//g`
10382 if test -f ${srcdir}/$j/configure ; then
10383 target_configdirs="${target_configdirs} $i"
10385 done
10387 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10388 # so we have to add it after the preceding checks.
10389 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10390 then
10391 case " $configdirs " in
10392 *" libiberty "*)
10393 # If we can build libiberty, we can also build libiberty-linker-plugin.
10394 configdirs="$configdirs libiberty-linker-plugin"
10395 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
10396 --with-libiberty=../libiberty-linker-plugin";;
10398 as_fn_error $? "libiberty missing" "$LINENO" 5;;
10399 esac
10402 # Sometimes we have special requirements for the host libiberty.
10403 extra_host_libiberty_configure_flags=
10404 case " $configdirs " in
10405 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
10406 # When these are to be built as shared libraries, the same applies to
10407 # libiberty.
10408 extra_host_libiberty_configure_flags=--enable-shared
10410 esac
10413 # Sometimes we have special requirements for the host zlib.
10414 extra_host_zlib_configure_flags=
10415 case " $configdirs " in
10416 *" bfd "*)
10417 # When bfd is to be built as a shared library, the same applies to
10418 # zlib.
10419 if test "$enable_shared" = "yes"; then
10420 extra_host_zlib_configure_flags=--enable-host-shared
10423 esac
10426 # Produce a warning message for the subdirs we can't configure.
10427 # This isn't especially interesting in the Cygnus tree, but in the individual
10428 # FSF releases, it's important to let people know when their machine isn't
10429 # supported by the one or two programs in a package.
10431 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10432 # If $appdirs is non-empty, at least one of those directories must still
10433 # be configured, or we error out. (E.g., if the gas release supports a
10434 # specified target in some subdirs but not the gas subdir, we shouldn't
10435 # pretend that all is well.)
10436 if test -n "$appdirs" ; then
10437 for dir in $appdirs ; do
10438 if test -r $dir/Makefile.in ; then
10439 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10440 appdirs=""
10441 break
10443 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
10444 appdirs=""
10445 break
10448 done
10449 if test -n "$appdirs" ; then
10450 echo "*** This configuration is not supported by this package." 1>&2
10451 exit 1
10454 # Okay, some application will build, or we don't care to check. Still
10455 # notify of subdirs not getting built.
10456 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10457 echo " ${notsupp}" 1>&2
10458 echo " (Any other directories should still work fine.)" 1>&2
10461 case "$host" in
10462 *msdosdjgpp*)
10463 enable_gdbtk=no ;;
10464 esac
10466 # To find our prefix, in gcc_cv_tool_prefix.
10468 # The user is always right.
10469 if test "${PATH_SEPARATOR+set}" != set; then
10470 echo "#! /bin/sh" >conf$$.sh
10471 echo "exit 0" >>conf$$.sh
10472 chmod +x conf$$.sh
10473 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10474 PATH_SEPARATOR=';'
10475 else
10476 PATH_SEPARATOR=:
10478 rm -f conf$$.sh
10482 get_gcc_base_ver="cat"
10484 # Check whether --with-gcc-major-version-only was given.
10485 if test "${with_gcc_major_version_only+set}" = set; then :
10486 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
10487 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
10497 if test "x$exec_prefix" = xNONE; then
10498 if test "x$prefix" = xNONE; then
10499 gcc_cv_tool_prefix=$ac_default_prefix
10500 else
10501 gcc_cv_tool_prefix=$prefix
10503 else
10504 gcc_cv_tool_prefix=$exec_prefix
10507 # If there is no compiler in the tree, use the PATH only. In any
10508 # case, if there is no compiler in the tree nobody should use
10509 # AS_FOR_TARGET and LD_FOR_TARGET.
10510 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
10511 if test x$with_gcc_major_version_only = xyes ; then
10512 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10513 else
10514 gcc_version=`cat $srcdir/gcc/BASE-VER`
10516 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10517 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10518 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10519 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10520 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10521 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10522 else
10523 gcc_cv_tool_dirs=
10526 if test x$build = x$target && test -n "$md_exec_prefix"; then
10527 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10532 copy_dirs=
10535 # Check whether --with-build-sysroot was given.
10536 if test "${with_build_sysroot+set}" = set; then :
10537 withval=$with_build_sysroot; if test x"$withval" != x ; then
10538 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
10540 else
10541 SYSROOT_CFLAGS_FOR_TARGET=
10547 # Check whether --with-debug-prefix-map was given.
10548 if test "${with_debug_prefix_map+set}" = set; then :
10549 withval=$with_debug_prefix_map; if test x"$withval" != x; then
10550 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10551 for debug_map in $withval; do
10552 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10553 done
10555 else
10556 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10561 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10562 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10563 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10564 # We want to ensure that TARGET libraries (which we know are built with
10565 # gcc) are built with "-O2 -g", so include those options when setting
10566 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10567 if test "x$CFLAGS_FOR_TARGET" = x; then
10568 if test "x${is_cross_compiler}" = xyes; then
10569 CFLAGS_FOR_TARGET="-g -O2"
10570 else
10571 CFLAGS_FOR_TARGET=$CFLAGS
10572 case " $CFLAGS " in
10573 *" -O2 "*) ;;
10574 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
10575 esac
10576 case " $CFLAGS " in
10577 *" -g "* | *" -g3 "*) ;;
10578 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
10579 esac
10584 if test "x$CXXFLAGS_FOR_TARGET" = x; then
10585 if test "x${is_cross_compiler}" = xyes; then
10586 CXXFLAGS_FOR_TARGET="-g -O2"
10587 else
10588 CXXFLAGS_FOR_TARGET=$CXXFLAGS
10589 case " $CXXFLAGS " in
10590 *" -O2 "*) ;;
10591 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
10592 esac
10593 case " $CXXFLAGS " in
10594 *" -g "* | *" -g3 "*) ;;
10595 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
10596 esac
10603 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10604 # the named directory are copied to $(tooldir)/sys-include.
10605 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
10606 if test x${is_cross_compiler} = xno ; then
10607 echo 1>&2 '***' --with-headers is only supported when cross compiling
10608 exit 1
10610 if test x"${with_headers}" != xyes ; then
10611 x=${gcc_cv_tool_prefix}
10612 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10616 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10617 # the name directories are copied to $(tooldir)/lib. Multiple directories
10618 # are permitted.
10619 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
10620 if test x${is_cross_compiler} = xno ; then
10621 echo 1>&2 '***' --with-libs is only supported when cross compiling
10622 exit 1
10624 if test x"${with_libs}" != xyes ; then
10625 # Copy the libraries in reverse order, so that files in the first named
10626 # library override files in subsequent libraries.
10627 x=${gcc_cv_tool_prefix}
10628 for l in ${with_libs}; do
10629 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10630 done
10634 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10636 # This is done by determining whether or not the appropriate directory
10637 # is available, and by checking whether or not specific configurations
10638 # have requested that this magic not happen.
10640 # The command line options always override the explicit settings in
10641 # configure.ac, and the settings in configure.ac override this magic.
10643 # If the default for a toolchain is to use GNU as and ld, and you don't
10644 # want to do that, then you should use the --without-gnu-as and
10645 # --without-gnu-ld options for the configure script. Similarly, if
10646 # the default is to use the included zlib and you don't want to do that,
10647 # you should use the --with-system-zlib option for the configure script.
10649 if test x${use_gnu_as} = x &&
10650 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
10651 with_gnu_as=yes
10652 extra_host_args="$extra_host_args --with-gnu-as"
10655 if test x${use_gnu_ld} = x &&
10656 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
10657 with_gnu_ld=yes
10658 extra_host_args="$extra_host_args --with-gnu-ld"
10661 if test x${use_included_zlib} = x &&
10662 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
10664 else
10665 with_system_zlib=yes
10666 extra_host_args="$extra_host_args --with-system-zlib"
10669 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10670 # can detect this case.
10672 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
10673 with_newlib=yes
10674 extra_host_args="$extra_host_args --with-newlib"
10677 # Handle ${copy_dirs}
10678 set fnord ${copy_dirs}
10679 shift
10680 while test $# != 0 ; do
10681 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
10683 else
10684 echo Copying $1 to $2
10686 # Use the install script to create the directory and all required
10687 # parent directories.
10688 if test -d $2 ; then
10690 else
10691 echo >config.temp
10692 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
10695 # Copy the directory, assuming we have tar.
10696 # FIXME: Should we use B in the second tar? Not all systems support it.
10697 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
10699 # It is the responsibility of the user to correctly adjust all
10700 # symlinks. If somebody can figure out how to handle them correctly
10701 # here, feel free to add the code.
10703 echo $1 > $2/COPIED
10705 shift; shift
10706 done
10708 # Determine a target-dependent exec_prefix that the installed
10709 # gcc will search in. Keep this list sorted by triplet, with
10710 # the *-*-osname triplets last.
10711 md_exec_prefix=
10712 case "${target}" in
10713 i[34567]86-pc-msdosdjgpp*)
10714 md_exec_prefix=/dev/env/DJDIR/bin
10716 *-*-hpux* | \
10717 *-*-nto-qnx* | \
10718 *-*-solaris2*)
10719 md_exec_prefix=/usr/ccs/bin
10721 esac
10723 extra_arflags_for_target=
10724 extra_nmflags_for_target=
10725 extra_ranlibflags_for_target=
10726 target_makefile_frag=/dev/null
10727 case "${target}" in
10728 spu-*-*)
10729 target_makefile_frag="config/mt-spu"
10731 loongarch*-*linux* | loongarch*-*gnu*)
10732 target_makefile_frag="config/mt-loongarch-gnu"
10734 loongarch*-*elf*)
10735 target_makefile_frag="config/mt-loongarch-elf"
10737 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
10738 target_makefile_frag="config/mt-sde"
10740 mipsisa*-*-elfoabi*)
10741 target_makefile_frag="config/mt-mips-elfoabi"
10743 mips*-*-*linux* | mips*-*-gnu*)
10744 target_makefile_frag="config/mt-mips-gnu"
10746 *-*-linux-android*)
10747 target_makefile_frag="config/mt-android"
10749 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
10750 target_makefile_frag="config/mt-gnu"
10752 *-*-aix4.[3456789]* | *-*-aix[56789].*)
10753 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10754 # commands to handle both 32-bit and 64-bit objects. These flags are
10755 # harmless if we're using GNU nm or ar.
10756 extra_arflags_for_target=" -X32_64"
10757 extra_nmflags_for_target=" -B -X32_64"
10759 esac
10761 alphaieee_frag=/dev/null
10762 case $target in
10763 alpha*-*-*)
10764 # This just makes sure to use the -mieee option to build target libs.
10765 # This should probably be set individually by each library.
10766 alphaieee_frag="config/mt-alphaieee"
10768 esac
10770 # If --enable-target-optspace always use -Os instead of -O2 to build
10771 # the target libraries, similarly if it is not specified, use -Os
10772 # on selected platforms.
10773 ospace_frag=/dev/null
10774 case "${enable_target_optspace}:${target}" in
10775 yes:*)
10776 ospace_frag="config/mt-ospace"
10778 :d30v-*)
10779 ospace_frag="config/mt-d30v"
10781 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10782 ospace_frag="config/mt-ospace"
10784 no:* | :*)
10787 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10789 esac
10791 # Some systems (e.g., one of the i386-aix systems the gas testers are
10792 # using) don't handle "\$" correctly, so don't use it here.
10793 tooldir='${exec_prefix}'/${target_noncanonical}
10794 build_tooldir=${tooldir}
10796 # Create a .gdbinit file which runs the one in srcdir
10797 # and tells GDB to look there for source files.
10799 if test -r ${srcdir}/.gdbinit ; then
10800 case ${srcdir} in
10801 .) ;;
10802 *) cat > ./.gdbinit <<EOF
10803 # ${NO_EDIT}
10804 dir ${srcdir}
10805 dir .
10806 source ${srcdir}/.gdbinit
10809 esac
10812 # Make sure that the compiler is able to generate an executable. If it
10813 # can't, we are probably in trouble. We don't care whether we can run the
10814 # executable--we might be using a cross compiler--we only care whether it
10815 # can be created. At this point the main configure script has set CC.
10816 we_are_ok=no
10817 echo "int main () { return 0; }" > conftest.c
10818 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10819 if test $? = 0 ; then
10820 if test -s conftest || test -s conftest.exe ; then
10821 we_are_ok=yes
10824 case $we_are_ok in
10826 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10827 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10828 rm -f conftest*
10829 exit 1
10831 esac
10832 rm -f conftest*
10834 # Decide which environment variable is used to find dynamic libraries.
10835 case "${host}" in
10836 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10837 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10838 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10839 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10840 esac
10842 # On systems where the dynamic library environment variable is PATH,
10843 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10844 # built executables to PATH.
10845 if test "$RPATH_ENVVAR" = PATH; then
10846 GCC_SHLIB_SUBDIR=/shlib
10847 else
10848 GCC_SHLIB_SUBDIR=
10851 # Adjust the toplevel makefile according to whether bootstrap was selected.
10852 case $enable_bootstrap in
10853 yes)
10854 bootstrap_suffix=bootstrap
10855 BUILD_CONFIG=bootstrap-debug
10858 bootstrap_suffix=no-bootstrap
10859 BUILD_CONFIG=
10861 esac
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10864 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10867 # Check whether --with-build-config was given.
10868 if test "${with_build_config+set}" = set; then :
10869 withval=$with_build_config; case $with_build_config in
10870 yes) with_build_config= ;;
10871 no) with_build_config= BUILD_CONFIG= ;;
10872 esac
10876 if test "x${with_build_config}" != x; then
10877 BUILD_CONFIG=$with_build_config
10878 else
10879 case $BUILD_CONFIG in
10880 bootstrap-debug)
10881 if echo "int f (void) { return 0; }" > conftest.c &&
10882 ${CC} -c conftest.c &&
10883 mv conftest.o conftest.o.g0 &&
10884 ${CC} -c -g conftest.c &&
10885 mv conftest.o conftest.o.g &&
10886 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10888 else
10889 BUILD_CONFIG=
10891 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10893 esac
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10896 $as_echo "$BUILD_CONFIG" >&6; }
10899 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10901 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10902 # Check whether --enable-vtable-verify was given.
10903 if test "${enable_vtable_verify+set}" = set; then :
10904 enableval=$enable_vtable_verify; case "$enableval" in
10905 yes) enable_vtable_verify=yes ;;
10906 no) enable_vtable_verify=no ;;
10907 *) enable_vtable_verify=no;;
10908 esac
10909 else
10910 enable_vtable_verify=no
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10914 $as_echo "$enable_vtable_verify" >&6; }
10916 # Record target_configdirs and the configure arguments for target and
10917 # build configuration in Makefile.
10918 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10919 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10920 bootstrap_fixincludes=no
10922 # If we are building libgomp, bootstrap it.
10923 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
10924 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
10927 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10928 # or bootstrap-ubsan, bootstrap it.
10929 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
10930 case "$BUILD_CONFIG" in
10931 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
10932 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
10933 bootstrap_fixincludes=yes
10935 esac
10938 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10939 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
10940 test "$enable_vtable_verify" != no; then
10941 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
10944 # If we are building libatomic and the list of enabled languages includes the
10945 # D frontend, bootstrap it.
10946 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
10947 case ,${enable_languages}, in
10948 *,d,*)
10949 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
10951 esac
10954 # Determine whether gdb needs tk/tcl or not.
10955 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10956 # and in that case we want gdb to be built without tk. Ugh!
10957 # In fact I believe gdb is the *only* package directly dependent on tk,
10958 # so we should be able to put the 'maybe's in unconditionally and
10959 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10960 # 100% sure that that's safe though.
10962 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10963 case "$enable_gdbtk" in
10965 GDB_TK="" ;;
10966 yes)
10967 GDB_TK="${gdb_tk}" ;;
10969 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10970 # distro. Eventually someone will fix this and move Insight, nee
10971 # gdbtk to a separate directory.
10972 if test -d ${srcdir}/gdb/gdbtk ; then
10973 GDB_TK="${gdb_tk}"
10974 else
10975 GDB_TK=""
10978 esac
10979 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10980 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10982 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10983 # else does, only include them if one of these is built. The Makefile
10984 # provides the ordering, so it's enough here to add to the list.
10985 case " ${configdirs} " in
10986 *\ gdb\ *)
10987 configdirs="${configdirs} gnulib gdbsupport"
10989 *\ gdbserver\ *)
10990 configdirs="${configdirs} gnulib gdbsupport"
10992 *\ sim\ *)
10993 configdirs="${configdirs} gnulib"
10995 esac
10997 # Strip out unwanted targets.
10999 # While at that, we remove Makefiles if we were started for recursive
11000 # configuration, so that the top-level Makefile reconfigures them,
11001 # like we used to do when configure itself was recursive.
11003 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11004 # but now we're fixing up the Makefile ourselves with the additional
11005 # commands passed to AC_CONFIG_FILES. Use separate variables
11006 # extrasub-{build,host,target} not because there is any reason to split
11007 # the substitutions up that way, but only to remain below the limit of
11008 # 99 commands in a script, for HP-UX sed.
11010 # Do not nest @if/@endif or @unless/@endunless pairs, because
11011 # configure will not warn you at all.
11013 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11014 yes:yes:*\ gold\ *:*,c++,*) ;;
11015 yes:yes:*\ gold\ *:*)
11016 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11018 esac
11020 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11021 # Note C++ is always enabled for stage1 now.
11022 case "$enable_bootstrap:${noconfigdirs}" in
11023 yes:*target-libstdc++-v3*)
11024 as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11026 esac
11029 extrasub_build=
11030 for module in ${build_configdirs} ; do
11031 if test -z "${no_recursion}" \
11032 && test -f ${build_subdir}/${module}/Makefile; then
11033 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11034 rm -f ${build_subdir}/${module}/Makefile
11036 extrasub_build="$extrasub_build
11037 /^@if build-$module\$/d
11038 /^@endif build-$module\$/d
11039 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11040 /^@if build-$module-$bootstrap_suffix\$/d
11041 /^@endif build-$module-$bootstrap_suffix\$/d
11042 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11043 done
11044 extrasub_host=
11045 for module in ${configdirs} ; do
11046 if test -z "${no_recursion}"; then
11047 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
11048 if test -f ${file}; then
11049 echo 1>&2 "*** removing ${file} to force reconfigure"
11050 rm -f ${file}
11052 done
11054 case ${module},${bootstrap_fixincludes} in
11055 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
11056 *) host_bootstrap_suffix=$bootstrap_suffix ;;
11057 esac
11058 extrasub_host="$extrasub_host
11059 /^@if $module\$/d
11060 /^@endif $module\$/d
11061 /^@unless $module\$/,/^@endunless $module\$/d
11062 /^@if $module-$host_bootstrap_suffix\$/d
11063 /^@endif $module-$host_bootstrap_suffix\$/d
11064 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11065 done
11066 extrasub_target=
11067 for module in ${target_configdirs} ; do
11068 if test -z "${no_recursion}" \
11069 && test -f ${target_subdir}/${module}/Makefile; then
11070 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11071 rm -f ${target_subdir}/${module}/Makefile
11074 # We only bootstrap target libraries listed in bootstrap_target_libs.
11075 case $bootstrap_target_libs in
11076 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
11077 *) target_bootstrap_suffix=no-bootstrap ;;
11078 esac
11080 extrasub_target="$extrasub_target
11081 /^@if target-$module\$/d
11082 /^@endif target-$module\$/d
11083 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11084 /^@if target-$module-$target_bootstrap_suffix\$/d
11085 /^@endif target-$module-$target_bootstrap_suffix\$/d
11086 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11087 done
11089 # Do the final fixup along with target modules.
11090 extrasub_target="$extrasub_target
11091 /^@if /,/^@endif /d
11092 /^@unless /d
11093 /^@endunless /d"
11095 if test "$enable_pgo_build" != "no"; then
11096 extrasub_build="$extrasub_build
11097 /^@if pgo-build\$/d
11098 /^@endif pgo-build\$/d"
11101 # Create the serialization dependencies. This uses a temporary file.
11103 # Check whether --enable-serial-configure was given.
11104 if test "${enable_serial_configure+set}" = set; then :
11105 enableval=$enable_serial_configure;
11109 case ${enable_serial_configure} in
11110 yes)
11111 enable_serial_build_configure=yes
11112 enable_serial_host_configure=yes
11113 enable_serial_target_configure=yes
11115 esac
11117 # These force 'configure's to be done one at a time, to avoid problems
11118 # with contention over a shared config.cache.
11119 rm -f serdep.tmp
11120 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
11121 echo '# serdep.tmp' > serdep.tmp
11123 olditem=
11124 test "x${enable_serial_build_configure}" = xyes &&
11125 for item in ${build_configdirs} ; do
11126 case ${olditem} in
11127 "") ;;
11128 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
11129 esac
11130 olditem=${item}
11131 done
11132 olditem=
11133 test "x${enable_serial_host_configure}" = xyes &&
11134 for item in ${configdirs} ; do
11135 case ${olditem} in
11136 "") ;;
11137 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
11138 esac
11139 olditem=${item}
11140 done
11141 olditem=
11142 test "x${enable_serial_target_configure}" = xyes &&
11143 for item in ${target_configdirs} ; do
11144 case ${olditem} in
11145 "") ;;
11146 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
11147 esac
11148 olditem=${item}
11149 done
11150 serialization_dependencies=serdep.tmp
11153 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11154 # target, nonopt, and variable assignments. These are the ones we
11155 # might not want to pass down to subconfigures. The exception being
11156 # --cache-file=/dev/null, which is used to turn off the use of cache
11157 # files altogether, and which should be passed on to subconfigures.
11158 # Also strip program-prefix, program-suffix, and program-transform-name,
11159 # so that we can pass down a consistent program-transform-name.
11160 hbaseargs=
11161 bbaseargs=
11162 tbaseargs=
11163 keep_next=no
11164 skip_next=no
11165 eval "set -- $ac_configure_args"
11166 for ac_arg
11168 if test X"$skip_next" = X"yes"; then
11169 skip_next=no
11170 continue
11172 if test X"$keep_next" = X"yes"; then
11173 case $ac_arg in
11174 *\'*)
11175 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11176 esac
11177 hbaseargs="$hbaseargs '$ac_arg'"
11178 bbaseargs="$bbaseargs '$ac_arg'"
11179 tbaseargs="$tbaseargs '$ac_arg'"
11180 keep_next=no
11181 continue
11184 # Handle separated arguments. Based on the logic generated by
11185 # autoconf 2.59.
11186 case $ac_arg in
11187 *=* | --config-cache | -C | -disable-* | --disable-* \
11188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11190 | -with-* | --with-* | -without-* | --without-* | --x)
11191 separate_arg=no
11194 separate_arg=yes
11197 separate_arg=no
11199 esac
11201 skip_targ=no
11202 skip_barg=no
11203 case $ac_arg in
11205 --with-* | --without-*)
11206 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11208 case $libopt in
11209 *[-_]include)
11210 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
11212 *[-_]lib)
11213 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
11215 *[-_]prefix)
11216 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11218 *[-_]type)
11219 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
11222 lib=$libopt
11224 esac
11227 case $lib in
11228 mpc | mpfr | gmp | isl)
11229 # If we're processing --with-$lib, --with-$lib-include or
11230 # --with-$lib-lib, for one of the libs above, and target is
11231 # different from host, don't pass the current argument to any
11232 # target library's configure.
11233 if test x$is_cross_compiler = xyes; then
11234 skip_targ=yes
11237 libintl | libiconv)
11238 # We don't want libintl (and co.) in anything but the host arguments.
11239 skip_targ=yes
11240 skip_barg=yes
11242 esac
11244 esac
11246 case "$ac_arg" in
11247 --cache-file=/dev/null | \
11248 -cache-file=/dev/null )
11249 # Handled here to avoid the test to skip args below.
11250 hbaseargs="$hbaseargs '$ac_arg'"
11251 bbaseargs="$bbaseargs '$ac_arg'"
11252 tbaseargs="$tbaseargs '$ac_arg'"
11253 # Assert: $separate_arg should always be no.
11254 keep_next=$separate_arg
11256 --no*)
11257 continue
11259 --c* | \
11260 --sr* | \
11261 --ho* | \
11262 --bu* | \
11263 --t* | \
11264 --program-* | \
11265 -cache_file* | \
11266 -srcdir* | \
11267 -host* | \
11268 -build* | \
11269 -target* | \
11270 -program-prefix* | \
11271 -program-suffix* | \
11272 -program-transform-name* )
11273 skip_next=$separate_arg
11274 continue
11277 # An option. Add it.
11278 case $ac_arg in
11279 *\'*)
11280 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11281 esac
11282 hbaseargs="$hbaseargs '$ac_arg'"
11283 if test X"$skip_barg" = Xno; then
11284 bbaseargs="$bbaseargs '$ac_arg'"
11286 if test X"$skip_targ" = Xno; then
11287 tbaseargs="$tbaseargs '$ac_arg'"
11289 keep_next=$separate_arg
11292 # Either a variable assignment, or a nonopt (triplet). Don't
11293 # pass it down; let the Makefile handle this.
11294 continue
11296 esac
11297 done
11298 # Remove the initial space we just introduced and, as these will be
11299 # expanded by make, quote '$'.
11300 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11301 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11303 # Add in --program-transform-name, after --program-prefix and
11304 # --program-suffix have been applied to it. Autoconf has already
11305 # doubled dollar signs and backslashes in program_transform_name; we want
11306 # the backslashes un-doubled, and then the entire thing wrapped in single
11307 # quotes, because this will be expanded first by make and then by the shell.
11308 # Also, because we want to override the logic in subdir configure scripts to
11309 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11310 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11311 ${program_transform_name}
11312 EOF_SED
11313 gcc_transform_name=`cat conftestsed.out`
11314 rm -f conftestsed.out
11315 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11316 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11317 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11318 if test "$silent" = yes; then
11319 bbaseargs="$bbaseargs --silent"
11320 hbaseargs="$hbaseargs --silent"
11321 tbaseargs="$tbaseargs --silent"
11324 bbaseargs="$bbaseargs --disable-option-checking"
11325 hbaseargs="$hbaseargs --disable-option-checking"
11326 tbaseargs="$tbaseargs --disable-option-checking"
11328 if test "$enable_year2038" = no; then
11329 bbaseargs="$bbaseargs --disable-year2038"
11330 hbaseargs="$hbaseargs --disable-year2038"
11331 tbaseargs="$tbaseargs --disable-year2038"
11334 # Record and document user additions to sub configure arguments.
11339 # For the build-side libraries, we just need to pretend we're native,
11340 # and not use the same cache file. Multilibs are neither needed nor
11341 # desired. We can't even use the same cache file for all build-side
11342 # libraries, as they're compiled differently; some with C, some with
11343 # C++ or with different feature-enabling options.
11344 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11346 # For host modules, accept cache file option, or specification as blank.
11347 case "${cache_file}" in
11348 "") # empty
11349 cache_file_option="" ;;
11350 /* | [A-Za-z]:[\\/]* ) # absolute path
11351 cache_file_option="--cache-file=${cache_file}" ;;
11352 *) # relative path
11353 cache_file_option="--cache-file=../${cache_file}" ;;
11354 esac
11356 # Host dirs don't like to share a cache file either, horribly enough.
11357 # This seems to be due to autoconf 2.5x stupidity.
11358 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11360 target_configargs="$target_configargs ${tbaseargs}"
11362 # Passing a --with-cross-host argument lets the target libraries know
11363 # whether they are being built with a cross-compiler or being built
11364 # native. However, it would be better to use other mechanisms to make the
11365 # sorts of decisions they want to make on this basis. Please consider
11366 # this option to be deprecated. FIXME.
11367 if test x${is_cross_compiler} = xyes ; then
11368 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
11371 # Special user-friendly check for native x86_64-linux build, if
11372 # multilib is not explicitly enabled.
11373 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11374 x86_64-*linux*:yes:$build:$build:)
11375 # Make sure we have a development environment that handles 32-bit
11376 dev64=no
11377 echo "int main () { return 0; }" > conftest.c
11378 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11379 if test $? = 0 ; then
11380 if test -s conftest || test -s conftest.exe ; then
11381 dev64=yes
11384 rm -f conftest*
11385 if test x${dev64} != xyes ; then
11386 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
11389 esac
11391 # Default to --enable-multilib.
11392 if test x${enable_multilib} = x ; then
11393 target_configargs="--enable-multilib ${target_configargs}"
11396 # Pass --with-newlib if appropriate. Note that target_configdirs has
11397 # changed from the earlier setting of with_newlib.
11398 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
11399 target_configargs="--with-newlib ${target_configargs}"
11402 # Different target subdirs use different values of certain variables
11403 # (notably CXX). Worse, multilibs use *lots* of different values.
11404 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11405 # it doesn't automatically accept command-line overrides of them.
11406 # This means it's not safe for target subdirs to share a cache file,
11407 # which is disgusting, but there you have it. Hopefully this can be
11408 # fixed in future. It's still worthwhile to use a cache file for each
11409 # directory. I think.
11411 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11412 # We need to pass --target, as newer autoconf's requires consistency
11413 # for target_alias and gcc doesn't manage it consistently.
11414 target_configargs="--cache-file=./config.cache ${target_configargs}"
11416 FLAGS_FOR_TARGET=
11417 case " $target_configdirs " in
11418 *" newlib "*)
11419 case " $target_configargs " in
11420 *" --with-newlib "*)
11421 case "$target" in
11422 *-cygwin*)
11423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11425 esac
11427 # If we're not building GCC, don't discard standard headers.
11428 if test -d ${srcdir}/gcc; then
11429 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
11431 if test "${build}" != "${host}"; then
11432 # On Canadian crosses, CC_FOR_TARGET will have already been set
11433 # by `configure', so we won't have an opportunity to add -Bgcc/
11434 # to it. This is right: we don't want to search that directory
11435 # for binaries, but we want the header files in there, so add
11436 # them explicitly.
11437 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11439 # Someone might think of using the pre-installed headers on
11440 # Canadian crosses, in case the installed compiler is not fully
11441 # compatible with the compiler being built. In this case, it
11442 # would be better to flag an error than risking having
11443 # incompatible object files being constructed. We can't
11444 # guarantee that an error will be flagged, but let's hope the
11445 # compiler will do it, when presented with incompatible header
11446 # files.
11450 case "${target}-${is_cross_compiler}" in
11451 i[3456789]86-*-linux*-no)
11452 # Here host == target, so we don't need to build gcc,
11453 # so we don't want to discard standard headers.
11454 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11457 # If we're building newlib, use its generic headers last, but search
11458 # for any libc-related directories first (so make it the last -B
11459 # switch).
11460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11462 # If we're building libgloss, find the startup file, simulator library
11463 # and linker script.
11464 case " $target_configdirs " in
11465 *" libgloss "*)
11466 # Look for startup file, simulator library and maybe linker script.
11467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11468 # Look for libnosys.a in case the target needs it.
11469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11470 # Most targets have the linker script in the source directory.
11471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11473 esac
11475 esac
11477 esac
11479 esac
11481 case "$target" in
11482 x86_64-*mingw* | *-w64-mingw*)
11483 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11484 # however, use a symlink named 'mingw' in ${prefix} .
11485 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11487 *-mingw*)
11488 # MinGW can't be handled as Cygwin above since it does not use newlib.
11489 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'
11491 esac
11493 # Allow the user to override the flags for
11494 # our build compiler if desired.
11495 if test x"${build}" = x"${host}" ; then
11496 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11497 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11498 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11499 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11502 # On Canadian crosses, we'll be searching the right directories for
11503 # the previously-installed cross compiler, so don't bother to add
11504 # flags for directories within the install tree of the compiler
11505 # being built; programs in there won't even run.
11506 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11507 # Search for pre-installed headers if nothing else fits.
11508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11511 if test "x${use_gnu_ld}" = x &&
11512 echo " ${configdirs} " | grep " ld " > /dev/null ; then
11513 # Arrange for us to find uninstalled linker scripts.
11514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11517 # Search for other target-specific linker scripts and such.
11518 case "${target}" in
11519 mep*)
11520 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11522 # The VxWorks support for shared libraries is getting in
11523 # incrementally. Make sure it doesn't get activated implicitly:
11524 *vxworks*)
11525 if test "${enable_shared-unset}" = unset ; then
11526 enable_shared=no
11527 # So the build of libraries knows ...
11528 target_configargs="${target_configargs} --disable-shared"
11529 # So gcc knows ...
11530 host_configargs="${host_configargs} --disable-shared"
11533 esac
11535 # Makefile fragments.
11536 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11538 eval fragval=\$$frag
11539 if test $fragval != /dev/null; then
11540 eval $frag=${srcdir}/$fragval
11542 done
11548 # Miscellanea: directories, flags, etc.
11557 # Build module lists & subconfigure args.
11561 # Host module lists & subconfigure args.
11566 # Target module lists & subconfigure args.
11570 # Build tools.
11591 # Generate default definitions for YACC, M4, LEX and other programs that run
11592 # on the build machine. These are used if the Makefile can't locate these
11593 # programs in objdir.
11594 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11596 for ac_prog in 'bison -y' byacc yacc
11598 # Extract the first word of "$ac_prog", so it can be a program name with args.
11599 set dummy $ac_prog; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_prog_YACC+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 if test -n "$YACC"; then
11606 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11607 else
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_YACC="$ac_prog"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11619 done
11620 done
11621 IFS=$as_save_IFS
11625 YACC=$ac_cv_prog_YACC
11626 if test -n "$YACC"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11628 $as_echo "$YACC" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11635 test -n "$YACC" && break
11636 done
11637 test -n "$YACC" || YACC="$MISSING bison -y"
11639 case " $build_configdirs " in
11640 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11641 esac
11643 for ac_prog in bison
11645 # Extract the first word of "$ac_prog", so it can be a program name with args.
11646 set dummy $ac_prog; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if ${ac_cv_prog_BISON+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 if test -n "$BISON"; then
11653 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11654 else
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_prog_BISON="$ac_prog"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11666 done
11667 done
11668 IFS=$as_save_IFS
11672 BISON=$ac_cv_prog_BISON
11673 if test -n "$BISON"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11675 $as_echo "$BISON" >&6; }
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11682 test -n "$BISON" && break
11683 done
11684 test -n "$BISON" || BISON="$MISSING bison"
11686 case " $build_configdirs " in
11687 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11688 esac
11690 for ac_prog in gm4 gnum4 m4
11692 # Extract the first word of "$ac_prog", so it can be a program name with args.
11693 set dummy $ac_prog; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if ${ac_cv_prog_M4+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 if test -n "$M4"; then
11700 ac_cv_prog_M4="$M4" # Let the user override the test.
11701 else
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_prog_M4="$ac_prog"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11719 M4=$ac_cv_prog_M4
11720 if test -n "$M4"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11722 $as_echo "$M4" >&6; }
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11729 test -n "$M4" && break
11730 done
11731 test -n "$M4" || M4="$MISSING m4"
11733 case " $build_configdirs " in
11734 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11735 esac
11737 for ac_prog in flex lex
11739 # Extract the first word of "$ac_prog", so it can be a program name with args.
11740 set dummy $ac_prog; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_prog_LEX+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 if test -n "$LEX"; then
11747 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_LEX="$ac_prog"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11760 done
11761 done
11762 IFS=$as_save_IFS
11766 LEX=$ac_cv_prog_LEX
11767 if test -n "$LEX"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11769 $as_echo "$LEX" >&6; }
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11776 test -n "$LEX" && break
11777 done
11778 test -n "$LEX" || LEX="$MISSING flex"
11780 case " $build_configdirs " in
11781 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11782 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11783 esac
11785 for ac_prog in flex
11787 # Extract the first word of "$ac_prog", so it can be a program name with args.
11788 set dummy $ac_prog; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_prog_FLEX+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 if test -n "$FLEX"; then
11795 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11796 else
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804 ac_cv_prog_FLEX="$ac_prog"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11808 done
11809 done
11810 IFS=$as_save_IFS
11814 FLEX=$ac_cv_prog_FLEX
11815 if test -n "$FLEX"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11817 $as_echo "$FLEX" >&6; }
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11824 test -n "$FLEX" && break
11825 done
11826 test -n "$FLEX" || FLEX="$MISSING flex"
11828 case " $build_configdirs " in
11829 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11830 esac
11832 for ac_prog in makeinfo
11834 # Extract the first word of "$ac_prog", so it can be a program name with args.
11835 set dummy $ac_prog; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_prog_MAKEINFO+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test -n "$MAKEINFO"; then
11842 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11843 else
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_prog_MAKEINFO="$ac_prog"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11855 done
11856 done
11857 IFS=$as_save_IFS
11861 MAKEINFO=$ac_cv_prog_MAKEINFO
11862 if test -n "$MAKEINFO"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11864 $as_echo "$MAKEINFO" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11871 test -n "$MAKEINFO" && break
11872 done
11873 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11875 case " $build_configdirs " in
11876 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11879 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11880 # higher, else we use the "missing" dummy.
11881 if ${MAKEINFO} --version \
11882 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11884 else
11885 MAKEINFO="$MISSING makeinfo"
11889 esac
11891 # FIXME: expect and dejagnu may become build tools?
11893 for ac_prog in expect
11895 # Extract the first word of "$ac_prog", so it can be a program name with args.
11896 set dummy $ac_prog; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_EXPECT+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 if test -n "$EXPECT"; then
11903 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_EXPECT="$ac_prog"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11922 EXPECT=$ac_cv_prog_EXPECT
11923 if test -n "$EXPECT"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
11925 $as_echo "$EXPECT" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11932 test -n "$EXPECT" && break
11933 done
11934 test -n "$EXPECT" || EXPECT="expect"
11936 case " $configdirs " in
11937 *" expect "*)
11938 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11940 esac
11942 for ac_prog in runtest
11944 # Extract the first word of "$ac_prog", so it can be a program name with args.
11945 set dummy $ac_prog; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if ${ac_cv_prog_RUNTEST+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 if test -n "$RUNTEST"; then
11952 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11953 else
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11961 ac_cv_prog_RUNTEST="$ac_prog"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11965 done
11966 done
11967 IFS=$as_save_IFS
11971 RUNTEST=$ac_cv_prog_RUNTEST
11972 if test -n "$RUNTEST"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
11974 $as_echo "$RUNTEST" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11981 test -n "$RUNTEST" && break
11982 done
11983 test -n "$RUNTEST" || RUNTEST="runtest"
11985 case " $configdirs " in
11986 *" dejagnu "*)
11987 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11989 esac
11992 # Host tools.
11993 ncn_tool_prefix=
11994 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11995 ncn_target_tool_prefix=
11996 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
12000 if test -n "$AR"; then
12001 ac_cv_prog_AR=$AR
12002 elif test -n "$ac_cv_prog_AR"; then
12003 AR=$ac_cv_prog_AR
12006 if test -n "$ac_cv_prog_AR"; then
12007 for ncn_progname in ar; do
12008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12009 set dummy ${ncn_progname}; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_prog_AR+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test -n "$AR"; then
12016 ac_cv_prog_AR="$AR" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_AR="${ncn_progname}"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12029 done
12030 done
12031 IFS=$as_save_IFS
12035 AR=$ac_cv_prog_AR
12036 if test -n "$AR"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12038 $as_echo "$AR" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12045 done
12048 for ncn_progname in ar; do
12049 if test -n "$ncn_tool_prefix"; then
12050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if ${ac_cv_prog_AR+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 if test -n "$AR"; then
12058 ac_cv_prog_AR="$AR" # Let the user override the test.
12059 else
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 break 2
12071 done
12072 done
12073 IFS=$as_save_IFS
12077 AR=$ac_cv_prog_AR
12078 if test -n "$AR"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12080 $as_echo "$AR" >&6; }
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12088 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12090 set dummy ${ncn_progname}; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_prog_AR+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 if test -n "$AR"; then
12097 ac_cv_prog_AR="$AR" # Let the user override the test.
12098 else
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_AR="${ncn_progname}"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12110 done
12111 done
12112 IFS=$as_save_IFS
12116 AR=$ac_cv_prog_AR
12117 if test -n "$AR"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12119 $as_echo "$AR" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12127 test -n "$ac_cv_prog_AR" && break
12128 done
12130 if test -z "$ac_cv_prog_AR" ; then
12131 set dummy ar
12132 if test $build = $host ; then
12133 AR="$2"
12134 else
12135 AR="${ncn_tool_prefix}$2"
12141 if test -n "$AS"; then
12142 ac_cv_prog_AS=$AS
12143 elif test -n "$ac_cv_prog_AS"; then
12144 AS=$ac_cv_prog_AS
12147 if test -n "$ac_cv_prog_AS"; then
12148 for ncn_progname in as; do
12149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12150 set dummy ${ncn_progname}; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_prog_AS+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 if test -n "$AS"; then
12157 ac_cv_prog_AS="$AS" # Let the user override the test.
12158 else
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_AS="${ncn_progname}"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12170 done
12171 done
12172 IFS=$as_save_IFS
12176 AS=$ac_cv_prog_AS
12177 if test -n "$AS"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12179 $as_echo "$AS" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12186 done
12189 for ncn_progname in as; do
12190 if test -n "$ncn_tool_prefix"; then
12191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_prog_AS+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$AS"; then
12199 ac_cv_prog_AS="$AS" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12212 done
12213 done
12214 IFS=$as_save_IFS
12218 AS=$ac_cv_prog_AS
12219 if test -n "$AS"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12221 $as_echo "$AS" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12229 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12231 set dummy ${ncn_progname}; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if ${ac_cv_prog_AS+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$AS"; then
12238 ac_cv_prog_AS="$AS" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12247 ac_cv_prog_AS="${ncn_progname}"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12251 done
12252 done
12253 IFS=$as_save_IFS
12257 AS=$ac_cv_prog_AS
12258 if test -n "$AS"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12260 $as_echo "$AS" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12268 test -n "$ac_cv_prog_AS" && break
12269 done
12271 if test -z "$ac_cv_prog_AS" ; then
12272 set dummy as
12273 if test $build = $host ; then
12274 AS="$2"
12275 else
12276 AS="${ncn_tool_prefix}$2"
12282 if test -n "$DLLTOOL"; then
12283 ac_cv_prog_DLLTOOL=$DLLTOOL
12284 elif test -n "$ac_cv_prog_DLLTOOL"; then
12285 DLLTOOL=$ac_cv_prog_DLLTOOL
12288 if test -n "$ac_cv_prog_DLLTOOL"; then
12289 for ncn_progname in dlltool; do
12290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12291 set dummy ${ncn_progname}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_prog_DLLTOOL+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 if test -n "$DLLTOOL"; then
12298 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12299 else
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_DLLTOOL="${ncn_progname}"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 break 2
12311 done
12312 done
12313 IFS=$as_save_IFS
12317 DLLTOOL=$ac_cv_prog_DLLTOOL
12318 if test -n "$DLLTOOL"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12320 $as_echo "$DLLTOOL" >&6; }
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12327 done
12330 for ncn_progname in dlltool; do
12331 if test -n "$ncn_tool_prefix"; then
12332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_DLLTOOL+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -n "$DLLTOOL"; then
12340 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12353 done
12354 done
12355 IFS=$as_save_IFS
12359 DLLTOOL=$ac_cv_prog_DLLTOOL
12360 if test -n "$DLLTOOL"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12362 $as_echo "$DLLTOOL" >&6; }
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12370 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_prog_DLLTOOL+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$DLLTOOL"; then
12379 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_prog_DLLTOOL="${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12392 done
12393 done
12394 IFS=$as_save_IFS
12398 DLLTOOL=$ac_cv_prog_DLLTOOL
12399 if test -n "$DLLTOOL"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12401 $as_echo "$DLLTOOL" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12409 test -n "$ac_cv_prog_DLLTOOL" && break
12410 done
12412 if test -z "$ac_cv_prog_DLLTOOL" ; then
12413 set dummy dlltool
12414 if test $build = $host ; then
12415 DLLTOOL="$2"
12416 else
12417 DLLTOOL="${ncn_tool_prefix}$2"
12423 if test -n "$DSYMUTIL"; then
12424 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12425 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12426 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12429 if test -n "$ac_cv_prog_DSYMUTIL"; then
12430 for ncn_progname in dsymutil; do
12431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -n "$DSYMUTIL"; then
12439 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12440 else
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12452 done
12453 done
12454 IFS=$as_save_IFS
12458 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12459 if test -n "$DSYMUTIL"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12461 $as_echo "$DSYMUTIL" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12468 done
12471 for ncn_progname in dsymutil; do
12472 if test -n "$ncn_tool_prefix"; then
12473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 if test -n "$DSYMUTIL"; then
12481 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12494 done
12495 done
12496 IFS=$as_save_IFS
12500 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12501 if test -n "$DSYMUTIL"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12503 $as_echo "$DSYMUTIL" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12511 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513 set dummy ${ncn_progname}; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test -n "$DSYMUTIL"; then
12520 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12533 done
12534 done
12535 IFS=$as_save_IFS
12539 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12540 if test -n "$DSYMUTIL"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12542 $as_echo "$DSYMUTIL" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12550 test -n "$ac_cv_prog_DSYMUTIL" && break
12551 done
12553 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12554 set dummy dsymutil
12555 if test $build = $host ; then
12556 DSYMUTIL="$2"
12557 else
12558 DSYMUTIL="${ncn_tool_prefix}$2"
12564 if test -n "$LD"; then
12565 ac_cv_prog_LD=$LD
12566 elif test -n "$ac_cv_prog_LD"; then
12567 LD=$ac_cv_prog_LD
12570 if test -n "$ac_cv_prog_LD"; then
12571 for ncn_progname in ld; do
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if ${ac_cv_prog_LD+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$LD"; then
12580 ac_cv_prog_LD="$LD" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_LD="${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12593 done
12594 done
12595 IFS=$as_save_IFS
12599 LD=$ac_cv_prog_LD
12600 if test -n "$LD"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12602 $as_echo "$LD" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12609 done
12612 for ncn_progname in ld; do
12613 if test -n "$ncn_tool_prefix"; then
12614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_prog_LD+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if test -n "$LD"; then
12622 ac_cv_prog_LD="$LD" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12635 done
12636 done
12637 IFS=$as_save_IFS
12641 LD=$ac_cv_prog_LD
12642 if test -n "$LD"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12644 $as_echo "$LD" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12652 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12654 set dummy ${ncn_progname}; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_prog_LD+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test -n "$LD"; then
12661 ac_cv_prog_LD="$LD" # Let the user override the test.
12662 else
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_LD="${ncn_progname}"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12674 done
12675 done
12676 IFS=$as_save_IFS
12680 LD=$ac_cv_prog_LD
12681 if test -n "$LD"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12683 $as_echo "$LD" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12691 test -n "$ac_cv_prog_LD" && break
12692 done
12694 if test -z "$ac_cv_prog_LD" ; then
12695 set dummy ld
12696 if test $build = $host ; then
12697 LD="$2"
12698 else
12699 LD="${ncn_tool_prefix}$2"
12705 if test -n "$LIPO"; then
12706 ac_cv_prog_LIPO=$LIPO
12707 elif test -n "$ac_cv_prog_LIPO"; then
12708 LIPO=$ac_cv_prog_LIPO
12711 if test -n "$ac_cv_prog_LIPO"; then
12712 for ncn_progname in lipo; do
12713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12714 set dummy ${ncn_progname}; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_prog_LIPO+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$LIPO"; then
12721 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_prog_LIPO="${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12734 done
12735 done
12736 IFS=$as_save_IFS
12740 LIPO=$ac_cv_prog_LIPO
12741 if test -n "$LIPO"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12743 $as_echo "$LIPO" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12750 done
12753 for ncn_progname in lipo; do
12754 if test -n "$ncn_tool_prefix"; then
12755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_prog_LIPO+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -n "$LIPO"; then
12763 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12764 else
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12776 done
12777 done
12778 IFS=$as_save_IFS
12782 LIPO=$ac_cv_prog_LIPO
12783 if test -n "$LIPO"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12785 $as_echo "$LIPO" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12793 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795 set dummy ${ncn_progname}; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_prog_LIPO+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test -n "$LIPO"; then
12802 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_prog_LIPO="${ncn_progname}"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12815 done
12816 done
12817 IFS=$as_save_IFS
12821 LIPO=$ac_cv_prog_LIPO
12822 if test -n "$LIPO"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12824 $as_echo "$LIPO" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12832 test -n "$ac_cv_prog_LIPO" && break
12833 done
12835 if test -z "$ac_cv_prog_LIPO" ; then
12836 set dummy lipo
12837 if test $build = $host ; then
12838 LIPO="$2"
12839 else
12840 LIPO="${ncn_tool_prefix}$2"
12846 if test -n "$NM"; then
12847 ac_cv_prog_NM=$NM
12848 elif test -n "$ac_cv_prog_NM"; then
12849 NM=$ac_cv_prog_NM
12852 if test -n "$ac_cv_prog_NM"; then
12853 for ncn_progname in nm; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855 set dummy ${ncn_progname}; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if ${ac_cv_prog_NM+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 if test -n "$NM"; then
12862 ac_cv_prog_NM="$NM" # Let the user override the test.
12863 else
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12871 ac_cv_prog_NM="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12875 done
12876 done
12877 IFS=$as_save_IFS
12881 NM=$ac_cv_prog_NM
12882 if test -n "$NM"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12884 $as_echo "$NM" >&6; }
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12891 done
12894 for ncn_progname in nm; do
12895 if test -n "$ncn_tool_prefix"; then
12896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_prog_NM+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -n "$NM"; then
12904 ac_cv_prog_NM="$NM" # Let the user override the test.
12905 else
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12917 done
12918 done
12919 IFS=$as_save_IFS
12923 NM=$ac_cv_prog_NM
12924 if test -n "$NM"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12926 $as_echo "$NM" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12934 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936 set dummy ${ncn_progname}; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_prog_NM+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$NM"; then
12943 ac_cv_prog_NM="$NM" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_prog_NM="${ncn_progname}"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12956 done
12957 done
12958 IFS=$as_save_IFS
12962 NM=$ac_cv_prog_NM
12963 if test -n "$NM"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12965 $as_echo "$NM" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12973 test -n "$ac_cv_prog_NM" && break
12974 done
12976 if test -z "$ac_cv_prog_NM" ; then
12977 set dummy nm
12978 if test $build = $host ; then
12979 NM="$2"
12980 else
12981 NM="${ncn_tool_prefix}$2"
12987 if test -n "$RANLIB"; then
12988 ac_cv_prog_RANLIB=$RANLIB
12989 elif test -n "$ac_cv_prog_RANLIB"; then
12990 RANLIB=$ac_cv_prog_RANLIB
12993 if test -n "$ac_cv_prog_RANLIB"; then
12994 for ncn_progname in ranlib; do
12995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12996 set dummy ${ncn_progname}; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_prog_RANLIB+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 if test -n "$RANLIB"; then
13003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012 ac_cv_prog_RANLIB="${ncn_progname}"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13016 done
13017 done
13018 IFS=$as_save_IFS
13022 RANLIB=$ac_cv_prog_RANLIB
13023 if test -n "$RANLIB"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13025 $as_echo "$RANLIB" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13032 done
13035 for ncn_progname in ranlib; do
13036 if test -n "$ncn_tool_prefix"; then
13037 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if ${ac_cv_prog_RANLIB+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$RANLIB"; then
13045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13064 RANLIB=$ac_cv_prog_RANLIB
13065 if test -n "$RANLIB"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13067 $as_echo "$RANLIB" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13075 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077 set dummy ${ncn_progname}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_prog_RANLIB+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 if test -n "$RANLIB"; then
13084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13085 else
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_RANLIB="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13097 done
13098 done
13099 IFS=$as_save_IFS
13103 RANLIB=$ac_cv_prog_RANLIB
13104 if test -n "$RANLIB"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13106 $as_echo "$RANLIB" >&6; }
13107 else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13114 test -n "$ac_cv_prog_RANLIB" && break
13115 done
13117 if test -z "$ac_cv_prog_RANLIB" ; then
13118 RANLIB="true"
13123 if test -n "$STRIP"; then
13124 ac_cv_prog_STRIP=$STRIP
13125 elif test -n "$ac_cv_prog_STRIP"; then
13126 STRIP=$ac_cv_prog_STRIP
13129 if test -n "$ac_cv_prog_STRIP"; then
13130 for ncn_progname in strip; do
13131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13132 set dummy ${ncn_progname}; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if ${ac_cv_prog_STRIP+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 if test -n "$STRIP"; then
13139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13140 else
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13148 ac_cv_prog_STRIP="${ncn_progname}"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13152 done
13153 done
13154 IFS=$as_save_IFS
13158 STRIP=$ac_cv_prog_STRIP
13159 if test -n "$STRIP"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13161 $as_echo "$STRIP" >&6; }
13162 else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13168 done
13171 for ncn_progname in strip; do
13172 if test -n "$ncn_tool_prefix"; then
13173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13174 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_prog_STRIP+:} false; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 if test -n "$STRIP"; then
13181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13194 done
13195 done
13196 IFS=$as_save_IFS
13200 STRIP=$ac_cv_prog_STRIP
13201 if test -n "$STRIP"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13203 $as_echo "$STRIP" >&6; }
13204 else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13211 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13213 set dummy ${ncn_progname}; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if ${ac_cv_prog_STRIP+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if test -n "$STRIP"; then
13220 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13221 else
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229 ac_cv_prog_STRIP="${ncn_progname}"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13233 done
13234 done
13235 IFS=$as_save_IFS
13239 STRIP=$ac_cv_prog_STRIP
13240 if test -n "$STRIP"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13242 $as_echo "$STRIP" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13250 test -n "$ac_cv_prog_STRIP" && break
13251 done
13253 if test -z "$ac_cv_prog_STRIP" ; then
13254 STRIP="true"
13259 if test -n "$WINDRES"; then
13260 ac_cv_prog_WINDRES=$WINDRES
13261 elif test -n "$ac_cv_prog_WINDRES"; then
13262 WINDRES=$ac_cv_prog_WINDRES
13265 if test -n "$ac_cv_prog_WINDRES"; then
13266 for ncn_progname in windres; do
13267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13268 set dummy ${ncn_progname}; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270 $as_echo_n "checking for $ac_word... " >&6; }
13271 if ${ac_cv_prog_WINDRES+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 if test -n "$WINDRES"; then
13275 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13276 else
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13284 ac_cv_prog_WINDRES="${ncn_progname}"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286 break 2
13288 done
13289 done
13290 IFS=$as_save_IFS
13294 WINDRES=$ac_cv_prog_WINDRES
13295 if test -n "$WINDRES"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13297 $as_echo "$WINDRES" >&6; }
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13304 done
13307 for ncn_progname in windres; do
13308 if test -n "$ncn_tool_prefix"; then
13309 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13310 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312 $as_echo_n "checking for $ac_word... " >&6; }
13313 if ${ac_cv_prog_WINDRES+:} false; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 if test -n "$WINDRES"; then
13317 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13318 else
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 break 2
13330 done
13331 done
13332 IFS=$as_save_IFS
13336 WINDRES=$ac_cv_prog_WINDRES
13337 if test -n "$WINDRES"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13339 $as_echo "$WINDRES" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13347 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
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_WINDRES+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$WINDRES"; then
13356 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 WINDRES=$ac_cv_prog_WINDRES
13376 if test -n "$WINDRES"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13378 $as_echo "$WINDRES" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13386 test -n "$ac_cv_prog_WINDRES" && break
13387 done
13389 if test -z "$ac_cv_prog_WINDRES" ; then
13390 set dummy windres
13391 if test $build = $host ; then
13392 WINDRES="$2"
13393 else
13394 WINDRES="${ncn_tool_prefix}$2"
13400 if test -n "$WINDMC"; then
13401 ac_cv_prog_WINDMC=$WINDMC
13402 elif test -n "$ac_cv_prog_WINDMC"; then
13403 WINDMC=$ac_cv_prog_WINDMC
13406 if test -n "$ac_cv_prog_WINDMC"; then
13407 for ncn_progname in windmc; do
13408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13409 set dummy ${ncn_progname}; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if ${ac_cv_prog_WINDMC+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 if test -n "$WINDMC"; then
13416 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13417 else
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_prog_WINDMC="${ncn_progname}"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 break 2
13429 done
13430 done
13431 IFS=$as_save_IFS
13435 WINDMC=$ac_cv_prog_WINDMC
13436 if test -n "$WINDMC"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13438 $as_echo "$WINDMC" >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13445 done
13448 for ncn_progname in windmc; do
13449 if test -n "$ncn_tool_prefix"; then
13450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13451 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453 $as_echo_n "checking for $ac_word... " >&6; }
13454 if ${ac_cv_prog_WINDMC+:} false; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 if test -n "$WINDMC"; then
13458 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13459 else
13460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461 for as_dir in $PATH
13463 IFS=$as_save_IFS
13464 test -z "$as_dir" && as_dir=.
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13467 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13469 break 2
13471 done
13472 done
13473 IFS=$as_save_IFS
13477 WINDMC=$ac_cv_prog_WINDMC
13478 if test -n "$WINDMC"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13480 $as_echo "$WINDMC" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13488 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13490 set dummy ${ncn_progname}; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492 $as_echo_n "checking for $ac_word... " >&6; }
13493 if ${ac_cv_prog_WINDMC+:} false; then :
13494 $as_echo_n "(cached) " >&6
13495 else
13496 if test -n "$WINDMC"; then
13497 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13498 else
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in $PATH
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_prog_WINDMC="${ncn_progname}"
13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 break 2
13510 done
13511 done
13512 IFS=$as_save_IFS
13516 WINDMC=$ac_cv_prog_WINDMC
13517 if test -n "$WINDMC"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13519 $as_echo "$WINDMC" >&6; }
13520 else
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13527 test -n "$ac_cv_prog_WINDMC" && break
13528 done
13530 if test -z "$ac_cv_prog_WINDMC" ; then
13531 set dummy windmc
13532 if test $build = $host ; then
13533 WINDMC="$2"
13534 else
13535 WINDMC="${ncn_tool_prefix}$2"
13541 if test -n "$OBJCOPY"; then
13542 ac_cv_prog_OBJCOPY=$OBJCOPY
13543 elif test -n "$ac_cv_prog_OBJCOPY"; then
13544 OBJCOPY=$ac_cv_prog_OBJCOPY
13547 if test -n "$ac_cv_prog_OBJCOPY"; then
13548 for ncn_progname in objcopy; do
13549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13550 set dummy ${ncn_progname}; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if ${ac_cv_prog_OBJCOPY+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 if test -n "$OBJCOPY"; then
13557 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13558 else
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13562 IFS=$as_save_IFS
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13566 ac_cv_prog_OBJCOPY="${ncn_progname}"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 break 2
13570 done
13571 done
13572 IFS=$as_save_IFS
13576 OBJCOPY=$ac_cv_prog_OBJCOPY
13577 if test -n "$OBJCOPY"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13579 $as_echo "$OBJCOPY" >&6; }
13580 else
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13586 done
13589 for ncn_progname in objcopy; do
13590 if test -n "$ncn_tool_prefix"; then
13591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13592 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if ${ac_cv_prog_OBJCOPY+:} false; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 if test -n "$OBJCOPY"; then
13599 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13600 else
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13608 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 break 2
13612 done
13613 done
13614 IFS=$as_save_IFS
13618 OBJCOPY=$ac_cv_prog_OBJCOPY
13619 if test -n "$OBJCOPY"; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13621 $as_echo "$OBJCOPY" >&6; }
13622 else
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13629 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13631 set dummy ${ncn_progname}; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633 $as_echo_n "checking for $ac_word... " >&6; }
13634 if ${ac_cv_prog_OBJCOPY+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 if test -n "$OBJCOPY"; then
13638 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13639 else
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13647 ac_cv_prog_OBJCOPY="${ncn_progname}"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13651 done
13652 done
13653 IFS=$as_save_IFS
13657 OBJCOPY=$ac_cv_prog_OBJCOPY
13658 if test -n "$OBJCOPY"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13660 $as_echo "$OBJCOPY" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13668 test -n "$ac_cv_prog_OBJCOPY" && break
13669 done
13671 if test -z "$ac_cv_prog_OBJCOPY" ; then
13672 set dummy objcopy
13673 if test $build = $host ; then
13674 OBJCOPY="$2"
13675 else
13676 OBJCOPY="${ncn_tool_prefix}$2"
13682 if test -n "$OBJDUMP"; then
13683 ac_cv_prog_OBJDUMP=$OBJDUMP
13684 elif test -n "$ac_cv_prog_OBJDUMP"; then
13685 OBJDUMP=$ac_cv_prog_OBJDUMP
13688 if test -n "$ac_cv_prog_OBJDUMP"; then
13689 for ncn_progname in objdump; do
13690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13691 set dummy ${ncn_progname}; ac_word=$2
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13693 $as_echo_n "checking for $ac_word... " >&6; }
13694 if ${ac_cv_prog_OBJDUMP+:} false; then :
13695 $as_echo_n "(cached) " >&6
13696 else
13697 if test -n "$OBJDUMP"; then
13698 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13699 else
13700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701 for as_dir in $PATH
13703 IFS=$as_save_IFS
13704 test -z "$as_dir" && as_dir=.
13705 for ac_exec_ext in '' $ac_executable_extensions; do
13706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13707 ac_cv_prog_OBJDUMP="${ncn_progname}"
13708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13709 break 2
13711 done
13712 done
13713 IFS=$as_save_IFS
13717 OBJDUMP=$ac_cv_prog_OBJDUMP
13718 if test -n "$OBJDUMP"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13720 $as_echo "$OBJDUMP" >&6; }
13721 else
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 $as_echo "no" >&6; }
13727 done
13730 for ncn_progname in objdump; do
13731 if test -n "$ncn_tool_prefix"; then
13732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13733 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if ${ac_cv_prog_OBJDUMP+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 if test -n "$OBJDUMP"; then
13740 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13741 else
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 break 2
13753 done
13754 done
13755 IFS=$as_save_IFS
13759 OBJDUMP=$ac_cv_prog_OBJDUMP
13760 if test -n "$OBJDUMP"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13762 $as_echo "$OBJDUMP" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13770 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13772 set dummy ${ncn_progname}; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if ${ac_cv_prog_OBJDUMP+:} false; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 if test -n "$OBJDUMP"; then
13779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13780 else
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13784 IFS=$as_save_IFS
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13788 ac_cv_prog_OBJDUMP="${ncn_progname}"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13790 break 2
13792 done
13793 done
13794 IFS=$as_save_IFS
13798 OBJDUMP=$ac_cv_prog_OBJDUMP
13799 if test -n "$OBJDUMP"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13801 $as_echo "$OBJDUMP" >&6; }
13802 else
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13809 test -n "$ac_cv_prog_OBJDUMP" && break
13810 done
13812 if test -z "$ac_cv_prog_OBJDUMP" ; then
13813 set dummy objdump
13814 if test $build = $host ; then
13815 OBJDUMP="$2"
13816 else
13817 OBJDUMP="${ncn_tool_prefix}$2"
13823 if test -n "$OTOOL"; then
13824 ac_cv_prog_OTOOL=$OTOOL
13825 elif test -n "$ac_cv_prog_OTOOL"; then
13826 OTOOL=$ac_cv_prog_OTOOL
13829 if test -n "$ac_cv_prog_OTOOL"; then
13830 for ncn_progname in otool; do
13831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13832 set dummy ${ncn_progname}; ac_word=$2
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13834 $as_echo_n "checking for $ac_word... " >&6; }
13835 if ${ac_cv_prog_OTOOL+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 if test -n "$OTOOL"; then
13839 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13840 else
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13844 IFS=$as_save_IFS
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13848 ac_cv_prog_OTOOL="${ncn_progname}"
13849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13850 break 2
13852 done
13853 done
13854 IFS=$as_save_IFS
13858 OTOOL=$ac_cv_prog_OTOOL
13859 if test -n "$OTOOL"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13861 $as_echo "$OTOOL" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13868 done
13871 for ncn_progname in otool; do
13872 if test -n "$ncn_tool_prefix"; then
13873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13874 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if ${ac_cv_prog_OTOOL+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 if test -n "$OTOOL"; then
13881 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13882 else
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13890 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13894 done
13895 done
13896 IFS=$as_save_IFS
13900 OTOOL=$ac_cv_prog_OTOOL
13901 if test -n "$OTOOL"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13903 $as_echo "$OTOOL" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13911 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13913 set dummy ${ncn_progname}; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13915 $as_echo_n "checking for $ac_word... " >&6; }
13916 if ${ac_cv_prog_OTOOL+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 if test -n "$OTOOL"; then
13920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13921 else
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13925 IFS=$as_save_IFS
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13929 ac_cv_prog_OTOOL="${ncn_progname}"
13930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13931 break 2
13933 done
13934 done
13935 IFS=$as_save_IFS
13939 OTOOL=$ac_cv_prog_OTOOL
13940 if test -n "$OTOOL"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13942 $as_echo "$OTOOL" >&6; }
13943 else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13950 test -n "$ac_cv_prog_OTOOL" && break
13951 done
13953 if test -z "$ac_cv_prog_OTOOL" ; then
13954 set dummy otool
13955 if test $build = $host ; then
13956 OTOOL="$2"
13957 else
13958 OTOOL="${ncn_tool_prefix}$2"
13964 if test -n "$READELF"; then
13965 ac_cv_prog_READELF=$READELF
13966 elif test -n "$ac_cv_prog_READELF"; then
13967 READELF=$ac_cv_prog_READELF
13970 if test -n "$ac_cv_prog_READELF"; then
13971 for ncn_progname in readelf; do
13972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13973 set dummy ${ncn_progname}; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13975 $as_echo_n "checking for $ac_word... " >&6; }
13976 if ${ac_cv_prog_READELF+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 if test -n "$READELF"; then
13980 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13981 else
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13985 IFS=$as_save_IFS
13986 test -z "$as_dir" && as_dir=.
13987 for ac_exec_ext in '' $ac_executable_extensions; do
13988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13989 ac_cv_prog_READELF="${ncn_progname}"
13990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13991 break 2
13993 done
13994 done
13995 IFS=$as_save_IFS
13999 READELF=$ac_cv_prog_READELF
14000 if test -n "$READELF"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14002 $as_echo "$READELF" >&6; }
14003 else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14005 $as_echo "no" >&6; }
14009 done
14012 for ncn_progname in readelf; do
14013 if test -n "$ncn_tool_prefix"; then
14014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14015 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017 $as_echo_n "checking for $ac_word... " >&6; }
14018 if ${ac_cv_prog_READELF+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 if test -n "$READELF"; then
14022 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14023 else
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14027 IFS=$as_save_IFS
14028 test -z "$as_dir" && as_dir=.
14029 for ac_exec_ext in '' $ac_executable_extensions; do
14030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14031 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14033 break 2
14035 done
14036 done
14037 IFS=$as_save_IFS
14041 READELF=$ac_cv_prog_READELF
14042 if test -n "$READELF"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14044 $as_echo "$READELF" >&6; }
14045 else
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14052 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14054 set dummy ${ncn_progname}; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14056 $as_echo_n "checking for $ac_word... " >&6; }
14057 if ${ac_cv_prog_READELF+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 if test -n "$READELF"; then
14061 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14062 else
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14066 IFS=$as_save_IFS
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14070 ac_cv_prog_READELF="${ncn_progname}"
14071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 break 2
14074 done
14075 done
14076 IFS=$as_save_IFS
14080 READELF=$ac_cv_prog_READELF
14081 if test -n "$READELF"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14083 $as_echo "$READELF" >&6; }
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086 $as_echo "no" >&6; }
14091 test -n "$ac_cv_prog_READELF" && break
14092 done
14094 if test -z "$ac_cv_prog_READELF" ; then
14095 set dummy readelf
14096 if test $build = $host ; then
14097 READELF="$2"
14098 else
14099 READELF="${ncn_tool_prefix}$2"
14109 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14113 $as_echo_n "checking for -plugin option... " >&6; }
14115 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14116 plugin_option=
14117 for plugin in $plugin_names; do
14118 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14119 if test x$plugin_so = x$plugin; then
14120 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14122 if test x$plugin_so != x$plugin; then
14123 plugin_option="--plugin $plugin_so"
14124 break
14126 done
14127 if test -n "$ac_tool_prefix"; then
14128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14129 set dummy ${ac_tool_prefix}ar; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if ${ac_cv_prog_AR+:} false; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 if test -n "$AR"; then
14136 ac_cv_prog_AR="$AR" # Let the user override the test.
14137 else
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14145 ac_cv_prog_AR="${ac_tool_prefix}ar"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14149 done
14150 done
14151 IFS=$as_save_IFS
14155 AR=$ac_cv_prog_AR
14156 if test -n "$AR"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14158 $as_echo "$AR" >&6; }
14159 else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14166 if test -z "$ac_cv_prog_AR"; then
14167 ac_ct_AR=$AR
14168 # Extract the first word of "ar", so it can be a program name with args.
14169 set dummy ar; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 if test -n "$ac_ct_AR"; then
14176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14177 else
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14181 IFS=$as_save_IFS
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14185 ac_cv_prog_ac_ct_AR="ar"
14186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 break 2
14189 done
14190 done
14191 IFS=$as_save_IFS
14195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14196 if test -n "$ac_ct_AR"; then
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14198 $as_echo "$ac_ct_AR" >&6; }
14199 else
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14204 if test "x$ac_ct_AR" = x; then
14205 AR=""
14206 else
14207 case $cross_compiling:$ac_tool_warned in
14208 yes:)
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14211 ac_tool_warned=yes ;;
14212 esac
14213 AR=$ac_ct_AR
14215 else
14216 AR="$ac_cv_prog_AR"
14219 if test "${AR}" = "" ; then
14220 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
14222 touch conftest.c
14223 ${AR} $plugin_option rc conftest.a conftest.c
14224 if test "$?" != 0; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14226 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14227 plugin_option=
14229 rm -f conftest.*
14230 if test -n "$plugin_option"; then
14231 PLUGIN_OPTION="$plugin_option"
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14233 $as_echo "$plugin_option" >&6; }
14234 else
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236 $as_echo "no" >&6; }
14239 AR_PLUGIN_OPTION=
14240 RANLIB_PLUGIN_OPTION=
14241 if test -n "$PLUGIN_OPTION"; then
14242 if $AR --help 2>&1 | grep -q "\--plugin"; then
14243 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14245 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
14246 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14252 # Target tools.
14254 # Check whether --with-build-time-tools was given.
14255 if test "${with_build_time_tools+set}" = set; then :
14256 withval=$with_build_time_tools; case x"$withval" in
14257 x/*) ;;
14259 with_build_time_tools=
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14261 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14263 esac
14264 else
14265 with_build_time_tools=
14271 if test -n "$CC_FOR_TARGET"; then
14272 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14273 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14274 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14277 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14278 for ncn_progname in cc gcc; do
14279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 if test -n "$CC_FOR_TARGET"; then
14287 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14300 done
14301 done
14302 IFS=$as_save_IFS
14306 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14307 if test -n "$CC_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14309 $as_echo "$CC_FOR_TARGET" >&6; }
14310 else
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14316 done
14319 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14320 for ncn_progname in cc gcc; do
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14322 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14323 if test -x $with_build_time_tools/${ncn_progname}; then
14324 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14326 $as_echo "yes" >&6; }
14327 break
14328 else
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14332 done
14335 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14336 for ncn_progname in cc gcc; do
14337 if test -n "$ncn_target_tool_prefix"; then
14338 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14339 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 if test -n "$CC_FOR_TARGET"; then
14346 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14359 done
14360 done
14361 IFS=$as_save_IFS
14365 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14366 if test -n "$CC_FOR_TARGET"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14368 $as_echo "$CC_FOR_TARGET" >&6; }
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14376 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14378 set dummy ${ncn_progname}; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380 $as_echo_n "checking for $ac_word... " >&6; }
14381 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 if test -n "$CC_FOR_TARGET"; then
14385 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14390 IFS=$as_save_IFS
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14394 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14396 break 2
14398 done
14399 done
14400 IFS=$as_save_IFS
14404 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14405 if test -n "$CC_FOR_TARGET"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14407 $as_echo "$CC_FOR_TARGET" >&6; }
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 $as_echo "no" >&6; }
14415 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14416 done
14419 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14420 set dummy cc gcc
14421 if test $build = $target ; then
14422 CC_FOR_TARGET="$2"
14423 else
14424 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14426 else
14427 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14432 if test -n "$CXX_FOR_TARGET"; then
14433 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14434 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14435 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14438 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14439 for ncn_progname in c++ g++ cxx gxx; do
14440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14441 set dummy ${ncn_progname}; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14443 $as_echo_n "checking for $ac_word... " >&6; }
14444 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 if test -n "$CXX_FOR_TARGET"; then
14448 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14461 done
14462 done
14463 IFS=$as_save_IFS
14467 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14468 if test -n "$CXX_FOR_TARGET"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14470 $as_echo "$CXX_FOR_TARGET" >&6; }
14471 else
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14477 done
14480 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14481 for ncn_progname in c++ g++ cxx gxx; do
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14483 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14484 if test -x $with_build_time_tools/${ncn_progname}; then
14485 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14487 $as_echo "yes" >&6; }
14488 break
14489 else
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14493 done
14496 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14497 for ncn_progname in c++ g++ cxx gxx; do
14498 if test -n "$ncn_target_tool_prefix"; then
14499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14500 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502 $as_echo_n "checking for $ac_word... " >&6; }
14503 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 if test -n "$CXX_FOR_TARGET"; then
14507 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14508 else
14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 for as_dir in $PATH
14512 IFS=$as_save_IFS
14513 test -z "$as_dir" && as_dir=.
14514 for ac_exec_ext in '' $ac_executable_extensions; do
14515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14516 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14518 break 2
14520 done
14521 done
14522 IFS=$as_save_IFS
14526 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14527 if test -n "$CXX_FOR_TARGET"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14529 $as_echo "$CXX_FOR_TARGET" >&6; }
14530 else
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532 $as_echo "no" >&6; }
14537 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14539 set dummy ${ncn_progname}; ac_word=$2
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14541 $as_echo_n "checking for $ac_word... " >&6; }
14542 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 if test -n "$CXX_FOR_TARGET"; then
14546 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14547 else
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14551 IFS=$as_save_IFS
14552 test -z "$as_dir" && as_dir=.
14553 for ac_exec_ext in '' $ac_executable_extensions; do
14554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14555 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14557 break 2
14559 done
14560 done
14561 IFS=$as_save_IFS
14565 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14566 if test -n "$CXX_FOR_TARGET"; then
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14568 $as_echo "$CXX_FOR_TARGET" >&6; }
14569 else
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14571 $as_echo "no" >&6; }
14576 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14577 done
14580 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14581 set dummy c++ g++ cxx gxx
14582 if test $build = $target ; then
14583 CXX_FOR_TARGET="$2"
14584 else
14585 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14587 else
14588 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14593 if test -n "$GCC_FOR_TARGET"; then
14594 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14595 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14596 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14599 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14600 for ncn_progname in gcc; 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_GCC_FOR_TARGET+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 if test -n "$GCC_FOR_TARGET"; then
14609 ac_cv_prog_GCC_FOR_TARGET="$GCC_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_GCC_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 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14629 if test -n "$GCC_FOR_TARGET"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14631 $as_echo "$GCC_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_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14642 for ncn_progname in gcc; 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_GCC_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_GCC_FOR_TARGET"; then
14658 for ncn_progname in gcc; 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_GCC_FOR_TARGET+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 if test -n "$GCC_FOR_TARGET"; then
14668 ac_cv_prog_GCC_FOR_TARGET="$GCC_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_GCC_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 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14688 if test -n "$GCC_FOR_TARGET"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14690 $as_echo "$GCC_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_GCC_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_GCC_FOR_TARGET+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 if test -n "$GCC_FOR_TARGET"; then
14707 ac_cv_prog_GCC_FOR_TARGET="$GCC_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_GCC_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 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14727 if test -n "$GCC_FOR_TARGET"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14729 $as_echo "$GCC_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_GCC_FOR_TARGET" && break
14738 done
14741 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14742 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14743 else
14744 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14749 if test -n "$GFORTRAN_FOR_TARGET"; then
14750 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14751 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14752 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14755 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14756 for ncn_progname in gfortran; do
14757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14758 set dummy ${ncn_progname}; ac_word=$2
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14760 $as_echo_n "checking for $ac_word... " >&6; }
14761 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 if test -n "$GFORTRAN_FOR_TARGET"; then
14765 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14766 else
14767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768 for as_dir in $PATH
14770 IFS=$as_save_IFS
14771 test -z "$as_dir" && as_dir=.
14772 for ac_exec_ext in '' $ac_executable_extensions; do
14773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14774 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14776 break 2
14778 done
14779 done
14780 IFS=$as_save_IFS
14784 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14785 if test -n "$GFORTRAN_FOR_TARGET"; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14787 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14788 else
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 $as_echo "no" >&6; }
14794 done
14797 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14798 for ncn_progname in gfortran; do
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14800 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14801 if test -x $with_build_time_tools/${ncn_progname}; then
14802 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14804 $as_echo "yes" >&6; }
14805 break
14806 else
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14810 done
14813 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14814 for ncn_progname in gfortran; do
14815 if test -n "$ncn_target_tool_prefix"; then
14816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14819 $as_echo_n "checking for $ac_word... " >&6; }
14820 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 if test -n "$GFORTRAN_FOR_TARGET"; then
14824 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14825 else
14826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827 for as_dir in $PATH
14829 IFS=$as_save_IFS
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
14832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14833 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14835 break 2
14837 done
14838 done
14839 IFS=$as_save_IFS
14843 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14844 if test -n "$GFORTRAN_FOR_TARGET"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14846 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14847 else
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14854 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14856 set dummy ${ncn_progname}; ac_word=$2
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14858 $as_echo_n "checking for $ac_word... " >&6; }
14859 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 if test -n "$GFORTRAN_FOR_TARGET"; then
14863 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14864 else
14865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14866 for as_dir in $PATH
14868 IFS=$as_save_IFS
14869 test -z "$as_dir" && as_dir=.
14870 for ac_exec_ext in '' $ac_executable_extensions; do
14871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14872 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14874 break 2
14876 done
14877 done
14878 IFS=$as_save_IFS
14882 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14883 if test -n "$GFORTRAN_FOR_TARGET"; then
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14885 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14886 else
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14888 $as_echo "no" >&6; }
14893 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14894 done
14897 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14898 set dummy gfortran
14899 if test $build = $target ; then
14900 GFORTRAN_FOR_TARGET="$2"
14901 else
14902 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14904 else
14905 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14910 if test -n "$GOC_FOR_TARGET"; then
14911 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14912 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14913 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14916 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14917 for ncn_progname in gccgo; do
14918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14919 set dummy ${ncn_progname}; ac_word=$2
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921 $as_echo_n "checking for $ac_word... " >&6; }
14922 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 if test -n "$GOC_FOR_TARGET"; then
14926 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14927 else
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929 for as_dir in $PATH
14931 IFS=$as_save_IFS
14932 test -z "$as_dir" && as_dir=.
14933 for ac_exec_ext in '' $ac_executable_extensions; do
14934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14937 break 2
14939 done
14940 done
14941 IFS=$as_save_IFS
14945 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14946 if test -n "$GOC_FOR_TARGET"; then
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14948 $as_echo "$GOC_FOR_TARGET" >&6; }
14949 else
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14955 done
14958 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14959 for ncn_progname in gccgo; do
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14961 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14962 if test -x $with_build_time_tools/${ncn_progname}; then
14963 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14965 $as_echo "yes" >&6; }
14966 break
14967 else
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14969 $as_echo "no" >&6; }
14971 done
14974 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14975 for ncn_progname in gccgo; do
14976 if test -n "$ncn_target_tool_prefix"; then
14977 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14978 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14980 $as_echo_n "checking for $ac_word... " >&6; }
14981 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 if test -n "$GOC_FOR_TARGET"; then
14985 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14986 else
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988 for as_dir in $PATH
14990 IFS=$as_save_IFS
14991 test -z "$as_dir" && as_dir=.
14992 for ac_exec_ext in '' $ac_executable_extensions; do
14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14994 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14996 break 2
14998 done
14999 done
15000 IFS=$as_save_IFS
15004 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15005 if test -n "$GOC_FOR_TARGET"; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15007 $as_echo "$GOC_FOR_TARGET" >&6; }
15008 else
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010 $as_echo "no" >&6; }
15015 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15017 set dummy ${ncn_progname}; ac_word=$2
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15019 $as_echo_n "checking for $ac_word... " >&6; }
15020 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15021 $as_echo_n "(cached) " >&6
15022 else
15023 if test -n "$GOC_FOR_TARGET"; then
15024 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15025 else
15026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15027 for as_dir in $PATH
15029 IFS=$as_save_IFS
15030 test -z "$as_dir" && as_dir=.
15031 for ac_exec_ext in '' $ac_executable_extensions; do
15032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15033 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15035 break 2
15037 done
15038 done
15039 IFS=$as_save_IFS
15043 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15044 if test -n "$GOC_FOR_TARGET"; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15046 $as_echo "$GOC_FOR_TARGET" >&6; }
15047 else
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15054 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15055 done
15058 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15059 set dummy gccgo
15060 if test $build = $target ; then
15061 GOC_FOR_TARGET="$2"
15062 else
15063 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15065 else
15066 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15071 if test -n "$GDC_FOR_TARGET"; then
15072 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15073 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15074 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15077 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15078 for ncn_progname in gdc; do
15079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15080 set dummy ${ncn_progname}; ac_word=$2
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15082 $as_echo_n "checking for $ac_word... " >&6; }
15083 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 if test -n "$GDC_FOR_TARGET"; then
15087 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15088 else
15089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15090 for as_dir in $PATH
15092 IFS=$as_save_IFS
15093 test -z "$as_dir" && as_dir=.
15094 for ac_exec_ext in '' $ac_executable_extensions; do
15095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15096 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15098 break 2
15100 done
15101 done
15102 IFS=$as_save_IFS
15106 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15107 if test -n "$GDC_FOR_TARGET"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15109 $as_echo "$GDC_FOR_TARGET" >&6; }
15110 else
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15116 done
15119 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15120 for ncn_progname in gdc; do
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15122 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15123 if test -x $with_build_time_tools/${ncn_progname}; then
15124 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15126 $as_echo "yes" >&6; }
15127 break
15128 else
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130 $as_echo "no" >&6; }
15132 done
15135 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15136 for ncn_progname in gdc; do
15137 if test -n "$ncn_target_tool_prefix"; then
15138 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15139 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15141 $as_echo_n "checking for $ac_word... " >&6; }
15142 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 if test -n "$GDC_FOR_TARGET"; then
15146 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15147 else
15148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15149 for as_dir in $PATH
15151 IFS=$as_save_IFS
15152 test -z "$as_dir" && as_dir=.
15153 for ac_exec_ext in '' $ac_executable_extensions; do
15154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15155 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15157 break 2
15159 done
15160 done
15161 IFS=$as_save_IFS
15165 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15166 if test -n "$GDC_FOR_TARGET"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15168 $as_echo "$GDC_FOR_TARGET" >&6; }
15169 else
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 $as_echo "no" >&6; }
15176 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15178 set dummy ${ncn_progname}; ac_word=$2
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15180 $as_echo_n "checking for $ac_word... " >&6; }
15181 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15182 $as_echo_n "(cached) " >&6
15183 else
15184 if test -n "$GDC_FOR_TARGET"; then
15185 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15186 else
15187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15188 for as_dir in $PATH
15190 IFS=$as_save_IFS
15191 test -z "$as_dir" && as_dir=.
15192 for ac_exec_ext in '' $ac_executable_extensions; do
15193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15194 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15196 break 2
15198 done
15199 done
15200 IFS=$as_save_IFS
15204 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15205 if test -n "$GDC_FOR_TARGET"; then
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15207 $as_echo "$GDC_FOR_TARGET" >&6; }
15208 else
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15215 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15216 done
15219 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15220 set dummy gdc
15221 if test $build = $target ; then
15222 GDC_FOR_TARGET="$2"
15223 else
15224 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15226 else
15227 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15232 if test -n "$GM2_FOR_TARGET"; then
15233 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15234 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15235 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15238 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15239 for ncn_progname in gm2; do
15240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15241 set dummy ${ncn_progname}; ac_word=$2
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15243 $as_echo_n "checking for $ac_word... " >&6; }
15244 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15245 $as_echo_n "(cached) " >&6
15246 else
15247 if test -n "$GM2_FOR_TARGET"; then
15248 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15249 else
15250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15251 for as_dir in $PATH
15253 IFS=$as_save_IFS
15254 test -z "$as_dir" && as_dir=.
15255 for ac_exec_ext in '' $ac_executable_extensions; do
15256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15257 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15259 break 2
15261 done
15262 done
15263 IFS=$as_save_IFS
15267 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15268 if test -n "$GM2_FOR_TARGET"; then
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15270 $as_echo "$GM2_FOR_TARGET" >&6; }
15271 else
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15273 $as_echo "no" >&6; }
15277 done
15280 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15281 for ncn_progname in gm2; do
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15283 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15284 if test -x $with_build_time_tools/${ncn_progname}; then
15285 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15287 $as_echo "yes" >&6; }
15288 break
15289 else
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15291 $as_echo "no" >&6; }
15293 done
15296 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15297 for ncn_progname in gm2; do
15298 if test -n "$ncn_target_tool_prefix"; then
15299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15302 $as_echo_n "checking for $ac_word... " >&6; }
15303 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 if test -n "$GM2_FOR_TARGET"; then
15307 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15308 else
15309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15310 for as_dir in $PATH
15312 IFS=$as_save_IFS
15313 test -z "$as_dir" && as_dir=.
15314 for ac_exec_ext in '' $ac_executable_extensions; do
15315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15316 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15318 break 2
15320 done
15321 done
15322 IFS=$as_save_IFS
15326 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15327 if test -n "$GM2_FOR_TARGET"; then
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15329 $as_echo "$GM2_FOR_TARGET" >&6; }
15330 else
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15332 $as_echo "no" >&6; }
15337 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15339 set dummy ${ncn_progname}; ac_word=$2
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15341 $as_echo_n "checking for $ac_word... " >&6; }
15342 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 if test -n "$GM2_FOR_TARGET"; then
15346 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15347 else
15348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349 for as_dir in $PATH
15351 IFS=$as_save_IFS
15352 test -z "$as_dir" && as_dir=.
15353 for ac_exec_ext in '' $ac_executable_extensions; do
15354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15355 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15357 break 2
15359 done
15360 done
15361 IFS=$as_save_IFS
15365 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15366 if test -n "$GM2_FOR_TARGET"; then
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15368 $as_echo "$GM2_FOR_TARGET" >&6; }
15369 else
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15371 $as_echo "no" >&6; }
15376 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15377 done
15380 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15381 set dummy gm2
15382 if test $build = $target ; then
15383 GM2_FOR_TARGET="$2"
15384 else
15385 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15387 else
15388 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15393 cat > conftest.c << \EOF
15394 #ifdef __GNUC__
15395 gcc_yay;
15396 #endif
15398 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15399 have_gcc_for_target=yes
15400 else
15401 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15402 have_gcc_for_target=no
15404 rm conftest.c
15409 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15410 if test -n "$with_build_time_tools"; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15412 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15413 if test -x $with_build_time_tools/ar; then
15414 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15415 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15417 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15418 else
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15420 $as_echo "no" >&6; }
15422 elif test $build != $host && test $have_gcc_for_target = yes; then
15423 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15424 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15425 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15428 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15429 # Extract the first word of "ar", so it can be a program name with args.
15430 set dummy ar; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432 $as_echo_n "checking for $ac_word... " >&6; }
15433 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 case $AR_FOR_TARGET in
15437 [\\/]* | ?:[\\/]*)
15438 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15442 for as_dir in $gcc_cv_tool_dirs
15444 IFS=$as_save_IFS
15445 test -z "$as_dir" && as_dir=.
15446 for ac_exec_ext in '' $ac_executable_extensions; do
15447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15448 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15450 break 2
15452 done
15453 done
15454 IFS=$as_save_IFS
15457 esac
15459 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15460 if test -n "$AR_FOR_TARGET"; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15462 $as_echo "$AR_FOR_TARGET" >&6; }
15463 else
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15465 $as_echo "no" >&6; }
15470 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15473 if test -n "$AR_FOR_TARGET"; then
15474 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15475 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15476 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15479 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15480 for ncn_progname in ar; do
15481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15482 set dummy ${ncn_progname}; ac_word=$2
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15484 $as_echo_n "checking for $ac_word... " >&6; }
15485 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15486 $as_echo_n "(cached) " >&6
15487 else
15488 if test -n "$AR_FOR_TARGET"; then
15489 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15490 else
15491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15492 for as_dir in $PATH
15494 IFS=$as_save_IFS
15495 test -z "$as_dir" && as_dir=.
15496 for ac_exec_ext in '' $ac_executable_extensions; do
15497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15498 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15500 break 2
15502 done
15503 done
15504 IFS=$as_save_IFS
15508 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15509 if test -n "$AR_FOR_TARGET"; then
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15511 $as_echo "$AR_FOR_TARGET" >&6; }
15512 else
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15514 $as_echo "no" >&6; }
15518 done
15521 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15522 for ncn_progname in ar; do
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15524 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15525 if test -x $with_build_time_tools/${ncn_progname}; then
15526 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15528 $as_echo "yes" >&6; }
15529 break
15530 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15534 done
15537 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15538 for ncn_progname in ar; do
15539 if test -n "$ncn_target_tool_prefix"; then
15540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15543 $as_echo_n "checking for $ac_word... " >&6; }
15544 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547 if test -n "$AR_FOR_TARGET"; then
15548 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15549 else
15550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15551 for as_dir in $PATH
15553 IFS=$as_save_IFS
15554 test -z "$as_dir" && as_dir=.
15555 for ac_exec_ext in '' $ac_executable_extensions; do
15556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15557 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15559 break 2
15561 done
15562 done
15563 IFS=$as_save_IFS
15567 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15568 if test -n "$AR_FOR_TARGET"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15570 $as_echo "$AR_FOR_TARGET" >&6; }
15571 else
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 $as_echo "no" >&6; }
15578 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15580 set dummy ${ncn_progname}; ac_word=$2
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15582 $as_echo_n "checking for $ac_word... " >&6; }
15583 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 if test -n "$AR_FOR_TARGET"; then
15587 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15588 else
15589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15590 for as_dir in $PATH
15592 IFS=$as_save_IFS
15593 test -z "$as_dir" && as_dir=.
15594 for ac_exec_ext in '' $ac_executable_extensions; do
15595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15596 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15598 break 2
15600 done
15601 done
15602 IFS=$as_save_IFS
15606 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15607 if test -n "$AR_FOR_TARGET"; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15609 $as_echo "$AR_FOR_TARGET" >&6; }
15610 else
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15617 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15618 done
15621 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15622 set dummy ar
15623 if test $build = $target ; then
15624 AR_FOR_TARGET="$2"
15625 else
15626 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15628 else
15629 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15632 else
15633 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15639 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15640 if test -n "$with_build_time_tools"; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15642 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15643 if test -x $with_build_time_tools/as; then
15644 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15645 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15647 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15648 else
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 $as_echo "no" >&6; }
15652 elif test $build != $host && test $have_gcc_for_target = yes; then
15653 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15654 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15655 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15658 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15659 # Extract the first word of "as", so it can be a program name with args.
15660 set dummy as; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15662 $as_echo_n "checking for $ac_word... " >&6; }
15663 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached) " >&6
15665 else
15666 case $AS_FOR_TARGET in
15667 [\\/]* | ?:[\\/]*)
15668 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15672 for as_dir in $gcc_cv_tool_dirs
15674 IFS=$as_save_IFS
15675 test -z "$as_dir" && as_dir=.
15676 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15680 break 2
15682 done
15683 done
15684 IFS=$as_save_IFS
15687 esac
15689 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15690 if test -n "$AS_FOR_TARGET"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15692 $as_echo "$AS_FOR_TARGET" >&6; }
15693 else
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 $as_echo "no" >&6; }
15700 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15703 if test -n "$AS_FOR_TARGET"; then
15704 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15705 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15706 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15709 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15710 for ncn_progname in as; do
15711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15712 set dummy ${ncn_progname}; ac_word=$2
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15714 $as_echo_n "checking for $ac_word... " >&6; }
15715 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 if test -n "$AS_FOR_TARGET"; then
15719 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15720 else
15721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15722 for as_dir in $PATH
15724 IFS=$as_save_IFS
15725 test -z "$as_dir" && as_dir=.
15726 for ac_exec_ext in '' $ac_executable_extensions; do
15727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15728 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15730 break 2
15732 done
15733 done
15734 IFS=$as_save_IFS
15738 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15739 if test -n "$AS_FOR_TARGET"; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15741 $as_echo "$AS_FOR_TARGET" >&6; }
15742 else
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15748 done
15751 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15752 for ncn_progname in as; do
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15754 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15755 if test -x $with_build_time_tools/${ncn_progname}; then
15756 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15758 $as_echo "yes" >&6; }
15759 break
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15764 done
15767 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15768 for ncn_progname in as; do
15769 if test -n "$ncn_target_tool_prefix"; then
15770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15773 $as_echo_n "checking for $ac_word... " >&6; }
15774 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15775 $as_echo_n "(cached) " >&6
15776 else
15777 if test -n "$AS_FOR_TARGET"; then
15778 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15779 else
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15783 IFS=$as_save_IFS
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
15786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15787 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15789 break 2
15791 done
15792 done
15793 IFS=$as_save_IFS
15797 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15798 if test -n "$AS_FOR_TARGET"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15800 $as_echo "$AS_FOR_TARGET" >&6; }
15801 else
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803 $as_echo "no" >&6; }
15808 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15810 set dummy ${ncn_progname}; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15812 $as_echo_n "checking for $ac_word... " >&6; }
15813 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 if test -n "$AS_FOR_TARGET"; then
15817 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15818 else
15819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15820 for as_dir in $PATH
15822 IFS=$as_save_IFS
15823 test -z "$as_dir" && as_dir=.
15824 for ac_exec_ext in '' $ac_executable_extensions; do
15825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15826 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15828 break 2
15830 done
15831 done
15832 IFS=$as_save_IFS
15836 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15837 if test -n "$AS_FOR_TARGET"; then
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15839 $as_echo "$AS_FOR_TARGET" >&6; }
15840 else
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15847 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15848 done
15851 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15852 set dummy as
15853 if test $build = $target ; then
15854 AS_FOR_TARGET="$2"
15855 else
15856 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15858 else
15859 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15862 else
15863 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15869 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15870 if test -n "$with_build_time_tools"; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15872 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15873 if test -x $with_build_time_tools/dlltool; then
15874 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15875 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15877 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15878 else
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880 $as_echo "no" >&6; }
15882 elif test $build != $host && test $have_gcc_for_target = yes; then
15883 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15884 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15885 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15888 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15889 # Extract the first word of "dlltool", so it can be a program name with args.
15890 set dummy dlltool; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15892 $as_echo_n "checking for $ac_word... " >&6; }
15893 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 case $DLLTOOL_FOR_TARGET in
15897 [\\/]* | ?:[\\/]*)
15898 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15902 for as_dir in $gcc_cv_tool_dirs
15904 IFS=$as_save_IFS
15905 test -z "$as_dir" && as_dir=.
15906 for ac_exec_ext in '' $ac_executable_extensions; do
15907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15908 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15910 break 2
15912 done
15913 done
15914 IFS=$as_save_IFS
15917 esac
15919 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15920 if test -n "$DLLTOOL_FOR_TARGET"; then
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15922 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15923 else
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15925 $as_echo "no" >&6; }
15930 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15933 if test -n "$DLLTOOL_FOR_TARGET"; then
15934 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15935 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15936 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15939 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15940 for ncn_progname in dlltool; do
15941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15942 set dummy ${ncn_progname}; ac_word=$2
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15944 $as_echo_n "checking for $ac_word... " >&6; }
15945 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15948 if test -n "$DLLTOOL_FOR_TARGET"; then
15949 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15950 else
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15960 break 2
15962 done
15963 done
15964 IFS=$as_save_IFS
15968 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15969 if test -n "$DLLTOOL_FOR_TARGET"; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15971 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15972 else
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15978 done
15981 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15982 for ncn_progname in dlltool; do
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15984 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15985 if test -x $with_build_time_tools/${ncn_progname}; then
15986 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15988 $as_echo "yes" >&6; }
15989 break
15990 else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992 $as_echo "no" >&6; }
15994 done
15997 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15998 for ncn_progname in dlltool; do
15999 if test -n "$ncn_target_tool_prefix"; then
16000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16003 $as_echo_n "checking for $ac_word... " >&6; }
16004 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 if test -n "$DLLTOOL_FOR_TARGET"; then
16008 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16009 else
16010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH
16013 IFS=$as_save_IFS
16014 test -z "$as_dir" && as_dir=.
16015 for ac_exec_ext in '' $ac_executable_extensions; do
16016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16017 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16019 break 2
16021 done
16022 done
16023 IFS=$as_save_IFS
16027 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16028 if test -n "$DLLTOOL_FOR_TARGET"; then
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16030 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16031 else
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16033 $as_echo "no" >&6; }
16038 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16040 set dummy ${ncn_progname}; ac_word=$2
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16042 $as_echo_n "checking for $ac_word... " >&6; }
16043 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16044 $as_echo_n "(cached) " >&6
16045 else
16046 if test -n "$DLLTOOL_FOR_TARGET"; then
16047 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16048 else
16049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050 for as_dir in $PATH
16052 IFS=$as_save_IFS
16053 test -z "$as_dir" && as_dir=.
16054 for ac_exec_ext in '' $ac_executable_extensions; do
16055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16056 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16058 break 2
16060 done
16061 done
16062 IFS=$as_save_IFS
16066 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16067 if test -n "$DLLTOOL_FOR_TARGET"; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16069 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16070 else
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16077 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16078 done
16081 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16082 set dummy dlltool
16083 if test $build = $target ; then
16084 DLLTOOL_FOR_TARGET="$2"
16085 else
16086 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16088 else
16089 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16092 else
16093 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16099 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16100 if test -n "$with_build_time_tools"; then
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16102 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16103 if test -x $with_build_time_tools/dsymutil; then
16104 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16105 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16107 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16108 else
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16112 elif test $build != $host && test $have_gcc_for_target = yes; then
16113 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16114 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16115 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16118 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16119 # Extract the first word of "dsymutil", so it can be a program name with args.
16120 set dummy dsymutil; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 case $DSYMUTIL_FOR_TARGET in
16127 [\\/]* | ?:[\\/]*)
16128 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16132 for as_dir in $gcc_cv_tool_dirs
16134 IFS=$as_save_IFS
16135 test -z "$as_dir" && as_dir=.
16136 for ac_exec_ext in '' $ac_executable_extensions; do
16137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16138 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16140 break 2
16142 done
16143 done
16144 IFS=$as_save_IFS
16147 esac
16149 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16150 if test -n "$DSYMUTIL_FOR_TARGET"; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16152 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16153 else
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16155 $as_echo "no" >&6; }
16160 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16163 if test -n "$DSYMUTIL_FOR_TARGET"; then
16164 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16165 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16166 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16169 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16170 for ncn_progname in dsymutil; do
16171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16172 set dummy ${ncn_progname}; ac_word=$2
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16174 $as_echo_n "checking for $ac_word... " >&6; }
16175 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16176 $as_echo_n "(cached) " >&6
16177 else
16178 if test -n "$DSYMUTIL_FOR_TARGET"; then
16179 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16180 else
16181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16182 for as_dir in $PATH
16184 IFS=$as_save_IFS
16185 test -z "$as_dir" && as_dir=.
16186 for ac_exec_ext in '' $ac_executable_extensions; do
16187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16188 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16190 break 2
16192 done
16193 done
16194 IFS=$as_save_IFS
16198 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16199 if test -n "$DSYMUTIL_FOR_TARGET"; then
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16201 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16202 else
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16204 $as_echo "no" >&6; }
16208 done
16211 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16212 for ncn_progname in dsymutil; do
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16214 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16215 if test -x $with_build_time_tools/${ncn_progname}; then
16216 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16218 $as_echo "yes" >&6; }
16219 break
16220 else
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16224 done
16227 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16228 for ncn_progname in dsymutil; do
16229 if test -n "$ncn_target_tool_prefix"; then
16230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16233 $as_echo_n "checking for $ac_word... " >&6; }
16234 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16235 $as_echo_n "(cached) " >&6
16236 else
16237 if test -n "$DSYMUTIL_FOR_TARGET"; then
16238 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16239 else
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH
16243 IFS=$as_save_IFS
16244 test -z "$as_dir" && as_dir=.
16245 for ac_exec_ext in '' $ac_executable_extensions; do
16246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16247 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16249 break 2
16251 done
16252 done
16253 IFS=$as_save_IFS
16257 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16258 if test -n "$DSYMUTIL_FOR_TARGET"; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16260 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16261 else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16268 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16270 set dummy ${ncn_progname}; ac_word=$2
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16272 $as_echo_n "checking for $ac_word... " >&6; }
16273 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16276 if test -n "$DSYMUTIL_FOR_TARGET"; then
16277 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16278 else
16279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16280 for as_dir in $PATH
16282 IFS=$as_save_IFS
16283 test -z "$as_dir" && as_dir=.
16284 for ac_exec_ext in '' $ac_executable_extensions; do
16285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16286 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16288 break 2
16290 done
16291 done
16292 IFS=$as_save_IFS
16296 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16297 if test -n "$DSYMUTIL_FOR_TARGET"; then
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16299 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16300 else
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16302 $as_echo "no" >&6; }
16307 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16308 done
16311 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16312 set dummy dsymutil
16313 if test $build = $target ; then
16314 DSYMUTIL_FOR_TARGET="$2"
16315 else
16316 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16318 else
16319 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16322 else
16323 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16329 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16330 if test -n "$with_build_time_tools"; then
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16332 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16333 if test -x $with_build_time_tools/ld; then
16334 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16335 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16337 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16338 else
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340 $as_echo "no" >&6; }
16342 elif test $build != $host && test $have_gcc_for_target = yes; then
16343 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16344 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16345 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16348 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16349 # Extract the first word of "ld", so it can be a program name with args.
16350 set dummy ld; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16352 $as_echo_n "checking for $ac_word... " >&6; }
16353 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 case $LD_FOR_TARGET in
16357 [\\/]* | ?:[\\/]*)
16358 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16362 for as_dir in $gcc_cv_tool_dirs
16364 IFS=$as_save_IFS
16365 test -z "$as_dir" && as_dir=.
16366 for ac_exec_ext in '' $ac_executable_extensions; do
16367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16368 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16370 break 2
16372 done
16373 done
16374 IFS=$as_save_IFS
16377 esac
16379 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16380 if test -n "$LD_FOR_TARGET"; then
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16382 $as_echo "$LD_FOR_TARGET" >&6; }
16383 else
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 $as_echo "no" >&6; }
16390 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16393 if test -n "$LD_FOR_TARGET"; then
16394 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16395 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16396 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16399 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16400 for ncn_progname in ld; do
16401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16402 set dummy ${ncn_progname}; ac_word=$2
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16404 $as_echo_n "checking for $ac_word... " >&6; }
16405 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16406 $as_echo_n "(cached) " >&6
16407 else
16408 if test -n "$LD_FOR_TARGET"; then
16409 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16410 else
16411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16412 for as_dir in $PATH
16414 IFS=$as_save_IFS
16415 test -z "$as_dir" && as_dir=.
16416 for ac_exec_ext in '' $ac_executable_extensions; do
16417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16418 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16420 break 2
16422 done
16423 done
16424 IFS=$as_save_IFS
16428 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16429 if test -n "$LD_FOR_TARGET"; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16431 $as_echo "$LD_FOR_TARGET" >&6; }
16432 else
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434 $as_echo "no" >&6; }
16438 done
16441 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16442 for ncn_progname in ld; do
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16444 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16445 if test -x $with_build_time_tools/${ncn_progname}; then
16446 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448 $as_echo "yes" >&6; }
16449 break
16450 else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16454 done
16457 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16458 for ncn_progname in ld; do
16459 if test -n "$ncn_target_tool_prefix"; then
16460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16463 $as_echo_n "checking for $ac_word... " >&6; }
16464 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467 if test -n "$LD_FOR_TARGET"; then
16468 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16469 else
16470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16471 for as_dir in $PATH
16473 IFS=$as_save_IFS
16474 test -z "$as_dir" && as_dir=.
16475 for ac_exec_ext in '' $ac_executable_extensions; do
16476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16477 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16479 break 2
16481 done
16482 done
16483 IFS=$as_save_IFS
16487 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16488 if test -n "$LD_FOR_TARGET"; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16490 $as_echo "$LD_FOR_TARGET" >&6; }
16491 else
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493 $as_echo "no" >&6; }
16498 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16500 set dummy ${ncn_progname}; ac_word=$2
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16502 $as_echo_n "checking for $ac_word... " >&6; }
16503 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16506 if test -n "$LD_FOR_TARGET"; then
16507 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16508 else
16509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16510 for as_dir in $PATH
16512 IFS=$as_save_IFS
16513 test -z "$as_dir" && as_dir=.
16514 for ac_exec_ext in '' $ac_executable_extensions; do
16515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16516 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16518 break 2
16520 done
16521 done
16522 IFS=$as_save_IFS
16526 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16527 if test -n "$LD_FOR_TARGET"; then
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16529 $as_echo "$LD_FOR_TARGET" >&6; }
16530 else
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16532 $as_echo "no" >&6; }
16537 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16538 done
16541 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16542 set dummy ld
16543 if test $build = $target ; then
16544 LD_FOR_TARGET="$2"
16545 else
16546 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16548 else
16549 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16552 else
16553 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16559 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16560 if test -n "$with_build_time_tools"; then
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16562 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16563 if test -x $with_build_time_tools/lipo; then
16564 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16565 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16567 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16568 else
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570 $as_echo "no" >&6; }
16572 elif test $build != $host && test $have_gcc_for_target = yes; then
16573 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16574 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16575 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16578 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16579 # Extract the first word of "lipo", so it can be a program name with args.
16580 set dummy lipo; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 case $LIPO_FOR_TARGET in
16587 [\\/]* | ?:[\\/]*)
16588 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $gcc_cv_tool_dirs
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16600 break 2
16602 done
16603 done
16604 IFS=$as_save_IFS
16607 esac
16609 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16610 if test -n "$LIPO_FOR_TARGET"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16612 $as_echo "$LIPO_FOR_TARGET" >&6; }
16613 else
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16620 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16623 if test -n "$LIPO_FOR_TARGET"; then
16624 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16625 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16626 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16629 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16630 for ncn_progname in lipo; do
16631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16632 set dummy ${ncn_progname}; ac_word=$2
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16634 $as_echo_n "checking for $ac_word... " >&6; }
16635 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16636 $as_echo_n "(cached) " >&6
16637 else
16638 if test -n "$LIPO_FOR_TARGET"; then
16639 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16640 else
16641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642 for as_dir in $PATH
16644 IFS=$as_save_IFS
16645 test -z "$as_dir" && as_dir=.
16646 for ac_exec_ext in '' $ac_executable_extensions; do
16647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16648 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16650 break 2
16652 done
16653 done
16654 IFS=$as_save_IFS
16658 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16659 if test -n "$LIPO_FOR_TARGET"; then
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16661 $as_echo "$LIPO_FOR_TARGET" >&6; }
16662 else
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16664 $as_echo "no" >&6; }
16668 done
16671 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16672 for ncn_progname in lipo; do
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16674 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16675 if test -x $with_build_time_tools/${ncn_progname}; then
16676 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16678 $as_echo "yes" >&6; }
16679 break
16680 else
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682 $as_echo "no" >&6; }
16684 done
16687 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16688 for ncn_progname in lipo; do
16689 if test -n "$ncn_target_tool_prefix"; then
16690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16693 $as_echo_n "checking for $ac_word... " >&6; }
16694 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16695 $as_echo_n "(cached) " >&6
16696 else
16697 if test -n "$LIPO_FOR_TARGET"; then
16698 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16699 else
16700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701 for as_dir in $PATH
16703 IFS=$as_save_IFS
16704 test -z "$as_dir" && as_dir=.
16705 for ac_exec_ext in '' $ac_executable_extensions; do
16706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16707 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16709 break 2
16711 done
16712 done
16713 IFS=$as_save_IFS
16717 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16718 if test -n "$LIPO_FOR_TARGET"; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16720 $as_echo "$LIPO_FOR_TARGET" >&6; }
16721 else
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723 $as_echo "no" >&6; }
16728 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16730 set dummy ${ncn_progname}; ac_word=$2
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16732 $as_echo_n "checking for $ac_word... " >&6; }
16733 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16734 $as_echo_n "(cached) " >&6
16735 else
16736 if test -n "$LIPO_FOR_TARGET"; then
16737 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16738 else
16739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740 for as_dir in $PATH
16742 IFS=$as_save_IFS
16743 test -z "$as_dir" && as_dir=.
16744 for ac_exec_ext in '' $ac_executable_extensions; do
16745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16746 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16748 break 2
16750 done
16751 done
16752 IFS=$as_save_IFS
16756 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16757 if test -n "$LIPO_FOR_TARGET"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16759 $as_echo "$LIPO_FOR_TARGET" >&6; }
16760 else
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16767 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16768 done
16771 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16772 set dummy lipo
16773 if test $build = $target ; then
16774 LIPO_FOR_TARGET="$2"
16775 else
16776 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16778 else
16779 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16782 else
16783 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16789 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16790 if test -n "$with_build_time_tools"; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16792 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16793 if test -x $with_build_time_tools/nm; then
16794 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16795 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16797 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16798 else
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800 $as_echo "no" >&6; }
16802 elif test $build != $host && test $have_gcc_for_target = yes; then
16803 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16804 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16805 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16808 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16809 # Extract the first word of "nm", so it can be a program name with args.
16810 set dummy nm; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached) " >&6
16815 else
16816 case $NM_FOR_TARGET in
16817 [\\/]* | ?:[\\/]*)
16818 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16822 for as_dir in $gcc_cv_tool_dirs
16824 IFS=$as_save_IFS
16825 test -z "$as_dir" && as_dir=.
16826 for ac_exec_ext in '' $ac_executable_extensions; do
16827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16828 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16830 break 2
16832 done
16833 done
16834 IFS=$as_save_IFS
16837 esac
16839 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16840 if test -n "$NM_FOR_TARGET"; then
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16842 $as_echo "$NM_FOR_TARGET" >&6; }
16843 else
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16845 $as_echo "no" >&6; }
16850 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16853 if test -n "$NM_FOR_TARGET"; then
16854 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16855 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16856 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16859 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16860 for ncn_progname in nm; do
16861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16862 set dummy ${ncn_progname}; ac_word=$2
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16864 $as_echo_n "checking for $ac_word... " >&6; }
16865 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16866 $as_echo_n "(cached) " >&6
16867 else
16868 if test -n "$NM_FOR_TARGET"; then
16869 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16870 else
16871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16872 for as_dir in $PATH
16874 IFS=$as_save_IFS
16875 test -z "$as_dir" && as_dir=.
16876 for ac_exec_ext in '' $ac_executable_extensions; do
16877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16878 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16880 break 2
16882 done
16883 done
16884 IFS=$as_save_IFS
16888 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16889 if test -n "$NM_FOR_TARGET"; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16891 $as_echo "$NM_FOR_TARGET" >&6; }
16892 else
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894 $as_echo "no" >&6; }
16898 done
16901 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16902 for ncn_progname in nm; do
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16904 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16905 if test -x $with_build_time_tools/${ncn_progname}; then
16906 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16908 $as_echo "yes" >&6; }
16909 break
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16914 done
16917 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16918 for ncn_progname in nm; do
16919 if test -n "$ncn_target_tool_prefix"; then
16920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16923 $as_echo_n "checking for $ac_word... " >&6; }
16924 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 if test -n "$NM_FOR_TARGET"; then
16928 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16929 else
16930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16931 for as_dir in $PATH
16933 IFS=$as_save_IFS
16934 test -z "$as_dir" && as_dir=.
16935 for ac_exec_ext in '' $ac_executable_extensions; do
16936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16937 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16939 break 2
16941 done
16942 done
16943 IFS=$as_save_IFS
16947 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16948 if test -n "$NM_FOR_TARGET"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16950 $as_echo "$NM_FOR_TARGET" >&6; }
16951 else
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16958 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16960 set dummy ${ncn_progname}; ac_word=$2
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16962 $as_echo_n "checking for $ac_word... " >&6; }
16963 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16964 $as_echo_n "(cached) " >&6
16965 else
16966 if test -n "$NM_FOR_TARGET"; then
16967 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16968 else
16969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16970 for as_dir in $PATH
16972 IFS=$as_save_IFS
16973 test -z "$as_dir" && as_dir=.
16974 for ac_exec_ext in '' $ac_executable_extensions; do
16975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16976 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16978 break 2
16980 done
16981 done
16982 IFS=$as_save_IFS
16986 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16987 if test -n "$NM_FOR_TARGET"; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16989 $as_echo "$NM_FOR_TARGET" >&6; }
16990 else
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992 $as_echo "no" >&6; }
16997 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16998 done
17001 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17002 set dummy nm
17003 if test $build = $target ; then
17004 NM_FOR_TARGET="$2"
17005 else
17006 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17008 else
17009 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17012 else
17013 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17019 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17020 if test -n "$with_build_time_tools"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
17022 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
17023 if test -x $with_build_time_tools/objcopy; then
17024 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17025 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17027 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17028 else
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17030 $as_echo "no" >&6; }
17032 elif test $build != $host && test $have_gcc_for_target = yes; then
17033 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17034 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17035 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17038 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17039 # Extract the first word of "objcopy", so it can be a program name with args.
17040 set dummy objcopy; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17042 $as_echo_n "checking for $ac_word... " >&6; }
17043 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17044 $as_echo_n "(cached) " >&6
17045 else
17046 case $OBJCOPY_FOR_TARGET in
17047 [\\/]* | ?:[\\/]*)
17048 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $gcc_cv_tool_dirs
17054 IFS=$as_save_IFS
17055 test -z "$as_dir" && as_dir=.
17056 for ac_exec_ext in '' $ac_executable_extensions; do
17057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17058 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17060 break 2
17062 done
17063 done
17064 IFS=$as_save_IFS
17067 esac
17069 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17070 if test -n "$OBJCOPY_FOR_TARGET"; then
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17072 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17073 else
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17075 $as_echo "no" >&6; }
17080 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17083 if test -n "$OBJCOPY_FOR_TARGET"; then
17084 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17085 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17086 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17089 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17090 for ncn_progname in objcopy; do
17091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17092 set dummy ${ncn_progname}; ac_word=$2
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17094 $as_echo_n "checking for $ac_word... " >&6; }
17095 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17096 $as_echo_n "(cached) " >&6
17097 else
17098 if test -n "$OBJCOPY_FOR_TARGET"; then
17099 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17100 else
17101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17102 for as_dir in $PATH
17104 IFS=$as_save_IFS
17105 test -z "$as_dir" && as_dir=.
17106 for ac_exec_ext in '' $ac_executable_extensions; do
17107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17108 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17110 break 2
17112 done
17113 done
17114 IFS=$as_save_IFS
17118 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17119 if test -n "$OBJCOPY_FOR_TARGET"; then
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17121 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17122 else
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17124 $as_echo "no" >&6; }
17128 done
17131 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17132 for ncn_progname in objcopy; do
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17134 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17135 if test -x $with_build_time_tools/${ncn_progname}; then
17136 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17138 $as_echo "yes" >&6; }
17139 break
17140 else
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142 $as_echo "no" >&6; }
17144 done
17147 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17148 for ncn_progname in objcopy; do
17149 if test -n "$ncn_target_tool_prefix"; then
17150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153 $as_echo_n "checking for $ac_word... " >&6; }
17154 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17155 $as_echo_n "(cached) " >&6
17156 else
17157 if test -n "$OBJCOPY_FOR_TARGET"; then
17158 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17159 else
17160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17161 for as_dir in $PATH
17163 IFS=$as_save_IFS
17164 test -z "$as_dir" && as_dir=.
17165 for ac_exec_ext in '' $ac_executable_extensions; do
17166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17167 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17169 break 2
17171 done
17172 done
17173 IFS=$as_save_IFS
17177 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17178 if test -n "$OBJCOPY_FOR_TARGET"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17180 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17181 else
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17188 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17190 set dummy ${ncn_progname}; ac_word=$2
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17192 $as_echo_n "checking for $ac_word... " >&6; }
17193 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 if test -n "$OBJCOPY_FOR_TARGET"; then
17197 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17198 else
17199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in $PATH
17202 IFS=$as_save_IFS
17203 test -z "$as_dir" && as_dir=.
17204 for ac_exec_ext in '' $ac_executable_extensions; do
17205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17206 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17208 break 2
17210 done
17211 done
17212 IFS=$as_save_IFS
17216 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17217 if test -n "$OBJCOPY_FOR_TARGET"; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17219 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17220 else
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17227 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17228 done
17231 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17232 set dummy objcopy
17233 if test $build = $target ; then
17234 OBJCOPY_FOR_TARGET="$2"
17235 else
17236 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17238 else
17239 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17242 else
17243 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17249 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17250 if test -n "$with_build_time_tools"; then
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17252 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17253 if test -x $with_build_time_tools/objdump; then
17254 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17255 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17257 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17258 else
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260 $as_echo "no" >&6; }
17262 elif test $build != $host && test $have_gcc_for_target = yes; then
17263 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17264 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17265 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17268 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17269 # Extract the first word of "objdump", so it can be a program name with args.
17270 set dummy objdump; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 $as_echo_n "checking for $ac_word... " >&6; }
17273 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17274 $as_echo_n "(cached) " >&6
17275 else
17276 case $OBJDUMP_FOR_TARGET in
17277 [\\/]* | ?:[\\/]*)
17278 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $gcc_cv_tool_dirs
17284 IFS=$as_save_IFS
17285 test -z "$as_dir" && as_dir=.
17286 for ac_exec_ext in '' $ac_executable_extensions; do
17287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17288 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17290 break 2
17292 done
17293 done
17294 IFS=$as_save_IFS
17297 esac
17299 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17300 if test -n "$OBJDUMP_FOR_TARGET"; then
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17302 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17303 else
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17305 $as_echo "no" >&6; }
17310 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17313 if test -n "$OBJDUMP_FOR_TARGET"; then
17314 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17315 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17316 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17319 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17320 for ncn_progname in objdump; do
17321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17322 set dummy ${ncn_progname}; ac_word=$2
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17324 $as_echo_n "checking for $ac_word... " >&6; }
17325 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17326 $as_echo_n "(cached) " >&6
17327 else
17328 if test -n "$OBJDUMP_FOR_TARGET"; then
17329 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17330 else
17331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17332 for as_dir in $PATH
17334 IFS=$as_save_IFS
17335 test -z "$as_dir" && as_dir=.
17336 for ac_exec_ext in '' $ac_executable_extensions; do
17337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17338 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17340 break 2
17342 done
17343 done
17344 IFS=$as_save_IFS
17348 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17349 if test -n "$OBJDUMP_FOR_TARGET"; then
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17351 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17352 else
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17354 $as_echo "no" >&6; }
17358 done
17361 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17362 for ncn_progname in objdump; do
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17364 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17365 if test -x $with_build_time_tools/${ncn_progname}; then
17366 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17368 $as_echo "yes" >&6; }
17369 break
17370 else
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17374 done
17377 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17378 for ncn_progname in objdump; do
17379 if test -n "$ncn_target_tool_prefix"; then
17380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17383 $as_echo_n "checking for $ac_word... " >&6; }
17384 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17385 $as_echo_n "(cached) " >&6
17386 else
17387 if test -n "$OBJDUMP_FOR_TARGET"; then
17388 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17389 else
17390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17391 for as_dir in $PATH
17393 IFS=$as_save_IFS
17394 test -z "$as_dir" && as_dir=.
17395 for ac_exec_ext in '' $ac_executable_extensions; do
17396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17397 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17399 break 2
17401 done
17402 done
17403 IFS=$as_save_IFS
17407 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17408 if test -n "$OBJDUMP_FOR_TARGET"; then
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17410 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17411 else
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413 $as_echo "no" >&6; }
17418 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17420 set dummy ${ncn_progname}; ac_word=$2
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17422 $as_echo_n "checking for $ac_word... " >&6; }
17423 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17424 $as_echo_n "(cached) " >&6
17425 else
17426 if test -n "$OBJDUMP_FOR_TARGET"; then
17427 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17428 else
17429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17430 for as_dir in $PATH
17432 IFS=$as_save_IFS
17433 test -z "$as_dir" && as_dir=.
17434 for ac_exec_ext in '' $ac_executable_extensions; do
17435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17436 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17438 break 2
17440 done
17441 done
17442 IFS=$as_save_IFS
17446 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17447 if test -n "$OBJDUMP_FOR_TARGET"; then
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17449 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17450 else
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17452 $as_echo "no" >&6; }
17457 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17458 done
17461 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17462 set dummy objdump
17463 if test $build = $target ; then
17464 OBJDUMP_FOR_TARGET="$2"
17465 else
17466 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17468 else
17469 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17472 else
17473 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17479 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17480 if test -n "$with_build_time_tools"; then
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17482 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17483 if test -x $with_build_time_tools/otool; then
17484 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17485 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17487 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17488 else
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17490 $as_echo "no" >&6; }
17492 elif test $build != $host && test $have_gcc_for_target = yes; then
17493 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17494 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17495 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17498 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17499 # Extract the first word of "otool", so it can be a program name with args.
17500 set dummy otool; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17502 $as_echo_n "checking for $ac_word... " >&6; }
17503 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17504 $as_echo_n "(cached) " >&6
17505 else
17506 case $OTOOL_FOR_TARGET in
17507 [\\/]* | ?:[\\/]*)
17508 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $gcc_cv_tool_dirs
17514 IFS=$as_save_IFS
17515 test -z "$as_dir" && as_dir=.
17516 for ac_exec_ext in '' $ac_executable_extensions; do
17517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17518 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17520 break 2
17522 done
17523 done
17524 IFS=$as_save_IFS
17527 esac
17529 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17530 if test -n "$OTOOL_FOR_TARGET"; then
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17532 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17533 else
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17535 $as_echo "no" >&6; }
17540 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17543 if test -n "$OTOOL_FOR_TARGET"; then
17544 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17545 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17546 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17549 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17550 for ncn_progname in otool; do
17551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17552 set dummy ${ncn_progname}; ac_word=$2
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17554 $as_echo_n "checking for $ac_word... " >&6; }
17555 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17556 $as_echo_n "(cached) " >&6
17557 else
17558 if test -n "$OTOOL_FOR_TARGET"; then
17559 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17560 else
17561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17562 for as_dir in $PATH
17564 IFS=$as_save_IFS
17565 test -z "$as_dir" && as_dir=.
17566 for ac_exec_ext in '' $ac_executable_extensions; do
17567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17568 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17570 break 2
17572 done
17573 done
17574 IFS=$as_save_IFS
17578 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17579 if test -n "$OTOOL_FOR_TARGET"; then
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17581 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17582 else
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17584 $as_echo "no" >&6; }
17588 done
17591 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17592 for ncn_progname in otool; do
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17594 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17595 if test -x $with_build_time_tools/${ncn_progname}; then
17596 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17598 $as_echo "yes" >&6; }
17599 break
17600 else
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602 $as_echo "no" >&6; }
17604 done
17607 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17608 for ncn_progname in otool; do
17609 if test -n "$ncn_target_tool_prefix"; then
17610 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17611 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17613 $as_echo_n "checking for $ac_word... " >&6; }
17614 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 if test -n "$OTOOL_FOR_TARGET"; then
17618 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17619 else
17620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17621 for as_dir in $PATH
17623 IFS=$as_save_IFS
17624 test -z "$as_dir" && as_dir=.
17625 for ac_exec_ext in '' $ac_executable_extensions; do
17626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17627 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17629 break 2
17631 done
17632 done
17633 IFS=$as_save_IFS
17637 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17638 if test -n "$OTOOL_FOR_TARGET"; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17640 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17641 else
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17643 $as_echo "no" >&6; }
17648 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17650 set dummy ${ncn_progname}; ac_word=$2
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17652 $as_echo_n "checking for $ac_word... " >&6; }
17653 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17654 $as_echo_n "(cached) " >&6
17655 else
17656 if test -n "$OTOOL_FOR_TARGET"; then
17657 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17658 else
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17662 IFS=$as_save_IFS
17663 test -z "$as_dir" && as_dir=.
17664 for ac_exec_ext in '' $ac_executable_extensions; do
17665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17666 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17668 break 2
17670 done
17671 done
17672 IFS=$as_save_IFS
17676 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17677 if test -n "$OTOOL_FOR_TARGET"; then
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17679 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17680 else
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17682 $as_echo "no" >&6; }
17687 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17688 done
17691 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17692 set dummy otool
17693 if test $build = $target ; then
17694 OTOOL_FOR_TARGET="$2"
17695 else
17696 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17698 else
17699 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17702 else
17703 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17709 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17710 if test -n "$with_build_time_tools"; then
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17712 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17713 if test -x $with_build_time_tools/ranlib; then
17714 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17715 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17717 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17718 else
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720 $as_echo "no" >&6; }
17722 elif test $build != $host && test $have_gcc_for_target = yes; then
17723 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17724 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17725 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17728 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17729 # Extract the first word of "ranlib", so it can be a program name with args.
17730 set dummy ranlib; ac_word=$2
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17732 $as_echo_n "checking for $ac_word... " >&6; }
17733 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17734 $as_echo_n "(cached) " >&6
17735 else
17736 case $RANLIB_FOR_TARGET in
17737 [\\/]* | ?:[\\/]*)
17738 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742 for as_dir in $gcc_cv_tool_dirs
17744 IFS=$as_save_IFS
17745 test -z "$as_dir" && as_dir=.
17746 for ac_exec_ext in '' $ac_executable_extensions; do
17747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17748 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17750 break 2
17752 done
17753 done
17754 IFS=$as_save_IFS
17757 esac
17759 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17760 if test -n "$RANLIB_FOR_TARGET"; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17762 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17763 else
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17770 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17773 if test -n "$RANLIB_FOR_TARGET"; then
17774 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17775 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17776 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17779 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17780 for ncn_progname in ranlib; do
17781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17782 set dummy ${ncn_progname}; ac_word=$2
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17784 $as_echo_n "checking for $ac_word... " >&6; }
17785 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 if test -n "$RANLIB_FOR_TARGET"; then
17789 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17790 else
17791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792 for as_dir in $PATH
17794 IFS=$as_save_IFS
17795 test -z "$as_dir" && as_dir=.
17796 for ac_exec_ext in '' $ac_executable_extensions; do
17797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17798 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17800 break 2
17802 done
17803 done
17804 IFS=$as_save_IFS
17808 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17809 if test -n "$RANLIB_FOR_TARGET"; then
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17811 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17812 else
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814 $as_echo "no" >&6; }
17818 done
17821 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17822 for ncn_progname in ranlib; do
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17824 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17825 if test -x $with_build_time_tools/${ncn_progname}; then
17826 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17828 $as_echo "yes" >&6; }
17829 break
17830 else
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832 $as_echo "no" >&6; }
17834 done
17837 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17838 for ncn_progname in ranlib; do
17839 if test -n "$ncn_target_tool_prefix"; then
17840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17841 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17843 $as_echo_n "checking for $ac_word... " >&6; }
17844 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17845 $as_echo_n "(cached) " >&6
17846 else
17847 if test -n "$RANLIB_FOR_TARGET"; then
17848 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17849 else
17850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17851 for as_dir in $PATH
17853 IFS=$as_save_IFS
17854 test -z "$as_dir" && as_dir=.
17855 for ac_exec_ext in '' $ac_executable_extensions; do
17856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17857 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17859 break 2
17861 done
17862 done
17863 IFS=$as_save_IFS
17867 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17868 if test -n "$RANLIB_FOR_TARGET"; then
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17870 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17871 else
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873 $as_echo "no" >&6; }
17878 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17880 set dummy ${ncn_progname}; ac_word=$2
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17882 $as_echo_n "checking for $ac_word... " >&6; }
17883 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 if test -n "$RANLIB_FOR_TARGET"; then
17887 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17888 else
17889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17890 for as_dir in $PATH
17892 IFS=$as_save_IFS
17893 test -z "$as_dir" && as_dir=.
17894 for ac_exec_ext in '' $ac_executable_extensions; do
17895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17896 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17898 break 2
17900 done
17901 done
17902 IFS=$as_save_IFS
17906 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17907 if test -n "$RANLIB_FOR_TARGET"; then
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17909 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17910 else
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17917 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17918 done
17921 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17922 set dummy ranlib
17923 if test $build = $target ; then
17924 RANLIB_FOR_TARGET="$2"
17925 else
17926 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17928 else
17929 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17932 else
17933 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17939 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17940 if test -n "$with_build_time_tools"; then
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
17942 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
17943 if test -x $with_build_time_tools/readelf; then
17944 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17945 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
17947 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17948 else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17950 $as_echo "no" >&6; }
17952 elif test $build != $host && test $have_gcc_for_target = yes; then
17953 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17954 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17955 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17958 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17959 # Extract the first word of "readelf", so it can be a program name with args.
17960 set dummy readelf; ac_word=$2
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17962 $as_echo_n "checking for $ac_word... " >&6; }
17963 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17964 $as_echo_n "(cached) " >&6
17965 else
17966 case $READELF_FOR_TARGET in
17967 [\\/]* | ?:[\\/]*)
17968 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $gcc_cv_tool_dirs
17974 IFS=$as_save_IFS
17975 test -z "$as_dir" && as_dir=.
17976 for ac_exec_ext in '' $ac_executable_extensions; do
17977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17978 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17980 break 2
17982 done
17983 done
17984 IFS=$as_save_IFS
17987 esac
17989 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17990 if test -n "$READELF_FOR_TARGET"; then
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17992 $as_echo "$READELF_FOR_TARGET" >&6; }
17993 else
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995 $as_echo "no" >&6; }
18000 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18003 if test -n "$READELF_FOR_TARGET"; then
18004 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18005 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18006 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18009 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18010 for ncn_progname in readelf; do
18011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18012 set dummy ${ncn_progname}; ac_word=$2
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18014 $as_echo_n "checking for $ac_word... " >&6; }
18015 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18016 $as_echo_n "(cached) " >&6
18017 else
18018 if test -n "$READELF_FOR_TARGET"; then
18019 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18020 else
18021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18022 for as_dir in $PATH
18024 IFS=$as_save_IFS
18025 test -z "$as_dir" && as_dir=.
18026 for ac_exec_ext in '' $ac_executable_extensions; do
18027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18028 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18030 break 2
18032 done
18033 done
18034 IFS=$as_save_IFS
18038 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18039 if test -n "$READELF_FOR_TARGET"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18041 $as_echo "$READELF_FOR_TARGET" >&6; }
18042 else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18044 $as_echo "no" >&6; }
18048 done
18051 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18052 for ncn_progname in readelf; do
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18054 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18055 if test -x $with_build_time_tools/${ncn_progname}; then
18056 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18058 $as_echo "yes" >&6; }
18059 break
18060 else
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062 $as_echo "no" >&6; }
18064 done
18067 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18068 for ncn_progname in readelf; do
18069 if test -n "$ncn_target_tool_prefix"; then
18070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18073 $as_echo_n "checking for $ac_word... " >&6; }
18074 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18075 $as_echo_n "(cached) " >&6
18076 else
18077 if test -n "$READELF_FOR_TARGET"; then
18078 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18079 else
18080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18081 for as_dir in $PATH
18083 IFS=$as_save_IFS
18084 test -z "$as_dir" && as_dir=.
18085 for ac_exec_ext in '' $ac_executable_extensions; do
18086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18087 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18089 break 2
18091 done
18092 done
18093 IFS=$as_save_IFS
18097 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18098 if test -n "$READELF_FOR_TARGET"; then
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18100 $as_echo "$READELF_FOR_TARGET" >&6; }
18101 else
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18108 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18110 set dummy ${ncn_progname}; ac_word=$2
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18112 $as_echo_n "checking for $ac_word... " >&6; }
18113 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18114 $as_echo_n "(cached) " >&6
18115 else
18116 if test -n "$READELF_FOR_TARGET"; then
18117 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18118 else
18119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18120 for as_dir in $PATH
18122 IFS=$as_save_IFS
18123 test -z "$as_dir" && as_dir=.
18124 for ac_exec_ext in '' $ac_executable_extensions; do
18125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18126 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18128 break 2
18130 done
18131 done
18132 IFS=$as_save_IFS
18136 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18137 if test -n "$READELF_FOR_TARGET"; then
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18139 $as_echo "$READELF_FOR_TARGET" >&6; }
18140 else
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18142 $as_echo "no" >&6; }
18147 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18148 done
18151 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18152 set dummy readelf
18153 if test $build = $target ; then
18154 READELF_FOR_TARGET="$2"
18155 else
18156 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18158 else
18159 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18162 else
18163 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18169 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18170 if test -n "$with_build_time_tools"; then
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18172 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18173 if test -x $with_build_time_tools/strip; then
18174 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18175 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18177 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18178 else
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18180 $as_echo "no" >&6; }
18182 elif test $build != $host && test $have_gcc_for_target = yes; then
18183 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18184 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18185 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18188 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18189 # Extract the first word of "strip", so it can be a program name with args.
18190 set dummy strip; ac_word=$2
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18192 $as_echo_n "checking for $ac_word... " >&6; }
18193 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 case $STRIP_FOR_TARGET in
18197 [\\/]* | ?:[\\/]*)
18198 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18202 for as_dir in $gcc_cv_tool_dirs
18204 IFS=$as_save_IFS
18205 test -z "$as_dir" && as_dir=.
18206 for ac_exec_ext in '' $ac_executable_extensions; do
18207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18208 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18210 break 2
18212 done
18213 done
18214 IFS=$as_save_IFS
18217 esac
18219 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18220 if test -n "$STRIP_FOR_TARGET"; then
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18222 $as_echo "$STRIP_FOR_TARGET" >&6; }
18223 else
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18230 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18233 if test -n "$STRIP_FOR_TARGET"; then
18234 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18235 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18236 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18239 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18240 for ncn_progname in strip; do
18241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18242 set dummy ${ncn_progname}; ac_word=$2
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18244 $as_echo_n "checking for $ac_word... " >&6; }
18245 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18246 $as_echo_n "(cached) " >&6
18247 else
18248 if test -n "$STRIP_FOR_TARGET"; then
18249 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18250 else
18251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 for as_dir in $PATH
18254 IFS=$as_save_IFS
18255 test -z "$as_dir" && as_dir=.
18256 for ac_exec_ext in '' $ac_executable_extensions; do
18257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18258 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18260 break 2
18262 done
18263 done
18264 IFS=$as_save_IFS
18268 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18269 if test -n "$STRIP_FOR_TARGET"; then
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18271 $as_echo "$STRIP_FOR_TARGET" >&6; }
18272 else
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 $as_echo "no" >&6; }
18278 done
18281 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18282 for ncn_progname in strip; do
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18284 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18285 if test -x $with_build_time_tools/${ncn_progname}; then
18286 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18288 $as_echo "yes" >&6; }
18289 break
18290 else
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292 $as_echo "no" >&6; }
18294 done
18297 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18298 for ncn_progname in strip; do
18299 if test -n "$ncn_target_tool_prefix"; then
18300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18303 $as_echo_n "checking for $ac_word... " >&6; }
18304 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18305 $as_echo_n "(cached) " >&6
18306 else
18307 if test -n "$STRIP_FOR_TARGET"; then
18308 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18309 else
18310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18311 for as_dir in $PATH
18313 IFS=$as_save_IFS
18314 test -z "$as_dir" && as_dir=.
18315 for ac_exec_ext in '' $ac_executable_extensions; do
18316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18317 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18319 break 2
18321 done
18322 done
18323 IFS=$as_save_IFS
18327 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18328 if test -n "$STRIP_FOR_TARGET"; then
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18330 $as_echo "$STRIP_FOR_TARGET" >&6; }
18331 else
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 $as_echo "no" >&6; }
18338 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18340 set dummy ${ncn_progname}; ac_word=$2
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18342 $as_echo_n "checking for $ac_word... " >&6; }
18343 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18344 $as_echo_n "(cached) " >&6
18345 else
18346 if test -n "$STRIP_FOR_TARGET"; then
18347 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18348 else
18349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18350 for as_dir in $PATH
18352 IFS=$as_save_IFS
18353 test -z "$as_dir" && as_dir=.
18354 for ac_exec_ext in '' $ac_executable_extensions; do
18355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18356 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18358 break 2
18360 done
18361 done
18362 IFS=$as_save_IFS
18366 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18367 if test -n "$STRIP_FOR_TARGET"; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18369 $as_echo "$STRIP_FOR_TARGET" >&6; }
18370 else
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 $as_echo "no" >&6; }
18377 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18378 done
18381 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18382 set dummy strip
18383 if test $build = $target ; then
18384 STRIP_FOR_TARGET="$2"
18385 else
18386 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18388 else
18389 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18392 else
18393 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18399 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18400 if test -n "$with_build_time_tools"; then
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18402 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18403 if test -x $with_build_time_tools/windres; then
18404 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18405 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18407 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18408 else
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18410 $as_echo "no" >&6; }
18412 elif test $build != $host && test $have_gcc_for_target = yes; then
18413 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18414 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18415 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18418 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18419 # Extract the first word of "windres", so it can be a program name with args.
18420 set dummy windres; ac_word=$2
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18422 $as_echo_n "checking for $ac_word... " >&6; }
18423 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18424 $as_echo_n "(cached) " >&6
18425 else
18426 case $WINDRES_FOR_TARGET in
18427 [\\/]* | ?:[\\/]*)
18428 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18432 for as_dir in $gcc_cv_tool_dirs
18434 IFS=$as_save_IFS
18435 test -z "$as_dir" && as_dir=.
18436 for ac_exec_ext in '' $ac_executable_extensions; do
18437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18438 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18440 break 2
18442 done
18443 done
18444 IFS=$as_save_IFS
18447 esac
18449 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18450 if test -n "$WINDRES_FOR_TARGET"; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18452 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18453 else
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18455 $as_echo "no" >&6; }
18460 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18463 if test -n "$WINDRES_FOR_TARGET"; then
18464 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18465 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18466 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18469 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18470 for ncn_progname in windres; do
18471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18472 set dummy ${ncn_progname}; ac_word=$2
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18474 $as_echo_n "checking for $ac_word... " >&6; }
18475 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 if test -n "$WINDRES_FOR_TARGET"; then
18479 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18480 else
18481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482 for as_dir in $PATH
18484 IFS=$as_save_IFS
18485 test -z "$as_dir" && as_dir=.
18486 for ac_exec_ext in '' $ac_executable_extensions; do
18487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18488 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18490 break 2
18492 done
18493 done
18494 IFS=$as_save_IFS
18498 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18499 if test -n "$WINDRES_FOR_TARGET"; then
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18501 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18502 else
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18504 $as_echo "no" >&6; }
18508 done
18511 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18512 for ncn_progname in windres; do
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18514 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18515 if test -x $with_build_time_tools/${ncn_progname}; then
18516 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18518 $as_echo "yes" >&6; }
18519 break
18520 else
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18524 done
18527 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18528 for ncn_progname in windres; do
18529 if test -n "$ncn_target_tool_prefix"; then
18530 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18531 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18533 $as_echo_n "checking for $ac_word... " >&6; }
18534 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18535 $as_echo_n "(cached) " >&6
18536 else
18537 if test -n "$WINDRES_FOR_TARGET"; then
18538 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18539 else
18540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18543 IFS=$as_save_IFS
18544 test -z "$as_dir" && as_dir=.
18545 for ac_exec_ext in '' $ac_executable_extensions; do
18546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18547 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18549 break 2
18551 done
18552 done
18553 IFS=$as_save_IFS
18557 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18558 if test -n "$WINDRES_FOR_TARGET"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18560 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18561 else
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18563 $as_echo "no" >&6; }
18568 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18570 set dummy ${ncn_progname}; ac_word=$2
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18572 $as_echo_n "checking for $ac_word... " >&6; }
18573 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18574 $as_echo_n "(cached) " >&6
18575 else
18576 if test -n "$WINDRES_FOR_TARGET"; then
18577 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18578 else
18579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18580 for as_dir in $PATH
18582 IFS=$as_save_IFS
18583 test -z "$as_dir" && as_dir=.
18584 for ac_exec_ext in '' $ac_executable_extensions; do
18585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18586 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18588 break 2
18590 done
18591 done
18592 IFS=$as_save_IFS
18596 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18597 if test -n "$WINDRES_FOR_TARGET"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18599 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18600 else
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18607 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18608 done
18611 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18612 set dummy windres
18613 if test $build = $target ; then
18614 WINDRES_FOR_TARGET="$2"
18615 else
18616 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18618 else
18619 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18622 else
18623 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18629 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18630 if test -n "$with_build_time_tools"; then
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18632 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18633 if test -x $with_build_time_tools/windmc; then
18634 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18635 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18637 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18638 else
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18640 $as_echo "no" >&6; }
18642 elif test $build != $host && test $have_gcc_for_target = yes; then
18643 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18644 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18645 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18648 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18649 # Extract the first word of "windmc", so it can be a program name with args.
18650 set dummy windmc; ac_word=$2
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18652 $as_echo_n "checking for $ac_word... " >&6; }
18653 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18654 $as_echo_n "(cached) " >&6
18655 else
18656 case $WINDMC_FOR_TARGET in
18657 [\\/]* | ?:[\\/]*)
18658 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662 for as_dir in $gcc_cv_tool_dirs
18664 IFS=$as_save_IFS
18665 test -z "$as_dir" && as_dir=.
18666 for ac_exec_ext in '' $ac_executable_extensions; do
18667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18670 break 2
18672 done
18673 done
18674 IFS=$as_save_IFS
18677 esac
18679 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18680 if test -n "$WINDMC_FOR_TARGET"; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18682 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18683 else
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18690 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18693 if test -n "$WINDMC_FOR_TARGET"; then
18694 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18695 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18696 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18699 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18700 for ncn_progname in windmc; do
18701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18702 set dummy ${ncn_progname}; ac_word=$2
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18704 $as_echo_n "checking for $ac_word... " >&6; }
18705 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18706 $as_echo_n "(cached) " >&6
18707 else
18708 if test -n "$WINDMC_FOR_TARGET"; then
18709 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18710 else
18711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18712 for as_dir in $PATH
18714 IFS=$as_save_IFS
18715 test -z "$as_dir" && as_dir=.
18716 for ac_exec_ext in '' $ac_executable_extensions; do
18717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18718 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18720 break 2
18722 done
18723 done
18724 IFS=$as_save_IFS
18728 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18729 if test -n "$WINDMC_FOR_TARGET"; then
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18731 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18732 else
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734 $as_echo "no" >&6; }
18738 done
18741 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18742 for ncn_progname in windmc; do
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18744 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18745 if test -x $with_build_time_tools/${ncn_progname}; then
18746 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18748 $as_echo "yes" >&6; }
18749 break
18750 else
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18754 done
18757 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18758 for ncn_progname in windmc; do
18759 if test -n "$ncn_target_tool_prefix"; then
18760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18761 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18763 $as_echo_n "checking for $ac_word... " >&6; }
18764 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18765 $as_echo_n "(cached) " >&6
18766 else
18767 if test -n "$WINDMC_FOR_TARGET"; then
18768 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18769 else
18770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18771 for as_dir in $PATH
18773 IFS=$as_save_IFS
18774 test -z "$as_dir" && as_dir=.
18775 for ac_exec_ext in '' $ac_executable_extensions; do
18776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18777 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18779 break 2
18781 done
18782 done
18783 IFS=$as_save_IFS
18787 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18788 if test -n "$WINDMC_FOR_TARGET"; then
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18790 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18791 else
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793 $as_echo "no" >&6; }
18798 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18800 set dummy ${ncn_progname}; ac_word=$2
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18802 $as_echo_n "checking for $ac_word... " >&6; }
18803 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18804 $as_echo_n "(cached) " >&6
18805 else
18806 if test -n "$WINDMC_FOR_TARGET"; then
18807 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18808 else
18809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810 for as_dir in $PATH
18812 IFS=$as_save_IFS
18813 test -z "$as_dir" && as_dir=.
18814 for ac_exec_ext in '' $ac_executable_extensions; do
18815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18818 break 2
18820 done
18821 done
18822 IFS=$as_save_IFS
18826 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18827 if test -n "$WINDMC_FOR_TARGET"; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18829 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18830 else
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832 $as_echo "no" >&6; }
18837 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18838 done
18841 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18842 set dummy windmc
18843 if test $build = $target ; then
18844 WINDMC_FOR_TARGET="$2"
18845 else
18846 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18848 else
18849 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18852 else
18853 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18857 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18860 $as_echo_n "checking where to find the target ar... " >&6; }
18861 if test "x${build}" != "x${host}" ; then
18862 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18863 # We already found the complete path
18864 ac_dir=`dirname $AR_FOR_TARGET`
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18866 $as_echo "pre-installed in $ac_dir" >&6; }
18867 else
18868 # Canadian cross, just use what we found
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18870 $as_echo "pre-installed" >&6; }
18872 else
18873 ok=yes
18874 case " ${configdirs} " in
18875 *" binutils "*) ;;
18876 *) ok=no ;;
18877 esac
18879 if test $ok = yes; then
18880 # An in-tree tool is available and we can use it
18881 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18883 $as_echo "just compiled" >&6; }
18884 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18885 # We already found the complete path
18886 ac_dir=`dirname $AR_FOR_TARGET`
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18888 $as_echo "pre-installed in $ac_dir" >&6; }
18889 elif test "x$target" = "x$host"; then
18890 # We can use an host tool
18891 AR_FOR_TARGET='$(AR)'
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18893 $as_echo "host tool" >&6; }
18894 else
18895 # We need a cross tool
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18897 $as_echo "pre-installed" >&6; }
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
18902 $as_echo_n "checking where to find the target as... " >&6; }
18903 if test "x${build}" != "x${host}" ; then
18904 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18905 # We already found the complete path
18906 ac_dir=`dirname $AS_FOR_TARGET`
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18908 $as_echo "pre-installed in $ac_dir" >&6; }
18909 else
18910 # Canadian cross, just use what we found
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18912 $as_echo "pre-installed" >&6; }
18914 else
18915 ok=yes
18916 case " ${configdirs} " in
18917 *" gas "*) ;;
18918 *) ok=no ;;
18919 esac
18921 if test $ok = yes; then
18922 # An in-tree tool is available and we can use it
18923 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18925 $as_echo "just compiled" >&6; }
18926 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18927 # We already found the complete path
18928 ac_dir=`dirname $AS_FOR_TARGET`
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18930 $as_echo "pre-installed in $ac_dir" >&6; }
18931 elif test "x$target" = "x$host"; then
18932 # We can use an host tool
18933 AS_FOR_TARGET='$(AS)'
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18935 $as_echo "host tool" >&6; }
18936 else
18937 # We need a cross tool
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18939 $as_echo "pre-installed" >&6; }
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
18944 $as_echo_n "checking where to find the target cc... " >&6; }
18945 if test "x${build}" != "x${host}" ; then
18946 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18947 # We already found the complete path
18948 ac_dir=`dirname $CC_FOR_TARGET`
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18950 $as_echo "pre-installed in $ac_dir" >&6; }
18951 else
18952 # Canadian cross, just use what we found
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18954 $as_echo "pre-installed" >&6; }
18956 else
18957 ok=yes
18958 case " ${configdirs} " in
18959 *" gcc "*) ;;
18960 *) ok=no ;;
18961 esac
18963 if test $ok = yes; then
18964 # An in-tree tool is available and we can use it
18965 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18967 $as_echo "just compiled" >&6; }
18968 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18969 # We already found the complete path
18970 ac_dir=`dirname $CC_FOR_TARGET`
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18972 $as_echo "pre-installed in $ac_dir" >&6; }
18973 elif test "x$target" = "x$host"; then
18974 # We can use an host tool
18975 CC_FOR_TARGET='$(CC)'
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18977 $as_echo "host tool" >&6; }
18978 else
18979 # We need a cross tool
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18981 $as_echo "pre-installed" >&6; }
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
18986 $as_echo_n "checking where to find the target c++... " >&6; }
18987 if test "x${build}" != "x${host}" ; then
18988 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18989 # We already found the complete path
18990 ac_dir=`dirname $CXX_FOR_TARGET`
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18992 $as_echo "pre-installed in $ac_dir" >&6; }
18993 else
18994 # Canadian cross, just use what we found
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18996 $as_echo "pre-installed" >&6; }
18998 else
18999 ok=yes
19000 case " ${configdirs} " in
19001 *" gcc "*) ;;
19002 *) ok=no ;;
19003 esac
19004 case ,${enable_languages}, in
19005 *,c++,*) ;;
19006 *) ok=no ;;
19007 esac
19008 if test $ok = yes; then
19009 # An in-tree tool is available and we can use it
19010 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'
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19012 $as_echo "just compiled" >&6; }
19013 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19014 # We already found the complete path
19015 ac_dir=`dirname $CXX_FOR_TARGET`
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19017 $as_echo "pre-installed in $ac_dir" >&6; }
19018 elif test "x$target" = "x$host"; then
19019 # We can use an host tool
19020 CXX_FOR_TARGET='$(CXX)'
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19022 $as_echo "host tool" >&6; }
19023 else
19024 # We need a cross tool
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19026 $as_echo "pre-installed" >&6; }
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19031 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19032 if test "x${build}" != "x${host}" ; then
19033 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19034 # We already found the complete path
19035 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19037 $as_echo "pre-installed in $ac_dir" >&6; }
19038 else
19039 # Canadian cross, just use what we found
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19041 $as_echo "pre-installed" >&6; }
19043 else
19044 ok=yes
19045 case " ${configdirs} " in
19046 *" gcc "*) ;;
19047 *) ok=no ;;
19048 esac
19049 case ,${enable_languages}, in
19050 *,c++,*) ;;
19051 *) ok=no ;;
19052 esac
19053 if test $ok = yes; then
19054 # An in-tree tool is available and we can use it
19055 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'
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19057 $as_echo "just compiled" >&6; }
19058 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19059 # We already found the complete path
19060 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19062 $as_echo "pre-installed in $ac_dir" >&6; }
19063 elif test "x$target" = "x$host"; then
19064 # We can use an host tool
19065 RAW_CXX_FOR_TARGET='$(CXX)'
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19067 $as_echo "host tool" >&6; }
19068 else
19069 # We need a cross tool
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19071 $as_echo "pre-installed" >&6; }
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19076 $as_echo_n "checking where to find the target dlltool... " >&6; }
19077 if test "x${build}" != "x${host}" ; then
19078 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19079 # We already found the complete path
19080 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19082 $as_echo "pre-installed in $ac_dir" >&6; }
19083 else
19084 # Canadian cross, just use what we found
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19086 $as_echo "pre-installed" >&6; }
19088 else
19089 ok=yes
19090 case " ${configdirs} " in
19091 *" binutils "*) ;;
19092 *) ok=no ;;
19093 esac
19095 if test $ok = yes; then
19096 # An in-tree tool is available and we can use it
19097 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19099 $as_echo "just compiled" >&6; }
19100 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19101 # We already found the complete path
19102 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19104 $as_echo "pre-installed in $ac_dir" >&6; }
19105 elif test "x$target" = "x$host"; then
19106 # We can use an host tool
19107 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19109 $as_echo "host tool" >&6; }
19110 else
19111 # We need a cross tool
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19113 $as_echo "pre-installed" >&6; }
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19118 $as_echo_n "checking where to find the target dsymutil... " >&6; }
19119 if test "x${build}" != "x${host}" ; then
19120 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19121 # We already found the complete path
19122 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19124 $as_echo "pre-installed in $ac_dir" >&6; }
19125 else
19126 # Canadian cross, just use what we found
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19128 $as_echo "pre-installed" >&6; }
19130 else
19131 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19132 # We already found the complete path
19133 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19135 $as_echo "pre-installed in $ac_dir" >&6; }
19136 elif test "x$target" = "x$host"; then
19137 # We can use an host tool
19138 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19140 $as_echo "host tool" >&6; }
19141 else
19142 # We need a cross tool
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19144 $as_echo "pre-installed" >&6; }
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19149 $as_echo_n "checking where to find the target gcc... " >&6; }
19150 if test "x${build}" != "x${host}" ; then
19151 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19152 # We already found the complete path
19153 ac_dir=`dirname $GCC_FOR_TARGET`
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19155 $as_echo "pre-installed in $ac_dir" >&6; }
19156 else
19157 # Canadian cross, just use what we found
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19159 $as_echo "pre-installed" >&6; }
19161 else
19162 ok=yes
19163 case " ${configdirs} " in
19164 *" gcc "*) ;;
19165 *) ok=no ;;
19166 esac
19168 if test $ok = yes; then
19169 # An in-tree tool is available and we can use it
19170 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19172 $as_echo "just compiled" >&6; }
19173 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19174 # We already found the complete path
19175 ac_dir=`dirname $GCC_FOR_TARGET`
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19177 $as_echo "pre-installed in $ac_dir" >&6; }
19178 elif test "x$target" = "x$host"; then
19179 # We can use an host tool
19180 GCC_FOR_TARGET='$()'
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19182 $as_echo "host tool" >&6; }
19183 else
19184 # We need a cross tool
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19186 $as_echo "pre-installed" >&6; }
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19191 $as_echo_n "checking where to find the target gfortran... " >&6; }
19192 if test "x${build}" != "x${host}" ; then
19193 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19194 # We already found the complete path
19195 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19197 $as_echo "pre-installed in $ac_dir" >&6; }
19198 else
19199 # Canadian cross, just use what we found
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19201 $as_echo "pre-installed" >&6; }
19203 else
19204 ok=yes
19205 case " ${configdirs} " in
19206 *" gcc "*) ;;
19207 *) ok=no ;;
19208 esac
19209 case ,${enable_languages}, in
19210 *,fortran,*) ;;
19211 *) ok=no ;;
19212 esac
19213 if test $ok = yes; then
19214 # An in-tree tool is available and we can use it
19215 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19217 $as_echo "just compiled" >&6; }
19218 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19219 # We already found the complete path
19220 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19222 $as_echo "pre-installed in $ac_dir" >&6; }
19223 elif test "x$target" = "x$host"; then
19224 # We can use an host tool
19225 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19227 $as_echo "host tool" >&6; }
19228 else
19229 # We need a cross tool
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19231 $as_echo "pre-installed" >&6; }
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19236 $as_echo_n "checking where to find the target gccgo... " >&6; }
19237 if test "x${build}" != "x${host}" ; then
19238 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19239 # We already found the complete path
19240 ac_dir=`dirname $GOC_FOR_TARGET`
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19242 $as_echo "pre-installed in $ac_dir" >&6; }
19243 else
19244 # Canadian cross, just use what we found
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19246 $as_echo "pre-installed" >&6; }
19248 else
19249 ok=yes
19250 case " ${configdirs} " in
19251 *" gcc "*) ;;
19252 *) ok=no ;;
19253 esac
19254 case ,${enable_languages}, in
19255 *,go,*) ;;
19256 *) ok=no ;;
19257 esac
19258 if test $ok = yes; then
19259 # An in-tree tool is available and we can use it
19260 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19262 $as_echo "just compiled" >&6; }
19263 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19264 # We already found the complete path
19265 ac_dir=`dirname $GOC_FOR_TARGET`
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19267 $as_echo "pre-installed in $ac_dir" >&6; }
19268 elif test "x$target" = "x$host"; then
19269 # We can use an host tool
19270 GOC_FOR_TARGET='$(GOC)'
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19272 $as_echo "host tool" >&6; }
19273 else
19274 # We need a cross tool
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19276 $as_echo "pre-installed" >&6; }
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19281 $as_echo_n "checking where to find the target gdc... " >&6; }
19282 if test "x${build}" != "x${host}" ; then
19283 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19284 # We already found the complete path
19285 ac_dir=`dirname $GDC_FOR_TARGET`
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19287 $as_echo "pre-installed in $ac_dir" >&6; }
19288 else
19289 # Canadian cross, just use what we found
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19291 $as_echo "pre-installed" >&6; }
19293 else
19294 ok=yes
19295 case " ${configdirs} " in
19296 *" gcc "*) ;;
19297 *) ok=no ;;
19298 esac
19299 case ,${enable_languages}, in
19300 *,d,*) ;;
19301 *) ok=no ;;
19302 esac
19303 if test $ok = yes; then
19304 # An in-tree tool is available and we can use it
19305 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19307 $as_echo "just compiled" >&6; }
19308 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19309 # We already found the complete path
19310 ac_dir=`dirname $GDC_FOR_TARGET`
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19312 $as_echo "pre-installed in $ac_dir" >&6; }
19313 elif test "x$target" = "x$host"; then
19314 # We can use an host tool
19315 GDC_FOR_TARGET='$(GDC)'
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19317 $as_echo "host tool" >&6; }
19318 else
19319 # We need a cross tool
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19321 $as_echo "pre-installed" >&6; }
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19326 $as_echo_n "checking where to find the target gm2... " >&6; }
19327 if test "x${build}" != "x${host}" ; then
19328 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19329 # We already found the complete path
19330 ac_dir=`dirname $GM2_FOR_TARGET`
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19332 $as_echo "pre-installed in $ac_dir" >&6; }
19333 else
19334 # Canadian cross, just use what we found
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19336 $as_echo "pre-installed" >&6; }
19338 else
19339 ok=yes
19340 case " ${configdirs} " in
19341 *" gcc "*) ;;
19342 *) ok=no ;;
19343 esac
19344 case ,${enable_languages}, in
19345 *,m2,*) ;;
19346 *) ok=no ;;
19347 esac
19348 if test $ok = yes; then
19349 # An in-tree tool is available and we can use it
19350 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19352 $as_echo "just compiled" >&6; }
19353 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19354 # We already found the complete path
19355 ac_dir=`dirname $GM2_FOR_TARGET`
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19357 $as_echo "pre-installed in $ac_dir" >&6; }
19358 elif test "x$target" = "x$host"; then
19359 # We can use an host tool
19360 GM2_FOR_TARGET='$(GM2)'
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19362 $as_echo "host tool" >&6; }
19363 else
19364 # We need a cross tool
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19366 $as_echo "pre-installed" >&6; }
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19371 $as_echo_n "checking where to find the target ld... " >&6; }
19372 if test "x${build}" != "x${host}" ; then
19373 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19374 # We already found the complete path
19375 ac_dir=`dirname $LD_FOR_TARGET`
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19377 $as_echo "pre-installed in $ac_dir" >&6; }
19378 else
19379 # Canadian cross, just use what we found
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19381 $as_echo "pre-installed" >&6; }
19383 else
19384 ok=yes
19385 case " ${configdirs} " in
19386 *" ld "*) ;;
19387 *) ok=no ;;
19388 esac
19390 if test $ok = yes; then
19391 # An in-tree tool is available and we can use it
19392 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19394 $as_echo "just compiled" >&6; }
19395 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19396 # We already found the complete path
19397 ac_dir=`dirname $LD_FOR_TARGET`
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19399 $as_echo "pre-installed in $ac_dir" >&6; }
19400 elif test "x$target" = "x$host"; then
19401 # We can use an host tool
19402 LD_FOR_TARGET='$(LD)'
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19404 $as_echo "host tool" >&6; }
19405 else
19406 # We need a cross tool
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19408 $as_echo "pre-installed" >&6; }
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19413 $as_echo_n "checking where to find the target lipo... " >&6; }
19414 if test "x${build}" != "x${host}" ; then
19415 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19416 # We already found the complete path
19417 ac_dir=`dirname $LIPO_FOR_TARGET`
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19419 $as_echo "pre-installed in $ac_dir" >&6; }
19420 else
19421 # Canadian cross, just use what we found
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19423 $as_echo "pre-installed" >&6; }
19425 else
19426 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19427 # We already found the complete path
19428 ac_dir=`dirname $LIPO_FOR_TARGET`
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19430 $as_echo "pre-installed in $ac_dir" >&6; }
19431 elif test "x$target" = "x$host"; then
19432 # We can use an host tool
19433 LIPO_FOR_TARGET='$(LIPO)'
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19435 $as_echo "host tool" >&6; }
19436 else
19437 # We need a cross tool
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19439 $as_echo "pre-installed" >&6; }
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19444 $as_echo_n "checking where to find the target nm... " >&6; }
19445 if test "x${build}" != "x${host}" ; then
19446 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19447 # We already found the complete path
19448 ac_dir=`dirname $NM_FOR_TARGET`
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19450 $as_echo "pre-installed in $ac_dir" >&6; }
19451 else
19452 # Canadian cross, just use what we found
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19454 $as_echo "pre-installed" >&6; }
19456 else
19457 ok=yes
19458 case " ${configdirs} " in
19459 *" binutils "*) ;;
19460 *) ok=no ;;
19461 esac
19463 if test $ok = yes; then
19464 # An in-tree tool is available and we can use it
19465 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19467 $as_echo "just compiled" >&6; }
19468 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19469 # We already found the complete path
19470 ac_dir=`dirname $NM_FOR_TARGET`
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19472 $as_echo "pre-installed in $ac_dir" >&6; }
19473 elif test "x$target" = "x$host"; then
19474 # We can use an host tool
19475 NM_FOR_TARGET='$(NM)'
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19477 $as_echo "host tool" >&6; }
19478 else
19479 # We need a cross tool
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19481 $as_echo "pre-installed" >&6; }
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19486 $as_echo_n "checking where to find the target objcopy... " >&6; }
19487 if test "x${build}" != "x${host}" ; then
19488 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19489 # We already found the complete path
19490 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19492 $as_echo "pre-installed in $ac_dir" >&6; }
19493 else
19494 # Canadian cross, just use what we found
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19496 $as_echo "pre-installed" >&6; }
19498 else
19499 ok=yes
19500 case " ${configdirs} " in
19501 *" binutils "*) ;;
19502 *) ok=no ;;
19503 esac
19505 if test $ok = yes; then
19506 # An in-tree tool is available and we can use it
19507 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19509 $as_echo "just compiled" >&6; }
19510 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19511 # We already found the complete path
19512 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19514 $as_echo "pre-installed in $ac_dir" >&6; }
19515 elif test "x$target" = "x$host"; then
19516 # We can use an host tool
19517 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19519 $as_echo "host tool" >&6; }
19520 else
19521 # We need a cross tool
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19523 $as_echo "pre-installed" >&6; }
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19528 $as_echo_n "checking where to find the target objdump... " >&6; }
19529 if test "x${build}" != "x${host}" ; then
19530 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19531 # We already found the complete path
19532 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19534 $as_echo "pre-installed in $ac_dir" >&6; }
19535 else
19536 # Canadian cross, just use what we found
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19538 $as_echo "pre-installed" >&6; }
19540 else
19541 ok=yes
19542 case " ${configdirs} " in
19543 *" binutils "*) ;;
19544 *) ok=no ;;
19545 esac
19547 if test $ok = yes; then
19548 # An in-tree tool is available and we can use it
19549 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19551 $as_echo "just compiled" >&6; }
19552 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19553 # We already found the complete path
19554 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19556 $as_echo "pre-installed in $ac_dir" >&6; }
19557 elif test "x$target" = "x$host"; then
19558 # We can use an host tool
19559 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19561 $as_echo "host tool" >&6; }
19562 else
19563 # We need a cross tool
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19565 $as_echo "pre-installed" >&6; }
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19570 $as_echo_n "checking where to find the target otool... " >&6; }
19571 if test "x${build}" != "x${host}" ; then
19572 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19573 # We already found the complete path
19574 ac_dir=`dirname $OTOOL_FOR_TARGET`
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19576 $as_echo "pre-installed in $ac_dir" >&6; }
19577 else
19578 # Canadian cross, just use what we found
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19580 $as_echo "pre-installed" >&6; }
19582 else
19583 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19584 # We already found the complete path
19585 ac_dir=`dirname $OTOOL_FOR_TARGET`
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19587 $as_echo "pre-installed in $ac_dir" >&6; }
19588 elif test "x$target" = "x$host"; then
19589 # We can use an host tool
19590 OTOOL_FOR_TARGET='$(OTOOL)'
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19592 $as_echo "host tool" >&6; }
19593 else
19594 # We need a cross tool
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19596 $as_echo "pre-installed" >&6; }
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19601 $as_echo_n "checking where to find the target ranlib... " >&6; }
19602 if test "x${build}" != "x${host}" ; then
19603 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19604 # We already found the complete path
19605 ac_dir=`dirname $RANLIB_FOR_TARGET`
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19607 $as_echo "pre-installed in $ac_dir" >&6; }
19608 else
19609 # Canadian cross, just use what we found
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19611 $as_echo "pre-installed" >&6; }
19613 else
19614 ok=yes
19615 case " ${configdirs} " in
19616 *" binutils "*) ;;
19617 *) ok=no ;;
19618 esac
19620 if test $ok = yes; then
19621 # An in-tree tool is available and we can use it
19622 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19624 $as_echo "just compiled" >&6; }
19625 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19626 # We already found the complete path
19627 ac_dir=`dirname $RANLIB_FOR_TARGET`
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19629 $as_echo "pre-installed in $ac_dir" >&6; }
19630 elif test "x$target" = "x$host"; then
19631 # We can use an host tool
19632 RANLIB_FOR_TARGET='$(RANLIB)'
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19634 $as_echo "host tool" >&6; }
19635 else
19636 # We need a cross tool
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19638 $as_echo "pre-installed" >&6; }
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19643 $as_echo_n "checking where to find the target readelf... " >&6; }
19644 if test "x${build}" != "x${host}" ; then
19645 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19646 # We already found the complete path
19647 ac_dir=`dirname $READELF_FOR_TARGET`
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19649 $as_echo "pre-installed in $ac_dir" >&6; }
19650 else
19651 # Canadian cross, just use what we found
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19653 $as_echo "pre-installed" >&6; }
19655 else
19656 ok=yes
19657 case " ${configdirs} " in
19658 *" binutils "*) ;;
19659 *) ok=no ;;
19660 esac
19662 if test $ok = yes; then
19663 # An in-tree tool is available and we can use it
19664 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19666 $as_echo "just compiled" >&6; }
19667 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19668 # We already found the complete path
19669 ac_dir=`dirname $READELF_FOR_TARGET`
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19671 $as_echo "pre-installed in $ac_dir" >&6; }
19672 elif test "x$target" = "x$host"; then
19673 # We can use an host tool
19674 READELF_FOR_TARGET='$(READELF)'
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19676 $as_echo "host tool" >&6; }
19677 else
19678 # We need a cross tool
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19680 $as_echo "pre-installed" >&6; }
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19685 $as_echo_n "checking where to find the target strip... " >&6; }
19686 if test "x${build}" != "x${host}" ; then
19687 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19688 # We already found the complete path
19689 ac_dir=`dirname $STRIP_FOR_TARGET`
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19691 $as_echo "pre-installed in $ac_dir" >&6; }
19692 else
19693 # Canadian cross, just use what we found
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19695 $as_echo "pre-installed" >&6; }
19697 else
19698 ok=yes
19699 case " ${configdirs} " in
19700 *" binutils "*) ;;
19701 *) ok=no ;;
19702 esac
19704 if test $ok = yes; then
19705 # An in-tree tool is available and we can use it
19706 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19708 $as_echo "just compiled" >&6; }
19709 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19710 # We already found the complete path
19711 ac_dir=`dirname $STRIP_FOR_TARGET`
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19713 $as_echo "pre-installed in $ac_dir" >&6; }
19714 elif test "x$target" = "x$host"; then
19715 # We can use an host tool
19716 STRIP_FOR_TARGET='$(STRIP)'
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19718 $as_echo "host tool" >&6; }
19719 else
19720 # We need a cross tool
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19722 $as_echo "pre-installed" >&6; }
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19727 $as_echo_n "checking where to find the target windres... " >&6; }
19728 if test "x${build}" != "x${host}" ; then
19729 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19730 # We already found the complete path
19731 ac_dir=`dirname $WINDRES_FOR_TARGET`
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19733 $as_echo "pre-installed in $ac_dir" >&6; }
19734 else
19735 # Canadian cross, just use what we found
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19737 $as_echo "pre-installed" >&6; }
19739 else
19740 ok=yes
19741 case " ${configdirs} " in
19742 *" binutils "*) ;;
19743 *) ok=no ;;
19744 esac
19746 if test $ok = yes; then
19747 # An in-tree tool is available and we can use it
19748 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19750 $as_echo "just compiled" >&6; }
19751 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19752 # We already found the complete path
19753 ac_dir=`dirname $WINDRES_FOR_TARGET`
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19755 $as_echo "pre-installed in $ac_dir" >&6; }
19756 elif test "x$target" = "x$host"; then
19757 # We can use an host tool
19758 WINDRES_FOR_TARGET='$(WINDRES)'
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19760 $as_echo "host tool" >&6; }
19761 else
19762 # We need a cross tool
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19764 $as_echo "pre-installed" >&6; }
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19769 $as_echo_n "checking where to find the target windmc... " >&6; }
19770 if test "x${build}" != "x${host}" ; then
19771 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19772 # We already found the complete path
19773 ac_dir=`dirname $WINDMC_FOR_TARGET`
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19775 $as_echo "pre-installed in $ac_dir" >&6; }
19776 else
19777 # Canadian cross, just use what we found
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19779 $as_echo "pre-installed" >&6; }
19781 else
19782 ok=yes
19783 case " ${configdirs} " in
19784 *" binutils "*) ;;
19785 *) ok=no ;;
19786 esac
19788 if test $ok = yes; then
19789 # An in-tree tool is available and we can use it
19790 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19792 $as_echo "just compiled" >&6; }
19793 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19794 # We already found the complete path
19795 ac_dir=`dirname $WINDMC_FOR_TARGET`
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19797 $as_echo "pre-installed in $ac_dir" >&6; }
19798 elif test "x$target" = "x$host"; then
19799 # We can use an host tool
19800 WINDMC_FOR_TARGET='$(WINDMC)'
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19802 $as_echo "host tool" >&6; }
19803 else
19804 # We need a cross tool
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19806 $as_echo "pre-installed" >&6; }
19814 # Certain tools may need extra flags.
19815 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19816 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19817 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19819 # When building target libraries, except in a Canadian cross, we use
19820 # the same toolchain as the compiler we just built.
19821 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19822 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19823 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19824 if test $host = $build; then
19825 case " $configdirs " in
19826 *" gcc "*)
19827 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19828 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19829 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19831 esac
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19839 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19840 # Check whether --enable-maintainer-mode was given.
19841 if test "${enable_maintainer_mode+set}" = set; then :
19842 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19843 else
19844 USE_MAINTAINER_MODE=no
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19848 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19851 if test "$USE_MAINTAINER_MODE" = yes; then
19852 MAINTAINER_MODE_TRUE=
19853 MAINTAINER_MODE_FALSE='#'
19854 else
19855 MAINTAINER_MODE_TRUE='#'
19856 MAINTAINER_MODE_FALSE=
19858 MAINT=$MAINTAINER_MODE_TRUE
19860 # ---------------------
19861 # GCC bootstrap support
19862 # ---------------------
19864 # Stage specific cflags for build.
19865 stage1_cflags="-g"
19866 case $build in
19867 vax-*-*)
19868 case ${GCC} in
19869 yes) stage1_cflags="-g -Wa,-J" ;;
19870 *) stage1_cflags="-g -J" ;;
19871 esac ;;
19872 esac
19876 # Enable --enable-checking in stage1 of the compiler.
19877 # Check whether --enable-stage1-checking was given.
19878 if test "${enable_stage1_checking+set}" = set; then :
19879 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19880 else
19881 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
19882 # For --disable-checking or implicit --enable-checking=release, avoid
19883 # setting --enable-checking=gc in the default stage1 checking for LTO
19884 # bootstraps. See PR62077.
19885 case $BUILD_CONFIG in
19886 *lto*)
19887 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19889 stage1_checking=--enable-checking=yes,types;;
19890 esac
19891 if test "x$enable_checking" = x && \
19892 test -d ${srcdir}/gcc && \
19893 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19894 stage1_checking=--enable-checking=yes,types,extra
19896 else
19897 stage1_checking=--enable-checking=$enable_checking,types
19903 # Enable -Werror in bootstrap stage2 and later.
19904 # Check whether --enable-werror was given.
19905 if test "${enable_werror+set}" = set; then :
19906 enableval=$enable_werror;
19907 case ${enable_werror} in
19908 yes) stage2_werror_flag="--enable-werror-always" ;;
19909 *) stage2_werror_flag="" ;;
19910 esac
19912 else
19914 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19915 case $BUILD_CONFIG in
19916 bootstrap-debug)
19917 stage2_werror_flag="--enable-werror-always" ;;
19919 stage2_werror_flag="--enable-werror-always" ;;
19920 esac
19928 # Specify what files to not compare during bootstrap.
19930 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
19931 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
19932 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
19933 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
19934 case "$target" in
19935 hppa*64*-*-hpux*) ;;
19936 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
19937 esac
19940 ac_config_files="$ac_config_files Makefile"
19942 cat >confcache <<\_ACEOF
19943 # This file is a shell script that caches the results of configure
19944 # tests run on this system so they can be shared between configure
19945 # scripts and configure runs, see configure's option --config-cache.
19946 # It is not useful on other systems. If it contains results you don't
19947 # want to keep, you may remove or edit it.
19949 # config.status only pays attention to the cache file if you give it
19950 # the --recheck option to rerun configure.
19952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19954 # following values.
19956 _ACEOF
19958 # The following way of writing the cache mishandles newlines in values,
19959 # but we know of no workaround that is simple, portable, and efficient.
19960 # So, we kill variables containing newlines.
19961 # Ultrix sh set writes to stderr and can't be redirected directly,
19962 # and sets the high bit in the cache file unless we assign to the vars.
19964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19965 eval ac_val=\$$ac_var
19966 case $ac_val in #(
19967 *${as_nl}*)
19968 case $ac_var in #(
19969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19971 esac
19972 case $ac_var in #(
19973 _ | IFS | as_nl) ;; #(
19974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19975 *) { eval $ac_var=; unset $ac_var;} ;;
19976 esac ;;
19977 esac
19978 done
19980 (set) 2>&1 |
19981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19982 *${as_nl}ac_space=\ *)
19983 # `set' does not quote correctly, so add quotes: double-quote
19984 # substitution turns \\\\ into \\, and sed turns \\ into \.
19985 sed -n \
19986 "s/'/'\\\\''/g;
19987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19988 ;; #(
19990 # `set' quotes correctly as required by POSIX, so do not add quotes.
19991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19993 esac |
19994 sort
19996 sed '
19997 /^ac_cv_env_/b end
19998 t clear
19999 :clear
20000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20001 t end
20002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20003 :end' >>confcache
20004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20005 if test -w "$cache_file"; then
20006 if test "x$cache_file" != "x/dev/null"; then
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20008 $as_echo "$as_me: updating cache $cache_file" >&6;}
20009 if test ! -f "$cache_file" || test -h "$cache_file"; then
20010 cat confcache >"$cache_file"
20011 else
20012 case $cache_file in #(
20013 */* | ?:*)
20014 mv -f confcache "$cache_file"$$ &&
20015 mv -f "$cache_file"$$ "$cache_file" ;; #(
20017 mv -f confcache "$cache_file" ;;
20018 esac
20021 else
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20023 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20026 rm -f confcache
20028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20029 # Let make expand exec_prefix.
20030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20032 # Transform confdefs.h into DEFS.
20033 # Protect against shell expansion while executing Makefile rules.
20034 # Protect against Makefile macro expansion.
20036 # If the first sed substitution is executed (which looks for macros that
20037 # take arguments), then branch to the quote section. Otherwise,
20038 # look for a macro that doesn't take arguments.
20039 ac_script='
20040 :mline
20041 /\\$/{
20043 s,\\\n,,
20044 b mline
20046 t clear
20047 :clear
20048 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20049 t quote
20050 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20051 t quote
20052 b any
20053 :quote
20054 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20055 s/\[/\\&/g
20056 s/\]/\\&/g
20057 s/\$/$$/g
20059 :any
20062 s/^\n//
20063 s/\n/ /g
20067 DEFS=`sed -n "$ac_script" confdefs.h`
20070 ac_libobjs=
20071 ac_ltlibobjs=
20073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20074 # 1. Remove the extension, and $U if already installed.
20075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20076 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20078 # will be set to the directory where LIBOBJS objects are built.
20079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20081 done
20082 LIBOBJS=$ac_libobjs
20084 LTLIBOBJS=$ac_ltlibobjs
20088 : "${CONFIG_STATUS=./config.status}"
20089 ac_write_fail=0
20090 ac_clean_files_save=$ac_clean_files
20091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20093 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20094 as_write_fail=0
20095 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20096 #! $SHELL
20097 # Generated by $as_me.
20098 # Run this file to recreate the current configuration.
20099 # Compiler output produced by configure, useful for debugging
20100 # configure, is in config.log if it exists.
20102 debug=false
20103 ac_cs_recheck=false
20104 ac_cs_silent=false
20106 SHELL=\${CONFIG_SHELL-$SHELL}
20107 export SHELL
20108 _ASEOF
20109 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20110 ## -------------------- ##
20111 ## M4sh Initialization. ##
20112 ## -------------------- ##
20114 # Be more Bourne compatible
20115 DUALCASE=1; export DUALCASE # for MKS sh
20116 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20117 emulate sh
20118 NULLCMD=:
20119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20120 # is contrary to our usage. Disable this feature.
20121 alias -g '${1+"$@"}'='"$@"'
20122 setopt NO_GLOB_SUBST
20123 else
20124 case `(set -o) 2>/dev/null` in #(
20125 *posix*) :
20126 set -o posix ;; #(
20127 *) :
20129 esac
20133 as_nl='
20135 export as_nl
20136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20140 # Prefer a ksh shell builtin over an external printf program on Solaris,
20141 # but without wasting forks for bash or zsh.
20142 if test -z "$BASH_VERSION$ZSH_VERSION" \
20143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20144 as_echo='print -r --'
20145 as_echo_n='print -rn --'
20146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20147 as_echo='printf %s\n'
20148 as_echo_n='printf %s'
20149 else
20150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20152 as_echo_n='/usr/ucb/echo -n'
20153 else
20154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20155 as_echo_n_body='eval
20156 arg=$1;
20157 case $arg in #(
20158 *"$as_nl"*)
20159 expr "X$arg" : "X\\(.*\\)$as_nl";
20160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20161 esac;
20162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20164 export as_echo_n_body
20165 as_echo_n='sh -c $as_echo_n_body as_echo'
20167 export as_echo_body
20168 as_echo='sh -c $as_echo_body as_echo'
20171 # The user is always right.
20172 if test "${PATH_SEPARATOR+set}" != set; then
20173 PATH_SEPARATOR=:
20174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20176 PATH_SEPARATOR=';'
20181 # IFS
20182 # We need space, tab and new line, in precisely that order. Quoting is
20183 # there to prevent editors from complaining about space-tab.
20184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20185 # splitting by setting IFS to empty value.)
20186 IFS=" "" $as_nl"
20188 # Find who we are. Look in the path if we contain no directory separator.
20189 as_myself=
20190 case $0 in #((
20191 *[\\/]* ) as_myself=$0 ;;
20192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20193 for as_dir in $PATH
20195 IFS=$as_save_IFS
20196 test -z "$as_dir" && as_dir=.
20197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20198 done
20199 IFS=$as_save_IFS
20202 esac
20203 # We did not find ourselves, most probably we were run as `sh COMMAND'
20204 # in which case we are not to be found in the path.
20205 if test "x$as_myself" = x; then
20206 as_myself=$0
20208 if test ! -f "$as_myself"; then
20209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20210 exit 1
20213 # Unset variables that we do not need and which cause bugs (e.g. in
20214 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20215 # suppresses any "Segmentation fault" message there. '((' could
20216 # trigger a bug in pdksh 5.2.14.
20217 for as_var in BASH_ENV ENV MAIL MAILPATH
20218 do eval test x\${$as_var+set} = xset \
20219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20220 done
20221 PS1='$ '
20222 PS2='> '
20223 PS4='+ '
20225 # NLS nuisances.
20226 LC_ALL=C
20227 export LC_ALL
20228 LANGUAGE=C
20229 export LANGUAGE
20231 # CDPATH.
20232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20235 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20236 # ----------------------------------------
20237 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20238 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20239 # script with STATUS, using 1 if that was 0.
20240 as_fn_error ()
20242 as_status=$1; test $as_status -eq 0 && as_status=1
20243 if test "$4"; then
20244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20247 $as_echo "$as_me: error: $2" >&2
20248 as_fn_exit $as_status
20249 } # as_fn_error
20252 # as_fn_set_status STATUS
20253 # -----------------------
20254 # Set $? to STATUS, without forking.
20255 as_fn_set_status ()
20257 return $1
20258 } # as_fn_set_status
20260 # as_fn_exit STATUS
20261 # -----------------
20262 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20263 as_fn_exit ()
20265 set +e
20266 as_fn_set_status $1
20267 exit $1
20268 } # as_fn_exit
20270 # as_fn_unset VAR
20271 # ---------------
20272 # Portably unset VAR.
20273 as_fn_unset ()
20275 { eval $1=; unset $1;}
20277 as_unset=as_fn_unset
20278 # as_fn_append VAR VALUE
20279 # ----------------------
20280 # Append the text in VALUE to the end of the definition contained in VAR. Take
20281 # advantage of any shell optimizations that allow amortized linear growth over
20282 # repeated appends, instead of the typical quadratic growth present in naive
20283 # implementations.
20284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20285 eval 'as_fn_append ()
20287 eval $1+=\$2
20289 else
20290 as_fn_append ()
20292 eval $1=\$$1\$2
20294 fi # as_fn_append
20296 # as_fn_arith ARG...
20297 # ------------------
20298 # Perform arithmetic evaluation on the ARGs, and store the result in the
20299 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20300 # must be portable across $(()) and expr.
20301 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20302 eval 'as_fn_arith ()
20304 as_val=$(( $* ))
20306 else
20307 as_fn_arith ()
20309 as_val=`expr "$@" || test $? -eq 1`
20311 fi # as_fn_arith
20314 if expr a : '\(a\)' >/dev/null 2>&1 &&
20315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20316 as_expr=expr
20317 else
20318 as_expr=false
20321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20322 as_basename=basename
20323 else
20324 as_basename=false
20327 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20328 as_dirname=dirname
20329 else
20330 as_dirname=false
20333 as_me=`$as_basename -- "$0" ||
20334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20335 X"$0" : 'X\(//\)$' \| \
20336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20337 $as_echo X/"$0" |
20338 sed '/^.*\/\([^/][^/]*\)\/*$/{
20339 s//\1/
20342 /^X\/\(\/\/\)$/{
20343 s//\1/
20346 /^X\/\(\/\).*/{
20347 s//\1/
20350 s/.*/./; q'`
20352 # Avoid depending upon Character Ranges.
20353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20356 as_cr_digits='0123456789'
20357 as_cr_alnum=$as_cr_Letters$as_cr_digits
20359 ECHO_C= ECHO_N= ECHO_T=
20360 case `echo -n x` in #(((((
20361 -n*)
20362 case `echo 'xy\c'` in
20363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20364 xy) ECHO_C='\c';;
20365 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20366 ECHO_T=' ';;
20367 esac;;
20369 ECHO_N='-n';;
20370 esac
20372 rm -f conf$$ conf$$.exe conf$$.file
20373 if test -d conf$$.dir; then
20374 rm -f conf$$.dir/conf$$.file
20375 else
20376 rm -f conf$$.dir
20377 mkdir conf$$.dir 2>/dev/null
20379 if (echo >conf$$.file) 2>/dev/null; then
20380 if ln -s conf$$.file conf$$ 2>/dev/null; then
20381 as_ln_s='ln -s'
20382 # ... but there are two gotchas:
20383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20385 # In both cases, we have to default to `cp -pR'.
20386 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20387 as_ln_s='cp -pR'
20388 elif ln conf$$.file conf$$ 2>/dev/null; then
20389 as_ln_s=ln
20390 else
20391 as_ln_s='cp -pR'
20393 else
20394 as_ln_s='cp -pR'
20396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20397 rmdir conf$$.dir 2>/dev/null
20400 # as_fn_mkdir_p
20401 # -------------
20402 # Create "$as_dir" as a directory, including parents if necessary.
20403 as_fn_mkdir_p ()
20406 case $as_dir in #(
20407 -*) as_dir=./$as_dir;;
20408 esac
20409 test -d "$as_dir" || eval $as_mkdir_p || {
20410 as_dirs=
20411 while :; do
20412 case $as_dir in #(
20413 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20414 *) as_qdir=$as_dir;;
20415 esac
20416 as_dirs="'$as_qdir' $as_dirs"
20417 as_dir=`$as_dirname -- "$as_dir" ||
20418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20419 X"$as_dir" : 'X\(//\)[^/]' \| \
20420 X"$as_dir" : 'X\(//\)$' \| \
20421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20422 $as_echo X"$as_dir" |
20423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20424 s//\1/
20427 /^X\(\/\/\)[^/].*/{
20428 s//\1/
20431 /^X\(\/\/\)$/{
20432 s//\1/
20435 /^X\(\/\).*/{
20436 s//\1/
20439 s/.*/./; q'`
20440 test -d "$as_dir" && break
20441 done
20442 test -z "$as_dirs" || eval "mkdir $as_dirs"
20443 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20446 } # as_fn_mkdir_p
20447 if mkdir -p . 2>/dev/null; then
20448 as_mkdir_p='mkdir -p "$as_dir"'
20449 else
20450 test -d ./-p && rmdir ./-p
20451 as_mkdir_p=false
20455 # as_fn_executable_p FILE
20456 # -----------------------
20457 # Test if FILE is an executable regular file.
20458 as_fn_executable_p ()
20460 test -f "$1" && test -x "$1"
20461 } # as_fn_executable_p
20462 as_test_x='test -x'
20463 as_executable_p=as_fn_executable_p
20465 # Sed expression to map a string onto a valid CPP name.
20466 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20468 # Sed expression to map a string onto a valid variable name.
20469 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20472 exec 6>&1
20473 ## ----------------------------------- ##
20474 ## Main body of $CONFIG_STATUS script. ##
20475 ## ----------------------------------- ##
20476 _ASEOF
20477 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20480 # Save the log message, to keep $0 and so on meaningful, and to
20481 # report actual input values of CONFIG_FILES etc. instead of their
20482 # values after options handling.
20483 ac_log="
20484 This file was extended by $as_me, which was
20485 generated by GNU Autoconf 2.69. Invocation command line was
20487 CONFIG_FILES = $CONFIG_FILES
20488 CONFIG_HEADERS = $CONFIG_HEADERS
20489 CONFIG_LINKS = $CONFIG_LINKS
20490 CONFIG_COMMANDS = $CONFIG_COMMANDS
20491 $ $0 $@
20493 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20496 _ACEOF
20498 case $ac_config_files in *"
20499 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20500 esac
20504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20505 # Files that config.status was made for.
20506 config_files="$ac_config_files"
20508 _ACEOF
20510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20511 ac_cs_usage="\
20512 \`$as_me' instantiates files and other configuration actions
20513 from templates according to the current configuration. Unless the files
20514 and actions are specified as TAGs, all are instantiated by default.
20516 Usage: $0 [OPTION]... [TAG]...
20518 -h, --help print this help, then exit
20519 -V, --version print version number and configuration settings, then exit
20520 --config print configuration, then exit
20521 -q, --quiet, --silent
20522 do not print progress messages
20523 -d, --debug don't remove temporary files
20524 --recheck update $as_me by reconfiguring in the same conditions
20525 --file=FILE[:TEMPLATE]
20526 instantiate the configuration file FILE
20528 Configuration files:
20529 $config_files
20531 Report bugs to the package provider."
20533 _ACEOF
20534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20535 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20536 ac_cs_version="\\
20537 config.status
20538 configured by $0, generated by GNU Autoconf 2.69,
20539 with options \\"\$ac_cs_config\\"
20541 Copyright (C) 2012 Free Software Foundation, Inc.
20542 This config.status script is free software; the Free Software Foundation
20543 gives unlimited permission to copy, distribute and modify it."
20545 ac_pwd='$ac_pwd'
20546 srcdir='$srcdir'
20547 INSTALL='$INSTALL'
20548 AWK='$AWK'
20549 test -n "\$AWK" || AWK=awk
20550 _ACEOF
20552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20553 # The default lists apply if the user does not specify any file.
20554 ac_need_defaults=:
20555 while test $# != 0
20557 case $1 in
20558 --*=?*)
20559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20560 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20561 ac_shift=:
20563 --*=)
20564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20565 ac_optarg=
20566 ac_shift=:
20569 ac_option=$1
20570 ac_optarg=$2
20571 ac_shift=shift
20573 esac
20575 case $ac_option in
20576 # Handling of the options.
20577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20578 ac_cs_recheck=: ;;
20579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20580 $as_echo "$ac_cs_version"; exit ;;
20581 --config | --confi | --conf | --con | --co | --c )
20582 $as_echo "$ac_cs_config"; exit ;;
20583 --debug | --debu | --deb | --de | --d | -d )
20584 debug=: ;;
20585 --file | --fil | --fi | --f )
20586 $ac_shift
20587 case $ac_optarg in
20588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20589 '') as_fn_error $? "missing file argument" ;;
20590 esac
20591 as_fn_append CONFIG_FILES " '$ac_optarg'"
20592 ac_need_defaults=false;;
20593 --he | --h | --help | --hel | -h )
20594 $as_echo "$ac_cs_usage"; exit ;;
20595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20596 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20597 ac_cs_silent=: ;;
20599 # This is an error.
20600 -*) as_fn_error $? "unrecognized option: \`$1'
20601 Try \`$0 --help' for more information." ;;
20603 *) as_fn_append ac_config_targets " $1"
20604 ac_need_defaults=false ;;
20606 esac
20607 shift
20608 done
20610 ac_configure_extra_args=
20612 if $ac_cs_silent; then
20613 exec 6>/dev/null
20614 ac_configure_extra_args="$ac_configure_extra_args --silent"
20617 _ACEOF
20618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20619 if \$ac_cs_recheck; then
20620 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20621 shift
20622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20623 CONFIG_SHELL='$SHELL'
20624 export CONFIG_SHELL
20625 exec "\$@"
20628 _ACEOF
20629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20630 exec 5>>config.log
20632 echo
20633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20634 ## Running $as_me. ##
20635 _ASBOX
20636 $as_echo "$ac_log"
20637 } >&5
20639 _ACEOF
20640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20642 # INIT-COMMANDS
20644 extrasub_build="$extrasub_build"
20645 extrasub_host="$extrasub_host"
20646 extrasub_target="$extrasub_target"
20648 _ACEOF
20650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20652 # Handling of arguments.
20653 for ac_config_target in $ac_config_targets
20655 case $ac_config_target in
20656 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20659 esac
20660 done
20663 # If the user did not use the arguments to specify the items to instantiate,
20664 # then the envvar interface is used. Set only those that are not.
20665 # We use the long form for the default assignment because of an extremely
20666 # bizarre bug on SunOS 4.1.3.
20667 if $ac_need_defaults; then
20668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20671 # Have a temporary directory for convenience. Make it in the build tree
20672 # simply because there is no reason against having it here, and in addition,
20673 # creating and moving files from /tmp can sometimes cause problems.
20674 # Hook for its removal unless debugging.
20675 # Note that there is a small window in which the directory will not be cleaned:
20676 # after its creation but before its name has been assigned to `$tmp'.
20677 $debug ||
20679 tmp= ac_tmp=
20680 trap 'exit_status=$?
20681 : "${ac_tmp:=$tmp}"
20682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20684 trap 'as_fn_exit 1' 1 2 13 15
20686 # Create a (secure) tmp directory for tmp files.
20689 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20690 test -d "$tmp"
20691 } ||
20693 tmp=./conf$$-$RANDOM
20694 (umask 077 && mkdir "$tmp")
20695 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20696 ac_tmp=$tmp
20698 # Set up the scripts for CONFIG_FILES section.
20699 # No need to generate them if there are no CONFIG_FILES.
20700 # This happens for instance with `./config.status config.h'.
20701 if test -n "$CONFIG_FILES"; then
20703 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20704 ac_cs_awk_getline=:
20705 ac_cs_awk_pipe_init=
20706 ac_cs_awk_read_file='
20707 while ((getline aline < (F[key])) > 0)
20708 print(aline)
20709 close(F[key])'
20710 ac_cs_awk_pipe_fini=
20711 else
20712 ac_cs_awk_getline=false
20713 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20714 ac_cs_awk_read_file='
20715 print "|#_!!_#|"
20716 print "cat " F[key] " &&"
20717 '$ac_cs_awk_pipe_init
20718 # The final `:' finishes the AND list.
20719 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20721 ac_cr=`echo X | tr X '\015'`
20722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20723 # But we know of no other shell where ac_cr would be empty at this
20724 # point, so we can use a bashism as a fallback.
20725 if test "x$ac_cr" = x; then
20726 eval ac_cr=\$\'\\r\'
20728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20730 ac_cs_awk_cr='\\r'
20731 else
20732 ac_cs_awk_cr=$ac_cr
20735 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20736 _ACEOF
20738 # Create commands to substitute file output variables.
20740 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20741 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20742 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20743 echo "_ACAWK" &&
20744 echo "_ACEOF"
20745 } >conf$$files.sh &&
20746 . ./conf$$files.sh ||
20747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20748 rm -f conf$$files.sh
20751 echo "cat >conf$$subs.awk <<_ACEOF" &&
20752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20753 echo "_ACEOF"
20754 } >conf$$subs.sh ||
20755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20757 ac_delim='%!_!# '
20758 for ac_last_try in false false false false false :; do
20759 . ./conf$$subs.sh ||
20760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20762 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20763 if test $ac_delim_n = $ac_delim_num; then
20764 break
20765 elif $ac_last_try; then
20766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20767 else
20768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20770 done
20771 rm -f conf$$subs.sh
20773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20774 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20775 _ACEOF
20776 sed -n '
20778 s/^/S["/; s/!.*/"]=/
20781 s/^[^!]*!//
20782 :repl
20783 t repl
20784 s/'"$ac_delim"'$//
20785 t delim
20788 s/\(.\{148\}\)..*/\1/
20789 t more1
20790 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20793 b repl
20794 :more1
20795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20798 s/.\{148\}//
20799 t nl
20800 :delim
20802 s/\(.\{148\}\)..*/\1/
20803 t more2
20804 s/["\\]/\\&/g; s/^/"/; s/$/"/
20807 :more2
20808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20811 s/.\{148\}//
20812 t delim
20813 ' <conf$$subs.awk | sed '
20814 /^[^""]/{
20816 s/\n//
20818 ' >>$CONFIG_STATUS || ac_write_fail=1
20819 rm -f conf$$subs.awk
20820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20821 _ACAWK
20822 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20823 for (key in S) S_is_set[key] = 1
20824 FS = "\a"
20825 \$ac_cs_awk_pipe_init
20828 line = $ 0
20829 nfields = split(line, field, "@")
20830 substed = 0
20831 len = length(field[1])
20832 for (i = 2; i < nfields; i++) {
20833 key = field[i]
20834 keylen = length(key)
20835 if (S_is_set[key]) {
20836 value = S[key]
20837 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20838 len += length(value) + length(field[++i])
20839 substed = 1
20840 } else
20841 len += 1 + keylen
20843 if (nfields == 3 && !substed) {
20844 key = field[2]
20845 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20846 \$ac_cs_awk_read_file
20847 next
20850 print line
20852 \$ac_cs_awk_pipe_fini
20853 _ACAWK
20854 _ACEOF
20855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20858 else
20860 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20861 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20862 _ACEOF
20864 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20865 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20866 # trailing colons and then remove the whole line if VPATH becomes empty
20867 # (actually we leave an empty line to preserve line numbers).
20868 if test "x$srcdir" = x.; then
20869 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20871 s///
20872 s/^/:/
20873 s/[ ]*$/:/
20874 s/:\$(srcdir):/:/g
20875 s/:\${srcdir}:/:/g
20876 s/:@srcdir@:/:/g
20877 s/^:*//
20878 s/:*$//
20880 s/\(=[ ]*\).*/\1/
20882 s/\n//
20883 s/^[^=]*=[ ]*$//
20887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20888 fi # test -n "$CONFIG_FILES"
20891 eval set X " :F $CONFIG_FILES "
20892 shift
20893 for ac_tag
20895 case $ac_tag in
20896 :[FHLC]) ac_mode=$ac_tag; continue;;
20897 esac
20898 case $ac_mode$ac_tag in
20899 :[FHL]*:*);;
20900 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20901 :[FH]-) ac_tag=-:-;;
20902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20903 esac
20904 ac_save_IFS=$IFS
20905 IFS=:
20906 set x $ac_tag
20907 IFS=$ac_save_IFS
20908 shift
20909 ac_file=$1
20910 shift
20912 case $ac_mode in
20913 :L) ac_source=$1;;
20914 :[FH])
20915 ac_file_inputs=
20916 for ac_f
20918 case $ac_f in
20919 -) ac_f="$ac_tmp/stdin";;
20920 *) # Look for the file first in the build tree, then in the source tree
20921 # (if the path is not absolute). The absolute path cannot be DOS-style,
20922 # because $ac_f cannot contain `:'.
20923 test -f "$ac_f" ||
20924 case $ac_f in
20925 [\\/$]*) false;;
20926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20927 esac ||
20928 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20929 esac
20930 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20931 as_fn_append ac_file_inputs " '$ac_f'"
20932 done
20934 # Let's still pretend it is `configure' which instantiates (i.e., don't
20935 # use $as_me), people would be surprised to read:
20936 # /* config.h. Generated by config.status. */
20937 configure_input='Generated from '`
20938 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20939 `' by configure.'
20940 if test x"$ac_file" != x-; then
20941 configure_input="$ac_file. $configure_input"
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20943 $as_echo "$as_me: creating $ac_file" >&6;}
20945 # Neutralize special characters interpreted by sed in replacement strings.
20946 case $configure_input in #(
20947 *\&* | *\|* | *\\* )
20948 ac_sed_conf_input=`$as_echo "$configure_input" |
20949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20950 *) ac_sed_conf_input=$configure_input;;
20951 esac
20953 case $ac_tag in
20954 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20956 esac
20958 esac
20960 ac_dir=`$as_dirname -- "$ac_file" ||
20961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$ac_file" : 'X\(//\)[^/]' \| \
20963 X"$ac_file" : 'X\(//\)$' \| \
20964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20965 $as_echo X"$ac_file" |
20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20967 s//\1/
20970 /^X\(\/\/\)[^/].*/{
20971 s//\1/
20974 /^X\(\/\/\)$/{
20975 s//\1/
20978 /^X\(\/\).*/{
20979 s//\1/
20982 s/.*/./; q'`
20983 as_dir="$ac_dir"; as_fn_mkdir_p
20984 ac_builddir=.
20986 case "$ac_dir" in
20987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20990 # A ".." for each directory in $ac_dir_suffix.
20991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20992 case $ac_top_builddir_sub in
20993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20995 esac ;;
20996 esac
20997 ac_abs_top_builddir=$ac_pwd
20998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20999 # for backward compatibility:
21000 ac_top_builddir=$ac_top_build_prefix
21002 case $srcdir in
21003 .) # We are building in place.
21004 ac_srcdir=.
21005 ac_top_srcdir=$ac_top_builddir_sub
21006 ac_abs_top_srcdir=$ac_pwd ;;
21007 [\\/]* | ?:[\\/]* ) # Absolute name.
21008 ac_srcdir=$srcdir$ac_dir_suffix;
21009 ac_top_srcdir=$srcdir
21010 ac_abs_top_srcdir=$srcdir ;;
21011 *) # Relative name.
21012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21013 ac_top_srcdir=$ac_top_build_prefix$srcdir
21014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21015 esac
21016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21019 case $ac_mode in
21022 # CONFIG_FILE
21025 case $INSTALL in
21026 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21027 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21028 esac
21029 _ACEOF
21031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21032 # If the template does not know about datarootdir, expand it.
21033 # FIXME: This hack should be removed a few years after 2.60.
21034 ac_datarootdir_hack=; ac_datarootdir_seen=
21035 ac_sed_dataroot='
21036 /datarootdir/ {
21040 /@datadir@/p
21041 /@docdir@/p
21042 /@infodir@/p
21043 /@localedir@/p
21044 /@mandir@/p'
21045 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21046 *datarootdir*) ac_datarootdir_seen=yes;;
21047 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21049 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21050 _ACEOF
21051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21052 ac_datarootdir_hack='
21053 s&@datadir@&$datadir&g
21054 s&@docdir@&$docdir&g
21055 s&@infodir@&$infodir&g
21056 s&@localedir@&$localedir&g
21057 s&@mandir@&$mandir&g
21058 s&\\\${datarootdir}&$datarootdir&g' ;;
21059 esac
21060 _ACEOF
21062 # Neutralize VPATH when `$srcdir' = `.'.
21063 # Shell code in configure.ac might set extrasub.
21064 # FIXME: do we really want to maintain this feature?
21065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21066 ac_sed_extra="$ac_vpsub
21067 $extrasub
21068 _ACEOF
21069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21072 s|@configure_input@|$ac_sed_conf_input|;t t
21073 s&@top_builddir@&$ac_top_builddir_sub&;t t
21074 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21075 s&@srcdir@&$ac_srcdir&;t t
21076 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21077 s&@top_srcdir@&$ac_top_srcdir&;t t
21078 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21079 s&@builddir@&$ac_builddir&;t t
21080 s&@abs_builddir@&$ac_abs_builddir&;t t
21081 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21082 s&@INSTALL@&$ac_INSTALL&;t t
21083 $ac_datarootdir_hack
21085 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21086 if $ac_cs_awk_getline; then
21087 $AWK -f "$ac_tmp/subs.awk"
21088 else
21089 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21090 fi \
21091 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21093 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21094 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21096 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21098 which seems to be undefined. Please make sure it is defined" >&5
21099 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21100 which seems to be undefined. Please make sure it is defined" >&2;}
21102 rm -f "$ac_tmp/stdin"
21103 case $ac_file in
21104 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21105 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21106 esac \
21107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21112 esac
21115 case $ac_file$ac_mode in
21116 "Makefile":F) sed "$extrasub_build" Makefile |
21117 sed "$extrasub_host" |
21118 sed "$extrasub_target" > mf$$
21119 mv -f mf$$ Makefile ;;
21121 esac
21122 done # for ac_tag
21125 as_fn_exit 0
21126 _ACEOF
21127 ac_clean_files=$ac_clean_files_save
21129 test $ac_write_fail = 0 ||
21130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21133 # configure is writing to config.log, and then calls config.status.
21134 # config.status does its own redirection, appending to config.log.
21135 # Unfortunately, on DOS this fails, as config.log is still kept open
21136 # by configure, so config.status won't be able to write to it; its
21137 # output is simply discarded. So we exec the FD to /dev/null,
21138 # effectively closing config.log, so it can be properly (re)opened and
21139 # appended to by config.status. When coming back to configure, we
21140 # need to make the FD available again.
21141 if test "$no_create" != yes; then
21142 ac_cs_success=:
21143 ac_config_status_args=
21144 test "$silent" = yes &&
21145 ac_config_status_args="$ac_config_status_args --quiet"
21146 exec 5>/dev/null
21147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21148 exec 5>>config.log
21149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21150 # would make configure fail if this is the last instruction.
21151 $ac_cs_success || as_fn_exit 1
21153 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21155 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}