Automatic date update in version.in
[binutils-gdb.git] / configure
blobbbfb59795468c0fbc46056f05ecc41f6ac131113
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_libdiagnostics
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_libdiagnostics
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-libdiagnostics build libdiagnostics shared library
1584 --enable-stage1-languages[=all]
1585 choose additional languages to build during stage1.
1586 Mostly useful for compiler development
1587 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1588 Objective-C runtime
1589 --enable-vtable-verify Enable vtable verification feature
1590 --enable-serial-[{host,target,build}-]configure
1591 force sequential configuration of sub-packages for
1592 the host, target or build machine, or all
1593 sub-packages
1594 --enable-maintainer-mode
1595 enable make rules and dependencies not useful (and
1596 sometimes confusing) to the casual installer
1597 --enable-stage1-checking[=all]
1598 choose additional checking for stage1 of the
1599 compiler
1600 --enable-werror enable -Werror in bootstrap stage2 and later
1602 Optional Packages:
1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1605 --with-build-libsubdir=DIR Directory where to find libraries for build system
1606 --with-system-zlib use installed libz
1607 --with-zstd Support zstd compressed debug sections
1608 (default=auto)
1609 --with-mpc=PATH specify prefix directory for installed MPC package.
1610 Equivalent to --with-mpc-include=PATH/include plus
1611 --with-mpc-lib=PATH/lib
1612 --with-mpc-include=PATH specify directory for installed MPC include files
1613 --with-mpc-lib=PATH specify directory for the installed MPC library
1614 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1615 Equivalent to --with-mpfr-include=PATH/include plus
1616 --with-mpfr-lib=PATH/lib
1617 --with-mpfr-include=PATH
1618 specify directory for installed MPFR include files
1619 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1620 --with-gmp=PATH specify prefix directory for the installed GMP
1621 package. Equivalent to
1622 --with-gmp-include=PATH/include plus
1623 --with-gmp-lib=PATH/lib
1624 --with-gmp-include=PATH specify directory for installed GMP include files
1625 --with-gmp-lib=PATH specify directory for the installed GMP library
1626 --with-stage1-libs=LIBS libraries for stage1
1627 --with-static-standard-libraries
1628 use -static-libstdc++ and -static-libgcc
1629 (default=auto)
1630 --with-stage1-ldflags=FLAGS
1631 linker flags for stage1
1632 --with-boot-libs=LIBS libraries for stage2 and later
1633 --with-boot-ldflags=FLAGS
1634 linker flags for stage2 and later
1635 --with-isl=PATH Specify prefix directory for the installed isl
1636 package. Equivalent to
1637 --with-isl-include=PATH/include plus
1638 --with-isl-lib=PATH/lib
1639 --with-isl-include=PATH Specify directory for installed isl include files
1640 --with-isl-lib=PATH Specify the directory for the installed isl library
1641 --with-target-bdw-gc=PATHLIST
1642 specify prefix directory for installed bdw-gc
1643 package. Equivalent to
1644 --with-target-bdw-gc-include=PATH/include plus
1645 --with-target-bdw-gc-lib=PATH/lib
1646 --with-target-bdw-gc-include=PATHLIST
1647 specify directories for installed bdw-gc include
1648 files
1649 --with-target-bdw-gc-lib=PATHLIST
1650 specify directories for installed bdw-gc library
1651 --with-gcc-major-version-only
1652 use only GCC major number in filesystem paths
1653 --with-build-sysroot=SYSROOT
1654 use sysroot as the system root during the build
1655 --with-debug-prefix-map='A=B C=D ...'
1656 map A to B, C to D ... in debug information
1657 --with-build-config='NAME NAME2...'
1658 use config/NAME.mk build configuration
1659 --with-build-time-tools=PATH
1660 use given path to find target tools during the build
1662 Some influential environment variables:
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1666 nonstandard directory <lib dir>
1667 LIBS libraries to pass to the linker, e.g. -l<library>
1668 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1669 you have headers in a nonstandard directory <include dir>
1670 CXX C++ compiler command
1671 CXXFLAGS C++ compiler flags
1672 build_configargs
1673 additional configure arguments for build directories
1674 host_configargs
1675 additional configure arguments for host directories
1676 target_configargs
1677 additional configure arguments for target directories
1678 AR AR for the host
1679 AS AS for the host
1680 DLLTOOL DLLTOOL for the host
1681 DSYMUTIL DSYMUTIL for the host
1682 LD LD for the host
1683 LIPO LIPO for the host
1684 NM NM for the host
1685 RANLIB RANLIB for the host
1686 STRIP STRIP for the host
1687 WINDRES WINDRES for the host
1688 WINDMC WINDMC for the host
1689 OBJCOPY OBJCOPY for the host
1690 OBJDUMP OBJDUMP for the host
1691 OTOOL OTOOL for the host
1692 READELF READELF for the host
1693 CC_FOR_TARGET
1694 CC for the target
1695 CXX_FOR_TARGET
1696 CXX for the target
1697 GCC_FOR_TARGET
1698 GCC for the target
1699 GFORTRAN_FOR_TARGET
1700 GFORTRAN for the target
1701 GOC_FOR_TARGET
1702 GOC for the target
1703 GDC_FOR_TARGET
1704 GDC for the target
1705 GM2_FOR_TARGET
1706 GM2 for the target
1707 AR_FOR_TARGET
1708 AR for the target
1709 AS_FOR_TARGET
1710 AS for the target
1711 DLLTOOL_FOR_TARGET
1712 DLLTOOL for the target
1713 DSYMUTIL_FOR_TARGET
1714 DSYMUTIL for the target
1715 LD_FOR_TARGET
1716 LD for the target
1717 LIPO_FOR_TARGET
1718 LIPO for the target
1719 NM_FOR_TARGET
1720 NM for the target
1721 OBJCOPY_FOR_TARGET
1722 OBJCOPY for the target
1723 OBJDUMP_FOR_TARGET
1724 OBJDUMP for the target
1725 OTOOL_FOR_TARGET
1726 OTOOL for the target
1727 RANLIB_FOR_TARGET
1728 RANLIB for the target
1729 READELF_FOR_TARGET
1730 READELF for the target
1731 STRIP_FOR_TARGET
1732 STRIP for the target
1733 WINDRES_FOR_TARGET
1734 WINDRES for the target
1735 WINDMC_FOR_TARGET
1736 WINDMC for the target
1738 Use these variables to override the choices made by `configure' or to help
1739 it to find libraries and programs with nonstandard names/locations.
1741 Report bugs to the package provider.
1742 _ACEOF
1743 ac_status=$?
1746 if test "$ac_init_help" = "recursive"; then
1747 # If there are subdirs, report their specific --help.
1748 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1749 test -d "$ac_dir" ||
1750 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1751 continue
1752 ac_builddir=.
1754 case "$ac_dir" in
1755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1758 # A ".." for each directory in $ac_dir_suffix.
1759 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1760 case $ac_top_builddir_sub in
1761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1763 esac ;;
1764 esac
1765 ac_abs_top_builddir=$ac_pwd
1766 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1767 # for backward compatibility:
1768 ac_top_builddir=$ac_top_build_prefix
1770 case $srcdir in
1771 .) # We are building in place.
1772 ac_srcdir=.
1773 ac_top_srcdir=$ac_top_builddir_sub
1774 ac_abs_top_srcdir=$ac_pwd ;;
1775 [\\/]* | ?:[\\/]* ) # Absolute name.
1776 ac_srcdir=$srcdir$ac_dir_suffix;
1777 ac_top_srcdir=$srcdir
1778 ac_abs_top_srcdir=$srcdir ;;
1779 *) # Relative name.
1780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1781 ac_top_srcdir=$ac_top_build_prefix$srcdir
1782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1783 esac
1784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1786 cd "$ac_dir" || { ac_status=$?; continue; }
1787 # Check for guested configure.
1788 if test -f "$ac_srcdir/configure.gnu"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1791 elif test -f "$ac_srcdir/configure"; then
1792 echo &&
1793 $SHELL "$ac_srcdir/configure" --help=recursive
1794 else
1795 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1796 fi || ac_status=$?
1797 cd "$ac_pwd" || { ac_status=$?; break; }
1798 done
1801 test -n "$ac_init_help" && exit $ac_status
1802 if $ac_init_version; then
1803 cat <<\_ACEOF
1804 configure
1805 generated by GNU Autoconf 2.69
1807 Copyright (C) 2012 Free Software Foundation, Inc.
1808 This configure script is free software; the Free Software Foundation
1809 gives unlimited permission to copy, distribute and modify it.
1810 _ACEOF
1811 exit
1814 ## ------------------------ ##
1815 ## Autoconf initialization. ##
1816 ## ------------------------ ##
1818 # ac_fn_c_try_compile LINENO
1819 # --------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 ac_retval=1
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_compile
1856 # ac_fn_cxx_try_compile LINENO
1857 # ----------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_compile ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_cxx_try_compile
1894 # ac_fn_cxx_try_link LINENO
1895 # -------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_cxx_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_cxx_try_link
1940 # ac_fn_c_try_link LINENO
1941 # -----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_link ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 rm -f conftest.$ac_objext conftest$ac_exeext
1947 if { { ac_try="$ac_link"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>conftest.err
1955 ac_status=$?
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && {
1963 test -z "$ac_c_werror_flag" ||
1964 test ! -s conftest.err
1965 } && test -s conftest$ac_exeext && {
1966 test "$cross_compiling" = yes ||
1967 test -x conftest$ac_exeext
1968 }; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=1
1976 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1977 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1978 # interfere with the next link command; also delete a directory that is
1979 # left behind by Apple's compiler. We do this before executing the actions.
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_c_try_link
1985 cat >config.log <<_ACEOF
1986 This file contains any messages produced by compilers while
1987 running configure, to aid debugging if configure makes a mistake.
1989 It was created by $as_me, which was
1990 generated by GNU Autoconf 2.69. Invocation command line was
1992 $ $0 $@
1994 _ACEOF
1995 exec 5>>config.log
1997 cat <<_ASUNAME
1998 ## --------- ##
1999 ## Platform. ##
2000 ## --------- ##
2002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2014 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019 _ASUNAME
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 $as_echo "PATH: $as_dir"
2027 done
2028 IFS=$as_save_IFS
2030 } >&5
2032 cat >&5 <<_ACEOF
2035 ## ----------- ##
2036 ## Core tests. ##
2037 ## ----------- ##
2039 _ACEOF
2042 # Keep a trace of the command line.
2043 # Strip out --no-create and --no-recursion so they do not pile up.
2044 # Strip out --silent because we don't want to record it for future runs.
2045 # Also quote any args containing shell meta-characters.
2046 # Make two passes to allow for proper duplicate-argument suppression.
2047 ac_configure_args=
2048 ac_configure_args0=
2049 ac_configure_args1=
2050 ac_must_keep_next=false
2051 for ac_pass in 1 2
2053 for ac_arg
2055 case $ac_arg in
2056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2058 | -silent | --silent | --silen | --sile | --sil)
2059 continue ;;
2060 *\'*)
2061 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 esac
2063 case $ac_pass in
2064 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 as_fn_append ac_configure_args1 " '$ac_arg'"
2067 if test $ac_must_keep_next = true; then
2068 ac_must_keep_next=false # Got value, back to normal.
2069 else
2070 case $ac_arg in
2071 *=* | --config-cache | -C | -disable-* | --disable-* \
2072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2074 | -with-* | --with-* | -without-* | --without-* | --x)
2075 case "$ac_configure_args0 " in
2076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2077 esac
2079 -* ) ac_must_keep_next=true ;;
2080 esac
2082 as_fn_append ac_configure_args " '$ac_arg'"
2084 esac
2085 done
2086 done
2087 { ac_configure_args0=; unset ac_configure_args0;}
2088 { ac_configure_args1=; unset ac_configure_args1;}
2090 # When interrupted or exit'd, cleanup temporary files, and complete
2091 # config.log. We remove comments because anyway the quotes in there
2092 # would cause problems or look ugly.
2093 # WARNING: Use '\'' to represent an apostrophe within the trap.
2094 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095 trap 'exit_status=$?
2096 # Save into config.log some information that might help in debugging.
2098 echo
2100 $as_echo "## ---------------- ##
2101 ## Cache variables. ##
2102 ## ---------------- ##"
2103 echo
2104 # The following way of writing the cache mishandles newlines in values,
2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107 eval ac_val=\$$ac_var
2108 case $ac_val in #(
2109 *${as_nl}*)
2110 case $ac_var in #(
2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113 esac
2114 case $ac_var in #(
2115 _ | IFS | as_nl) ;; #(
2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117 *) { eval $ac_var=; unset $ac_var;} ;;
2118 esac ;;
2119 esac
2120 done
2121 (set) 2>&1 |
2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123 *${as_nl}ac_space=\ *)
2124 sed -n \
2125 "s/'\''/'\''\\\\'\'''\''/g;
2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127 ;; #(
2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 esac |
2132 sort
2134 echo
2136 $as_echo "## ----------------- ##
2137 ## Output variables. ##
2138 ## ----------------- ##"
2139 echo
2140 for ac_var in $ac_subst_vars
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2150 if test -n "$ac_subst_files"; then
2151 $as_echo "## ------------------- ##
2152 ## File substitutions. ##
2153 ## ------------------- ##"
2154 echo
2155 for ac_var in $ac_subst_files
2157 eval ac_val=\$$ac_var
2158 case $ac_val in
2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 esac
2161 $as_echo "$ac_var='\''$ac_val'\''"
2162 done | sort
2163 echo
2166 if test -s confdefs.h; then
2167 $as_echo "## ----------- ##
2168 ## confdefs.h. ##
2169 ## ----------- ##"
2170 echo
2171 cat confdefs.h
2172 echo
2174 test "$ac_signal" != 0 &&
2175 $as_echo "$as_me: caught signal $ac_signal"
2176 $as_echo "$as_me: exit $exit_status"
2177 } >&5
2178 rm -f core *.core core.conftest.* &&
2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180 exit $exit_status
2182 for ac_signal in 1 2 13 15; do
2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2184 done
2185 ac_signal=0
2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2188 rm -f -r conftest* confdefs.h
2190 $as_echo "/* confdefs.h */" > confdefs.h
2192 # Predefined preprocessor variables.
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_NAME "$PACKAGE_NAME"
2196 _ACEOF
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200 _ACEOF
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2204 _ACEOF
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2208 _ACEOF
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212 _ACEOF
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_URL "$PACKAGE_URL"
2216 _ACEOF
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 ac_site_file1=NONE
2222 ac_site_file2=NONE
2223 if test -n "$CONFIG_SITE"; then
2224 # We do not want a PATH search for config.site.
2225 case $CONFIG_SITE in #((
2226 -*) ac_site_file1=./$CONFIG_SITE;;
2227 */*) ac_site_file1=$CONFIG_SITE;;
2228 *) ac_site_file1=./$CONFIG_SITE;;
2229 esac
2230 elif test "x$prefix" != xNONE; then
2231 ac_site_file1=$prefix/share/config.site
2232 ac_site_file2=$prefix/etc/config.site
2233 else
2234 ac_site_file1=$ac_default_prefix/share/config.site
2235 ac_site_file2=$ac_default_prefix/etc/config.site
2237 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 test "x$ac_site_file" = xNONE && continue
2240 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243 sed 's/^/| /' "$ac_site_file" >&5
2244 . "$ac_site_file" \
2245 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247 as_fn_error $? "failed to load site script $ac_site_file
2248 See \`config.log' for more details" "$LINENO" 5; }
2250 done
2252 if test -r "$cache_file"; then
2253 # Some versions of bash will fail to source /dev/null (special files
2254 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2255 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2257 $as_echo "$as_me: loading cache $cache_file" >&6;}
2258 case $cache_file in
2259 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2260 *) . "./$cache_file";;
2261 esac
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2265 $as_echo "$as_me: creating cache $cache_file" >&6;}
2266 >$cache_file
2269 # Check that the precious variables saved in the cache have kept the same
2270 # value.
2271 ac_cache_corrupted=false
2272 for ac_var in $ac_precious_vars; do
2273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2274 eval ac_new_set=\$ac_env_${ac_var}_set
2275 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2276 eval ac_new_val=\$ac_env_${ac_var}_value
2277 case $ac_old_set,$ac_new_set in
2278 set,)
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2281 ac_cache_corrupted=: ;;
2282 ,set)
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2285 ac_cache_corrupted=: ;;
2286 ,);;
2288 if test "x$ac_old_val" != "x$ac_new_val"; then
2289 # differences in whitespace do not lead to failure.
2290 ac_old_val_w=`echo x $ac_old_val`
2291 ac_new_val_w=`echo x $ac_new_val`
2292 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2294 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2295 ac_cache_corrupted=:
2296 else
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2298 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2299 eval $ac_var=\$ac_old_val
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2302 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2304 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2305 fi;;
2306 esac
2307 # Pass precious variables to config.status.
2308 if test "$ac_new_set" = set; then
2309 case $ac_new_val in
2310 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 *) ac_arg=$ac_var=$ac_new_val ;;
2312 esac
2313 case " $ac_configure_args " in
2314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2315 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2316 esac
2318 done
2319 if $ac_cache_corrupted; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2323 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2324 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 ## -------------------- ##
2327 ## Main body of script. ##
2328 ## -------------------- ##
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 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}-
2539 test "$program_prefix" != NONE &&
2540 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2541 # Use a double $ so make ignores it.
2542 test "$program_suffix" != NONE &&
2543 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2544 # Double any \ or $.
2545 # By default was `s,x,x', remove it if useless.
2546 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2547 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551 # Get 'install' or 'install-sh' and its variants.
2552 # Find a good install program. We prefer a C program (faster),
2553 # so one script is as good as another. But avoid the broken or
2554 # incompatible versions:
2555 # SysV /etc/install, /usr/sbin/install
2556 # SunOS /usr/etc/install
2557 # IRIX /sbin/install
2558 # AIX /bin/install
2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2563 # OS/2's system install, which has a completely different semantic
2564 # ./install, which can be erroneously created by make from ./install.sh.
2565 # Reject install programs that cannot install multiple files.
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2568 if test -z "$INSTALL"; then
2569 if ${ac_cv_path_install+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in #((
2579 ./ | .// | /[cC]/* | \
2580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2581 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2582 /usr/ucb/* ) ;;
2584 # OSF1 and SCO ODT 3.0 have their own names for install.
2585 # Don't use installbsd from OSF since it installs stuff as root
2586 # by default.
2587 for ac_prog in ginstall scoinst install; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2590 if test $ac_prog = install &&
2591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592 # AIX install. It has an incompatible calling convention.
2594 elif test $ac_prog = install &&
2595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596 # program-specific install script used by HP pwplus--don't use.
2598 else
2599 rm -rf conftest.one conftest.two conftest.dir
2600 echo one > conftest.one
2601 echo two > conftest.two
2602 mkdir conftest.dir
2603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2604 test -s conftest.one && test -s conftest.two &&
2605 test -s conftest.dir/conftest.one &&
2606 test -s conftest.dir/conftest.two
2607 then
2608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2609 break 3
2613 done
2614 done
2616 esac
2618 done
2619 IFS=$as_save_IFS
2621 rm -rf conftest.one conftest.two conftest.dir
2624 if test "${ac_cv_path_install+set}" = set; then
2625 INSTALL=$ac_cv_path_install
2626 else
2627 # As a last resort, use the slow shell script. Don't cache a
2628 # value for INSTALL within a source directory, because that will
2629 # break other packages using the cache if that directory is
2630 # removed, or if the value is a relative name.
2631 INSTALL=$ac_install_sh
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2635 $as_echo "$INSTALL" >&6; }
2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2638 # It thinks the first close brace ends the variable substitution.
2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2646 $as_echo_n "checking whether ln works... " >&6; }
2647 if ${acx_cv_prog_LN+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 rm -f conftestdata_t
2651 echo >conftestdata_f
2652 if ln conftestdata_f conftestdata_t 2>/dev/null
2653 then
2654 acx_cv_prog_LN=ln
2655 else
2656 acx_cv_prog_LN=no
2658 rm -f conftestdata_f conftestdata_t
2661 if test $acx_cv_prog_LN = no; then
2662 LN="cp"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2664 $as_echo "no, using $LN" >&6; }
2665 else
2666 LN="$acx_cv_prog_LN"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2672 $as_echo_n "checking whether ln -s works... " >&6; }
2673 LN_S=$as_ln_s
2674 if test "$LN_S" = "ln -s"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676 $as_echo "yes" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2679 $as_echo "no, using $LN_S" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2683 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2684 if ${ac_cv_path_SED+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2688 for ac_i in 1 2 3 4 5 6 7; do
2689 ac_script="$ac_script$as_nl$ac_script"
2690 done
2691 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2692 { ac_script=; unset ac_script;}
2693 if test -z "$SED"; then
2694 ac_path_SED_found=false
2695 # Loop through the user's path and test for each of PROGNAME-LIST
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_prog in sed gsed; do
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2704 as_fn_executable_p "$ac_path_SED" || continue
2705 # Check for GNU ac_path_SED and select it if it is found.
2706 # Check for GNU $ac_path_SED
2707 case `"$ac_path_SED" --version 2>&1` in
2708 *GNU*)
2709 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2711 ac_count=0
2712 $as_echo_n 0123456789 >"conftest.in"
2713 while :
2715 cat "conftest.in" "conftest.in" >"conftest.tmp"
2716 mv "conftest.tmp" "conftest.in"
2717 cp "conftest.in" "conftest.nl"
2718 $as_echo '' >> "conftest.nl"
2719 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2721 as_fn_arith $ac_count + 1 && ac_count=$as_val
2722 if test $ac_count -gt ${ac_path_SED_max-0}; then
2723 # Best one so far, save it but keep looking for a better one
2724 ac_cv_path_SED="$ac_path_SED"
2725 ac_path_SED_max=$ac_count
2727 # 10*(2^10) chars as input seems more than enough
2728 test $ac_count -gt 10 && break
2729 done
2730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2731 esac
2733 $ac_path_SED_found && break 3
2734 done
2735 done
2736 done
2737 IFS=$as_save_IFS
2738 if test -z "$ac_cv_path_SED"; then
2739 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2741 else
2742 ac_cv_path_SED=$SED
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2747 $as_echo "$ac_cv_path_SED" >&6; }
2748 SED="$ac_cv_path_SED"
2749 rm -f conftest.sed
2751 for ac_prog in gawk mawk nawk awk
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy $ac_prog; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_AWK+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$AWK"; then
2761 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_AWK="$ac_prog"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2774 done
2775 done
2776 IFS=$as_save_IFS
2780 AWK=$ac_cv_prog_AWK
2781 if test -n "$AWK"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2783 $as_echo "$AWK" >&6; }
2784 else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2790 test -n "$AWK" && break
2791 done
2794 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2796 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2797 # a relative path.
2798 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2799 INSTALL="${srcpwd}/install-sh -c"
2802 # Set srcdir to "." if that's what it is.
2803 # This is important for multilib support.
2804 pwd=`${PWDCMD-pwd}`
2805 if test "${pwd}" = "${srcpwd}" ; then
2806 srcdir=.
2809 topsrcdir=$srcpwd
2811 extra_host_args=
2813 ### To add a new directory to the tree, first choose whether it is a target
2814 ### or a host dependent tool. Then put it into the appropriate list
2815 ### (library or tools, host or target), doing a dependency sort.
2817 # Subdirs will be configured in the order listed in build_configdirs,
2818 # configdirs, or target_configdirs; see the serialization section below.
2820 # Dependency sorting is only needed when *configuration* must be done in
2821 # a particular order. In all cases a dependency should be specified in
2822 # the Makefile, whether or not it's implicitly specified here.
2824 # Double entries in build_configdirs, configdirs, or target_configdirs may
2825 # cause circular dependencies and break everything horribly.
2827 # these library is used by various programs built for the build
2828 # environment
2830 build_libs="build-libiberty build-libcpp"
2832 # these tools are built for the build environment
2833 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2835 # these libraries are used by various programs built for the host environment
2837 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2839 # these tools are built for the host environment
2840 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2841 # know that we are building the simulator.
2842 # binutils, gas and ld appear in that order because it makes sense to run
2843 # "make check" in that particular order.
2844 # If --enable-gold is used, "gold" may replace "ld".
2845 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"
2847 # these libraries are built for the target environment, and are built after
2848 # the host libraries and the host tools (which may be a cross compiler)
2849 # Note that libiberty is not a target library.
2850 target_libraries="target-libgcc \
2851 target-libbacktrace \
2852 target-libgloss \
2853 target-newlib \
2854 target-libgomp \
2855 target-libatomic \
2856 target-libitm \
2857 target-libstdc++-v3 \
2858 target-libsanitizer \
2859 target-libvtv \
2860 target-libssp \
2861 target-libquadmath \
2862 target-libgfortran \
2863 target-libffi \
2864 target-libobjc \
2865 target-libada \
2866 target-libgm2 \
2867 target-libgo \
2868 target-libgrust \
2869 target-libphobos \
2870 target-zlib"
2872 # these tools are built using the target libraries, and are intended to
2873 # run only in the target environment
2875 # note: any program that *uses* libraries that are in the "target_libraries"
2876 # list belongs in this list.
2878 target_tools="target-rda"
2880 ################################################################################
2882 ## All tools belong in one of the four categories, and are assigned above
2883 ## We assign ${configdirs} this way to remove all embedded newlines. This
2884 ## is important because configure will choke if they ever get through.
2885 ## ${configdirs} is directories we build using the host tools.
2886 ## ${target_configdirs} is directories we build using the target tools.
2887 configdirs=`echo ${host_libs} ${host_tools}`
2888 target_configdirs=`echo ${target_libraries} ${target_tools}`
2889 build_configdirs=`echo ${build_libs} ${build_tools}`
2893 ################################################################################
2895 srcname="gnu development package"
2897 # This gets set non-empty for some net releases of packages.
2898 appdirs=""
2900 # Define is_cross_compiler to save on calls to 'test'.
2901 is_cross_compiler=
2902 if test x"${host}" = x"${target}" ; then
2903 is_cross_compiler=no
2904 else
2905 is_cross_compiler=yes
2908 # Find the build and target subdir names.
2910 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2911 # have matching libraries, they should use host libraries: Makefile.tpl
2912 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2913 # However, they still use the build modules, because the corresponding
2914 # host modules (e.g. bison) are only built for the host when bootstrap
2915 # finishes. So:
2916 # - build_subdir is where we find build modules, and never changes.
2917 # - build_libsubdir is where we find build libraries, and can be overridden.
2919 # Prefix 'build-' so this never conflicts with target_subdir.
2920 build_subdir="build-${build_noncanonical}"
2922 # Check whether --with-build-libsubdir was given.
2923 if test "${with_build_libsubdir+set}" = set; then :
2924 withval=$with_build_libsubdir; build_libsubdir="$withval"
2925 else
2926 build_libsubdir="$build_subdir"
2929 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2930 if ( test $srcdir = . && test -d gcc ) \
2931 || test -d $srcdir/../host-${host_noncanonical}; then
2932 host_subdir="host-${host_noncanonical}"
2933 else
2934 host_subdir=.
2936 # No prefix.
2937 target_subdir=${target_noncanonical}
2939 # Be sure to cover against remnants of an in-tree build.
2940 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2941 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2942 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2945 # Skipdirs are removed silently.
2946 skipdirs=
2947 # Noconfigdirs are removed loudly.
2948 noconfigdirs=""
2950 use_gnu_ld=
2951 # Make sure we don't let GNU ld be added if we didn't want it.
2952 if test x$with_gnu_ld = xno ; then
2953 use_gnu_ld=no
2954 noconfigdirs="$noconfigdirs ld gold"
2957 use_gnu_as=
2958 # Make sure we don't let GNU as be added if we didn't want it.
2959 if test x$with_gnu_as = xno ; then
2960 use_gnu_as=no
2961 noconfigdirs="$noconfigdirs gas"
2964 use_included_zlib=
2966 # Check whether --with-system-zlib was given.
2967 if test "${with_system_zlib+set}" = set; then :
2968 withval=$with_system_zlib;
2971 # Make sure we don't let ZLIB be added if we didn't want it.
2972 if test x$with_system_zlib = xyes ; then
2973 use_included_zlib=no
2974 noconfigdirs="$noconfigdirs zlib"
2977 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2978 # is provided.
2979 if test x$with_system_readline = xyes ; then
2980 noconfigdirs="$noconfigdirs readline"
2984 # Check whether --with-zstd was given.
2985 if test "${with_zstd+set}" = set; then :
2986 withval=$with_zstd;
2990 # some tools are so dependent upon X11 that if we're not building with X,
2991 # it's not even worth trying to configure, much less build, that tool.
2993 case ${with_x} in
2994 yes | "") ;; # the default value for this tree is that X11 is available
2996 skipdirs="${skipdirs} tk itcl libgui"
2997 # We won't be able to build gdbtk without X.
2998 enable_gdbtk=no
3000 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3001 esac
3003 # Some are only suitable for cross toolchains.
3004 # Remove these if host=target.
3005 cross_only="target-libgloss target-newlib target-opcodes"
3007 case $is_cross_compiler in
3008 no) skipdirs="${skipdirs} ${cross_only}" ;;
3009 esac
3011 # If both --with-headers and --with-libs are specified, default to
3012 # --without-newlib.
3013 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3014 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3015 if test x"${with_newlib}" = x ; then
3016 with_newlib=no
3020 # Recognize --with-newlib/--without-newlib.
3021 case ${with_newlib} in
3022 no) skipdirs="${skipdirs} target-newlib" ;;
3023 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3024 esac
3026 # Check whether --enable-as-accelerator-for was given.
3027 if test "${enable_as_accelerator_for+set}" = set; then :
3028 enableval=$enable_as_accelerator_for;
3032 # Check whether --enable-offload-targets was given.
3033 if test "${enable_offload_targets+set}" = set; then :
3034 enableval=$enable_offload_targets;
3035 if test x"$enable_offload_targets" = x; then
3036 as_fn_error $? "no offload targets specified" "$LINENO" 5
3039 else
3040 enable_offload_targets=
3044 # Check whether --enable-offload-defaulted was given.
3045 if test "${enable_offload_defaulted+set}" = set; then :
3046 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3047 else
3048 enable_offload_defaulted=
3052 # Handle --enable-gold, --enable-ld.
3053 # --disable-gold [--enable-ld]
3054 # Build only ld. Default option.
3055 # --enable-gold [--enable-ld]
3056 # Build both gold and ld. Install gold as "ld.gold", install ld
3057 # as "ld.bfd" and "ld".
3058 # --enable-gold=default [--enable-ld]
3059 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3060 # install ld as "ld.bfd".
3061 # --enable-gold[=default] --disable-ld
3062 # Build only gold, which is then installed as both "ld.gold" and "ld".
3063 # --enable-gold --enable-ld=default
3064 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3065 # and ld.bfd).
3066 # In other words, ld is default
3067 # --enable-gold=default --enable-ld=default
3068 # Error.
3070 default_ld=
3071 # Check whether --enable-gold was given.
3072 if test "${enable_gold+set}" = set; then :
3073 enableval=$enable_gold; ENABLE_GOLD=$enableval
3074 else
3075 ENABLE_GOLD=no
3078 case "${ENABLE_GOLD}" in
3079 yes|default)
3080 # Check for ELF target.
3081 is_elf=no
3082 case "${target}" in
3083 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3084 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3085 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3086 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3087 case "${target}" in
3088 *-*-linux*aout* | *-*-linux*oldld*)
3091 is_elf=yes
3093 esac
3094 esac
3096 if test "$is_elf" = "yes"; then
3097 # Check for target supported by gold.
3098 case "${target}" in
3099 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3100 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3101 configdirs="$configdirs gold"
3102 if test x${ENABLE_GOLD} = xdefault; then
3103 default_ld=gold
3105 ENABLE_GOLD=yes
3107 esac
3113 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3115 esac
3117 # Check whether --enable-ld was given.
3118 if test "${enable_ld+set}" = set; then :
3119 enableval=$enable_ld; ENABLE_LD=$enableval
3120 else
3121 ENABLE_LD=yes
3125 case "${ENABLE_LD}" in
3126 default)
3127 if test x${default_ld} != x; then
3128 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3131 yes)
3134 if test x${ENABLE_GOLD} != xyes; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3136 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3138 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3141 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3143 esac
3145 # Check whether --enable-gprofng was given.
3146 if test "${enable_gprofng+set}" = set; then :
3147 enableval=$enable_gprofng; enable_gprofng=$enableval
3148 else
3149 enable_gprofng=yes
3152 if test "$enable_gprofng" = "yes"; then
3153 case "${target}" in
3154 *-musl*)
3156 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
3157 configdirs="$configdirs gprofng"
3159 esac
3163 # PR gas/19109
3164 # Decide the default method for compressing debug sections.
3165 # Provide a configure time option to override our default.
3166 # Check whether --enable-compressed_debug_sections was given.
3167 if test "${enable_compressed_debug_sections+set}" = set; then :
3168 enableval=$enable_compressed_debug_sections;
3169 if test x"$enable_compressed_debug_sections" = xyes; then
3170 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3173 else
3174 enable_compressed_debug_sections=
3178 # Select default compression algorithm.
3179 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3180 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3181 enableval=$enable_default_compressed_debug_sections_algorithm;
3182 else
3183 default_compressed_debug_sections_algorithm=
3187 # Configure extra directories which are host specific
3189 case "${host}" in
3190 *-cygwin*)
3191 configdirs="$configdirs libtermcap" ;;
3192 esac
3194 # A target can indicate whether a language isn't supported for some reason.
3195 # Only spaces may be used in this macro; not newlines or tabs.
3196 unsupported_languages=
3198 # Remove more programs from consideration, based on the host or
3199 # target this usually means that a port of the program doesn't
3200 # exist yet.
3202 case "${host}" in
3203 i[3456789]86-*-msdosdjgpp*)
3204 noconfigdirs="$noconfigdirs tcl tk itcl"
3206 esac
3208 # Default to --disable-year2038 until we can handle differences between
3209 # projects that use gnulib (which understands year 2038) and projects that
3210 # do not (like BFD).
3211 # Check whether --enable-year2038 was given.
3212 if test "${enable_year2038+set}" = set; then :
3213 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3214 else
3215 ENABLE_YEAR2038=no
3218 enable_year2038=
3219 if test "${ENABLE_YEAR2038}" = "no" ; then
3220 enable_year2038=no
3223 # Check whether --enable-libquadmath was given.
3224 if test "${enable_libquadmath+set}" = set; then :
3225 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3226 else
3227 ENABLE_LIBQUADMATH=yes
3230 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3231 noconfigdirs="$noconfigdirs target-libquadmath"
3235 # Check whether --enable-libquadmath-support was given.
3236 if test "${enable_libquadmath_support+set}" = set; then :
3237 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3238 else
3239 ENABLE_LIBQUADMATH_SUPPORT=yes
3242 enable_libquadmath_support=
3243 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3244 enable_libquadmath_support=no
3248 # Check whether --enable-libada was given.
3249 if test "${enable_libada+set}" = set; then :
3250 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3251 else
3252 ENABLE_LIBADA=yes
3255 if test "${ENABLE_LIBADA}" != "yes" ; then
3256 noconfigdirs="$noconfigdirs gnattools"
3259 # Check whether --enable-libgm2 was given.
3260 if test "${enable_libgm2+set}" = set; then :
3261 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3262 else
3263 ENABLE_LIBGM2=no
3266 if test "${ENABLE_LIBGM2}" != "yes" ; then
3267 noconfigdirs="$noconfigdirs gm2tools"
3270 # Check whether --enable-libssp was given.
3271 if test "${enable_libssp+set}" = set; then :
3272 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3273 else
3274 ENABLE_LIBSSP=yes
3278 # Check whether --enable-libstdcxx was given.
3279 if test "${enable_libstdcxx+set}" = set; then :
3280 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3281 else
3282 ENABLE_LIBSTDCXX=default
3285 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3289 # Enable libgomp by default on hosted POSIX systems, and a few others.
3290 if test x$enable_libgomp = x ; then
3291 case "${target}" in
3292 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3294 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3296 *-*-solaris2* | *-*-hpux11*)
3298 *-*-darwin* | *-*-aix*)
3300 nvptx*-*-* | amdgcn*-*-*)
3303 noconfigdirs="$noconfigdirs target-libgomp"
3305 esac
3308 # Disable libatomic on unsupported systems.
3309 if test -d ${srcdir}/libatomic; then
3310 if test x$enable_libatomic = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3312 $as_echo_n "checking for libatomic support... " >&6; }
3313 if (srcdir=${srcdir}/libatomic; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 noconfigdirs="$noconfigdirs target-libatomic"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3327 # Disable libitm on unsupported systems.
3328 if test -d ${srcdir}/libitm; then
3329 if test x$enable_libitm = x; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3331 $as_echo_n "checking for libitm support... " >&6; }
3332 if (srcdir=${srcdir}/libitm; \
3333 . ${srcdir}/configure.tgt; \
3334 test -n "$UNSUPPORTED")
3335 then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs="$noconfigdirs target-libitm"
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3346 # Disable libsanitizer on unsupported systems.
3347 if test -d ${srcdir}/libsanitizer; then
3348 if test x$enable_libsanitizer = x; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3350 $as_echo_n "checking for libsanitizer support... " >&6; }
3351 if (srcdir=${srcdir}/libsanitizer; \
3352 . ${srcdir}/configure.tgt; \
3353 test -n "$UNSUPPORTED")
3354 then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 noconfigdirs="$noconfigdirs target-libsanitizer"
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3365 # Disable libvtv on unsupported systems.
3366 if test -d ${srcdir}/libvtv; then
3367 if test x$enable_libvtv = x; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3369 $as_echo_n "checking for libvtv support... " >&6; }
3370 if (srcdir=${srcdir}/libvtv; \
3371 . ${srcdir}/configure.tgt; \
3372 test "$VTV_SUPPORTED" != "yes")
3373 then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 noconfigdirs="$noconfigdirs target-libvtv"
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3384 # Disable libquadmath for some systems.
3385 case "${target}" in
3386 avr-*-*)
3387 noconfigdirs="$noconfigdirs target-libquadmath"
3389 # libquadmath is unused on AIX and libquadmath build process use of
3390 # LD_LIBRARY_PATH can break AIX bootstrap.
3391 powerpc-*-aix* | rs6000-*-aix*)
3392 noconfigdirs="$noconfigdirs target-libquadmath"
3394 esac
3396 # Disable libssp for some systems.
3397 case "${target}" in
3398 avr-*-*)
3399 # No hosted I/O support.
3400 noconfigdirs="$noconfigdirs target-libssp"
3402 bpf-*-*)
3403 noconfigdirs="$noconfigdirs target-libssp"
3405 powerpc-*-aix* | rs6000-*-aix*)
3406 noconfigdirs="$noconfigdirs target-libssp"
3408 pru-*-*)
3409 # No hosted I/O support.
3410 noconfigdirs="$noconfigdirs target-libssp"
3412 rl78-*-*)
3413 # libssp uses a misaligned load to trigger a fault, but the RL78
3414 # doesn't fault for those - instead, it gives a build-time error
3415 # for explicit misaligned loads.
3416 noconfigdirs="$noconfigdirs target-libssp"
3418 visium-*-*)
3419 # No hosted I/O support.
3420 noconfigdirs="$noconfigdirs target-libssp"
3422 esac
3424 # Disable libstdc++-v3 for some systems.
3425 # Allow user to override this if they pass --enable-libstdcxx
3426 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3427 case "${target}" in
3428 *-*-vxworks*)
3429 # VxWorks uses the Dinkumware C++ library.
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3432 amdgcn*-*-*)
3433 # Not ported/fails to build when using newlib.
3434 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3436 arm*-wince-pe*)
3437 # the C++ libraries don't build on top of CE's C libraries
3438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3440 avr-*-*)
3441 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3443 bpf-*-*)
3444 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3446 ft32-*-*)
3447 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3449 esac
3452 # Disable C++ on systems where it is known to not work.
3453 # For testing, you can override this with --enable-languages=c++.
3454 case ,${enable_languages}, in
3455 *,c++,*)
3458 case "${target}" in
3459 bpf-*-*)
3460 unsupported_languages="$unsupported_languages c++"
3462 esac
3464 esac
3466 # Disable Objc on systems where it is known to not work.
3467 # For testing, you can override this with --enable-languages=objc.
3468 case ,${enable_languages}, in
3469 *,objc,*)
3472 case "${target}" in
3473 bpf-*-*)
3474 unsupported_languages="$unsupported_languages objc"
3476 esac
3478 esac
3480 # Disable D on systems where it is known to not work.
3481 # For testing, you can override this with --enable-languages=d.
3482 case ,${enable_languages}, in
3483 *,d,*)
3486 case "${target}" in
3487 bpf-*-*)
3488 unsupported_languages="$unsupported_languages d"
3490 esac
3492 esac
3494 # Disable libphobos on unsupported systems.
3495 # For testing, you can override this with --enable-libphobos.
3496 if test -d ${srcdir}/libphobos; then
3497 if test x$enable_libphobos = x; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3499 $as_echo_n "checking for libphobos support... " >&6; }
3500 if (srcdir=${srcdir}/libphobos; \
3501 . ${srcdir}/configure.tgt; \
3502 test "$LIBPHOBOS_SUPPORTED" != "yes")
3503 then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 noconfigdirs="$noconfigdirs target-libphobos"
3507 else
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3509 $as_echo "yes" >&6; }
3514 # Disable Fortran for some systems.
3515 case "${target}" in
3516 mmix-*-*)
3517 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3518 unsupported_languages="$unsupported_languages fortran"
3520 bpf-*-*)
3521 unsupported_languages="$unsupported_languages fortran"
3523 esac
3525 # Disable libffi for some systems.
3526 case "${target}" in
3527 powerpc-*-darwin*)
3529 i[3456789]86-*-darwin*)
3531 x86_64-*-darwin[912]*)
3533 *-*-darwin*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3536 *-*-netware*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3539 *-*-phoenix*)
3540 noconfigdirs="$noconfigdirs target-libffi"
3542 *-*-rtems*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3545 *-*-tpf*)
3546 noconfigdirs="$noconfigdirs target-libffi"
3548 *-*-uclinux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3551 *-*-vxworks*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3554 aarch64*-*-freebsd*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3557 alpha*-*-*vms*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3560 arm*-*-freebsd*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3563 arm-wince-pe)
3564 noconfigdirs="$noconfigdirs target-libffi"
3566 arm*-*-symbianelf*)
3567 noconfigdirs="$noconfigdirs target-libffi"
3569 bpf-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3572 cris-*-* | crisv32-*-*)
3573 case "${target}" in
3574 *-*-linux*)
3576 *) # See PR46792 regarding target-libffi.
3577 noconfigdirs="$noconfigdirs target-libffi";;
3578 esac
3580 hppa*64*-*-hpux*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3583 hppa*-hp-hpux11*)
3585 hppa*-*-hpux*)
3586 noconfigdirs="$noconfigdirs target-libffi"
3588 ia64*-*-*vms*)
3589 noconfigdirs="$noconfigdirs target-libffi"
3591 i[3456789]86-w64-mingw*)
3592 noconfigdirs="$noconfigdirs target-libffi"
3594 i[3456789]86-*-mingw*)
3595 noconfigdirs="$noconfigdirs target-libffi"
3597 x86_64-*-mingw*)
3598 noconfigdirs="$noconfigdirs target-libffi"
3600 mmix-*-*)
3601 noconfigdirs="$noconfigdirs target-libffi"
3603 powerpc-*-aix*)
3605 rs6000-*-aix*)
3607 ft32-*-*)
3608 noconfigdirs="$noconfigdirs target-libffi"
3610 *-*-lynxos*)
3611 noconfigdirs="$noconfigdirs target-libffi"
3613 esac
3615 # Disable the go frontend on systems where it is known to not work. Please keep
3616 # this in sync with contrib/config-list.mk.
3617 case "${target}" in
3618 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3619 unsupported_languages="$unsupported_languages go"
3621 esac
3623 # Only allow gdbserver on some systems.
3624 if test -d ${srcdir}/gdbserver; then
3625 if test x$enable_gdbserver = x; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3627 $as_echo_n "checking for gdbserver support... " >&6; }
3628 if (srcdir=${srcdir}/gdbserver; \
3629 . ${srcdir}/configure.srv; \
3630 test -n "$UNSUPPORTED")
3631 then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 noconfigdirs="$noconfigdirs gdbserver"
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3642 # Disable libgo for some systems where it is known to not work.
3643 # For testing, you can easily override this with --enable-libgo.
3644 if test x$enable_libgo = x; then
3645 case "${target}" in
3646 *-*-darwin*)
3647 # PR 46986
3648 noconfigdirs="$noconfigdirs target-libgo"
3650 *-*-cygwin* | *-*-mingw*)
3651 noconfigdirs="$noconfigdirs target-libgo"
3653 bpf-*-*)
3654 noconfigdirs="$noconfigdirs target-libgo"
3656 esac
3659 # Default libgloss CPU subdirectory.
3660 libgloss_dir="$target_cpu"
3662 case "${target}" in
3663 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3664 libgloss_dir=wince
3666 aarch64*-*-* )
3667 libgloss_dir=aarch64
3669 arm*-*-*)
3670 libgloss_dir=arm
3672 cris-*-* | crisv32-*-*)
3673 libgloss_dir=cris
3675 kvx-*-elf)
3676 libgloss_dir=kvx-elf
3678 kvx-*-mbr)
3679 libgloss_dir=kvx-mbr
3681 kvx-*-cos)
3682 libgloss_dir=kvx-cos
3684 hppa*-*-*)
3685 libgloss_dir=pa
3687 i[3456789]86-*-*)
3688 libgloss_dir=i386
3690 loongarch*-*-*)
3691 libgloss_dir=loongarch
3693 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3694 libgloss_dir=m68hc11
3696 m68*-*-* | fido-*-*)
3697 libgloss_dir=m68k
3699 mips*-*-*)
3700 libgloss_dir=mips
3702 powerpc*-*-*)
3703 libgloss_dir=rs6000
3705 pru-*-*)
3706 libgloss_dir=pru
3708 sparc*-*-*)
3709 libgloss_dir=sparc
3711 esac
3713 # Disable newlib and libgloss for various target OSes.
3714 case "${target}" in
3715 alpha*-dec-osf*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 i[3456789]86-*-linux*)
3719 # This section makes it possible to build newlib natively on linux.
3720 # If we are using a cross compiler then don't configure newlib.
3721 if test x${is_cross_compiler} != xno ; then
3722 noconfigdirs="$noconfigdirs target-newlib"
3724 noconfigdirs="$noconfigdirs target-libgloss"
3725 # If we are not using a cross compiler, do configure newlib.
3726 # Note however, that newlib will only be configured in this situation
3727 # if the --with-newlib option has been given, because otherwise
3728 # 'target-newlib' will appear in skipdirs.
3730 i[3456789]86-*-rdos*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3734 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 sparc-*-sunos4*)
3737 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 bpf-*-*)
3740 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3742 *-*-aix*)
3743 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3745 *-*-beos*)
3746 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 *-*-chorusos)
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751 *-*-dragonfly*)
3752 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3754 *-*-freebsd*)
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3757 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3758 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3760 *-*-lynxos*)
3761 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3763 *-*-mingw*)
3764 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3766 *-*-netbsd*)
3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3769 *-*-netware*)
3770 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3772 *-*-tpf*)
3773 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 *-*-uclinux*)
3776 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3778 *-*-vxworks*)
3779 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3781 esac
3783 # The ARM simulator has been deprecated for all ARM targets.
3784 case "${target}" in
3785 arm*-*-*)
3786 noconfigdirs="$noconfigdirs sim"
3788 esac
3790 case "${target}" in
3791 *-*-chorusos)
3793 aarch64-*-darwin*)
3794 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs="$noconfigdirs sim target-rda"
3797 amdgcn*-*-*)
3799 arm-*-darwin*)
3800 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3801 noconfigdirs="$noconfigdirs target-rda"
3803 powerpc-*-darwin*)
3804 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3805 noconfigdirs="$noconfigdirs sim target-rda"
3807 i[3456789]86-*-darwin*)
3808 noconfigdirs="$noconfigdirs ld gprof"
3809 noconfigdirs="$noconfigdirs sim target-rda"
3811 x86_64-*-darwin[912]*)
3812 noconfigdirs="$noconfigdirs ld gas gprof"
3813 noconfigdirs="$noconfigdirs sim target-rda"
3815 *-*-darwin*)
3816 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3817 noconfigdirs="$noconfigdirs sim target-rda"
3819 *-*-dragonfly*)
3821 *-*-freebsd*)
3822 if test "x$with_gmp" = x \
3823 && ! test -d ${srcdir}/gmp \
3824 && test -f /usr/local/include/gmp.h; then
3825 with_gmp=/usr/local
3828 *-*-kaos*)
3829 # Remove unsupported stuff on all kaOS configurations.
3830 noconfigdirs="$noconfigdirs target-libgloss"
3832 *-*-netbsd*)
3834 *-*-netware*)
3836 *-*-phoenix*)
3837 noconfigdirs="$noconfigdirs target-libgloss"
3839 *-*-rtems*)
3840 noconfigdirs="$noconfigdirs target-libgloss"
3842 # The tpf target doesn't support gdb yet.
3843 *-*-tpf*)
3844 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3846 *-*-uclinux*)
3847 noconfigdirs="$noconfigdirs target-rda"
3849 *-*-vxworks*)
3851 alpha*-dec-osf*)
3852 # ld works, but does not support shared libraries.
3853 # gas doesn't generate exception information.
3854 noconfigdirs="$noconfigdirs gas ld"
3856 alpha*-*-*vms*)
3857 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3859 alpha*-*-*)
3860 # newlib is not 64 bit ready
3861 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3863 bpf-*-*)
3864 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3866 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3867 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3869 arc*-*-*)
3870 noconfigdirs="$noconfigdirs sim"
3872 arm-*-pe*)
3873 noconfigdirs="$noconfigdirs target-libgloss"
3875 arm-*-riscix*)
3876 noconfigdirs="$noconfigdirs ld target-libgloss"
3878 avr-*-*)
3879 if test x${with_avrlibc} != xno; then
3880 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3883 c4x-*-* | tic4x-*-*)
3884 noconfigdirs="$noconfigdirs target-libgloss"
3886 tic54x-*-*)
3887 noconfigdirs="$noconfigdirs target-libgloss gdb"
3889 d10v-*-*)
3890 noconfigdirs="$noconfigdirs target-libgloss"
3892 d30v-*-*)
3893 noconfigdirs="$noconfigdirs gdb"
3895 fr30-*-elf*)
3896 noconfigdirs="$noconfigdirs gdb"
3898 ft32-*-*)
3899 noconfigdirs="$noconfigdirs target-rda gprof"
3901 moxie-*-*)
3902 noconfigdirs="$noconfigdirs"
3904 h8300*-*-*)
3905 noconfigdirs="$noconfigdirs target-libgloss"
3907 h8500-*-*)
3908 noconfigdirs="$noconfigdirs target-libgloss"
3910 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3912 hppa*64*-*-hpux*)
3913 noconfigdirs="$noconfigdirs gdb"
3915 hppa*-*-hpux11*)
3916 noconfigdirs="$noconfigdirs gdb ld"
3918 hppa*64*-*-linux*)
3920 hppa*-*-linux*)
3922 hppa*-*-*elf* | \
3923 hppa*-*-lites* | \
3924 hppa*-*-openbsd* | \
3925 hppa*64*-*-*)
3927 hppa*-*-pro*)
3929 hppa*-*-*)
3930 noconfigdirs="$noconfigdirs ld"
3932 i960-*-*)
3933 noconfigdirs="$noconfigdirs gdb"
3935 ia64*-*-elf*)
3936 # No gdb support yet.
3937 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3939 ia64*-**-hpux*)
3940 # No ld support yet.
3941 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3943 ia64*-*-*vms*)
3944 # No ld support yet.
3945 noconfigdirs="$noconfigdirs libgui itcl ld"
3947 i[3456789]86-w64-mingw*)
3949 i[3456789]86-*-mingw*)
3950 target_configdirs="$target_configdirs target-winsup"
3952 *-*-cygwin*)
3953 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3954 noconfigdirs="$noconfigdirs target-libgloss"
3955 # always build newlib if winsup directory is present.
3956 if test -d "$srcdir/winsup/cygwin"; then
3957 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3958 elif test -d "$srcdir/newlib"; then
3959 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3962 i[3456789]86-*-pe)
3963 noconfigdirs="$noconfigdirs target-libgloss"
3965 i[3456789]86-*-sco3.2v5*)
3966 # The linker does not yet know about weak symbols in COFF,
3967 # and is not configured to handle mixed ELF and COFF.
3968 noconfigdirs="$noconfigdirs ld target-libgloss"
3970 i[3456789]86-*-sco*)
3971 noconfigdirs="$noconfigdirs gprof target-libgloss"
3973 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3974 noconfigdirs="$noconfigdirs target-libgloss"
3976 i[3456789]86-*-sysv4*)
3977 noconfigdirs="$noconfigdirs target-libgloss"
3979 i[3456789]86-*-beos*)
3980 noconfigdirs="$noconfigdirs gdb"
3982 i[3456789]86-*-rdos*)
3983 noconfigdirs="$noconfigdirs gdb"
3985 kvx-*-*)
3986 noconfigdirs="$noconfigdirs gdb gdbserver sim"
3988 mmix-*-*)
3989 noconfigdirs="$noconfigdirs gdb"
3991 mt-*-*)
3992 noconfigdirs="$noconfigdirs sim"
3994 nfp-*-*)
3995 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3996 noconfigdirs="$noconfigdirs $target_libraries"
3998 pdp11-*-*)
3999 noconfigdirs="$noconfigdirs gdb gprof"
4001 powerpc-*-aix*)
4002 # copied from rs6000-*-* entry
4003 noconfigdirs="$noconfigdirs gprof"
4005 powerpc*-*-winnt* | powerpc*-*-pe*)
4006 target_configdirs="$target_configdirs target-winsup"
4007 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4008 # always build newlib.
4009 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4011 # This is temporary until we can link against shared libraries
4012 powerpcle-*-solaris*)
4013 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4015 powerpc-*-beos*)
4016 noconfigdirs="$noconfigdirs gdb"
4018 rs6000-*-lynxos*)
4019 noconfigdirs="$noconfigdirs gprof"
4021 rs6000-*-aix*)
4022 noconfigdirs="$noconfigdirs gprof"
4024 rs6000-*-*)
4025 noconfigdirs="$noconfigdirs gprof"
4027 m68k-apollo-*)
4028 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4030 microblaze*)
4031 noconfigdirs="$noconfigdirs gprof"
4033 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4034 if test x$with_newlib = xyes; then
4035 noconfigdirs="$noconfigdirs gprof"
4038 mips*-*-irix5*)
4039 noconfigdirs="$noconfigdirs gprof target-libgloss"
4041 mips*-*-irix6*)
4042 noconfigdirs="$noconfigdirs gprof target-libgloss"
4044 mips*-*-bsd*)
4045 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4047 mips*-*-linux*)
4049 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4050 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4051 noconfigdirs="$noconfigdirs ld gas gprof"
4053 mips*-*-*)
4054 noconfigdirs="$noconfigdirs gprof"
4056 nvptx*-*-*)
4057 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4059 sh-*-*)
4060 case "${target}" in
4061 sh*-*-elf)
4064 noconfigdirs="$noconfigdirs target-libgloss" ;;
4065 esac
4067 sparc-*-sunos4*)
4068 if test x${is_cross_compiler} = xno ; then
4069 use_gnu_ld=no
4072 tic6x-*-*)
4073 noconfigdirs="$noconfigdirs sim"
4075 tilepro*-*-* | tilegx*-*-*)
4076 noconfigdirs="$noconfigdirs sim"
4078 v810-*-*)
4079 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4081 vax-*-*)
4082 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4084 wasm32-*-*)
4085 noconfigdirs="$noconfigdirs ld"
4087 loongarch*-*-linux*)
4089 loongarch*-*-*)
4090 noconfigdirs="$noconfigdirs gprof"
4092 esac
4094 # If we aren't building newlib, then don't build libgloss, since libgloss
4095 # depends upon some newlib header files.
4096 case "${noconfigdirs}" in
4097 *target-libgloss*) ;;
4098 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4099 esac
4101 # Work in distributions that contain no compiler tools, like Autoconf.
4102 host_makefile_frag=/dev/null
4103 if test -d ${srcdir}/config ; then
4104 case "${host}" in
4105 i[3456789]86-*-msdosdjgpp*)
4106 host_makefile_frag="config/mh-djgpp"
4108 *-cygwin*)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4111 $as_echo_n "checking to see if cat works as expected... " >&6; }
4112 echo a >cygwin-cat-check
4113 if test `cat cygwin-cat-check` = a ; then
4114 rm cygwin-cat-check
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116 $as_echo "yes" >&6; }
4117 else
4118 rm cygwin-cat-check
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 as_fn_error $? "The cat command does not ignore carriage return characters.
4122 Please either mount the build directory in binary mode or run the following
4123 commands before running any configure script:
4124 set -o igncr
4125 export SHELLOPTS
4126 " "$LINENO" 5
4129 host_makefile_frag="config/mh-cygwin"
4131 *-mingw*)
4132 host_makefile_frag="config/mh-mingw"
4134 alpha*-linux*)
4135 host_makefile_frag="config/mh-alpha-linux"
4137 hppa*-hp-hpux*)
4138 host_makefile_frag="config/mh-pa"
4140 hppa*-*)
4141 host_makefile_frag="config/mh-pa"
4143 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4144 host_makefile_frag="config/mh-darwin"
4146 powerpc-*-aix*)
4147 host_makefile_frag="config/mh-ppc-aix"
4149 rs6000-*-aix*)
4150 host_makefile_frag="config/mh-ppc-aix"
4152 esac
4155 if test "${build}" != "${host}" ; then
4156 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4157 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4158 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4159 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4160 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4161 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4162 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4163 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4164 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4165 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4166 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4167 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4168 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4169 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4170 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4171 else
4172 AR_FOR_BUILD="\$(AR)"
4173 AS_FOR_BUILD="\$(AS)"
4174 CC_FOR_BUILD="\$(CC)"
4175 CXX_FOR_BUILD="\$(CXX)"
4176 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4177 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4178 GOC_FOR_BUILD="\$(GOC)"
4179 GDC_FOR_BUILD="\$(GDC)"
4180 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4181 LD_FOR_BUILD="\$(LD)"
4182 NM_FOR_BUILD="\$(NM)"
4183 RANLIB_FOR_BUILD="\$(RANLIB)"
4184 WINDRES_FOR_BUILD="\$(WINDRES)"
4185 WINDMC_FOR_BUILD="\$(WINDMC)"
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4232 if test -z "$ac_cv_prog_CC"; then
4233 ac_ct_CC=$CC
4234 # Extract the first word of "gcc", so it can be a program name with args.
4235 set dummy gcc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_ac_ct_CC="gcc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 $as_echo "$ac_ct_CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4270 if test "x$ac_ct_CC" = x; then
4271 CC=""
4272 else
4273 case $cross_compiling:$ac_tool_warned in
4274 yes:)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned=yes ;;
4278 esac
4279 CC=$ac_ct_CC
4281 else
4282 CC="$ac_cv_prog_CC"
4285 if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4288 set dummy ${ac_tool_prefix}cc; ac_word=$2
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 $as_echo_n "checking for $ac_word... " >&6; }
4291 if ${ac_cv_prog_CC+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 if test -n "$CC"; then
4295 ac_cv_prog_CC="$CC" # Let the user override the test.
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_prog_CC="${ac_tool_prefix}cc"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4308 done
4309 done
4310 IFS=$as_save_IFS
4314 CC=$ac_cv_prog_CC
4315 if test -n "$CC"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4317 $as_echo "$CC" >&6; }
4318 else
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4326 if test -z "$CC"; then
4327 # Extract the first word of "cc", so it can be a program name with args.
4328 set dummy cc; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC="$CC" # Let the user override the test.
4336 else
4337 ac_prog_rejected=no
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4346 ac_prog_rejected=yes
4347 continue
4349 ac_cv_prog_CC="cc"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4355 IFS=$as_save_IFS
4357 if test $ac_prog_rejected = yes; then
4358 # We found a bogon in the path, so make sure we never use it.
4359 set dummy $ac_cv_prog_CC
4360 shift
4361 if test $# != 0; then
4362 # We chose a different compiler from the bogus one.
4363 # However, it has the same basename, so the bogon will be chosen
4364 # first if we set CC to just the basename; use the full file name.
4365 shift
4366 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4371 CC=$ac_cv_prog_CC
4372 if test -n "$CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4374 $as_echo "$CC" >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4382 if test -z "$CC"; then
4383 if test -n "$ac_tool_prefix"; then
4384 for ac_prog in cl.exe
4386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_CC+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -n "$CC"; then
4394 ac_cv_prog_CC="$CC" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4409 IFS=$as_save_IFS
4413 CC=$ac_cv_prog_CC
4414 if test -n "$CC"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4416 $as_echo "$CC" >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4423 test -n "$CC" && break
4424 done
4426 if test -z "$CC"; then
4427 ac_ct_CC=$CC
4428 for ac_prog in cl.exe
4430 # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$ac_ct_CC"; then
4438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_ac_ct_CC="$ac_prog"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4453 IFS=$as_save_IFS
4457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4458 if test -n "$ac_ct_CC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4460 $as_echo "$ac_ct_CC" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4467 test -n "$ac_ct_CC" && break
4468 done
4470 if test "x$ac_ct_CC" = x; then
4471 CC=""
4472 else
4473 case $cross_compiling:$ac_tool_warned in
4474 yes:)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4478 esac
4479 CC=$ac_ct_CC
4486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error $? "no acceptable C compiler found in \$PATH
4489 See \`config.log' for more details" "$LINENO" 5; }
4491 # Provide some information about the compiler.
4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4493 set X $ac_compile
4494 ac_compiler=$2
4495 for ac_option in --version -v -V -qversion; do
4496 { { ac_try="$ac_compiler $ac_option >&5"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4504 ac_status=$?
4505 if test -s conftest.err; then
4506 sed '10a\
4507 ... rest of stderr output deleted ...
4508 10q' conftest.err >conftest.er1
4509 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4514 done
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 main ()
4524 return 0;
4526 _ACEOF
4527 ac_clean_files_save=$ac_clean_files
4528 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4529 # Try to create an executable without -o first, disregard a.out.
4530 # It will help us diagnose broken compilers, and finding out an intuition
4531 # of exeext.
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4533 $as_echo_n "checking whether the C compiler works... " >&6; }
4534 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4536 # The possible output files:
4537 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4539 ac_rmfiles=
4540 for ac_file in $ac_files
4542 case $ac_file in
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4544 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4545 esac
4546 done
4547 rm -f $ac_rmfiles
4549 if { { ac_try="$ac_link_default"
4550 case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553 esac
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_link_default") 2>&5
4557 ac_status=$?
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4563 # so that the user can short-circuit this test for compilers unknown to
4564 # Autoconf.
4565 for ac_file in $ac_files ''
4567 test -f "$ac_file" || continue
4568 case $ac_file in
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4571 [ab].out )
4572 # We found the default executable, but exeext='' is most
4573 # certainly right.
4574 break;;
4575 *.* )
4576 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4577 then :; else
4578 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4580 # We set ac_cv_exeext here because the later test for it is not
4581 # safe: cross compilers may not add the suffix if given an `-o'
4582 # argument, so we may need to know it at that point already.
4583 # Even if this section looks crufty: it has the advantage of
4584 # actually working.
4585 break;;
4587 break;;
4588 esac
4589 done
4590 test "$ac_cv_exeext" = no && ac_cv_exeext=
4592 else
4593 ac_file=''
4595 if test -z "$ac_file"; then :
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 $as_echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error 77 "C compiler cannot create executables
4604 See \`config.log' for more details" "$LINENO" 5; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607 $as_echo "yes" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4610 $as_echo_n "checking for C compiler default output file name... " >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4612 $as_echo "$ac_file" >&6; }
4613 ac_exeext=$ac_cv_exeext
4615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4616 ac_clean_files=$ac_clean_files_save
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4618 $as_echo_n "checking for suffix of executables... " >&6; }
4619 if { { ac_try="$ac_link"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; then :
4630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4631 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4632 # work properly (i.e., refer to `conftest.exe'), while it won't with
4633 # `rm'.
4634 for ac_file in conftest.exe conftest conftest.*; do
4635 test -f "$ac_file" || continue
4636 case $ac_file in
4637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4639 break;;
4640 * ) break;;
4641 esac
4642 done
4643 else
4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4647 See \`config.log' for more details" "$LINENO" 5; }
4649 rm -f conftest conftest$ac_cv_exeext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4651 $as_echo "$ac_cv_exeext" >&6; }
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4655 ac_exeext=$EXEEXT
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <stdio.h>
4660 main ()
4662 FILE *f = fopen ("conftest.out", "w");
4663 return ferror (f) || fclose (f) != 0;
4666 return 0;
4668 _ACEOF
4669 ac_clean_files="$ac_clean_files conftest.out"
4670 # Check that the compiler produces executables we can run. If not, either
4671 # the compiler is broken, or we cross compile.
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4673 $as_echo_n "checking whether we are cross compiling... " >&6; }
4674 if test "$cross_compiling" != yes; then
4675 { { ac_try="$ac_link"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_link") 2>&5
4683 ac_status=$?
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }
4686 if { ac_try='./conftest$ac_cv_exeext'
4687 { { case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_try") 2>&5
4694 ac_status=$?
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; }; then
4697 cross_compiling=no
4698 else
4699 if test "$cross_compiling" = maybe; then
4700 cross_compiling=yes
4701 else
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot run C compiled programs.
4705 If you meant to cross compile, use \`--host'.
4706 See \`config.log' for more details" "$LINENO" 5; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4711 $as_echo "$cross_compiling" >&6; }
4713 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4714 ac_clean_files=$ac_clean_files_save
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4716 $as_echo_n "checking for suffix of object files... " >&6; }
4717 if ${ac_cv_objext+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4724 main ()
4728 return 0;
4730 _ACEOF
4731 rm -f conftest.o conftest.obj
4732 if { { ac_try="$ac_compile"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738 $as_echo "$ac_try_echo"; } >&5
4739 (eval "$ac_compile") 2>&5
4740 ac_status=$?
4741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742 test $ac_status = 0; }; then :
4743 for ac_file in conftest.o conftest.obj conftest.*; do
4744 test -f "$ac_file" || continue;
4745 case $ac_file in
4746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4748 break;;
4749 esac
4750 done
4751 else
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4757 as_fn_error $? "cannot compute suffix of object files: cannot compile
4758 See \`config.log' for more details" "$LINENO" 5; }
4760 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4763 $as_echo "$ac_cv_objext" >&6; }
4764 OBJEXT=$ac_cv_objext
4765 ac_objext=$OBJEXT
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if ${ac_cv_c_compiler_gnu+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4777 #ifndef __GNUC__
4778 choke me
4779 #endif
4782 return 0;
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_compiler_gnu=yes
4787 else
4788 ac_compiler_gnu=no
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4796 if test $ac_compiler_gnu = yes; then
4797 GCC=yes
4798 else
4799 GCC=
4801 ac_test_CFLAGS=${CFLAGS+set}
4802 ac_save_CFLAGS=$CFLAGS
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4805 if ${ac_cv_prog_cc_g+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 ac_save_c_werror_flag=$ac_c_werror_flag
4809 ac_c_werror_flag=yes
4810 ac_cv_prog_cc_g=no
4811 CFLAGS="-g"
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4816 main ()
4820 return 0;
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 ac_cv_prog_cc_g=yes
4825 else
4826 CFLAGS=""
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4831 main ()
4835 return 0;
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"; then :
4840 else
4841 ac_c_werror_flag=$ac_save_c_werror_flag
4842 CFLAGS="-g"
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4847 main ()
4851 return 0;
4853 _ACEOF
4854 if ac_fn_c_try_compile "$LINENO"; then :
4855 ac_cv_prog_cc_g=yes
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_c_werror_flag=$ac_save_c_werror_flag
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4865 $as_echo "$ac_cv_prog_cc_g" >&6; }
4866 if test "$ac_test_CFLAGS" = set; then
4867 CFLAGS=$ac_save_CFLAGS
4868 elif test $ac_cv_prog_cc_g = yes; then
4869 if test "$GCC" = yes; then
4870 CFLAGS="-g -O2"
4871 else
4872 CFLAGS="-g"
4874 else
4875 if test "$GCC" = yes; then
4876 CFLAGS="-O2"
4877 else
4878 CFLAGS=
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4883 if ${ac_cv_prog_cc_c89+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 ac_cv_prog_cc_c89=no
4887 ac_save_CC=$CC
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <stdarg.h>
4891 #include <stdio.h>
4892 struct stat;
4893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894 struct buf { int x; };
4895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896 static char *e (p, i)
4897 char **p;
4898 int i;
4900 return p[i];
4902 static char *f (char * (*g) (char **, int), char **p, ...)
4904 char *s;
4905 va_list v;
4906 va_start (v,p);
4907 s = g (p, va_arg (v,int));
4908 va_end (v);
4909 return s;
4912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std. */
4919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4921 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4922 inside strings and character constants. */
4923 #define FOO(x) 'x'
4924 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4926 int test (int i, double x);
4927 struct s1 {int (*f) (int a);};
4928 struct s2 {int (*f) (double a);};
4929 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4930 int argc;
4931 char **argv;
4933 main ()
4935 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4937 return 0;
4939 _ACEOF
4940 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4941 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943 CC="$ac_save_CC $ac_arg"
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_prog_cc_c89=$ac_arg
4947 rm -f core conftest.err conftest.$ac_objext
4948 test "x$ac_cv_prog_cc_c89" != "xno" && break
4949 done
4950 rm -f conftest.$ac_ext
4951 CC=$ac_save_CC
4954 # AC_CACHE_VAL
4955 case "x$ac_cv_prog_cc_c89" in
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4958 $as_echo "none needed" >&6; } ;;
4959 xno)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4961 $as_echo "unsupported" >&6; } ;;
4963 CC="$CC $ac_cv_prog_cc_c89"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4965 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4966 esac
4967 if test "x$ac_cv_prog_cc_c89" != xno; then :
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4978 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4979 if ${ac_cv_prog_cc_c99+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 ac_cv_prog_cc_c99=no
4983 ac_save_CC=$CC
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #include <stdarg.h>
4987 #include <stdbool.h>
4988 #include <stdlib.h>
4989 #include <wchar.h>
4990 #include <stdio.h>
4992 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4993 #define debug(...) fprintf (stderr, __VA_ARGS__)
4994 #define showlist(...) puts (#__VA_ARGS__)
4995 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4996 static void
4997 test_varargs_macros (void)
4999 int x = 1234;
5000 int y = 5678;
5001 debug ("Flag");
5002 debug ("X = %d\n", x);
5003 showlist (The first, second, and third items.);
5004 report (x>y, "x is %d but y is %d", x, y);
5007 // Check long long types.
5008 #define BIG64 18446744073709551615ull
5009 #define BIG32 4294967295ul
5010 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5011 #if !BIG_OK
5012 your preprocessor is broken;
5013 #endif
5014 #if BIG_OK
5015 #else
5016 your preprocessor is broken;
5017 #endif
5018 static long long int bignum = -9223372036854775807LL;
5019 static unsigned long long int ubignum = BIG64;
5021 struct incomplete_array
5023 int datasize;
5024 double data[];
5027 struct named_init {
5028 int number;
5029 const wchar_t *name;
5030 double average;
5033 typedef const char *ccp;
5035 static inline int
5036 test_restrict (ccp restrict text)
5038 // See if C++-style comments work.
5039 // Iterate through items via the restricted pointer.
5040 // Also check for declarations in for loops.
5041 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5042 continue;
5043 return 0;
5046 // Check varargs and va_copy.
5047 static void
5048 test_varargs (const char *format, ...)
5050 va_list args;
5051 va_start (args, format);
5052 va_list args_copy;
5053 va_copy (args_copy, args);
5055 const char *str;
5056 int number;
5057 float fnumber;
5059 while (*format)
5061 switch (*format++)
5063 case 's': // string
5064 str = va_arg (args_copy, const char *);
5065 break;
5066 case 'd': // int
5067 number = va_arg (args_copy, int);
5068 break;
5069 case 'f': // float
5070 fnumber = va_arg (args_copy, double);
5071 break;
5072 default:
5073 break;
5076 va_end (args_copy);
5077 va_end (args);
5081 main ()
5084 // Check bool.
5085 _Bool success = false;
5087 // Check restrict.
5088 if (test_restrict ("String literal") == 0)
5089 success = true;
5090 char *restrict newvar = "Another string";
5092 // Check varargs.
5093 test_varargs ("s, d' f .", "string", 65, 34.234);
5094 test_varargs_macros ();
5096 // Check flexible array members.
5097 struct incomplete_array *ia =
5098 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5099 ia->datasize = 10;
5100 for (int i = 0; i < ia->datasize; ++i)
5101 ia->data[i] = i * 1.234;
5103 // Check named initializers.
5104 struct named_init ni = {
5105 .number = 34,
5106 .name = L"Test wide string",
5107 .average = 543.34343,
5110 ni.number = 58;
5112 int dynamic_array[ni.number];
5113 dynamic_array[ni.number - 1] = 543;
5115 // work around unused variable warnings
5116 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5117 || dynamic_array[ni.number - 1] != 543);
5120 return 0;
5122 _ACEOF
5123 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5125 CC="$ac_save_CC $ac_arg"
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_prog_cc_c99=$ac_arg
5129 rm -f core conftest.err conftest.$ac_objext
5130 test "x$ac_cv_prog_cc_c99" != "xno" && break
5131 done
5132 rm -f conftest.$ac_ext
5133 CC=$ac_save_CC
5136 # AC_CACHE_VAL
5137 case "x$ac_cv_prog_cc_c99" in
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5140 $as_echo "none needed" >&6; } ;;
5141 xno)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5143 $as_echo "unsupported" >&6; } ;;
5145 CC="$CC $ac_cv_prog_cc_c99"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5147 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5148 esac
5149 if test "x$ac_cv_prog_cc_c99" != xno; then :
5154 ac_ext=cpp
5155 ac_cpp='$CXXCPP $CPPFLAGS'
5156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159 if test -z "$CXX"; then
5160 if test -n "$CCC"; then
5161 CXX=$CCC
5162 else
5163 if test -n "$ac_tool_prefix"; then
5164 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_CXX+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$CXX"; then
5174 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5193 CXX=$ac_cv_prog_CXX
5194 if test -n "$CXX"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5196 $as_echo "$CXX" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$CXX" && break
5204 done
5206 if test -z "$CXX"; then
5207 ac_ct_CXX=$CXX
5208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_CXX"; then
5218 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_CXX="$ac_prog"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5231 done
5232 done
5233 IFS=$as_save_IFS
5237 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5238 if test -n "$ac_ct_CXX"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5240 $as_echo "$ac_ct_CXX" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5247 test -n "$ac_ct_CXX" && break
5248 done
5250 if test "x$ac_ct_CXX" = x; then
5251 CXX="g++"
5252 else
5253 case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 CXX=$ac_ct_CXX
5265 # Provide some information about the compiler.
5266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5267 set X $ac_compile
5268 ac_compiler=$2
5269 for ac_option in --version -v -V -qversion; do
5270 { { ac_try="$ac_compiler $ac_option >&5"
5271 case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274 esac
5275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5276 $as_echo "$ac_try_echo"; } >&5
5277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5278 ac_status=$?
5279 if test -s conftest.err; then
5280 sed '10a\
5281 ... rest of stderr output deleted ...
5282 10q' conftest.err >conftest.er1
5283 cat conftest.er1 >&5
5285 rm -f conftest.er1 conftest.err
5286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287 test $ac_status = 0; }
5288 done
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5291 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5292 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5299 main ()
5301 #ifndef __GNUC__
5302 choke me
5303 #endif
5306 return 0;
5308 _ACEOF
5309 if ac_fn_cxx_try_compile "$LINENO"; then :
5310 ac_compiler_gnu=yes
5311 else
5312 ac_compiler_gnu=no
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5319 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5320 if test $ac_compiler_gnu = yes; then
5321 GXX=yes
5322 else
5323 GXX=
5325 ac_test_CXXFLAGS=${CXXFLAGS+set}
5326 ac_save_CXXFLAGS=$CXXFLAGS
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5328 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5329 if ${ac_cv_prog_cxx_g+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5333 ac_cxx_werror_flag=yes
5334 ac_cv_prog_cxx_g=no
5335 CXXFLAGS="-g"
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5340 main ()
5344 return 0;
5346 _ACEOF
5347 if ac_fn_cxx_try_compile "$LINENO"; then :
5348 ac_cv_prog_cxx_g=yes
5349 else
5350 CXXFLAGS=""
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5355 main ()
5359 return 0;
5361 _ACEOF
5362 if ac_fn_cxx_try_compile "$LINENO"; then :
5364 else
5365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5366 CXXFLAGS="-g"
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5371 main ()
5375 return 0;
5377 _ACEOF
5378 if ac_fn_cxx_try_compile "$LINENO"; then :
5379 ac_cv_prog_cxx_g=yes
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5389 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5390 if test "$ac_test_CXXFLAGS" = set; then
5391 CXXFLAGS=$ac_save_CXXFLAGS
5392 elif test $ac_cv_prog_cxx_g = yes; then
5393 if test "$GXX" = yes; then
5394 CXXFLAGS="-g -O2"
5395 else
5396 CXXFLAGS="-g"
5398 else
5399 if test "$GXX" = yes; then
5400 CXXFLAGS="-O2"
5401 else
5402 CXXFLAGS=
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 # We must set the default linker to the linker used by gcc for the correct
5413 # operation of libtool. If LD is not defined and we are using gcc, try to
5414 # set the LD default to the ld used by gcc.
5415 if test -z "$LD"; then
5416 if test "$GCC" = yes; then
5417 case $build in
5418 *-*-mingw*)
5419 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5421 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5422 esac
5423 case $gcc_prog_ld in
5424 # Accept absolute paths.
5425 [\\/]* | [A-Za-z]:[\\/]*)
5426 LD="$gcc_prog_ld" ;;
5427 esac
5431 # Check whether -static-libstdc++ -static-libgcc is supported.
5432 have_static_libs=no
5433 if test "$GCC" = yes; then
5434 saved_LDFLAGS="$LDFLAGS"
5436 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5438 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5439 ac_ext=cpp
5440 ac_cpp='$CXXCPP $CPPFLAGS'
5441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5449 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5450 #error -static-libstdc++ not implemented
5451 #endif
5452 int main() {}
5453 _ACEOF
5454 if ac_fn_cxx_try_link "$LINENO"; then :
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456 $as_echo "yes" >&6; }; have_static_libs=yes
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5461 rm -f core conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
5463 ac_ext=c
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470 LDFLAGS="$saved_LDFLAGS"
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_GNATBIND+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -n "$GNATBIND"; then
5485 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5498 done
5499 done
5500 IFS=$as_save_IFS
5504 GNATBIND=$ac_cv_prog_GNATBIND
5505 if test -n "$GNATBIND"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5507 $as_echo "$GNATBIND" >&6; }
5508 else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 if test -z "$ac_cv_prog_GNATBIND"; then
5516 ac_ct_GNATBIND=$GNATBIND
5517 # Extract the first word of "gnatbind", so it can be a program name with args.
5518 set dummy gnatbind; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$ac_ct_GNATBIND"; then
5525 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5545 if test -n "$ac_ct_GNATBIND"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5547 $as_echo "$ac_ct_GNATBIND" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_ct_GNATBIND" = x; then
5554 GNATBIND="no"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 GNATBIND=$ac_ct_GNATBIND
5564 else
5565 GNATBIND="$ac_cv_prog_GNATBIND"
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5570 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_GNATMAKE+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$GNATMAKE"; then
5577 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5590 done
5591 done
5592 IFS=$as_save_IFS
5596 GNATMAKE=$ac_cv_prog_GNATMAKE
5597 if test -n "$GNATMAKE"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5599 $as_echo "$GNATMAKE" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5607 if test -z "$ac_cv_prog_GNATMAKE"; then
5608 ac_ct_GNATMAKE=$GNATMAKE
5609 # Extract the first word of "gnatmake", so it can be a program name with args.
5610 set dummy gnatmake; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$ac_ct_GNATMAKE"; then
5617 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5630 done
5631 done
5632 IFS=$as_save_IFS
5636 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5637 if test -n "$ac_ct_GNATMAKE"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5639 $as_echo "$ac_ct_GNATMAKE" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5645 if test "x$ac_ct_GNATMAKE" = x; then
5646 GNATMAKE="no"
5647 else
5648 case $cross_compiling:$ac_tool_warned in
5649 yes:)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654 GNATMAKE=$ac_ct_GNATMAKE
5656 else
5657 GNATMAKE="$ac_cv_prog_GNATMAKE"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5661 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5662 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat >conftest.adb <<EOF
5666 pragma Warnings (Off);
5667 with System.CRTL;
5668 pragma Warnings (On);
5669 use type System.CRTL.int64;
5670 procedure conftest is begin null; end conftest;
5672 acx_cv_cc_gcc_supports_ada=no
5673 # There is a bug in old released versions of GCC which causes the
5674 # driver to exit successfully when the appropriate language module
5675 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5676 # Therefore we must check for the error message as well as an
5677 # unsuccessful exit.
5678 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5679 # given a .adb file, but produce no object file. So we must check
5680 # if an object file was really produced to guard against this.
5681 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5682 if test x"$errors" = x && test -f conftest.$ac_objext; then
5683 acx_cv_cc_gcc_supports_ada=yes
5685 rm -f conftest.*
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5688 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5690 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5691 have_gnat=yes
5692 else
5693 have_gnat=no
5698 if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_GDC+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$GDC"; then
5707 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5720 done
5721 done
5722 IFS=$as_save_IFS
5726 GDC=$ac_cv_prog_GDC
5727 if test -n "$GDC"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5729 $as_echo "$GDC" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5737 if test -z "$ac_cv_prog_GDC"; then
5738 ac_ct_GDC=$GDC
5739 # Extract the first word of "gdc", so it can be a program name with args.
5740 set dummy gdc; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -n "$ac_ct_GDC"; then
5747 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_GDC="gdc"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5760 done
5761 done
5762 IFS=$as_save_IFS
5766 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5767 if test -n "$ac_ct_GDC"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5769 $as_echo "$ac_ct_GDC" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5775 if test "x$ac_ct_GDC" = x; then
5776 GDC="no"
5777 else
5778 case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784 GDC=$ac_ct_GDC
5786 else
5787 GDC="$ac_cv_prog_GDC"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5791 $as_echo_n "checking whether the D compiler works... " >&6; }
5792 if ${acx_cv_d_compiler_works+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat >conftest.d <<EOF
5796 module conftest; int main() { return 0; }
5798 acx_cv_d_compiler_works=no
5799 if test "x$GDC" != xno; then
5800 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5801 if test x"$errors" = x && test -f conftest.$ac_objext; then
5802 acx_cv_d_compiler_works=yes
5804 rm -f conftest.*
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5808 $as_echo "$acx_cv_d_compiler_works" >&6; }
5809 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5810 have_gdc=yes
5811 else
5812 have_gdc=no
5815 for ac_prog in cargo
5817 # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_CARGO+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 if test -n "$CARGO"; then
5825 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_CARGO="$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5838 done
5839 done
5840 IFS=$as_save_IFS
5844 CARGO=$ac_cv_prog_CARGO
5845 if test -n "$CARGO"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5847 $as_echo "$CARGO" >&6; }
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5854 test -n "$CARGO" && break
5855 done
5856 test -n "$CARGO" || CARGO="no"
5858 if test "x$CARGO" != xno; then
5859 have_cargo=yes
5860 else
5861 have_cargo=no
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5864 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5865 if ${gcc_cv_prog_cmp_skip+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 echo abfoo >t1
5869 echo cdfoo >t2
5870 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5871 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5872 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5874 else
5875 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5878 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5879 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5881 else
5882 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5885 rm t1 t2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5889 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5890 do_compare="$gcc_cv_prog_cmp_skip"
5894 # Check whether --enable-bootstrap was given.
5895 if test "${enable_bootstrap+set}" = set; then :
5896 enableval=$enable_bootstrap;
5897 else
5898 enable_bootstrap=default
5902 # Issue errors and warnings for invalid/strange bootstrap combinations.
5903 if test -r $srcdir/gcc/configure; then
5904 have_compiler=yes
5905 else
5906 have_compiler=no
5909 case "$have_compiler:$host:$target:$enable_bootstrap" in
5910 *:*:*:no) ;;
5912 # Default behavior. Enable bootstrap if we have a compiler
5913 # and we are in a native configuration.
5914 yes:$build:$build:default)
5915 enable_bootstrap=yes ;;
5917 *:*:*:default)
5918 enable_bootstrap=no ;;
5920 # We have a compiler and we are in a native configuration, bootstrap is ok
5921 yes:$build:$build:yes)
5924 # Other configurations, but we have a compiler. Assume the user knows
5925 # what he's doing.
5926 yes:*:*:yes)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5928 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5931 # No compiler: if they passed --enable-bootstrap explicitly, fail
5932 no:*:*:yes)
5933 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5935 # Fail if wrong command line
5937 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5939 esac
5941 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
5942 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
5943 # require C++14 (or higher).
5944 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5945 CXX="$CXX -std=c++14"
5946 elif test "$have_compiler" = yes; then
5947 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
5948 ac_ext=cpp
5949 ac_cpp='$CXXCPP $CPPFLAGS'
5950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5953 ac_success=no
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5956 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5957 if ${ax_cv_cxx_compile_cxx14+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 // If the compiler admits that it is not ready for C++11, why torture it?
5965 // Hopefully, this will speed up the test.
5967 #ifndef __cplusplus
5969 #error "This is not a C++ compiler"
5971 #elif __cplusplus < 201103L
5973 #error "This is not a C++11 compiler"
5975 #else
5977 namespace cxx11
5980 namespace test_static_assert
5983 template <typename T>
5984 struct check
5986 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5991 namespace test_final_override
5994 struct Base
5996 virtual ~Base() {}
5997 virtual void f() {}
6000 struct Derived : public Base
6002 virtual ~Derived() override {}
6003 virtual void f() override {}
6008 namespace test_double_right_angle_brackets
6011 template < typename T >
6012 struct check {};
6014 typedef check<void> single_type;
6015 typedef check<check<void>> double_type;
6016 typedef check<check<check<void>>> triple_type;
6017 typedef check<check<check<check<void>>>> quadruple_type;
6021 namespace test_decltype
6027 int a = 1;
6028 decltype(a) b = 2;
6029 return a + b;
6034 namespace test_type_deduction
6037 template < typename T1, typename T2 >
6038 struct is_same
6040 static const bool value = false;
6043 template < typename T >
6044 struct is_same<T, T>
6046 static const bool value = true;
6049 template < typename T1, typename T2 >
6050 auto
6051 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6053 return a1 + a2;
6057 test(const int c, volatile int v)
6059 static_assert(is_same<int, decltype(0)>::value == true, "");
6060 static_assert(is_same<int, decltype(c)>::value == false, "");
6061 static_assert(is_same<int, decltype(v)>::value == false, "");
6062 auto ac = c;
6063 auto av = v;
6064 auto sumi = ac + av + 'x';
6065 auto sumf = ac + av + 1.0;
6066 static_assert(is_same<int, decltype(ac)>::value == true, "");
6067 static_assert(is_same<int, decltype(av)>::value == true, "");
6068 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6069 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6070 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6071 return (sumf > 0.0) ? sumi : add(c, v);
6076 namespace test_noexcept
6079 int f() { return 0; }
6080 int g() noexcept { return 0; }
6082 static_assert(noexcept(f()) == false, "");
6083 static_assert(noexcept(g()) == true, "");
6087 namespace test_constexpr
6090 template < typename CharT >
6091 unsigned long constexpr
6092 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6094 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6097 template < typename CharT >
6098 unsigned long constexpr
6099 strlen_c(const CharT *const s) noexcept
6101 return strlen_c_r(s, 0UL);
6104 static_assert(strlen_c("") == 0UL, "");
6105 static_assert(strlen_c("1") == 1UL, "");
6106 static_assert(strlen_c("example") == 7UL, "");
6107 static_assert(strlen_c("another\0example") == 7UL, "");
6111 namespace test_rvalue_references
6114 template < int N >
6115 struct answer
6117 static constexpr int value = N;
6120 answer<1> f(int&) { return answer<1>(); }
6121 answer<2> f(const int&) { return answer<2>(); }
6122 answer<3> f(int&&) { return answer<3>(); }
6124 void
6125 test()
6127 int i = 0;
6128 const int c = 0;
6129 static_assert(decltype(f(i))::value == 1, "");
6130 static_assert(decltype(f(c))::value == 2, "");
6131 static_assert(decltype(f(0))::value == 3, "");
6136 namespace test_uniform_initialization
6139 struct test
6141 static const int zero {};
6142 static const int one {1};
6145 static_assert(test::zero == 0, "");
6146 static_assert(test::one == 1, "");
6150 namespace test_lambdas
6153 void
6154 test1()
6156 auto lambda1 = [](){};
6157 auto lambda2 = lambda1;
6158 lambda1();
6159 lambda2();
6163 test2()
6165 auto a = [](int i, int j){ return i + j; }(1, 2);
6166 auto b = []() -> int { return '0'; }();
6167 auto c = [=](){ return a + b; }();
6168 auto d = [&](){ return c; }();
6169 auto e = [a, &b](int x) mutable {
6170 const auto identity = [](int y){ return y; };
6171 for (auto i = 0; i < a; ++i)
6172 a += b--;
6173 return x + identity(a + b);
6174 }(0);
6175 return a + b + c + d + e;
6179 test3()
6181 const auto nullary = [](){ return 0; };
6182 const auto unary = [](int x){ return x; };
6183 using nullary_t = decltype(nullary);
6184 using unary_t = decltype(unary);
6185 const auto higher1st = [](nullary_t f){ return f(); };
6186 const auto higher2nd = [unary](nullary_t f1){
6187 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6189 return higher1st(nullary) + higher2nd(nullary)(unary);
6194 namespace test_variadic_templates
6197 template <int...>
6198 struct sum;
6200 template <int N0, int... N1toN>
6201 struct sum<N0, N1toN...>
6203 static constexpr auto value = N0 + sum<N1toN...>::value;
6206 template <>
6207 struct sum<>
6209 static constexpr auto value = 0;
6212 static_assert(sum<>::value == 0, "");
6213 static_assert(sum<1>::value == 1, "");
6214 static_assert(sum<23>::value == 23, "");
6215 static_assert(sum<1, 2>::value == 3, "");
6216 static_assert(sum<5, 5, 11>::value == 21, "");
6217 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6221 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6222 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6223 // because of this.
6224 namespace test_template_alias_sfinae
6227 struct foo {};
6229 template<typename T>
6230 using member = typename T::member_type;
6232 template<typename T>
6233 void func(...) {}
6235 template<typename T>
6236 void func(member<T>*) {}
6238 void test();
6240 void test() { func<foo>(0); }
6244 } // namespace cxx11
6246 #endif // __cplusplus >= 201103L
6251 // If the compiler admits that it is not ready for C++14, why torture it?
6252 // Hopefully, this will speed up the test.
6254 #ifndef __cplusplus
6256 #error "This is not a C++ compiler"
6258 #elif __cplusplus < 201402L
6260 #error "This is not a C++14 compiler"
6262 #else
6264 namespace cxx14
6267 namespace test_polymorphic_lambdas
6271 test()
6273 const auto lambda = [](auto&&... args){
6274 const auto istiny = [](auto x){
6275 return (sizeof(x) == 1UL) ? 1 : 0;
6277 const int aretiny[] = { istiny(args)... };
6278 return aretiny[0];
6280 return lambda(1, 1L, 1.0f, '1');
6285 namespace test_binary_literals
6288 constexpr auto ivii = 0b0000000000101010;
6289 static_assert(ivii == 42, "wrong value");
6293 namespace test_generalized_constexpr
6296 template < typename CharT >
6297 constexpr unsigned long
6298 strlen_c(const CharT *const s) noexcept
6300 auto length = 0UL;
6301 for (auto p = s; *p; ++p)
6302 ++length;
6303 return length;
6306 static_assert(strlen_c("") == 0UL, "");
6307 static_assert(strlen_c("x") == 1UL, "");
6308 static_assert(strlen_c("test") == 4UL, "");
6309 static_assert(strlen_c("another\0test") == 7UL, "");
6313 namespace test_lambda_init_capture
6317 test()
6319 auto x = 0;
6320 const auto lambda1 = [a = x](int b){ return a + b; };
6321 const auto lambda2 = [a = lambda1(x)](){ return a; };
6322 return lambda2();
6327 namespace test_digit_separators
6330 constexpr auto ten_million = 100'000'000;
6331 static_assert(ten_million == 100000000, "");
6335 namespace test_return_type_deduction
6338 auto f(int& x) { return x; }
6339 decltype(auto) g(int& x) { return x; }
6341 template < typename T1, typename T2 >
6342 struct is_same
6344 static constexpr auto value = false;
6347 template < typename T >
6348 struct is_same<T, T>
6350 static constexpr auto value = true;
6354 test()
6356 auto x = 0;
6357 static_assert(is_same<int, decltype(f(x))>::value, "");
6358 static_assert(is_same<int&, decltype(g(x))>::value, "");
6359 return x;
6364 } // namespace cxx14
6366 #endif // __cplusplus >= 201402L
6370 _ACEOF
6371 if ac_fn_cxx_try_compile "$LINENO"; then :
6372 ax_cv_cxx_compile_cxx14=yes
6373 else
6374 ax_cv_cxx_compile_cxx14=no
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6379 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6380 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
6381 ac_success=yes
6384 if test x$ac_success = xno; then
6385 for alternative in ${ax_cxx_compile_alternatives}; do
6386 switch="-std=gnu++${alternative}"
6387 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6389 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6390 if eval \${$cachevar+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 ac_save_CXX="$CXX"
6394 CXX="$CXX $switch"
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6399 // If the compiler admits that it is not ready for C++11, why torture it?
6400 // Hopefully, this will speed up the test.
6402 #ifndef __cplusplus
6404 #error "This is not a C++ compiler"
6406 #elif __cplusplus < 201103L
6408 #error "This is not a C++11 compiler"
6410 #else
6412 namespace cxx11
6415 namespace test_static_assert
6418 template <typename T>
6419 struct check
6421 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6426 namespace test_final_override
6429 struct Base
6431 virtual ~Base() {}
6432 virtual void f() {}
6435 struct Derived : public Base
6437 virtual ~Derived() override {}
6438 virtual void f() override {}
6443 namespace test_double_right_angle_brackets
6446 template < typename T >
6447 struct check {};
6449 typedef check<void> single_type;
6450 typedef check<check<void>> double_type;
6451 typedef check<check<check<void>>> triple_type;
6452 typedef check<check<check<check<void>>>> quadruple_type;
6456 namespace test_decltype
6462 int a = 1;
6463 decltype(a) b = 2;
6464 return a + b;
6469 namespace test_type_deduction
6472 template < typename T1, typename T2 >
6473 struct is_same
6475 static const bool value = false;
6478 template < typename T >
6479 struct is_same<T, T>
6481 static const bool value = true;
6484 template < typename T1, typename T2 >
6485 auto
6486 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6488 return a1 + a2;
6492 test(const int c, volatile int v)
6494 static_assert(is_same<int, decltype(0)>::value == true, "");
6495 static_assert(is_same<int, decltype(c)>::value == false, "");
6496 static_assert(is_same<int, decltype(v)>::value == false, "");
6497 auto ac = c;
6498 auto av = v;
6499 auto sumi = ac + av + 'x';
6500 auto sumf = ac + av + 1.0;
6501 static_assert(is_same<int, decltype(ac)>::value == true, "");
6502 static_assert(is_same<int, decltype(av)>::value == true, "");
6503 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6504 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6505 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6506 return (sumf > 0.0) ? sumi : add(c, v);
6511 namespace test_noexcept
6514 int f() { return 0; }
6515 int g() noexcept { return 0; }
6517 static_assert(noexcept(f()) == false, "");
6518 static_assert(noexcept(g()) == true, "");
6522 namespace test_constexpr
6525 template < typename CharT >
6526 unsigned long constexpr
6527 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6529 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6532 template < typename CharT >
6533 unsigned long constexpr
6534 strlen_c(const CharT *const s) noexcept
6536 return strlen_c_r(s, 0UL);
6539 static_assert(strlen_c("") == 0UL, "");
6540 static_assert(strlen_c("1") == 1UL, "");
6541 static_assert(strlen_c("example") == 7UL, "");
6542 static_assert(strlen_c("another\0example") == 7UL, "");
6546 namespace test_rvalue_references
6549 template < int N >
6550 struct answer
6552 static constexpr int value = N;
6555 answer<1> f(int&) { return answer<1>(); }
6556 answer<2> f(const int&) { return answer<2>(); }
6557 answer<3> f(int&&) { return answer<3>(); }
6559 void
6560 test()
6562 int i = 0;
6563 const int c = 0;
6564 static_assert(decltype(f(i))::value == 1, "");
6565 static_assert(decltype(f(c))::value == 2, "");
6566 static_assert(decltype(f(0))::value == 3, "");
6571 namespace test_uniform_initialization
6574 struct test
6576 static const int zero {};
6577 static const int one {1};
6580 static_assert(test::zero == 0, "");
6581 static_assert(test::one == 1, "");
6585 namespace test_lambdas
6588 void
6589 test1()
6591 auto lambda1 = [](){};
6592 auto lambda2 = lambda1;
6593 lambda1();
6594 lambda2();
6598 test2()
6600 auto a = [](int i, int j){ return i + j; }(1, 2);
6601 auto b = []() -> int { return '0'; }();
6602 auto c = [=](){ return a + b; }();
6603 auto d = [&](){ return c; }();
6604 auto e = [a, &b](int x) mutable {
6605 const auto identity = [](int y){ return y; };
6606 for (auto i = 0; i < a; ++i)
6607 a += b--;
6608 return x + identity(a + b);
6609 }(0);
6610 return a + b + c + d + e;
6614 test3()
6616 const auto nullary = [](){ return 0; };
6617 const auto unary = [](int x){ return x; };
6618 using nullary_t = decltype(nullary);
6619 using unary_t = decltype(unary);
6620 const auto higher1st = [](nullary_t f){ return f(); };
6621 const auto higher2nd = [unary](nullary_t f1){
6622 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6624 return higher1st(nullary) + higher2nd(nullary)(unary);
6629 namespace test_variadic_templates
6632 template <int...>
6633 struct sum;
6635 template <int N0, int... N1toN>
6636 struct sum<N0, N1toN...>
6638 static constexpr auto value = N0 + sum<N1toN...>::value;
6641 template <>
6642 struct sum<>
6644 static constexpr auto value = 0;
6647 static_assert(sum<>::value == 0, "");
6648 static_assert(sum<1>::value == 1, "");
6649 static_assert(sum<23>::value == 23, "");
6650 static_assert(sum<1, 2>::value == 3, "");
6651 static_assert(sum<5, 5, 11>::value == 21, "");
6652 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6656 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6657 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6658 // because of this.
6659 namespace test_template_alias_sfinae
6662 struct foo {};
6664 template<typename T>
6665 using member = typename T::member_type;
6667 template<typename T>
6668 void func(...) {}
6670 template<typename T>
6671 void func(member<T>*) {}
6673 void test();
6675 void test() { func<foo>(0); }
6679 } // namespace cxx11
6681 #endif // __cplusplus >= 201103L
6686 // If the compiler admits that it is not ready for C++14, why torture it?
6687 // Hopefully, this will speed up the test.
6689 #ifndef __cplusplus
6691 #error "This is not a C++ compiler"
6693 #elif __cplusplus < 201402L
6695 #error "This is not a C++14 compiler"
6697 #else
6699 namespace cxx14
6702 namespace test_polymorphic_lambdas
6706 test()
6708 const auto lambda = [](auto&&... args){
6709 const auto istiny = [](auto x){
6710 return (sizeof(x) == 1UL) ? 1 : 0;
6712 const int aretiny[] = { istiny(args)... };
6713 return aretiny[0];
6715 return lambda(1, 1L, 1.0f, '1');
6720 namespace test_binary_literals
6723 constexpr auto ivii = 0b0000000000101010;
6724 static_assert(ivii == 42, "wrong value");
6728 namespace test_generalized_constexpr
6731 template < typename CharT >
6732 constexpr unsigned long
6733 strlen_c(const CharT *const s) noexcept
6735 auto length = 0UL;
6736 for (auto p = s; *p; ++p)
6737 ++length;
6738 return length;
6741 static_assert(strlen_c("") == 0UL, "");
6742 static_assert(strlen_c("x") == 1UL, "");
6743 static_assert(strlen_c("test") == 4UL, "");
6744 static_assert(strlen_c("another\0test") == 7UL, "");
6748 namespace test_lambda_init_capture
6752 test()
6754 auto x = 0;
6755 const auto lambda1 = [a = x](int b){ return a + b; };
6756 const auto lambda2 = [a = lambda1(x)](){ return a; };
6757 return lambda2();
6762 namespace test_digit_separators
6765 constexpr auto ten_million = 100'000'000;
6766 static_assert(ten_million == 100000000, "");
6770 namespace test_return_type_deduction
6773 auto f(int& x) { return x; }
6774 decltype(auto) g(int& x) { return x; }
6776 template < typename T1, typename T2 >
6777 struct is_same
6779 static constexpr auto value = false;
6782 template < typename T >
6783 struct is_same<T, T>
6785 static constexpr auto value = true;
6789 test()
6791 auto x = 0;
6792 static_assert(is_same<int, decltype(f(x))>::value, "");
6793 static_assert(is_same<int&, decltype(g(x))>::value, "");
6794 return x;
6799 } // namespace cxx14
6801 #endif // __cplusplus >= 201402L
6805 _ACEOF
6806 if ac_fn_cxx_try_compile "$LINENO"; then :
6807 eval $cachevar=yes
6808 else
6809 eval $cachevar=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 CXX="$ac_save_CXX"
6814 eval ac_res=\$$cachevar
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if eval test x\$$cachevar = xyes; then
6818 CXX="$CXX $switch"
6819 if test -n "$CXXCPP" ; then
6820 CXXCPP="$CXXCPP $switch"
6822 ac_success=yes
6823 break
6825 done
6828 if test x$ac_success = xno; then
6829 for alternative in ${ax_cxx_compile_alternatives}; do
6830 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6831 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6833 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6834 if eval \${$cachevar+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 ac_save_CXX="$CXX"
6838 CXX="$CXX $switch"
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6843 // If the compiler admits that it is not ready for C++11, why torture it?
6844 // Hopefully, this will speed up the test.
6846 #ifndef __cplusplus
6848 #error "This is not a C++ compiler"
6850 #elif __cplusplus < 201103L
6852 #error "This is not a C++11 compiler"
6854 #else
6856 namespace cxx11
6859 namespace test_static_assert
6862 template <typename T>
6863 struct check
6865 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6870 namespace test_final_override
6873 struct Base
6875 virtual ~Base() {}
6876 virtual void f() {}
6879 struct Derived : public Base
6881 virtual ~Derived() override {}
6882 virtual void f() override {}
6887 namespace test_double_right_angle_brackets
6890 template < typename T >
6891 struct check {};
6893 typedef check<void> single_type;
6894 typedef check<check<void>> double_type;
6895 typedef check<check<check<void>>> triple_type;
6896 typedef check<check<check<check<void>>>> quadruple_type;
6900 namespace test_decltype
6906 int a = 1;
6907 decltype(a) b = 2;
6908 return a + b;
6913 namespace test_type_deduction
6916 template < typename T1, typename T2 >
6917 struct is_same
6919 static const bool value = false;
6922 template < typename T >
6923 struct is_same<T, T>
6925 static const bool value = true;
6928 template < typename T1, typename T2 >
6929 auto
6930 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6932 return a1 + a2;
6936 test(const int c, volatile int v)
6938 static_assert(is_same<int, decltype(0)>::value == true, "");
6939 static_assert(is_same<int, decltype(c)>::value == false, "");
6940 static_assert(is_same<int, decltype(v)>::value == false, "");
6941 auto ac = c;
6942 auto av = v;
6943 auto sumi = ac + av + 'x';
6944 auto sumf = ac + av + 1.0;
6945 static_assert(is_same<int, decltype(ac)>::value == true, "");
6946 static_assert(is_same<int, decltype(av)>::value == true, "");
6947 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6949 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6950 return (sumf > 0.0) ? sumi : add(c, v);
6955 namespace test_noexcept
6958 int f() { return 0; }
6959 int g() noexcept { return 0; }
6961 static_assert(noexcept(f()) == false, "");
6962 static_assert(noexcept(g()) == true, "");
6966 namespace test_constexpr
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6973 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6976 template < typename CharT >
6977 unsigned long constexpr
6978 strlen_c(const CharT *const s) noexcept
6980 return strlen_c_r(s, 0UL);
6983 static_assert(strlen_c("") == 0UL, "");
6984 static_assert(strlen_c("1") == 1UL, "");
6985 static_assert(strlen_c("example") == 7UL, "");
6986 static_assert(strlen_c("another\0example") == 7UL, "");
6990 namespace test_rvalue_references
6993 template < int N >
6994 struct answer
6996 static constexpr int value = N;
6999 answer<1> f(int&) { return answer<1>(); }
7000 answer<2> f(const int&) { return answer<2>(); }
7001 answer<3> f(int&&) { return answer<3>(); }
7003 void
7004 test()
7006 int i = 0;
7007 const int c = 0;
7008 static_assert(decltype(f(i))::value == 1, "");
7009 static_assert(decltype(f(c))::value == 2, "");
7010 static_assert(decltype(f(0))::value == 3, "");
7015 namespace test_uniform_initialization
7018 struct test
7020 static const int zero {};
7021 static const int one {1};
7024 static_assert(test::zero == 0, "");
7025 static_assert(test::one == 1, "");
7029 namespace test_lambdas
7032 void
7033 test1()
7035 auto lambda1 = [](){};
7036 auto lambda2 = lambda1;
7037 lambda1();
7038 lambda2();
7042 test2()
7044 auto a = [](int i, int j){ return i + j; }(1, 2);
7045 auto b = []() -> int { return '0'; }();
7046 auto c = [=](){ return a + b; }();
7047 auto d = [&](){ return c; }();
7048 auto e = [a, &b](int x) mutable {
7049 const auto identity = [](int y){ return y; };
7050 for (auto i = 0; i < a; ++i)
7051 a += b--;
7052 return x + identity(a + b);
7053 }(0);
7054 return a + b + c + d + e;
7058 test3()
7060 const auto nullary = [](){ return 0; };
7061 const auto unary = [](int x){ return x; };
7062 using nullary_t = decltype(nullary);
7063 using unary_t = decltype(unary);
7064 const auto higher1st = [](nullary_t f){ return f(); };
7065 const auto higher2nd = [unary](nullary_t f1){
7066 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7068 return higher1st(nullary) + higher2nd(nullary)(unary);
7073 namespace test_variadic_templates
7076 template <int...>
7077 struct sum;
7079 template <int N0, int... N1toN>
7080 struct sum<N0, N1toN...>
7082 static constexpr auto value = N0 + sum<N1toN...>::value;
7085 template <>
7086 struct sum<>
7088 static constexpr auto value = 0;
7091 static_assert(sum<>::value == 0, "");
7092 static_assert(sum<1>::value == 1, "");
7093 static_assert(sum<23>::value == 23, "");
7094 static_assert(sum<1, 2>::value == 3, "");
7095 static_assert(sum<5, 5, 11>::value == 21, "");
7096 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7100 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7101 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7102 // because of this.
7103 namespace test_template_alias_sfinae
7106 struct foo {};
7108 template<typename T>
7109 using member = typename T::member_type;
7111 template<typename T>
7112 void func(...) {}
7114 template<typename T>
7115 void func(member<T>*) {}
7117 void test();
7119 void test() { func<foo>(0); }
7123 } // namespace cxx11
7125 #endif // __cplusplus >= 201103L
7130 // If the compiler admits that it is not ready for C++14, why torture it?
7131 // Hopefully, this will speed up the test.
7133 #ifndef __cplusplus
7135 #error "This is not a C++ compiler"
7137 #elif __cplusplus < 201402L
7139 #error "This is not a C++14 compiler"
7141 #else
7143 namespace cxx14
7146 namespace test_polymorphic_lambdas
7150 test()
7152 const auto lambda = [](auto&&... args){
7153 const auto istiny = [](auto x){
7154 return (sizeof(x) == 1UL) ? 1 : 0;
7156 const int aretiny[] = { istiny(args)... };
7157 return aretiny[0];
7159 return lambda(1, 1L, 1.0f, '1');
7164 namespace test_binary_literals
7167 constexpr auto ivii = 0b0000000000101010;
7168 static_assert(ivii == 42, "wrong value");
7172 namespace test_generalized_constexpr
7175 template < typename CharT >
7176 constexpr unsigned long
7177 strlen_c(const CharT *const s) noexcept
7179 auto length = 0UL;
7180 for (auto p = s; *p; ++p)
7181 ++length;
7182 return length;
7185 static_assert(strlen_c("") == 0UL, "");
7186 static_assert(strlen_c("x") == 1UL, "");
7187 static_assert(strlen_c("test") == 4UL, "");
7188 static_assert(strlen_c("another\0test") == 7UL, "");
7192 namespace test_lambda_init_capture
7196 test()
7198 auto x = 0;
7199 const auto lambda1 = [a = x](int b){ return a + b; };
7200 const auto lambda2 = [a = lambda1(x)](){ return a; };
7201 return lambda2();
7206 namespace test_digit_separators
7209 constexpr auto ten_million = 100'000'000;
7210 static_assert(ten_million == 100000000, "");
7214 namespace test_return_type_deduction
7217 auto f(int& x) { return x; }
7218 decltype(auto) g(int& x) { return x; }
7220 template < typename T1, typename T2 >
7221 struct is_same
7223 static constexpr auto value = false;
7226 template < typename T >
7227 struct is_same<T, T>
7229 static constexpr auto value = true;
7233 test()
7235 auto x = 0;
7236 static_assert(is_same<int, decltype(f(x))>::value, "");
7237 static_assert(is_same<int&, decltype(g(x))>::value, "");
7238 return x;
7243 } // namespace cxx14
7245 #endif // __cplusplus >= 201402L
7249 _ACEOF
7250 if ac_fn_cxx_try_compile "$LINENO"; then :
7251 eval $cachevar=yes
7252 else
7253 eval $cachevar=no
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 CXX="$ac_save_CXX"
7258 eval ac_res=\$$cachevar
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7260 $as_echo "$ac_res" >&6; }
7261 if eval test x\$$cachevar = xyes; then
7262 CXX="$CXX $switch"
7263 if test -n "$CXXCPP" ; then
7264 CXXCPP="$CXXCPP $switch"
7266 ac_success=yes
7267 break
7269 done
7270 if test x$ac_success = xyes; then
7271 break
7273 done
7276 ac_ext=c
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7283 if test x$ac_success = xno; then
7284 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
7287 if test x$ac_success = xno; then
7288 HAVE_CXX14=0
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
7290 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
7291 else
7292 HAVE_CXX14=1
7294 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7300 if test "${build}" != "${host}"; then
7301 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
7302 ac_ext=cpp
7303 ac_cpp='$CXXCPP $CPPFLAGS'
7304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7307 ac_success=no
7308 ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
7309 ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
7310 ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
7311 CXX="$CXX_FOR_BUILD"
7312 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
7313 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7315 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7316 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 // If the compiler admits that it is not ready for C++11, why torture it?
7324 // Hopefully, this will speed up the test.
7326 #ifndef __cplusplus
7328 #error "This is not a C++ compiler"
7330 #elif __cplusplus < 201103L
7332 #error "This is not a C++11 compiler"
7334 #else
7336 namespace cxx11
7339 namespace test_static_assert
7342 template <typename T>
7343 struct check
7345 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7350 namespace test_final_override
7353 struct Base
7355 virtual ~Base() {}
7356 virtual void f() {}
7359 struct Derived : public Base
7361 virtual ~Derived() override {}
7362 virtual void f() override {}
7367 namespace test_double_right_angle_brackets
7370 template < typename T >
7371 struct check {};
7373 typedef check<void> single_type;
7374 typedef check<check<void>> double_type;
7375 typedef check<check<check<void>>> triple_type;
7376 typedef check<check<check<check<void>>>> quadruple_type;
7380 namespace test_decltype
7386 int a = 1;
7387 decltype(a) b = 2;
7388 return a + b;
7393 namespace test_type_deduction
7396 template < typename T1, typename T2 >
7397 struct is_same
7399 static const bool value = false;
7402 template < typename T >
7403 struct is_same<T, T>
7405 static const bool value = true;
7408 template < typename T1, typename T2 >
7409 auto
7410 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7412 return a1 + a2;
7416 test(const int c, volatile int v)
7418 static_assert(is_same<int, decltype(0)>::value == true, "");
7419 static_assert(is_same<int, decltype(c)>::value == false, "");
7420 static_assert(is_same<int, decltype(v)>::value == false, "");
7421 auto ac = c;
7422 auto av = v;
7423 auto sumi = ac + av + 'x';
7424 auto sumf = ac + av + 1.0;
7425 static_assert(is_same<int, decltype(ac)>::value == true, "");
7426 static_assert(is_same<int, decltype(av)>::value == true, "");
7427 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7428 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7429 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7430 return (sumf > 0.0) ? sumi : add(c, v);
7435 namespace test_noexcept
7438 int f() { return 0; }
7439 int g() noexcept { return 0; }
7441 static_assert(noexcept(f()) == false, "");
7442 static_assert(noexcept(g()) == true, "");
7446 namespace test_constexpr
7449 template < typename CharT >
7450 unsigned long constexpr
7451 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7453 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7456 template < typename CharT >
7457 unsigned long constexpr
7458 strlen_c(const CharT *const s) noexcept
7460 return strlen_c_r(s, 0UL);
7463 static_assert(strlen_c("") == 0UL, "");
7464 static_assert(strlen_c("1") == 1UL, "");
7465 static_assert(strlen_c("example") == 7UL, "");
7466 static_assert(strlen_c("another\0example") == 7UL, "");
7470 namespace test_rvalue_references
7473 template < int N >
7474 struct answer
7476 static constexpr int value = N;
7479 answer<1> f(int&) { return answer<1>(); }
7480 answer<2> f(const int&) { return answer<2>(); }
7481 answer<3> f(int&&) { return answer<3>(); }
7483 void
7484 test()
7486 int i = 0;
7487 const int c = 0;
7488 static_assert(decltype(f(i))::value == 1, "");
7489 static_assert(decltype(f(c))::value == 2, "");
7490 static_assert(decltype(f(0))::value == 3, "");
7495 namespace test_uniform_initialization
7498 struct test
7500 static const int zero {};
7501 static const int one {1};
7504 static_assert(test::zero == 0, "");
7505 static_assert(test::one == 1, "");
7509 namespace test_lambdas
7512 void
7513 test1()
7515 auto lambda1 = [](){};
7516 auto lambda2 = lambda1;
7517 lambda1();
7518 lambda2();
7522 test2()
7524 auto a = [](int i, int j){ return i + j; }(1, 2);
7525 auto b = []() -> int { return '0'; }();
7526 auto c = [=](){ return a + b; }();
7527 auto d = [&](){ return c; }();
7528 auto e = [a, &b](int x) mutable {
7529 const auto identity = [](int y){ return y; };
7530 for (auto i = 0; i < a; ++i)
7531 a += b--;
7532 return x + identity(a + b);
7533 }(0);
7534 return a + b + c + d + e;
7538 test3()
7540 const auto nullary = [](){ return 0; };
7541 const auto unary = [](int x){ return x; };
7542 using nullary_t = decltype(nullary);
7543 using unary_t = decltype(unary);
7544 const auto higher1st = [](nullary_t f){ return f(); };
7545 const auto higher2nd = [unary](nullary_t f1){
7546 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7548 return higher1st(nullary) + higher2nd(nullary)(unary);
7553 namespace test_variadic_templates
7556 template <int...>
7557 struct sum;
7559 template <int N0, int... N1toN>
7560 struct sum<N0, N1toN...>
7562 static constexpr auto value = N0 + sum<N1toN...>::value;
7565 template <>
7566 struct sum<>
7568 static constexpr auto value = 0;
7571 static_assert(sum<>::value == 0, "");
7572 static_assert(sum<1>::value == 1, "");
7573 static_assert(sum<23>::value == 23, "");
7574 static_assert(sum<1, 2>::value == 3, "");
7575 static_assert(sum<5, 5, 11>::value == 21, "");
7576 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7580 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7581 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7582 // because of this.
7583 namespace test_template_alias_sfinae
7586 struct foo {};
7588 template<typename T>
7589 using member = typename T::member_type;
7591 template<typename T>
7592 void func(...) {}
7594 template<typename T>
7595 void func(member<T>*) {}
7597 void test();
7599 void test() { func<foo>(0); }
7603 } // namespace cxx11
7605 #endif // __cplusplus >= 201103L
7610 // If the compiler admits that it is not ready for C++14, why torture it?
7611 // Hopefully, this will speed up the test.
7613 #ifndef __cplusplus
7615 #error "This is not a C++ compiler"
7617 #elif __cplusplus < 201402L
7619 #error "This is not a C++14 compiler"
7621 #else
7623 namespace cxx14
7626 namespace test_polymorphic_lambdas
7630 test()
7632 const auto lambda = [](auto&&... args){
7633 const auto istiny = [](auto x){
7634 return (sizeof(x) == 1UL) ? 1 : 0;
7636 const int aretiny[] = { istiny(args)... };
7637 return aretiny[0];
7639 return lambda(1, 1L, 1.0f, '1');
7644 namespace test_binary_literals
7647 constexpr auto ivii = 0b0000000000101010;
7648 static_assert(ivii == 42, "wrong value");
7652 namespace test_generalized_constexpr
7655 template < typename CharT >
7656 constexpr unsigned long
7657 strlen_c(const CharT *const s) noexcept
7659 auto length = 0UL;
7660 for (auto p = s; *p; ++p)
7661 ++length;
7662 return length;
7665 static_assert(strlen_c("") == 0UL, "");
7666 static_assert(strlen_c("x") == 1UL, "");
7667 static_assert(strlen_c("test") == 4UL, "");
7668 static_assert(strlen_c("another\0test") == 7UL, "");
7672 namespace test_lambda_init_capture
7676 test()
7678 auto x = 0;
7679 const auto lambda1 = [a = x](int b){ return a + b; };
7680 const auto lambda2 = [a = lambda1(x)](){ return a; };
7681 return lambda2();
7686 namespace test_digit_separators
7689 constexpr auto ten_million = 100'000'000;
7690 static_assert(ten_million == 100000000, "");
7694 namespace test_return_type_deduction
7697 auto f(int& x) { return x; }
7698 decltype(auto) g(int& x) { return x; }
7700 template < typename T1, typename T2 >
7701 struct is_same
7703 static constexpr auto value = false;
7706 template < typename T >
7707 struct is_same<T, T>
7709 static constexpr auto value = true;
7713 test()
7715 auto x = 0;
7716 static_assert(is_same<int, decltype(f(x))>::value, "");
7717 static_assert(is_same<int&, decltype(g(x))>::value, "");
7718 return x;
7723 } // namespace cxx14
7725 #endif // __cplusplus >= 201402L
7729 _ACEOF
7730 if ac_fn_cxx_try_compile "$LINENO"; then :
7731 ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
7732 else
7733 ax_cv_cxx_compile_cxx14_FOR_BUILD=no
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7738 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7739 if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
7740 ac_success=yes
7743 if test x$ac_success = xno; then
7744 for alternative in ${ax_cxx_compile_alternatives}; do
7745 switch="-std=gnu++${alternative}"
7746 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7748 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7749 if eval \${$cachevar+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 ac_save_CXX="$CXX"
7753 CXX="$CXX $switch"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7758 // If the compiler admits that it is not ready for C++11, why torture it?
7759 // Hopefully, this will speed up the test.
7761 #ifndef __cplusplus
7763 #error "This is not a C++ compiler"
7765 #elif __cplusplus < 201103L
7767 #error "This is not a C++11 compiler"
7769 #else
7771 namespace cxx11
7774 namespace test_static_assert
7777 template <typename T>
7778 struct check
7780 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7785 namespace test_final_override
7788 struct Base
7790 virtual ~Base() {}
7791 virtual void f() {}
7794 struct Derived : public Base
7796 virtual ~Derived() override {}
7797 virtual void f() override {}
7802 namespace test_double_right_angle_brackets
7805 template < typename T >
7806 struct check {};
7808 typedef check<void> single_type;
7809 typedef check<check<void>> double_type;
7810 typedef check<check<check<void>>> triple_type;
7811 typedef check<check<check<check<void>>>> quadruple_type;
7815 namespace test_decltype
7821 int a = 1;
7822 decltype(a) b = 2;
7823 return a + b;
7828 namespace test_type_deduction
7831 template < typename T1, typename T2 >
7832 struct is_same
7834 static const bool value = false;
7837 template < typename T >
7838 struct is_same<T, T>
7840 static const bool value = true;
7843 template < typename T1, typename T2 >
7844 auto
7845 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7847 return a1 + a2;
7851 test(const int c, volatile int v)
7853 static_assert(is_same<int, decltype(0)>::value == true, "");
7854 static_assert(is_same<int, decltype(c)>::value == false, "");
7855 static_assert(is_same<int, decltype(v)>::value == false, "");
7856 auto ac = c;
7857 auto av = v;
7858 auto sumi = ac + av + 'x';
7859 auto sumf = ac + av + 1.0;
7860 static_assert(is_same<int, decltype(ac)>::value == true, "");
7861 static_assert(is_same<int, decltype(av)>::value == true, "");
7862 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7863 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7864 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7865 return (sumf > 0.0) ? sumi : add(c, v);
7870 namespace test_noexcept
7873 int f() { return 0; }
7874 int g() noexcept { return 0; }
7876 static_assert(noexcept(f()) == false, "");
7877 static_assert(noexcept(g()) == true, "");
7881 namespace test_constexpr
7884 template < typename CharT >
7885 unsigned long constexpr
7886 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7888 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7891 template < typename CharT >
7892 unsigned long constexpr
7893 strlen_c(const CharT *const s) noexcept
7895 return strlen_c_r(s, 0UL);
7898 static_assert(strlen_c("") == 0UL, "");
7899 static_assert(strlen_c("1") == 1UL, "");
7900 static_assert(strlen_c("example") == 7UL, "");
7901 static_assert(strlen_c("another\0example") == 7UL, "");
7905 namespace test_rvalue_references
7908 template < int N >
7909 struct answer
7911 static constexpr int value = N;
7914 answer<1> f(int&) { return answer<1>(); }
7915 answer<2> f(const int&) { return answer<2>(); }
7916 answer<3> f(int&&) { return answer<3>(); }
7918 void
7919 test()
7921 int i = 0;
7922 const int c = 0;
7923 static_assert(decltype(f(i))::value == 1, "");
7924 static_assert(decltype(f(c))::value == 2, "");
7925 static_assert(decltype(f(0))::value == 3, "");
7930 namespace test_uniform_initialization
7933 struct test
7935 static const int zero {};
7936 static const int one {1};
7939 static_assert(test::zero == 0, "");
7940 static_assert(test::one == 1, "");
7944 namespace test_lambdas
7947 void
7948 test1()
7950 auto lambda1 = [](){};
7951 auto lambda2 = lambda1;
7952 lambda1();
7953 lambda2();
7957 test2()
7959 auto a = [](int i, int j){ return i + j; }(1, 2);
7960 auto b = []() -> int { return '0'; }();
7961 auto c = [=](){ return a + b; }();
7962 auto d = [&](){ return c; }();
7963 auto e = [a, &b](int x) mutable {
7964 const auto identity = [](int y){ return y; };
7965 for (auto i = 0; i < a; ++i)
7966 a += b--;
7967 return x + identity(a + b);
7968 }(0);
7969 return a + b + c + d + e;
7973 test3()
7975 const auto nullary = [](){ return 0; };
7976 const auto unary = [](int x){ return x; };
7977 using nullary_t = decltype(nullary);
7978 using unary_t = decltype(unary);
7979 const auto higher1st = [](nullary_t f){ return f(); };
7980 const auto higher2nd = [unary](nullary_t f1){
7981 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7983 return higher1st(nullary) + higher2nd(nullary)(unary);
7988 namespace test_variadic_templates
7991 template <int...>
7992 struct sum;
7994 template <int N0, int... N1toN>
7995 struct sum<N0, N1toN...>
7997 static constexpr auto value = N0 + sum<N1toN...>::value;
8000 template <>
8001 struct sum<>
8003 static constexpr auto value = 0;
8006 static_assert(sum<>::value == 0, "");
8007 static_assert(sum<1>::value == 1, "");
8008 static_assert(sum<23>::value == 23, "");
8009 static_assert(sum<1, 2>::value == 3, "");
8010 static_assert(sum<5, 5, 11>::value == 21, "");
8011 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8015 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8016 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8017 // because of this.
8018 namespace test_template_alias_sfinae
8021 struct foo {};
8023 template<typename T>
8024 using member = typename T::member_type;
8026 template<typename T>
8027 void func(...) {}
8029 template<typename T>
8030 void func(member<T>*) {}
8032 void test();
8034 void test() { func<foo>(0); }
8038 } // namespace cxx11
8040 #endif // __cplusplus >= 201103L
8045 // If the compiler admits that it is not ready for C++14, why torture it?
8046 // Hopefully, this will speed up the test.
8048 #ifndef __cplusplus
8050 #error "This is not a C++ compiler"
8052 #elif __cplusplus < 201402L
8054 #error "This is not a C++14 compiler"
8056 #else
8058 namespace cxx14
8061 namespace test_polymorphic_lambdas
8065 test()
8067 const auto lambda = [](auto&&... args){
8068 const auto istiny = [](auto x){
8069 return (sizeof(x) == 1UL) ? 1 : 0;
8071 const int aretiny[] = { istiny(args)... };
8072 return aretiny[0];
8074 return lambda(1, 1L, 1.0f, '1');
8079 namespace test_binary_literals
8082 constexpr auto ivii = 0b0000000000101010;
8083 static_assert(ivii == 42, "wrong value");
8087 namespace test_generalized_constexpr
8090 template < typename CharT >
8091 constexpr unsigned long
8092 strlen_c(const CharT *const s) noexcept
8094 auto length = 0UL;
8095 for (auto p = s; *p; ++p)
8096 ++length;
8097 return length;
8100 static_assert(strlen_c("") == 0UL, "");
8101 static_assert(strlen_c("x") == 1UL, "");
8102 static_assert(strlen_c("test") == 4UL, "");
8103 static_assert(strlen_c("another\0test") == 7UL, "");
8107 namespace test_lambda_init_capture
8111 test()
8113 auto x = 0;
8114 const auto lambda1 = [a = x](int b){ return a + b; };
8115 const auto lambda2 = [a = lambda1(x)](){ return a; };
8116 return lambda2();
8121 namespace test_digit_separators
8124 constexpr auto ten_million = 100'000'000;
8125 static_assert(ten_million == 100000000, "");
8129 namespace test_return_type_deduction
8132 auto f(int& x) { return x; }
8133 decltype(auto) g(int& x) { return x; }
8135 template < typename T1, typename T2 >
8136 struct is_same
8138 static constexpr auto value = false;
8141 template < typename T >
8142 struct is_same<T, T>
8144 static constexpr auto value = true;
8148 test()
8150 auto x = 0;
8151 static_assert(is_same<int, decltype(f(x))>::value, "");
8152 static_assert(is_same<int&, decltype(g(x))>::value, "");
8153 return x;
8158 } // namespace cxx14
8160 #endif // __cplusplus >= 201402L
8164 _ACEOF
8165 if ac_fn_cxx_try_compile "$LINENO"; then :
8166 eval $cachevar=yes
8167 else
8168 eval $cachevar=no
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 CXX="$ac_save_CXX"
8173 eval ac_res=\$$cachevar
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8175 $as_echo "$ac_res" >&6; }
8176 if eval test x\$$cachevar = xyes; then
8177 CXX="$CXX $switch"
8178 if test -n "$CXXCPP" ; then
8179 CXXCPP="$CXXCPP $switch"
8181 ac_success=yes
8182 break
8184 done
8187 if test x$ac_success = xno; then
8188 for alternative in ${ax_cxx_compile_alternatives}; do
8189 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8190 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8192 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
8193 if eval \${$cachevar+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 ac_save_CXX="$CXX"
8197 CXX="$CXX $switch"
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8202 // If the compiler admits that it is not ready for C++11, why torture it?
8203 // Hopefully, this will speed up the test.
8205 #ifndef __cplusplus
8207 #error "This is not a C++ compiler"
8209 #elif __cplusplus < 201103L
8211 #error "This is not a C++11 compiler"
8213 #else
8215 namespace cxx11
8218 namespace test_static_assert
8221 template <typename T>
8222 struct check
8224 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8229 namespace test_final_override
8232 struct Base
8234 virtual ~Base() {}
8235 virtual void f() {}
8238 struct Derived : public Base
8240 virtual ~Derived() override {}
8241 virtual void f() override {}
8246 namespace test_double_right_angle_brackets
8249 template < typename T >
8250 struct check {};
8252 typedef check<void> single_type;
8253 typedef check<check<void>> double_type;
8254 typedef check<check<check<void>>> triple_type;
8255 typedef check<check<check<check<void>>>> quadruple_type;
8259 namespace test_decltype
8265 int a = 1;
8266 decltype(a) b = 2;
8267 return a + b;
8272 namespace test_type_deduction
8275 template < typename T1, typename T2 >
8276 struct is_same
8278 static const bool value = false;
8281 template < typename T >
8282 struct is_same<T, T>
8284 static const bool value = true;
8287 template < typename T1, typename T2 >
8288 auto
8289 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8291 return a1 + a2;
8295 test(const int c, volatile int v)
8297 static_assert(is_same<int, decltype(0)>::value == true, "");
8298 static_assert(is_same<int, decltype(c)>::value == false, "");
8299 static_assert(is_same<int, decltype(v)>::value == false, "");
8300 auto ac = c;
8301 auto av = v;
8302 auto sumi = ac + av + 'x';
8303 auto sumf = ac + av + 1.0;
8304 static_assert(is_same<int, decltype(ac)>::value == true, "");
8305 static_assert(is_same<int, decltype(av)>::value == true, "");
8306 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8307 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8308 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8309 return (sumf > 0.0) ? sumi : add(c, v);
8314 namespace test_noexcept
8317 int f() { return 0; }
8318 int g() noexcept { return 0; }
8320 static_assert(noexcept(f()) == false, "");
8321 static_assert(noexcept(g()) == true, "");
8325 namespace test_constexpr
8328 template < typename CharT >
8329 unsigned long constexpr
8330 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8332 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8335 template < typename CharT >
8336 unsigned long constexpr
8337 strlen_c(const CharT *const s) noexcept
8339 return strlen_c_r(s, 0UL);
8342 static_assert(strlen_c("") == 0UL, "");
8343 static_assert(strlen_c("1") == 1UL, "");
8344 static_assert(strlen_c("example") == 7UL, "");
8345 static_assert(strlen_c("another\0example") == 7UL, "");
8349 namespace test_rvalue_references
8352 template < int N >
8353 struct answer
8355 static constexpr int value = N;
8358 answer<1> f(int&) { return answer<1>(); }
8359 answer<2> f(const int&) { return answer<2>(); }
8360 answer<3> f(int&&) { return answer<3>(); }
8362 void
8363 test()
8365 int i = 0;
8366 const int c = 0;
8367 static_assert(decltype(f(i))::value == 1, "");
8368 static_assert(decltype(f(c))::value == 2, "");
8369 static_assert(decltype(f(0))::value == 3, "");
8374 namespace test_uniform_initialization
8377 struct test
8379 static const int zero {};
8380 static const int one {1};
8383 static_assert(test::zero == 0, "");
8384 static_assert(test::one == 1, "");
8388 namespace test_lambdas
8391 void
8392 test1()
8394 auto lambda1 = [](){};
8395 auto lambda2 = lambda1;
8396 lambda1();
8397 lambda2();
8401 test2()
8403 auto a = [](int i, int j){ return i + j; }(1, 2);
8404 auto b = []() -> int { return '0'; }();
8405 auto c = [=](){ return a + b; }();
8406 auto d = [&](){ return c; }();
8407 auto e = [a, &b](int x) mutable {
8408 const auto identity = [](int y){ return y; };
8409 for (auto i = 0; i < a; ++i)
8410 a += b--;
8411 return x + identity(a + b);
8412 }(0);
8413 return a + b + c + d + e;
8417 test3()
8419 const auto nullary = [](){ return 0; };
8420 const auto unary = [](int x){ return x; };
8421 using nullary_t = decltype(nullary);
8422 using unary_t = decltype(unary);
8423 const auto higher1st = [](nullary_t f){ return f(); };
8424 const auto higher2nd = [unary](nullary_t f1){
8425 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8427 return higher1st(nullary) + higher2nd(nullary)(unary);
8432 namespace test_variadic_templates
8435 template <int...>
8436 struct sum;
8438 template <int N0, int... N1toN>
8439 struct sum<N0, N1toN...>
8441 static constexpr auto value = N0 + sum<N1toN...>::value;
8444 template <>
8445 struct sum<>
8447 static constexpr auto value = 0;
8450 static_assert(sum<>::value == 0, "");
8451 static_assert(sum<1>::value == 1, "");
8452 static_assert(sum<23>::value == 23, "");
8453 static_assert(sum<1, 2>::value == 3, "");
8454 static_assert(sum<5, 5, 11>::value == 21, "");
8455 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8459 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8460 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8461 // because of this.
8462 namespace test_template_alias_sfinae
8465 struct foo {};
8467 template<typename T>
8468 using member = typename T::member_type;
8470 template<typename T>
8471 void func(...) {}
8473 template<typename T>
8474 void func(member<T>*) {}
8476 void test();
8478 void test() { func<foo>(0); }
8482 } // namespace cxx11
8484 #endif // __cplusplus >= 201103L
8489 // If the compiler admits that it is not ready for C++14, why torture it?
8490 // Hopefully, this will speed up the test.
8492 #ifndef __cplusplus
8494 #error "This is not a C++ compiler"
8496 #elif __cplusplus < 201402L
8498 #error "This is not a C++14 compiler"
8500 #else
8502 namespace cxx14
8505 namespace test_polymorphic_lambdas
8509 test()
8511 const auto lambda = [](auto&&... args){
8512 const auto istiny = [](auto x){
8513 return (sizeof(x) == 1UL) ? 1 : 0;
8515 const int aretiny[] = { istiny(args)... };
8516 return aretiny[0];
8518 return lambda(1, 1L, 1.0f, '1');
8523 namespace test_binary_literals
8526 constexpr auto ivii = 0b0000000000101010;
8527 static_assert(ivii == 42, "wrong value");
8531 namespace test_generalized_constexpr
8534 template < typename CharT >
8535 constexpr unsigned long
8536 strlen_c(const CharT *const s) noexcept
8538 auto length = 0UL;
8539 for (auto p = s; *p; ++p)
8540 ++length;
8541 return length;
8544 static_assert(strlen_c("") == 0UL, "");
8545 static_assert(strlen_c("x") == 1UL, "");
8546 static_assert(strlen_c("test") == 4UL, "");
8547 static_assert(strlen_c("another\0test") == 7UL, "");
8551 namespace test_lambda_init_capture
8555 test()
8557 auto x = 0;
8558 const auto lambda1 = [a = x](int b){ return a + b; };
8559 const auto lambda2 = [a = lambda1(x)](){ return a; };
8560 return lambda2();
8565 namespace test_digit_separators
8568 constexpr auto ten_million = 100'000'000;
8569 static_assert(ten_million == 100000000, "");
8573 namespace test_return_type_deduction
8576 auto f(int& x) { return x; }
8577 decltype(auto) g(int& x) { return x; }
8579 template < typename T1, typename T2 >
8580 struct is_same
8582 static constexpr auto value = false;
8585 template < typename T >
8586 struct is_same<T, T>
8588 static constexpr auto value = true;
8592 test()
8594 auto x = 0;
8595 static_assert(is_same<int, decltype(f(x))>::value, "");
8596 static_assert(is_same<int&, decltype(g(x))>::value, "");
8597 return x;
8602 } // namespace cxx14
8604 #endif // __cplusplus >= 201402L
8608 _ACEOF
8609 if ac_fn_cxx_try_compile "$LINENO"; then :
8610 eval $cachevar=yes
8611 else
8612 eval $cachevar=no
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 CXX="$ac_save_CXX"
8617 eval ac_res=\$$cachevar
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8619 $as_echo "$ac_res" >&6; }
8620 if eval test x\$$cachevar = xyes; then
8621 CXX="$CXX $switch"
8622 if test -n "$CXXCPP" ; then
8623 CXXCPP="$CXXCPP $switch"
8625 ac_success=yes
8626 break
8628 done
8629 if test x$ac_success = xyes; then
8630 break
8632 done
8634 CXX_FOR_BUILD="$CXX"
8635 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8636 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8637 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8638 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8639 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8640 ac_ext=c
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8647 if test x$ac_success = xno; then
8648 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8651 if test x$ac_success = xno; then
8652 HAVE_CXX14_FOR_BUILD=0
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8654 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
8655 else
8656 HAVE_CXX14_FOR_BUILD=1
8658 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8666 # Check whether --enable-pgo-build was given.
8667 if test "${enable_pgo_build+set}" = set; then :
8668 enableval=$enable_pgo_build; enable_pgo_build=$enableval
8669 else
8670 enable_pgo_build=no
8674 # Issue errors and warnings for invalid/strange PGO build combinations.
8675 case "$have_compiler:$host:$target:$enable_pgo_build" in
8676 *:*:*:no) ;;
8678 # Allow the PGO build only if we aren't building a compiler and
8679 # we are in a native configuration.
8680 no:$build:$build:yes | no:$build:$build:lto) ;;
8682 # Disallow the PGO bootstrap if we are building a compiler.
8683 yes:*:*:yes | yes:*:*:lto)
8684 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8687 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
8689 esac
8691 if test "$enable_pgo_build" != "no"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8693 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8694 old_CFLAGS="$CFLAGS"
8695 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
8696 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int foo;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"; then :
8704 else
8705 PGO_BUILD_GEN_CFLAGS=
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 CFLAGS="$old_CFLAGS"
8709 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 PGO_BUILD_USE_CFLAGS="-fprofile-use"
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8719 if test "$enable_pgo_build" = "lto"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8721 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8722 old_CFLAGS="$CFLAGS"
8723 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
8724 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 int foo;
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8731 else
8732 PGO_BUILD_LTO_CFLAGS=
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 CFLAGS="$old_CFLAGS"
8736 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8738 $as_echo "yes" >&6; }
8739 else
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8743 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8751 # Used for setting $lt_cv_objdir
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8753 $as_echo_n "checking for objdir... " >&6; }
8754 if ${lt_cv_objdir+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 rm -f .libs 2>/dev/null
8758 mkdir .libs 2>/dev/null
8759 if test -d .libs; then
8760 lt_cv_objdir=.libs
8761 else
8762 # MS-DOS does not allow filenames that begin with a dot.
8763 lt_cv_objdir=_libs
8765 rmdir .libs 2>/dev/null
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8768 $as_echo "$lt_cv_objdir" >&6; }
8769 objdir=$lt_cv_objdir
8775 cat >>confdefs.h <<_ACEOF
8776 #define LT_OBJDIR "$lt_cv_objdir/"
8777 _ACEOF
8781 # Check for GMP, MPFR and MPC
8782 require_gmp=no
8783 require_mpc=no
8784 if test -d ${srcdir}/gcc ; then
8785 require_gmp=yes
8786 require_mpc=yes
8788 if test -d ${srcdir}/gdb ; then
8789 if test "x$enable_gdb" != xno; then
8790 require_gmp=yes
8794 gmplibs="-lmpfr -lgmp"
8795 if test x"$require_mpc" = "xyes" ; then
8796 gmplibs="-lmpc $gmplibs"
8798 gmpinc=
8799 have_gmp=no
8801 # Specify a location for mpc
8802 # check for this first so it ends up on the link line before mpfr.
8804 # Check whether --with-mpc was given.
8805 if test "${with_mpc+set}" = set; then :
8806 withval=$with_mpc;
8810 # Check whether --with-mpc-include was given.
8811 if test "${with_mpc_include+set}" = set; then :
8812 withval=$with_mpc_include;
8816 # Check whether --with-mpc-lib was given.
8817 if test "${with_mpc_lib+set}" = set; then :
8818 withval=$with_mpc_lib;
8822 if test "x$with_mpc" != x; then
8823 gmplibs="-L$with_mpc/lib $gmplibs"
8824 gmpinc="-I$with_mpc/include $gmpinc"
8826 if test "x$with_mpc_include" != x; then
8827 gmpinc="-I$with_mpc_include $gmpinc"
8829 if test "x$with_mpc_lib" != x; then
8830 gmplibs="-L$with_mpc_lib $gmplibs"
8832 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8833 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8834 gmpinc='-I$$s/mpc/src '"$gmpinc"
8835 # Do not test the mpc version. Assume that it is sufficient, since
8836 # it is in the source tree, and the library has not been built yet
8837 # but it would be included on the link line in the version check below
8838 # hence making the test fail.
8839 have_gmp=yes
8842 # Specify a location for mpfr
8843 # check for this first so it ends up on the link line before gmp.
8845 # Check whether --with-mpfr was given.
8846 if test "${with_mpfr+set}" = set; then :
8847 withval=$with_mpfr;
8851 # Check whether --with-mpfr-include was given.
8852 if test "${with_mpfr_include+set}" = set; then :
8853 withval=$with_mpfr_include;
8857 # Check whether --with-mpfr-lib was given.
8858 if test "${with_mpfr_lib+set}" = set; then :
8859 withval=$with_mpfr_lib;
8863 if test "x$with_mpfr" != x; then
8864 gmplibs="-L$with_mpfr/lib $gmplibs"
8865 gmpinc="-I$with_mpfr/include $gmpinc"
8867 if test "x$with_mpfr_include" != x; then
8868 gmpinc="-I$with_mpfr_include $gmpinc"
8870 if test "x$with_mpfr_lib" != x; then
8871 gmplibs="-L$with_mpfr_lib $gmplibs"
8873 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8874 # MPFR v3.1.0 moved the sources into a src sub-directory.
8875 if ! test -d ${srcdir}/mpfr/src; then
8876 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8878 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8879 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8880 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8881 # Do not test the mpfr version. Assume that it is sufficient, since
8882 # it is in the source tree, and the library has not been built yet
8883 # but it would be included on the link line in the version check below
8884 # hence making the test fail.
8885 have_gmp=yes
8888 # Specify a location for gmp
8890 # Check whether --with-gmp was given.
8891 if test "${with_gmp+set}" = set; then :
8892 withval=$with_gmp;
8896 # Check whether --with-gmp-include was given.
8897 if test "${with_gmp_include+set}" = set; then :
8898 withval=$with_gmp_include;
8902 # Check whether --with-gmp-lib was given.
8903 if test "${with_gmp_lib+set}" = set; then :
8904 withval=$with_gmp_lib;
8909 if test "x$with_gmp" != x; then
8910 gmplibs="-L$with_gmp/lib $gmplibs"
8911 gmpinc="-I$with_gmp/include $gmpinc"
8913 if test "x$with_gmp_include" != x; then
8914 gmpinc="-I$with_gmp_include $gmpinc"
8916 if test "x$with_gmp_lib" != x; then
8917 gmplibs="-L$with_gmp_lib $gmplibs"
8919 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8920 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8921 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8922 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8923 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8924 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8925 # Do not test the gmp version. Assume that it is sufficient, since
8926 # it is in the source tree, and the library has not been built yet
8927 # but it would be included on the link line in the version check below
8928 # hence making the test fail.
8929 have_gmp=yes
8932 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8933 have_gmp=yes
8934 saved_CFLAGS="$CFLAGS"
8935 CFLAGS="$CFLAGS $gmpinc"
8936 # Check for the recommended and required versions of GMP.
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8938 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include "gmp.h"
8943 main ()
8946 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8947 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8948 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8949 choke me
8950 #endif
8953 return 0;
8955 _ACEOF
8956 if ac_fn_c_try_compile "$LINENO"; then :
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 #include <gmp.h>
8961 main ()
8964 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8965 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8966 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8967 choke me
8968 #endif
8971 return 0;
8973 _ACEOF
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976 $as_echo "yes" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8979 $as_echo "buggy but acceptable" >&6; }
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }; have_gmp=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 # If we have GMP, check the MPFR version.
8989 if test x"$have_gmp" = xyes; then
8990 # Check for the recommended and required versions of MPFR.
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8992 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #include <gmp.h>
8996 #include <mpfr.h>
8998 main ()
9001 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9002 choke me
9003 #endif
9006 return 0;
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 #include <gmp.h>
9013 #include <mpfr.h>
9015 main ()
9018 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9019 choke me
9020 #endif
9023 return 0;
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9028 $as_echo "yes" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9031 $as_echo "buggy but acceptable" >&6; }
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }; have_gmp=no
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 # Check for the MPC header version.
9042 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
9043 # Check for the recommended and required versions of MPC.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9045 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #include <mpc.h>
9050 main ()
9053 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9054 choke me
9055 #endif
9058 return 0;
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 #include <mpc.h>
9066 main ()
9069 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9070 choke me
9071 #endif
9074 return 0;
9076 _ACEOF
9077 if ac_fn_c_try_compile "$LINENO"; then :
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 $as_echo "yes" >&6; }
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9082 $as_echo "buggy but acceptable" >&6; }
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }; have_gmp=no
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 # Now check the MPFR library.
9093 if test x"$have_gmp" = xyes; then
9094 saved_LIBS="$LIBS"
9095 LIBS="$LIBS $gmplibs"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9097 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100 #include <mpfr.h>
9102 main ()
9105 mpfr_t n;
9106 mpfr_t x;
9107 int t;
9108 mpfr_init (n);
9109 mpfr_init (x);
9110 mpfr_atan2 (n, n, x, MPFR_RNDN);
9111 mpfr_erfc (n, x, MPFR_RNDN);
9112 mpfr_subnormalize (x, t, MPFR_RNDN);
9113 mpfr_clear(n);
9114 mpfr_clear(x);
9117 return 0;
9119 _ACEOF
9120 if ac_fn_c_try_link "$LINENO"; then :
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9122 $as_echo "yes" >&6; }
9123 else
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }; have_gmp=no
9127 rm -f core conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
9129 LIBS="$saved_LIBS"
9132 # Now check the MPC library
9133 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
9134 saved_LIBS="$LIBS"
9135 LIBS="$LIBS $gmplibs"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9137 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <mpc.h>
9142 main ()
9145 mpc_t c;
9146 mpc_init2 (c, 53);
9147 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9148 mpc_cosh (c, c, MPC_RNDNN);
9149 mpc_pow (c, c, c, MPC_RNDNN);
9150 mpc_acosh (c, c, MPC_RNDNN);
9151 mpc_clear (c);
9154 return 0;
9156 _ACEOF
9157 if ac_fn_c_try_link "$LINENO"; then :
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9159 $as_echo "yes" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }; have_gmp=no
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS="$saved_LIBS"
9169 CFLAGS="$saved_CFLAGS"
9171 # The library versions listed in the error message below should match
9172 # the HARD-minimums enforced above.
9173 if test x$have_gmp != xyes; then
9174 if test -d ${srcdir}/gcc ; then
9175 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9176 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9177 their locations. Source code for these libraries can be found at
9178 their respective hosting sites as well as at
9179 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9180 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9181 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9182 make sure that you have installed both the libraries and the header
9183 files. They may be located in separate packages." "$LINENO" 5
9184 else
9185 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9186 Try the --with-gmp and/or --with-mpfr options to specify
9187 their locations. If you obtained GMP and/or MPFR from a vendor
9188 distribution package, make sure that you have installed both the libraries
9189 and the header files. They may be located in separate packages." "$LINENO" 5
9194 # Flags needed for both GMP, MPFR and/or MPC.
9202 # Libraries to use for stage1 or when not bootstrapping.
9204 # Check whether --with-stage1-libs was given.
9205 if test "${with_stage1_libs+set}" = set; then :
9206 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9207 stage1_libs=
9208 else
9209 stage1_libs=$withval
9211 else
9212 stage1_libs=
9217 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9218 # default is yes if gcc is being built; no otherwise. The reason for
9219 # this default is that gdb is sometimes linked against GNU Source
9220 # Highlight, which is a shared library that uses C++ exceptions. In
9221 # this case, -static-libstdc++ will cause crashes.
9223 # Check whether --with-static-standard-libraries was given.
9224 if test "${with_static_standard_libraries+set}" = set; then :
9225 withval=$with_static_standard_libraries;
9226 else
9227 with_static_standard_libraries=auto
9230 if test "$with_static_standard_libraries" = auto; then
9231 with_static_standard_libraries=$have_compiler
9234 # Linker flags to use for stage1 or when not bootstrapping.
9236 # Check whether --with-stage1-ldflags was given.
9237 if test "${with_stage1_ldflags+set}" = set; then :
9238 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9239 stage1_ldflags=
9240 else
9241 stage1_ldflags=$withval
9243 else
9244 stage1_ldflags=
9245 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9246 # if supported. But if the user explicitly specified the libraries to use,
9247 # trust that they are doing what they want.
9248 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9249 -a "$have_static_libs" = yes; then
9250 stage1_ldflags="-static-libstdc++ -static-libgcc"
9256 # Libraries to use for stage2 and later builds.
9258 # Check whether --with-boot-libs was given.
9259 if test "${with_boot_libs+set}" = set; then :
9260 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9261 poststage1_libs=
9262 else
9263 poststage1_libs=$withval
9265 else
9266 poststage1_libs=
9271 # Linker flags to use for stage2 and later builds.
9273 # Check whether --with-boot-ldflags was given.
9274 if test "${with_boot_ldflags+set}" = set; then :
9275 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9276 poststage1_ldflags=
9277 else
9278 poststage1_ldflags=$withval
9280 else
9281 poststage1_ldflags=
9282 # In stages 2 and 3, default to linking libstdc++ and libgcc
9283 # statically. But if the user explicitly specified the libraries to
9284 # use, trust that they are doing what they want.
9285 if test "$poststage1_libs" = ""; then
9286 poststage1_ldflags="-static-libstdc++ -static-libgcc"
9290 case $target in
9291 *-darwin2* | *-darwin1[56789]*)
9292 # For these versions, we default to using embedded rpaths.
9293 if test "x$enable_darwin_at_rpath" != "xno"; then
9294 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9297 *-darwin*)
9298 # For these versions, we only use embedded rpaths on demand.
9299 if test "x$enable_darwin_at_rpath" = "xyes"; then
9300 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9303 esac
9306 # GCC GRAPHITE dependency isl.
9307 # Basic setup is inlined here, actual checks are in config/isl.m4
9310 # Check whether --with-isl was given.
9311 if test "${with_isl+set}" = set; then :
9312 withval=$with_isl;
9316 # Treat --without-isl as a request to disable
9317 # GRAPHITE support and skip all following checks.
9318 if test "x$with_isl" != "xno"; then
9319 # Check for isl
9322 # Check whether --with-isl-include was given.
9323 if test "${with_isl_include+set}" = set; then :
9324 withval=$with_isl_include;
9328 # Check whether --with-isl-lib was given.
9329 if test "${with_isl_lib+set}" = set; then :
9330 withval=$with_isl_lib;
9334 # Check whether --enable-isl-version-check was given.
9335 if test "${enable_isl_version_check+set}" = set; then :
9336 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
9337 else
9338 ENABLE_ISL_CHECK=yes
9342 # Initialize isllibs and islinc.
9343 case $with_isl in
9345 isllibs=
9346 islinc=
9348 "" | yes)
9351 isllibs="-L$with_isl/lib"
9352 islinc="-I$with_isl/include"
9354 esac
9355 if test "x${with_isl_include}" != x ; then
9356 islinc="-I$with_isl_include"
9358 if test "x${with_isl_lib}" != x; then
9359 isllibs="-L$with_isl_lib"
9361 if test "x${islinc}" = x && test "x${isllibs}" = x \
9362 && test -d ${srcdir}/isl; then
9363 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9364 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9365 ENABLE_ISL_CHECK=no
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9367 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9370 isllibs="${isllibs} -lisl"
9374 if test "${ENABLE_ISL_CHECK}" = yes ; then
9375 _isl_saved_CFLAGS=$CFLAGS
9376 _isl_saved_LDFLAGS=$LDFLAGS
9377 _isl_saved_LIBS=$LIBS
9379 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9380 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9381 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9384 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 #include <isl/schedule.h>
9389 main ()
9391 isl_options_set_schedule_serialize_sccs (NULL, 0);
9393 return 0;
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397 gcc_cv_isl=yes
9398 else
9399 gcc_cv_isl=no
9401 rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9404 $as_echo "$gcc_cv_isl" >&6; }
9406 if test "${gcc_cv_isl}" = no ; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9408 $as_echo "required isl version is 0.15 or later" >&6; }
9411 CFLAGS=$_isl_saved_CFLAGS
9412 LDFLAGS=$_isl_saved_LDFLAGS
9413 LIBS=$_isl_saved_LIBS
9421 if test "x${with_isl}" = xno; then
9422 graphite_requested=no
9423 elif test "x${with_isl}" != x \
9424 || test "x${with_isl_include}" != x \
9425 || test "x${with_isl_lib}" != x ; then
9426 graphite_requested=yes
9427 else
9428 graphite_requested=no
9433 if test "${gcc_cv_isl}" = no ; then
9434 isllibs=
9435 islinc=
9438 if test "${graphite_requested}" = yes \
9439 && test "x${isllibs}" = x \
9440 && test "x${islinc}" = x ; then
9442 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
9448 # If the isl check failed, disable builds of in-tree variant of isl
9449 if test "x$with_isl" = xno ||
9450 test "x$gcc_cv_isl" = xno; then
9451 noconfigdirs="$noconfigdirs isl"
9452 islinc=
9458 # Check for LTO support.
9459 # Check whether --enable-lto was given.
9460 if test "${enable_lto+set}" = set; then :
9461 enableval=$enable_lto; enable_lto=$enableval
9462 else
9463 enable_lto=yes; default_enable_lto=yes
9470 target_elf=no
9471 case $target in
9472 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
9473 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9474 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
9475 nvptx-*-none)
9476 target_elf=no
9479 target_elf=yes
9481 esac
9483 if test $target_elf = yes; then :
9484 # ELF platforms build the lto-plugin always.
9485 build_lto_plugin=yes
9487 else
9488 if test x"$default_enable_lto" = x"yes" ; then
9489 case $target in
9490 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
9491 # On other non-ELF platforms, LTO has yet to be validated.
9492 *) enable_lto=no ;;
9493 esac
9494 else
9495 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9496 # It would also be nice to check the binutils support, but we don't
9497 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9498 # warn during gcc/ subconfigure; unless you're bootstrapping with
9499 # -flto it won't be needed until after installation anyway.
9500 case $target in
9501 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9502 *) if test x"$enable_lto" = x"yes"; then
9503 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9506 esac
9508 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9509 # Build it unless LTO was explicitly disabled.
9510 case $target in
9511 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
9512 *) ;;
9513 esac
9518 # Check whether --enable-linker-plugin-configure-flags was given.
9519 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9520 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
9521 else
9522 extra_linker_plugin_configure_flags=
9526 # Check whether --enable-linker-plugin-flags was given.
9527 if test "${enable_linker_plugin_flags+set}" = set; then :
9528 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
9529 else
9530 extra_linker_plugin_flags=
9535 # Handle --enable-host-pie
9536 # If host PIE executables are the default (or must be forced on) for some host,
9537 # we must pass that configuration to the gcc directory.
9538 gcc_host_pie=
9539 # Check whether --enable-host-pie was given.
9540 if test "${enable_host_pie+set}" = set; then :
9541 enableval=$enable_host_pie; host_pie=$enableval
9542 case $host in
9543 *-*-darwin2*)
9544 if test x$host_pie != xyes ; then
9545 # for Darwin20+ this is required.
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9547 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9548 host_pie=yes
9549 gcc_host_pie=--enable-host-pie
9550 fi ;;
9551 *) ;;
9552 esac
9553 else
9554 case $host in
9555 *-*-darwin2*)
9556 # Default to PIE (mandatory for aarch64).
9557 host_pie=yes
9558 gcc_host_pie=--enable-host-pie
9560 *) host_pie=no ;;
9561 esac
9568 # Enable --enable-host-shared.
9569 # Checked early to determine whether jit is an 'all' language
9570 # Check whether --enable-host-shared was given.
9571 if test "${enable_host_shared+set}" = set; then :
9572 enableval=$enable_host_shared; host_shared=$enableval
9573 case $host in
9574 x86_64-*-darwin* | aarch64-*-darwin*)
9575 if test x$host_shared != xyes ; then
9576 # PIC is the default, and actually cannot be switched off.
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9578 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9579 host_shared=yes
9580 fi ;;
9581 *-*-darwin*)
9582 if test x$host_pie = xyes -a x$host_shared != xyes ; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9584 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9585 host_shared=yes
9586 fi ;;
9587 *) ;;
9588 esac
9589 else
9590 case $host in
9591 # 64B x86_64 and Aarch64 Darwin default to PIC.
9592 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
9593 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9594 *-*-darwin*) host_shared=$host_pie ;;
9595 *) host_shared=no;;
9596 esac
9602 if test x$host_shared = xyes; then
9603 case $host in
9604 *-*-darwin*)
9605 # Since host shared is the default for 64b Darwin, and also enabled for
9606 # host_pie, ensure that we present the PIE flag when host_pie is active.
9607 if test x$host_pie = xyes; then
9608 PICFLAG=-fPIE
9612 PICFLAG=-fPIC
9614 esac
9615 elif test x$host_pie = xyes; then
9616 PICFLAG=-fPIE
9617 else
9618 PICFLAG=
9624 # Check for libdiagnostics support.
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdiagnostics" >&5
9626 $as_echo_n "checking whether to enable libdiagnostics... " >&6; }
9627 # Check whether --enable-libdiagnostics was given.
9628 if test "${enable_libdiagnostics+set}" = set; then :
9629 enableval=$enable_libdiagnostics; enable_libdiagnostics=$enableval
9630 else
9631 enable_libdiagnostics=no
9635 if test x$enable_libdiagnostics = xyes; then
9636 # Disable libdiagnostics if -enable-host-shared not specified
9637 # but not if building for Mingw. All code in Windows
9638 # is position independent code (PIC).
9639 case $target in
9640 *mingw*) ;;
9642 if test x$host_shared != xyes; then
9643 as_fn_error $? "
9644 Enabling libdiagnostics requires --enable-host-shared.
9646 --enable-host-shared typically slows the rest of the compiler down by
9647 a few %, so you must explicitly enable it.
9649 If you want to build both libdiagnostics and the regular compiler, it is often
9650 best to do this via two separate configure/builds, in separate
9651 directories, to avoid imposing the performance cost of
9652 --enable-host-shared on the regular compiler." "$LINENO" 5
9655 esac
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdiagnostics" >&5
9658 $as_echo "$enable_libdiagnostics" >&6; }
9662 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9663 # default, so we check for them here
9664 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9665 # build of the Rust frontend in case a dep is missing.
9666 missing_rust_dynlibs=none
9668 save_LIBS="$LIBS"
9669 LIBS=
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9671 $as_echo_n "checking for library containing dlopen... " >&6; }
9672 if ${ac_cv_search_dlopen+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 ac_func_search_save_LIBS=$LIBS
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char dlopen ();
9687 main ()
9689 return dlopen ();
9691 return 0;
9693 _ACEOF
9694 for ac_lib in '' dl; do
9695 if test -z "$ac_lib"; then
9696 ac_res="none required"
9697 else
9698 ac_res=-l$ac_lib
9699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 ac_cv_search_dlopen=$ac_res
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext
9706 if ${ac_cv_search_dlopen+:} false; then :
9707 break
9709 done
9710 if ${ac_cv_search_dlopen+:} false; then :
9712 else
9713 ac_cv_search_dlopen=no
9715 rm conftest.$ac_ext
9716 LIBS=$ac_func_search_save_LIBS
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9719 $as_echo "$ac_cv_search_dlopen" >&6; }
9720 ac_res=$ac_cv_search_dlopen
9721 if test "$ac_res" != no; then :
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9727 $as_echo_n "checking for library containing pthread_create... " >&6; }
9728 if ${ac_cv_search_pthread_create+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 ac_func_search_save_LIBS=$LIBS
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char pthread_create ();
9743 main ()
9745 return pthread_create ();
9747 return 0;
9749 _ACEOF
9750 for ac_lib in '' pthread; do
9751 if test -z "$ac_lib"; then
9752 ac_res="none required"
9753 else
9754 ac_res=-l$ac_lib
9755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 ac_cv_search_pthread_create=$ac_res
9760 rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext
9762 if ${ac_cv_search_pthread_create+:} false; then :
9763 break
9765 done
9766 if ${ac_cv_search_pthread_create+:} false; then :
9768 else
9769 ac_cv_search_pthread_create=no
9771 rm conftest.$ac_ext
9772 LIBS=$ac_func_search_save_LIBS
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9775 $as_echo "$ac_cv_search_pthread_create" >&6; }
9776 ac_res=$ac_cv_search_pthread_create
9777 if test "$ac_res" != no; then :
9778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9782 CRAB1_LIBS="$LIBS"
9783 LIBS="$save_LIBS"
9785 if test "$ac_cv_search_dlopen" = no; then
9786 missing_rust_dynlibs="libdl"
9789 if test "$ac_cv_search_pthread_create" = no; then
9790 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9793 CRAB1_LIBS="$CRAB1_LIBS"
9796 # If we are building PIC/PIE host executables, and we are building dependent
9797 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9798 # code.
9799 host_libs_picflag=
9800 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9801 host_libs_picflag='--with-pic'
9805 # By default, C and C++ are the only stage 1 languages.
9806 stage1_languages=,c,
9808 # Target libraries that we bootstrap.
9809 bootstrap_target_libs=,target-libgcc,
9811 # Figure out what language subdirectories are present.
9812 # Look if the user specified --enable-languages="..."; if not, use
9813 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9814 # go away some day.
9815 # NB: embedded tabs in this IF block -- do not untabify
9816 if test -d ${srcdir}/gcc; then
9817 if test x"${enable_languages+set}" != xset; then
9818 if test x"${LANGUAGES+set}" = xset; then
9819 enable_languages="${LANGUAGES}"
9820 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9821 else
9822 enable_languages=default
9824 else
9825 if test x"${enable_languages}" = x ||
9826 test x"${enable_languages}" = xyes;
9827 then
9828 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9829 exit 1
9832 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9834 # 'f95' is the old name for the 'fortran' language. We issue a warning
9835 # and make the substitution.
9836 case ,${enable_languages}, in
9837 *,f95,*)
9838 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9839 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9841 esac
9843 # If bootstrapping, C++ must be enabled.
9844 case ",$enable_languages,:$enable_bootstrap" in
9845 *,c++,*:*) ;;
9846 *:yes)
9847 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9848 enable_languages="${enable_languages},c++"
9849 else
9850 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9853 esac
9855 # First scan to see if an enabled language requires some other language.
9856 # We assume that a given config-lang.in will list all the language
9857 # front ends it requires, even if some are required indirectly.
9858 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9859 case ${lang_frag} in
9860 ..) ;;
9861 # The odd quoting in the next line works around
9862 # an apparent bug in bash 1.12 on linux.
9863 ${srcdir}/gcc/[*]/config-lang.in) ;;
9865 # From the config-lang.in, get $language, $lang_requires, and
9866 # $lang_requires_boot_languages.
9867 language=
9868 lang_requires=
9869 lang_requires_boot_languages=
9870 # set srcdir during sourcing lang_frag to the gcc dir.
9871 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9872 # pollutes this shell
9873 saved_srcdir=${srcdir}
9874 srcdir=${srcdir}/gcc . ${lang_frag}
9875 srcdir=${saved_srcdir}
9876 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9877 case ,${enable_languages}, in
9878 *,$other,*) ;;
9879 *,default,*) ;;
9880 *,all,*) ;;
9881 *,$language,*)
9882 echo " \`$other' language required by \`$language'; enabling" 1>&2
9883 enable_languages="${enable_languages},${other}"
9885 esac
9886 done
9887 for other in ${lang_requires_boot_languages} ; do
9888 if test "$other" != "c"; then
9889 case ,${enable_stage1_languages}, in
9890 *,$other,*) ;;
9891 *,default,*) ;;
9892 *,all,*) ;;
9894 case ,${enable_languages}, in
9895 *,$language,*)
9896 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9897 enable_stage1_languages="$enable_stage1_languages,${other}"
9899 esac
9901 esac
9903 done
9905 esac
9906 done
9908 new_enable_languages=,c,
9910 # If LTO is enabled, add the LTO front end.
9911 if test "$enable_lto" = "yes" ; then
9912 case ,${enable_languages}, in
9913 *,lto,*) ;;
9914 *) enable_languages="${enable_languages},lto" ;;
9915 esac
9916 if test "${build_lto_plugin}" = "yes" ; then
9917 configdirs="$configdirs lto-plugin"
9921 # If we're building an offloading compiler, add the LTO front end.
9922 if test x"$enable_as_accelerator_for" != x ; then
9923 case ,${enable_languages}, in
9924 *,lto,*) ;;
9925 *) enable_languages="${enable_languages},lto" ;;
9926 esac
9929 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9930 potential_languages=,c,
9932 enabled_target_libs=
9933 disabled_target_libs=
9935 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9936 case ${lang_frag} in
9937 ..) ;;
9938 # The odd quoting in the next line works around
9939 # an apparent bug in bash 1.12 on linux.
9940 ${srcdir}/gcc/[*]/config-lang.in) ;;
9942 # From the config-lang.in, get $language, $target_libs,
9943 # $lang_dirs, $boot_language, and $build_by_default
9944 language=
9945 target_libs=
9946 lang_dirs=
9947 subdir_requires=
9948 boot_language=no
9949 build_by_default=yes
9950 # set srcdir during sourcing. See above about save & restore
9951 saved_srcdir=${srcdir}
9952 srcdir=${srcdir}/gcc . ${lang_frag}
9953 srcdir=${saved_srcdir}
9954 if test x${language} = x; then
9955 echo "${lang_frag} doesn't set \$language." 1>&2
9956 exit 1
9959 if test "$language" = "c++"; then
9960 boot_language=yes
9963 add_this_lang=no
9964 # C is always enabled, so no need to add it again
9965 if test "$language" != "c"; then
9966 case ,${enable_languages}, in
9967 *,${language},*)
9968 # Language was explicitly selected; include it
9969 add_this_lang=yes
9971 *,all,*)
9972 # All languages are enabled
9973 add_this_lang=all
9975 *,default,*)
9976 # 'default' was selected, select it if it is a default language
9977 add_this_lang=${build_by_default}
9979 esac
9982 # Disable languages that need other directories if these aren't available.
9983 for i in $subdir_requires; do
9984 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9985 case ${add_this_lang} in
9986 yes)
9987 # Specifically requested language; tell them.
9988 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9990 all)
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9992 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9993 add_this_lang=unsupported
9996 # Silently disable.
9997 add_this_lang=unsupported
9999 esac
10000 done
10002 # Disable Ada if no preexisting GNAT is available.
10003 case ${add_this_lang}:${language}:${have_gnat} in
10004 yes:ada:no)
10005 # Specifically requested language; tell them.
10006 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
10008 all:ada:no)
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10010 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10011 add_this_lang=unsupported
10013 *:ada:no)
10014 # Silently disable.
10015 add_this_lang=unsupported
10017 esac
10019 # Disable D if no preexisting GDC is available.
10020 case ${add_this_lang}:${language}:${have_gdc} in
10021 yes:d:no)
10022 # Specifically requested language; tell them.
10023 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
10025 all:d:no)
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10027 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10028 add_this_lang=unsupported
10030 *:d:no)
10031 # Silently disable.
10032 add_this_lang=unsupported
10034 esac
10036 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10037 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10038 *:rust:none)
10039 # Nothing to do - we're not missing any C libraries
10041 yes:rust:*)
10042 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10043 add_this_lang=unsupported
10045 all:rust:*)
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10047 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10048 add_this_lang=unsupported
10050 *:rust:*)
10051 # Silently disable.
10052 add_this_lang=unsupported
10054 esac
10056 # Disable jit if -enable-host-shared not specified
10057 # but not if building for Mingw. All code in Windows
10058 # is position independent code (PIC).
10059 case $target in
10060 *mingw*) ;;
10062 case ${add_this_lang}:${language}:${host_shared} in
10063 yes:jit:no)
10064 # PR jit/64780: explicitly specify --enable-host-shared
10065 as_fn_error $? "
10066 Enabling language \"jit\" requires --enable-host-shared.
10068 --enable-host-shared typically slows the rest of the compiler down by
10069 a few %, so you must explicitly enable it.
10071 If you want to build both the jit and the regular compiler, it is often
10072 best to do this via two separate configure/builds, in separate
10073 directories, to avoid imposing the performance cost of
10074 --enable-host-shared on the regular compiler." "$LINENO" 5
10076 all:jit:no)
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10078 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10079 add_this_lang=unsupported
10081 *:jit:no)
10082 # Silently disable.
10083 add_this_lang=unsupported
10085 esac
10087 esac
10089 # Pre-conditions to consider whether cargo being supported.
10090 if test x"$have_cargo" = xyes \
10091 && test x"$build" != x"$host"; then
10092 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10093 # "'cargo' should build for the host system" is resolved:
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10095 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10096 have_cargo=no
10097 else
10098 # Assume that cargo-produced object files are compatible with what
10099 # we're going to build here.
10102 # Disable Rust if cargo is unavailable.
10103 case ${add_this_lang}:${language}:${have_cargo} in
10104 yes:rust:no)
10105 # Specifically requested language; tell them.
10106 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
10108 all:rust:no)
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10110 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10111 add_this_lang=unsupported
10113 *:rust:no)
10114 # Silently disable.
10115 add_this_lang=unsupported
10117 esac
10120 # Disable a language that is unsupported by the target.
10121 case "${add_this_lang}: $unsupported_languages " in
10122 no:*) ;;
10123 unsupported:*) ;;
10124 *:*" $language "*)
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10126 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10127 add_this_lang=unsupported
10129 esac
10131 case $add_this_lang in
10132 unsupported)
10133 # Remove language-dependent dirs.
10134 disabled_target_libs="$disabled_target_libs $target_libs"
10135 noconfigdirs="$noconfigdirs $lang_dirs"
10138 # Remove language-dependent dirs; still show language as supported.
10139 disabled_target_libs="$disabled_target_libs $target_libs"
10140 noconfigdirs="$noconfigdirs $lang_dirs"
10141 potential_languages="${potential_languages}${language},"
10143 all|yes)
10144 new_enable_languages="${new_enable_languages}${language},"
10145 potential_languages="${potential_languages}${language},"
10146 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
10147 enabled_target_libs="$enabled_target_libs $target_libs"
10148 case "${boot_language}:,$enable_stage1_languages," in
10149 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
10150 # Add to (comma-separated) list of stage 1 languages.
10151 case ",$stage1_languages," in
10152 *,$language,* | ,yes, | ,all,) ;;
10153 *) stage1_languages="${stage1_languages}${language}," ;;
10154 esac
10155 # We need to bootstrap any supporting libraries.
10156 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10158 esac
10160 esac
10162 esac
10163 done
10165 # Add target libraries which are only needed for disabled languages
10166 # to noconfigdirs.
10167 if test -n "$disabled_target_libs"; then
10168 for dir in $disabled_target_libs; do
10169 case " $enabled_target_libs " in
10170 *" ${dir} "*) ;;
10171 *) noconfigdirs="$noconfigdirs $dir" ;;
10172 esac
10173 done
10176 # Check whether --enable-stage1-languages was given.
10177 if test "${enable_stage1_languages+set}" = set; then :
10178 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10179 ,no,|,,)
10180 # Set it to something that will have no effect in the loop below
10181 enable_stage1_languages=c ;;
10182 ,yes,)
10183 enable_stage1_languages=`echo $new_enable_languages | \
10184 sed -e "s/^,//" -e "s/,$//" ` ;;
10185 *,all,*)
10186 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
10187 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10188 esac
10190 # Add "good" languages from enable_stage1_languages to stage1_languages,
10191 # while "bad" languages go in missing_languages. Leave no duplicates.
10192 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10193 case $potential_languages in
10194 *,$i,*)
10195 case $stage1_languages in
10196 *,$i,*) ;;
10197 *) stage1_languages="$stage1_languages$i," ;;
10198 esac ;;
10200 case $missing_languages in
10201 *,$i,*) ;;
10202 *) missing_languages="$missing_languages$i," ;;
10203 esac ;;
10204 esac
10205 done
10209 # Remove leading/trailing commas that were added for simplicity
10210 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10211 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10212 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10213 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10215 if test "x$missing_languages" != x; then
10216 as_fn_error $? "
10217 The following requested languages could not be built: ${missing_languages}
10218 Supported languages are: ${potential_languages}" "$LINENO" 5
10220 if test "x$new_enable_languages" != "x$enable_languages"; then
10221 echo The following languages will be built: ${new_enable_languages}
10222 enable_languages="$new_enable_languages"
10226 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10229 # Handle --disable-<component> generically.
10230 for dir in $configdirs $build_configdirs $target_configdirs ; do
10231 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10232 varname=`echo $dirname | sed -e s/+/_/g`
10233 if eval test x\${enable_${varname}} "=" xno ; then
10234 noconfigdirs="$noconfigdirs $dir"
10236 done
10238 # Check for Boehm's garbage collector
10239 # Check whether --enable-objc-gc was given.
10240 if test "${enable_objc_gc+set}" = set; then :
10241 enableval=$enable_objc_gc;
10245 # Check whether --with-target-bdw-gc was given.
10246 if test "${with_target_bdw_gc+set}" = set; then :
10247 withval=$with_target_bdw_gc;
10251 # Check whether --with-target-bdw-gc-include was given.
10252 if test "${with_target_bdw_gc_include+set}" = set; then :
10253 withval=$with_target_bdw_gc_include;
10257 # Check whether --with-target-bdw-gc-lib was given.
10258 if test "${with_target_bdw_gc_lib+set}" = set; then :
10259 withval=$with_target_bdw_gc_lib;
10263 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10265 $as_echo_n "checking for bdw garbage collector... " >&6; }
10266 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10268 $as_echo "using bdw-gc in default locations" >&6; }
10269 else
10270 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
10271 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10272 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
10273 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10276 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10279 esac
10281 # Disable libitm, libsanitizer, libvtv if we're not building C++
10282 case ,${enable_languages}, in
10283 *,c++,*)
10284 # Disable libitm, libsanitizer if we're not building libstdc++
10285 case "${noconfigdirs}" in
10286 *target-libstdc++-v3*)
10287 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
10289 *) ;;
10290 esac
10293 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10295 esac
10297 case ,${enable_languages}, in
10298 *,rust,*)
10299 case " ${noconfigdirs} " in
10300 *\ target-libstdc++-v3\ *)
10301 # Disable target libgrust if we're not building target libstdc++.
10302 noconfigdirs="$noconfigdirs target-libgrust"
10304 esac
10306 esac
10308 # If gcc/ is not in the source tree then we'll not be building a
10309 # target compiler, assume in that case we don't want to build any
10310 # target libraries or tools.
10312 # This was added primarily for the benefit for binutils-gdb who reuse
10313 # this configure script, but don't always have target tools available.
10314 if test ! -d ${srcdir}/gcc; then
10315 skipdirs="${skipdirs} ${target_configdirs}"
10318 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10319 # $build_configdirs and $target_configdirs.
10320 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10322 notsupp=""
10323 for dir in . $skipdirs $noconfigdirs ; do
10324 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10325 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10326 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10327 if test -r $srcdir/$dirname/configure ; then
10328 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10329 true
10330 else
10331 notsupp="$notsupp $dir"
10335 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10336 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10337 if test -r $srcdir/$dirname/configure ; then
10338 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10339 true
10340 else
10341 notsupp="$notsupp $dir"
10345 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10346 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10347 if test -r $srcdir/$dirname/configure ; then
10348 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10349 true
10350 else
10351 notsupp="$notsupp $dir"
10355 done
10357 # Quietly strip out all directories which aren't configurable in this tree.
10358 # This relies on all configurable subdirectories being autoconfiscated, which
10359 # is now the case.
10360 build_configdirs_all="$build_configdirs"
10361 build_configdirs=
10362 for i in ${build_configdirs_all} ; do
10363 j=`echo $i | sed -e s/build-//g`
10364 if test -f ${srcdir}/$j/configure ; then
10365 build_configdirs="${build_configdirs} $i"
10367 done
10369 configdirs_all="$configdirs"
10370 configdirs=
10371 for i in ${configdirs_all} ; do
10372 if test -f ${srcdir}/$i/configure ; then
10373 configdirs="${configdirs} $i"
10375 done
10377 target_configdirs_all="$target_configdirs"
10378 target_configdirs=
10379 for i in ${target_configdirs_all} ; do
10380 j=`echo $i | sed -e s/target-//g`
10381 if test -f ${srcdir}/$j/configure ; then
10382 target_configdirs="${target_configdirs} $i"
10384 done
10386 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10387 # so we have to add it after the preceding checks.
10388 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10389 then
10390 case " $configdirs " in
10391 *" libiberty "*)
10392 # If we can build libiberty, we can also build libiberty-linker-plugin.
10393 configdirs="$configdirs libiberty-linker-plugin"
10394 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
10395 --with-libiberty=../libiberty-linker-plugin";;
10397 as_fn_error $? "libiberty missing" "$LINENO" 5;;
10398 esac
10401 # Sometimes we have special requirements for the host libiberty.
10402 extra_host_libiberty_configure_flags=
10403 case " $configdirs " in
10404 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
10405 # When these are to be built as shared libraries, the same applies to
10406 # libiberty.
10407 extra_host_libiberty_configure_flags=--enable-shared
10409 esac
10412 # Sometimes we have special requirements for the host zlib.
10413 extra_host_zlib_configure_flags=
10414 case " $configdirs " in
10415 *" bfd "*)
10416 # When bfd is to be built as a shared library, the same applies to
10417 # zlib.
10418 if test "$enable_shared" = "yes"; then
10419 extra_host_zlib_configure_flags=--enable-host-shared
10422 esac
10425 # Produce a warning message for the subdirs we can't configure.
10426 # This isn't especially interesting in the Cygnus tree, but in the individual
10427 # FSF releases, it's important to let people know when their machine isn't
10428 # supported by the one or two programs in a package.
10430 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10431 # If $appdirs is non-empty, at least one of those directories must still
10432 # be configured, or we error out. (E.g., if the gas release supports a
10433 # specified target in some subdirs but not the gas subdir, we shouldn't
10434 # pretend that all is well.)
10435 if test -n "$appdirs" ; then
10436 for dir in $appdirs ; do
10437 if test -r $dir/Makefile.in ; then
10438 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10439 appdirs=""
10440 break
10442 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
10443 appdirs=""
10444 break
10447 done
10448 if test -n "$appdirs" ; then
10449 echo "*** This configuration is not supported by this package." 1>&2
10450 exit 1
10453 # Okay, some application will build, or we don't care to check. Still
10454 # notify of subdirs not getting built.
10455 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10456 echo " ${notsupp}" 1>&2
10457 echo " (Any other directories should still work fine.)" 1>&2
10460 case "$host" in
10461 *msdosdjgpp*)
10462 enable_gdbtk=no ;;
10463 esac
10465 # To find our prefix, in gcc_cv_tool_prefix.
10467 # The user is always right.
10468 if test "${PATH_SEPARATOR+set}" != set; then
10469 echo "#! /bin/sh" >conf$$.sh
10470 echo "exit 0" >>conf$$.sh
10471 chmod +x conf$$.sh
10472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10473 PATH_SEPARATOR=';'
10474 else
10475 PATH_SEPARATOR=:
10477 rm -f conf$$.sh
10481 get_gcc_base_ver="cat"
10483 # Check whether --with-gcc-major-version-only was given.
10484 if test "${with_gcc_major_version_only+set}" = set; then :
10485 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
10486 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
10496 if test "x$exec_prefix" = xNONE; then
10497 if test "x$prefix" = xNONE; then
10498 gcc_cv_tool_prefix=$ac_default_prefix
10499 else
10500 gcc_cv_tool_prefix=$prefix
10502 else
10503 gcc_cv_tool_prefix=$exec_prefix
10506 # If there is no compiler in the tree, use the PATH only. In any
10507 # case, if there is no compiler in the tree nobody should use
10508 # AS_FOR_TARGET and LD_FOR_TARGET.
10509 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
10510 if test x$with_gcc_major_version_only = xyes ; then
10511 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10512 else
10513 gcc_version=`cat $srcdir/gcc/BASE-VER`
10515 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10516 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10517 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10518 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10519 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10520 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10521 else
10522 gcc_cv_tool_dirs=
10525 if test x$build = x$target && test -n "$md_exec_prefix"; then
10526 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10531 copy_dirs=
10534 # Check whether --with-build-sysroot was given.
10535 if test "${with_build_sysroot+set}" = set; then :
10536 withval=$with_build_sysroot; if test x"$withval" != x ; then
10537 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
10539 else
10540 SYSROOT_CFLAGS_FOR_TARGET=
10546 # Check whether --with-debug-prefix-map was given.
10547 if test "${with_debug_prefix_map+set}" = set; then :
10548 withval=$with_debug_prefix_map; if test x"$withval" != x; then
10549 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10550 for debug_map in $withval; do
10551 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10552 done
10554 else
10555 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10560 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10561 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10562 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10563 # We want to ensure that TARGET libraries (which we know are built with
10564 # gcc) are built with "-O2 -g", so include those options when setting
10565 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10566 if test "x$CFLAGS_FOR_TARGET" = x; then
10567 if test "x${is_cross_compiler}" = xyes; then
10568 CFLAGS_FOR_TARGET="-g -O2"
10569 else
10570 CFLAGS_FOR_TARGET=$CFLAGS
10571 case " $CFLAGS " in
10572 *" -O2 "*) ;;
10573 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
10574 esac
10575 case " $CFLAGS " in
10576 *" -g "* | *" -g3 "*) ;;
10577 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
10578 esac
10583 if test "x$CXXFLAGS_FOR_TARGET" = x; then
10584 if test "x${is_cross_compiler}" = xyes; then
10585 CXXFLAGS_FOR_TARGET="-g -O2"
10586 else
10587 CXXFLAGS_FOR_TARGET=$CXXFLAGS
10588 case " $CXXFLAGS " in
10589 *" -O2 "*) ;;
10590 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
10591 esac
10592 case " $CXXFLAGS " in
10593 *" -g "* | *" -g3 "*) ;;
10594 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
10595 esac
10602 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10603 # the named directory are copied to $(tooldir)/sys-include.
10604 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
10605 if test x${is_cross_compiler} = xno ; then
10606 echo 1>&2 '***' --with-headers is only supported when cross compiling
10607 exit 1
10609 if test x"${with_headers}" != xyes ; then
10610 x=${gcc_cv_tool_prefix}
10611 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10615 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10616 # the name directories are copied to $(tooldir)/lib. Multiple directories
10617 # are permitted.
10618 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
10619 if test x${is_cross_compiler} = xno ; then
10620 echo 1>&2 '***' --with-libs is only supported when cross compiling
10621 exit 1
10623 if test x"${with_libs}" != xyes ; then
10624 # Copy the libraries in reverse order, so that files in the first named
10625 # library override files in subsequent libraries.
10626 x=${gcc_cv_tool_prefix}
10627 for l in ${with_libs}; do
10628 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10629 done
10633 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10635 # This is done by determining whether or not the appropriate directory
10636 # is available, and by checking whether or not specific configurations
10637 # have requested that this magic not happen.
10639 # The command line options always override the explicit settings in
10640 # configure.ac, and the settings in configure.ac override this magic.
10642 # If the default for a toolchain is to use GNU as and ld, and you don't
10643 # want to do that, then you should use the --without-gnu-as and
10644 # --without-gnu-ld options for the configure script. Similarly, if
10645 # the default is to use the included zlib and you don't want to do that,
10646 # you should use the --with-system-zlib option for the configure script.
10648 if test x${use_gnu_as} = x &&
10649 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
10650 with_gnu_as=yes
10651 extra_host_args="$extra_host_args --with-gnu-as"
10654 if test x${use_gnu_ld} = x &&
10655 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
10656 with_gnu_ld=yes
10657 extra_host_args="$extra_host_args --with-gnu-ld"
10660 if test x${use_included_zlib} = x &&
10661 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
10663 else
10664 with_system_zlib=yes
10665 extra_host_args="$extra_host_args --with-system-zlib"
10668 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10669 # can detect this case.
10671 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
10672 with_newlib=yes
10673 extra_host_args="$extra_host_args --with-newlib"
10676 # Handle ${copy_dirs}
10677 set fnord ${copy_dirs}
10678 shift
10679 while test $# != 0 ; do
10680 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
10682 else
10683 echo Copying $1 to $2
10685 # Use the install script to create the directory and all required
10686 # parent directories.
10687 if test -d $2 ; then
10689 else
10690 echo >config.temp
10691 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
10694 # Copy the directory, assuming we have tar.
10695 # FIXME: Should we use B in the second tar? Not all systems support it.
10696 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
10698 # It is the responsibility of the user to correctly adjust all
10699 # symlinks. If somebody can figure out how to handle them correctly
10700 # here, feel free to add the code.
10702 echo $1 > $2/COPIED
10704 shift; shift
10705 done
10707 # Determine a target-dependent exec_prefix that the installed
10708 # gcc will search in. Keep this list sorted by triplet, with
10709 # the *-*-osname triplets last.
10710 md_exec_prefix=
10711 case "${target}" in
10712 i[34567]86-pc-msdosdjgpp*)
10713 md_exec_prefix=/dev/env/DJDIR/bin
10715 *-*-hpux* | \
10716 *-*-nto-qnx* | \
10717 *-*-solaris2*)
10718 md_exec_prefix=/usr/ccs/bin
10720 esac
10722 extra_arflags_for_target=
10723 extra_nmflags_for_target=
10724 extra_ranlibflags_for_target=
10725 target_makefile_frag=/dev/null
10726 case "${target}" in
10727 spu-*-*)
10728 target_makefile_frag="config/mt-spu"
10730 loongarch*-*linux* | loongarch*-*gnu*)
10731 target_makefile_frag="config/mt-loongarch-gnu"
10733 loongarch*-*elf*)
10734 target_makefile_frag="config/mt-loongarch-elf"
10736 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
10737 target_makefile_frag="config/mt-sde"
10739 mipsisa*-*-elfoabi*)
10740 target_makefile_frag="config/mt-mips-elfoabi"
10742 mips*-*-*linux* | mips*-*-gnu*)
10743 target_makefile_frag="config/mt-mips-gnu"
10745 *-*-linux-android*)
10746 target_makefile_frag="config/mt-android"
10748 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
10749 target_makefile_frag="config/mt-gnu"
10751 *-*-aix4.[3456789]* | *-*-aix[56789].*)
10752 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10753 # commands to handle both 32-bit and 64-bit objects. These flags are
10754 # harmless if we're using GNU nm or ar.
10755 extra_arflags_for_target=" -X32_64"
10756 extra_nmflags_for_target=" -B -X32_64"
10758 esac
10760 alphaieee_frag=/dev/null
10761 case $target in
10762 alpha*-*-*)
10763 # This just makes sure to use the -mieee option to build target libs.
10764 # This should probably be set individually by each library.
10765 alphaieee_frag="config/mt-alphaieee"
10767 esac
10769 # If --enable-target-optspace always use -Os instead of -O2 to build
10770 # the target libraries, similarly if it is not specified, use -Os
10771 # on selected platforms.
10772 ospace_frag=/dev/null
10773 case "${enable_target_optspace}:${target}" in
10774 yes:*)
10775 ospace_frag="config/mt-ospace"
10777 :d30v-*)
10778 ospace_frag="config/mt-d30v"
10780 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10781 ospace_frag="config/mt-ospace"
10783 no:* | :*)
10786 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10788 esac
10790 # Some systems (e.g., one of the i386-aix systems the gas testers are
10791 # using) don't handle "\$" correctly, so don't use it here.
10792 tooldir='${exec_prefix}'/${target_noncanonical}
10793 build_tooldir=${tooldir}
10795 # Create a .gdbinit file which runs the one in srcdir
10796 # and tells GDB to look there for source files.
10798 if test -r ${srcdir}/.gdbinit ; then
10799 case ${srcdir} in
10800 .) ;;
10801 *) cat > ./.gdbinit <<EOF
10802 # ${NO_EDIT}
10803 dir ${srcdir}
10804 dir .
10805 source ${srcdir}/.gdbinit
10808 esac
10811 # Make sure that the compiler is able to generate an executable. If it
10812 # can't, we are probably in trouble. We don't care whether we can run the
10813 # executable--we might be using a cross compiler--we only care whether it
10814 # can be created. At this point the main configure script has set CC.
10815 we_are_ok=no
10816 echo "int main () { return 0; }" > conftest.c
10817 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10818 if test $? = 0 ; then
10819 if test -s conftest || test -s conftest.exe ; then
10820 we_are_ok=yes
10823 case $we_are_ok in
10825 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10826 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10827 rm -f conftest*
10828 exit 1
10830 esac
10831 rm -f conftest*
10833 # Decide which environment variable is used to find dynamic libraries.
10834 case "${host}" in
10835 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10836 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10837 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10838 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10839 esac
10841 # On systems where the dynamic library environment variable is PATH,
10842 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10843 # built executables to PATH.
10844 if test "$RPATH_ENVVAR" = PATH; then
10845 GCC_SHLIB_SUBDIR=/shlib
10846 else
10847 GCC_SHLIB_SUBDIR=
10850 # Adjust the toplevel makefile according to whether bootstrap was selected.
10851 case $enable_bootstrap in
10852 yes)
10853 bootstrap_suffix=bootstrap
10854 BUILD_CONFIG=bootstrap-debug
10857 bootstrap_suffix=no-bootstrap
10858 BUILD_CONFIG=
10860 esac
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10863 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10866 # Check whether --with-build-config was given.
10867 if test "${with_build_config+set}" = set; then :
10868 withval=$with_build_config; case $with_build_config in
10869 yes) with_build_config= ;;
10870 no) with_build_config= BUILD_CONFIG= ;;
10871 esac
10875 if test "x${with_build_config}" != x; then
10876 BUILD_CONFIG=$with_build_config
10877 else
10878 case $BUILD_CONFIG in
10879 bootstrap-debug)
10880 if echo "int f (void) { return 0; }" > conftest.c &&
10881 ${CC} -c conftest.c &&
10882 mv conftest.o conftest.o.g0 &&
10883 ${CC} -c -g conftest.c &&
10884 mv conftest.o conftest.o.g &&
10885 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10887 else
10888 BUILD_CONFIG=
10890 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10892 esac
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10895 $as_echo "$BUILD_CONFIG" >&6; }
10898 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10900 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10901 # Check whether --enable-vtable-verify was given.
10902 if test "${enable_vtable_verify+set}" = set; then :
10903 enableval=$enable_vtable_verify; case "$enableval" in
10904 yes) enable_vtable_verify=yes ;;
10905 no) enable_vtable_verify=no ;;
10906 *) enable_vtable_verify=no;;
10907 esac
10908 else
10909 enable_vtable_verify=no
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10913 $as_echo "$enable_vtable_verify" >&6; }
10915 # Record target_configdirs and the configure arguments for target and
10916 # build configuration in Makefile.
10917 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10918 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10919 bootstrap_fixincludes=no
10921 # If we are building libgomp, bootstrap it.
10922 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
10923 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
10926 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10927 # or bootstrap-ubsan, bootstrap it.
10928 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
10929 case "$BUILD_CONFIG" in
10930 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
10931 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
10932 bootstrap_fixincludes=yes
10934 esac
10937 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10938 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
10939 test "$enable_vtable_verify" != no; then
10940 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
10943 # If we are building libatomic and the list of enabled languages includes the
10944 # D frontend, bootstrap it.
10945 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
10946 case ,${enable_languages}, in
10947 *,d,*)
10948 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
10950 esac
10953 # Determine whether gdb needs tk/tcl or not.
10954 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10955 # and in that case we want gdb to be built without tk. Ugh!
10956 # In fact I believe gdb is the *only* package directly dependent on tk,
10957 # so we should be able to put the 'maybe's in unconditionally and
10958 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10959 # 100% sure that that's safe though.
10961 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10962 case "$enable_gdbtk" in
10964 GDB_TK="" ;;
10965 yes)
10966 GDB_TK="${gdb_tk}" ;;
10968 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10969 # distro. Eventually someone will fix this and move Insight, nee
10970 # gdbtk to a separate directory.
10971 if test -d ${srcdir}/gdb/gdbtk ; then
10972 GDB_TK="${gdb_tk}"
10973 else
10974 GDB_TK=""
10977 esac
10978 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10979 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10981 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10982 # else does, only include them if one of these is built. The Makefile
10983 # provides the ordering, so it's enough here to add to the list.
10984 case " ${configdirs} " in
10985 *\ gdb\ *)
10986 configdirs="${configdirs} gnulib gdbsupport"
10988 *\ gdbserver\ *)
10989 configdirs="${configdirs} gnulib gdbsupport"
10991 *\ sim\ *)
10992 configdirs="${configdirs} gnulib"
10994 esac
10996 # Strip out unwanted targets.
10998 # While at that, we remove Makefiles if we were started for recursive
10999 # configuration, so that the top-level Makefile reconfigures them,
11000 # like we used to do when configure itself was recursive.
11002 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11003 # but now we're fixing up the Makefile ourselves with the additional
11004 # commands passed to AC_CONFIG_FILES. Use separate variables
11005 # extrasub-{build,host,target} not because there is any reason to split
11006 # the substitutions up that way, but only to remain below the limit of
11007 # 99 commands in a script, for HP-UX sed.
11009 # Do not nest @if/@endif or @unless/@endunless pairs, because
11010 # configure will not warn you at all.
11012 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11013 yes:yes:*\ gold\ *:*,c++,*) ;;
11014 yes:yes:*\ gold\ *:*)
11015 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11017 esac
11019 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11020 # Note C++ is always enabled for stage1 now.
11021 case "$enable_bootstrap:${noconfigdirs}" in
11022 yes:*target-libstdc++-v3*)
11023 as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11025 esac
11028 extrasub_build=
11029 for module in ${build_configdirs} ; do
11030 if test -z "${no_recursion}" \
11031 && test -f ${build_subdir}/${module}/Makefile; then
11032 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11033 rm -f ${build_subdir}/${module}/Makefile
11035 extrasub_build="$extrasub_build
11036 /^@if build-$module\$/d
11037 /^@endif build-$module\$/d
11038 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11039 /^@if build-$module-$bootstrap_suffix\$/d
11040 /^@endif build-$module-$bootstrap_suffix\$/d
11041 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11042 done
11043 extrasub_host=
11044 for module in ${configdirs} ; do
11045 if test -z "${no_recursion}"; then
11046 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
11047 if test -f ${file}; then
11048 echo 1>&2 "*** removing ${file} to force reconfigure"
11049 rm -f ${file}
11051 done
11053 case ${module},${bootstrap_fixincludes} in
11054 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
11055 *) host_bootstrap_suffix=$bootstrap_suffix ;;
11056 esac
11057 extrasub_host="$extrasub_host
11058 /^@if $module\$/d
11059 /^@endif $module\$/d
11060 /^@unless $module\$/,/^@endunless $module\$/d
11061 /^@if $module-$host_bootstrap_suffix\$/d
11062 /^@endif $module-$host_bootstrap_suffix\$/d
11063 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11064 done
11065 extrasub_target=
11066 for module in ${target_configdirs} ; do
11067 if test -z "${no_recursion}" \
11068 && test -f ${target_subdir}/${module}/Makefile; then
11069 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11070 rm -f ${target_subdir}/${module}/Makefile
11073 # We only bootstrap target libraries listed in bootstrap_target_libs.
11074 case $bootstrap_target_libs in
11075 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
11076 *) target_bootstrap_suffix=no-bootstrap ;;
11077 esac
11079 extrasub_target="$extrasub_target
11080 /^@if target-$module\$/d
11081 /^@endif target-$module\$/d
11082 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11083 /^@if target-$module-$target_bootstrap_suffix\$/d
11084 /^@endif target-$module-$target_bootstrap_suffix\$/d
11085 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11086 done
11088 # Do the final fixup along with target modules.
11089 extrasub_target="$extrasub_target
11090 /^@if /,/^@endif /d
11091 /^@unless /d
11092 /^@endunless /d"
11094 if test "$enable_pgo_build" != "no"; then
11095 extrasub_build="$extrasub_build
11096 /^@if pgo-build\$/d
11097 /^@endif pgo-build\$/d"
11100 # Create the serialization dependencies. This uses a temporary file.
11102 # Check whether --enable-serial-configure was given.
11103 if test "${enable_serial_configure+set}" = set; then :
11104 enableval=$enable_serial_configure;
11108 case ${enable_serial_configure} in
11109 yes)
11110 enable_serial_build_configure=yes
11111 enable_serial_host_configure=yes
11112 enable_serial_target_configure=yes
11114 esac
11116 # These force 'configure's to be done one at a time, to avoid problems
11117 # with contention over a shared config.cache.
11118 rm -f serdep.tmp
11119 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
11120 echo '# serdep.tmp' > serdep.tmp
11122 olditem=
11123 test "x${enable_serial_build_configure}" = xyes &&
11124 for item in ${build_configdirs} ; do
11125 case ${olditem} in
11126 "") ;;
11127 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
11128 esac
11129 olditem=${item}
11130 done
11131 olditem=
11132 test "x${enable_serial_host_configure}" = xyes &&
11133 for item in ${configdirs} ; do
11134 case ${olditem} in
11135 "") ;;
11136 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
11137 esac
11138 olditem=${item}
11139 done
11140 olditem=
11141 test "x${enable_serial_target_configure}" = xyes &&
11142 for item in ${target_configdirs} ; do
11143 case ${olditem} in
11144 "") ;;
11145 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
11146 esac
11147 olditem=${item}
11148 done
11149 serialization_dependencies=serdep.tmp
11152 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11153 # target, nonopt, and variable assignments. These are the ones we
11154 # might not want to pass down to subconfigures. The exception being
11155 # --cache-file=/dev/null, which is used to turn off the use of cache
11156 # files altogether, and which should be passed on to subconfigures.
11157 # Also strip program-prefix, program-suffix, and program-transform-name,
11158 # so that we can pass down a consistent program-transform-name.
11159 hbaseargs=
11160 bbaseargs=
11161 tbaseargs=
11162 keep_next=no
11163 skip_next=no
11164 eval "set -- $ac_configure_args"
11165 for ac_arg
11167 if test X"$skip_next" = X"yes"; then
11168 skip_next=no
11169 continue
11171 if test X"$keep_next" = X"yes"; then
11172 case $ac_arg in
11173 *\'*)
11174 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11175 esac
11176 hbaseargs="$hbaseargs '$ac_arg'"
11177 bbaseargs="$bbaseargs '$ac_arg'"
11178 tbaseargs="$tbaseargs '$ac_arg'"
11179 keep_next=no
11180 continue
11183 # Handle separated arguments. Based on the logic generated by
11184 # autoconf 2.59.
11185 case $ac_arg in
11186 *=* | --config-cache | -C | -disable-* | --disable-* \
11187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11189 | -with-* | --with-* | -without-* | --without-* | --x)
11190 separate_arg=no
11193 separate_arg=yes
11196 separate_arg=no
11198 esac
11200 skip_targ=no
11201 skip_barg=no
11202 case $ac_arg in
11204 --with-* | --without-*)
11205 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11207 case $libopt in
11208 *[-_]include)
11209 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
11211 *[-_]lib)
11212 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
11214 *[-_]prefix)
11215 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11217 *[-_]type)
11218 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
11221 lib=$libopt
11223 esac
11226 case $lib in
11227 mpc | mpfr | gmp | isl)
11228 # If we're processing --with-$lib, --with-$lib-include or
11229 # --with-$lib-lib, for one of the libs above, and target is
11230 # different from host, don't pass the current argument to any
11231 # target library's configure.
11232 if test x$is_cross_compiler = xyes; then
11233 skip_targ=yes
11236 libintl | libiconv)
11237 # We don't want libintl (and co.) in anything but the host arguments.
11238 skip_targ=yes
11239 skip_barg=yes
11241 esac
11243 esac
11245 case "$ac_arg" in
11246 --cache-file=/dev/null | \
11247 -cache-file=/dev/null )
11248 # Handled here to avoid the test to skip args below.
11249 hbaseargs="$hbaseargs '$ac_arg'"
11250 bbaseargs="$bbaseargs '$ac_arg'"
11251 tbaseargs="$tbaseargs '$ac_arg'"
11252 # Assert: $separate_arg should always be no.
11253 keep_next=$separate_arg
11255 --no*)
11256 continue
11258 --c* | \
11259 --sr* | \
11260 --ho* | \
11261 --bu* | \
11262 --t* | \
11263 --program-* | \
11264 -cache_file* | \
11265 -srcdir* | \
11266 -host* | \
11267 -build* | \
11268 -target* | \
11269 -program-prefix* | \
11270 -program-suffix* | \
11271 -program-transform-name* )
11272 skip_next=$separate_arg
11273 continue
11276 # An option. Add it.
11277 case $ac_arg in
11278 *\'*)
11279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11280 esac
11281 hbaseargs="$hbaseargs '$ac_arg'"
11282 if test X"$skip_barg" = Xno; then
11283 bbaseargs="$bbaseargs '$ac_arg'"
11285 if test X"$skip_targ" = Xno; then
11286 tbaseargs="$tbaseargs '$ac_arg'"
11288 keep_next=$separate_arg
11291 # Either a variable assignment, or a nonopt (triplet). Don't
11292 # pass it down; let the Makefile handle this.
11293 continue
11295 esac
11296 done
11297 # Remove the initial space we just introduced and, as these will be
11298 # expanded by make, quote '$'.
11299 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11300 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11302 # Add in --program-transform-name, after --program-prefix and
11303 # --program-suffix have been applied to it. Autoconf has already
11304 # doubled dollar signs and backslashes in program_transform_name; we want
11305 # the backslashes un-doubled, and then the entire thing wrapped in single
11306 # quotes, because this will be expanded first by make and then by the shell.
11307 # Also, because we want to override the logic in subdir configure scripts to
11308 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11309 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11310 ${program_transform_name}
11311 EOF_SED
11312 gcc_transform_name=`cat conftestsed.out`
11313 rm -f conftestsed.out
11314 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11315 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11316 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11317 if test "$silent" = yes; then
11318 bbaseargs="$bbaseargs --silent"
11319 hbaseargs="$hbaseargs --silent"
11320 tbaseargs="$tbaseargs --silent"
11323 bbaseargs="$bbaseargs --disable-option-checking"
11324 hbaseargs="$hbaseargs --disable-option-checking"
11325 tbaseargs="$tbaseargs --disable-option-checking"
11327 if test "$enable_year2038" = no; then
11328 bbaseargs="$bbaseargs --disable-year2038"
11329 hbaseargs="$hbaseargs --disable-year2038"
11330 tbaseargs="$tbaseargs --disable-year2038"
11333 # Record and document user additions to sub configure arguments.
11338 # For the build-side libraries, we just need to pretend we're native,
11339 # and not use the same cache file. Multilibs are neither needed nor
11340 # desired. We can't even use the same cache file for all build-side
11341 # libraries, as they're compiled differently; some with C, some with
11342 # C++ or with different feature-enabling options.
11343 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11345 # For host modules, accept cache file option, or specification as blank.
11346 case "${cache_file}" in
11347 "") # empty
11348 cache_file_option="" ;;
11349 /* | [A-Za-z]:[\\/]* ) # absolute path
11350 cache_file_option="--cache-file=${cache_file}" ;;
11351 *) # relative path
11352 cache_file_option="--cache-file=../${cache_file}" ;;
11353 esac
11355 # Host dirs don't like to share a cache file either, horribly enough.
11356 # This seems to be due to autoconf 2.5x stupidity.
11357 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11359 target_configargs="$target_configargs ${tbaseargs}"
11361 # Passing a --with-cross-host argument lets the target libraries know
11362 # whether they are being built with a cross-compiler or being built
11363 # native. However, it would be better to use other mechanisms to make the
11364 # sorts of decisions they want to make on this basis. Please consider
11365 # this option to be deprecated. FIXME.
11366 if test x${is_cross_compiler} = xyes ; then
11367 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
11370 # Special user-friendly check for native x86_64-linux build, if
11371 # multilib is not explicitly enabled.
11372 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11373 x86_64-*linux*:yes:$build:$build:)
11374 # Make sure we have a development environment that handles 32-bit
11375 dev64=no
11376 echo "int main () { return 0; }" > conftest.c
11377 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11378 if test $? = 0 ; then
11379 if test -s conftest || test -s conftest.exe ; then
11380 dev64=yes
11383 rm -f conftest*
11384 if test x${dev64} != xyes ; then
11385 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
11388 esac
11390 # Default to --enable-multilib.
11391 if test x${enable_multilib} = x ; then
11392 target_configargs="--enable-multilib ${target_configargs}"
11395 # Pass --with-newlib if appropriate. Note that target_configdirs has
11396 # changed from the earlier setting of with_newlib.
11397 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
11398 target_configargs="--with-newlib ${target_configargs}"
11401 # Different target subdirs use different values of certain variables
11402 # (notably CXX). Worse, multilibs use *lots* of different values.
11403 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11404 # it doesn't automatically accept command-line overrides of them.
11405 # This means it's not safe for target subdirs to share a cache file,
11406 # which is disgusting, but there you have it. Hopefully this can be
11407 # fixed in future. It's still worthwhile to use a cache file for each
11408 # directory. I think.
11410 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11411 # We need to pass --target, as newer autoconf's requires consistency
11412 # for target_alias and gcc doesn't manage it consistently.
11413 target_configargs="--cache-file=./config.cache ${target_configargs}"
11415 FLAGS_FOR_TARGET=
11416 case " $target_configdirs " in
11417 *" newlib "*)
11418 case " $target_configargs " in
11419 *" --with-newlib "*)
11420 case "$target" in
11421 *-cygwin*)
11422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11424 esac
11426 # If we're not building GCC, don't discard standard headers.
11427 if test -d ${srcdir}/gcc; then
11428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
11430 if test "${build}" != "${host}"; then
11431 # On Canadian crosses, CC_FOR_TARGET will have already been set
11432 # by `configure', so we won't have an opportunity to add -Bgcc/
11433 # to it. This is right: we don't want to search that directory
11434 # for binaries, but we want the header files in there, so add
11435 # them explicitly.
11436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11438 # Someone might think of using the pre-installed headers on
11439 # Canadian crosses, in case the installed compiler is not fully
11440 # compatible with the compiler being built. In this case, it
11441 # would be better to flag an error than risking having
11442 # incompatible object files being constructed. We can't
11443 # guarantee that an error will be flagged, but let's hope the
11444 # compiler will do it, when presented with incompatible header
11445 # files.
11449 case "${target}-${is_cross_compiler}" in
11450 i[3456789]86-*-linux*-no)
11451 # Here host == target, so we don't need to build gcc,
11452 # so we don't want to discard standard headers.
11453 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11456 # If we're building newlib, use its generic headers last, but search
11457 # for any libc-related directories first (so make it the last -B
11458 # switch).
11459 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11461 # If we're building libgloss, find the startup file, simulator library
11462 # and linker script.
11463 case " $target_configdirs " in
11464 *" libgloss "*)
11465 # Look for startup file, simulator library and maybe linker script.
11466 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11467 # Look for libnosys.a in case the target needs it.
11468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11469 # Most targets have the linker script in the source directory.
11470 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11472 esac
11474 esac
11476 esac
11478 esac
11480 case "$target" in
11481 x86_64-*mingw* | *-w64-mingw*)
11482 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11483 # however, use a symlink named 'mingw' in ${prefix} .
11484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11486 *-mingw*)
11487 # MinGW can't be handled as Cygwin above since it does not use newlib.
11488 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'
11490 esac
11492 # Allow the user to override the flags for
11493 # our build compiler if desired.
11494 if test x"${build}" = x"${host}" ; then
11495 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11496 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11497 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11498 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11501 # On Canadian crosses, we'll be searching the right directories for
11502 # the previously-installed cross compiler, so don't bother to add
11503 # flags for directories within the install tree of the compiler
11504 # being built; programs in there won't even run.
11505 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11506 # Search for pre-installed headers if nothing else fits.
11507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11510 if test "x${use_gnu_ld}" = x &&
11511 echo " ${configdirs} " | grep " ld " > /dev/null ; then
11512 # Arrange for us to find uninstalled linker scripts.
11513 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11516 # Search for other target-specific linker scripts and such.
11517 case "${target}" in
11518 mep*)
11519 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11521 # The VxWorks support for shared libraries is getting in
11522 # incrementally. Make sure it doesn't get activated implicitly:
11523 *vxworks*)
11524 if test "${enable_shared-unset}" = unset ; then
11525 enable_shared=no
11526 # So the build of libraries knows ...
11527 target_configargs="${target_configargs} --disable-shared"
11528 # So gcc knows ...
11529 host_configargs="${host_configargs} --disable-shared"
11532 esac
11534 # Makefile fragments.
11535 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11537 eval fragval=\$$frag
11538 if test $fragval != /dev/null; then
11539 eval $frag=${srcdir}/$fragval
11541 done
11547 # Miscellanea: directories, flags, etc.
11556 # Build module lists & subconfigure args.
11560 # Host module lists & subconfigure args.
11565 # Target module lists & subconfigure args.
11569 # Build tools.
11590 # Generate default definitions for YACC, M4, LEX and other programs that run
11591 # on the build machine. These are used if the Makefile can't locate these
11592 # programs in objdir.
11593 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11595 for ac_prog in 'bison -y' byacc yacc
11597 # Extract the first word of "$ac_prog", so it can be a program name with args.
11598 set dummy $ac_prog; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600 $as_echo_n "checking for $ac_word... " >&6; }
11601 if ${ac_cv_prog_YACC+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 if test -n "$YACC"; then
11605 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11606 else
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_prog_YACC="$ac_prog"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11618 done
11619 done
11620 IFS=$as_save_IFS
11624 YACC=$ac_cv_prog_YACC
11625 if test -n "$YACC"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11627 $as_echo "$YACC" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11634 test -n "$YACC" && break
11635 done
11636 test -n "$YACC" || YACC="$MISSING bison -y"
11638 case " $build_configdirs " in
11639 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11640 esac
11642 for ac_prog in bison
11644 # Extract the first word of "$ac_prog", so it can be a program name with args.
11645 set dummy $ac_prog; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_prog_BISON+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 if test -n "$BISON"; then
11652 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11653 else
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_BISON="$ac_prog"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11665 done
11666 done
11667 IFS=$as_save_IFS
11671 BISON=$ac_cv_prog_BISON
11672 if test -n "$BISON"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11674 $as_echo "$BISON" >&6; }
11675 else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11681 test -n "$BISON" && break
11682 done
11683 test -n "$BISON" || BISON="$MISSING bison"
11685 case " $build_configdirs " in
11686 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11687 esac
11689 for ac_prog in gm4 gnum4 m4
11691 # Extract the first word of "$ac_prog", so it can be a program name with args.
11692 set dummy $ac_prog; ac_word=$2
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694 $as_echo_n "checking for $ac_word... " >&6; }
11695 if ${ac_cv_prog_M4+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 if test -n "$M4"; then
11699 ac_cv_prog_M4="$M4" # Let the user override the test.
11700 else
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708 ac_cv_prog_M4="$ac_prog"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11712 done
11713 done
11714 IFS=$as_save_IFS
11718 M4=$ac_cv_prog_M4
11719 if test -n "$M4"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11721 $as_echo "$M4" >&6; }
11722 else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11728 test -n "$M4" && break
11729 done
11730 test -n "$M4" || M4="$MISSING m4"
11732 case " $build_configdirs " in
11733 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11734 esac
11736 for ac_prog in flex lex
11738 # Extract the first word of "$ac_prog", so it can be a program name with args.
11739 set dummy $ac_prog; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if ${ac_cv_prog_LEX+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 if test -n "$LEX"; then
11746 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755 ac_cv_prog_LEX="$ac_prog"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 break 2
11759 done
11760 done
11761 IFS=$as_save_IFS
11765 LEX=$ac_cv_prog_LEX
11766 if test -n "$LEX"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11768 $as_echo "$LEX" >&6; }
11769 else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11775 test -n "$LEX" && break
11776 done
11777 test -n "$LEX" || LEX="$MISSING flex"
11779 case " $build_configdirs " in
11780 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11781 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11782 esac
11784 for ac_prog in flex
11786 # Extract the first word of "$ac_prog", so it can be a program name with args.
11787 set dummy $ac_prog; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_prog_FLEX+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 if test -n "$FLEX"; then
11794 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11795 else
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_FLEX="$ac_prog"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11807 done
11808 done
11809 IFS=$as_save_IFS
11813 FLEX=$ac_cv_prog_FLEX
11814 if test -n "$FLEX"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11816 $as_echo "$FLEX" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11823 test -n "$FLEX" && break
11824 done
11825 test -n "$FLEX" || FLEX="$MISSING flex"
11827 case " $build_configdirs " in
11828 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11829 esac
11831 for ac_prog in makeinfo
11833 # Extract the first word of "$ac_prog", so it can be a program name with args.
11834 set dummy $ac_prog; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836 $as_echo_n "checking for $ac_word... " >&6; }
11837 if ${ac_cv_prog_MAKEINFO+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 if test -n "$MAKEINFO"; then
11841 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11842 else
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_prog_MAKEINFO="$ac_prog"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11854 done
11855 done
11856 IFS=$as_save_IFS
11860 MAKEINFO=$ac_cv_prog_MAKEINFO
11861 if test -n "$MAKEINFO"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11863 $as_echo "$MAKEINFO" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11870 test -n "$MAKEINFO" && break
11871 done
11872 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11874 case " $build_configdirs " in
11875 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11878 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11879 # higher, else we use the "missing" dummy.
11880 if ${MAKEINFO} --version \
11881 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11883 else
11884 MAKEINFO="$MISSING makeinfo"
11888 esac
11890 # FIXME: expect and dejagnu may become build tools?
11892 for ac_prog in expect
11894 # Extract the first word of "$ac_prog", so it can be a program name with args.
11895 set dummy $ac_prog; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_prog_EXPECT+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test -n "$EXPECT"; then
11902 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11903 else
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11911 ac_cv_prog_EXPECT="$ac_prog"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11915 done
11916 done
11917 IFS=$as_save_IFS
11921 EXPECT=$ac_cv_prog_EXPECT
11922 if test -n "$EXPECT"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
11924 $as_echo "$EXPECT" >&6; }
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11931 test -n "$EXPECT" && break
11932 done
11933 test -n "$EXPECT" || EXPECT="expect"
11935 case " $configdirs " in
11936 *" expect "*)
11937 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11939 esac
11941 for ac_prog in runtest
11943 # Extract the first word of "$ac_prog", so it can be a program name with args.
11944 set dummy $ac_prog; ac_word=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946 $as_echo_n "checking for $ac_word... " >&6; }
11947 if ${ac_cv_prog_RUNTEST+:} false; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 if test -n "$RUNTEST"; then
11951 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11952 else
11953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11960 ac_cv_prog_RUNTEST="$ac_prog"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 break 2
11964 done
11965 done
11966 IFS=$as_save_IFS
11970 RUNTEST=$ac_cv_prog_RUNTEST
11971 if test -n "$RUNTEST"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
11973 $as_echo "$RUNTEST" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11980 test -n "$RUNTEST" && break
11981 done
11982 test -n "$RUNTEST" || RUNTEST="runtest"
11984 case " $configdirs " in
11985 *" dejagnu "*)
11986 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11988 esac
11991 # Host tools.
11992 ncn_tool_prefix=
11993 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11994 ncn_target_tool_prefix=
11995 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11999 if test -n "$AR"; then
12000 ac_cv_prog_AR=$AR
12001 elif test -n "$ac_cv_prog_AR"; then
12002 AR=$ac_cv_prog_AR
12005 if test -n "$ac_cv_prog_AR"; then
12006 for ncn_progname in ar; do
12007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12008 set dummy ${ncn_progname}; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_prog_AR+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 if test -n "$AR"; then
12015 ac_cv_prog_AR="$AR" # Let the user override the test.
12016 else
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_prog_AR="${ncn_progname}"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12028 done
12029 done
12030 IFS=$as_save_IFS
12034 AR=$ac_cv_prog_AR
12035 if test -n "$AR"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12037 $as_echo "$AR" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12044 done
12047 for ncn_progname in ar; do
12048 if test -n "$ncn_tool_prefix"; then
12049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_AR+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test -n "$AR"; then
12057 ac_cv_prog_AR="$AR" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12070 done
12071 done
12072 IFS=$as_save_IFS
12076 AR=$ac_cv_prog_AR
12077 if test -n "$AR"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12079 $as_echo "$AR" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12087 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12089 set dummy ${ncn_progname}; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if ${ac_cv_prog_AR+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 if test -n "$AR"; then
12096 ac_cv_prog_AR="$AR" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105 ac_cv_prog_AR="${ncn_progname}"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 break 2
12109 done
12110 done
12111 IFS=$as_save_IFS
12115 AR=$ac_cv_prog_AR
12116 if test -n "$AR"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12118 $as_echo "$AR" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12126 test -n "$ac_cv_prog_AR" && break
12127 done
12129 if test -z "$ac_cv_prog_AR" ; then
12130 set dummy ar
12131 if test $build = $host ; then
12132 AR="$2"
12133 else
12134 AR="${ncn_tool_prefix}$2"
12140 if test -n "$AS"; then
12141 ac_cv_prog_AS=$AS
12142 elif test -n "$ac_cv_prog_AS"; then
12143 AS=$ac_cv_prog_AS
12146 if test -n "$ac_cv_prog_AS"; then
12147 for ncn_progname in as; do
12148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12149 set dummy ${ncn_progname}; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if ${ac_cv_prog_AS+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 if test -n "$AS"; then
12156 ac_cv_prog_AS="$AS" # Let the user override the test.
12157 else
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_prog_AS="${ncn_progname}"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12169 done
12170 done
12171 IFS=$as_save_IFS
12175 AS=$ac_cv_prog_AS
12176 if test -n "$AS"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12178 $as_echo "$AS" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12185 done
12188 for ncn_progname in as; do
12189 if test -n "$ncn_tool_prefix"; then
12190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12191 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_prog_AS+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 if test -n "$AS"; then
12198 ac_cv_prog_AS="$AS" # Let the user override the test.
12199 else
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12211 done
12212 done
12213 IFS=$as_save_IFS
12217 AS=$ac_cv_prog_AS
12218 if test -n "$AS"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12220 $as_echo "$AS" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12228 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12230 set dummy ${ncn_progname}; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_prog_AS+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 if test -n "$AS"; then
12237 ac_cv_prog_AS="$AS" # Let the user override the test.
12238 else
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246 ac_cv_prog_AS="${ncn_progname}"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12250 done
12251 done
12252 IFS=$as_save_IFS
12256 AS=$ac_cv_prog_AS
12257 if test -n "$AS"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12259 $as_echo "$AS" >&6; }
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12267 test -n "$ac_cv_prog_AS" && break
12268 done
12270 if test -z "$ac_cv_prog_AS" ; then
12271 set dummy as
12272 if test $build = $host ; then
12273 AS="$2"
12274 else
12275 AS="${ncn_tool_prefix}$2"
12281 if test -n "$DLLTOOL"; then
12282 ac_cv_prog_DLLTOOL=$DLLTOOL
12283 elif test -n "$ac_cv_prog_DLLTOOL"; then
12284 DLLTOOL=$ac_cv_prog_DLLTOOL
12287 if test -n "$ac_cv_prog_DLLTOOL"; then
12288 for ncn_progname in dlltool; do
12289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12290 set dummy ${ncn_progname}; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if ${ac_cv_prog_DLLTOOL+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 if test -n "$DLLTOOL"; then
12297 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12298 else
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12306 ac_cv_prog_DLLTOOL="${ncn_progname}"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 break 2
12310 done
12311 done
12312 IFS=$as_save_IFS
12316 DLLTOOL=$ac_cv_prog_DLLTOOL
12317 if test -n "$DLLTOOL"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12319 $as_echo "$DLLTOOL" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12326 done
12329 for ncn_progname in dlltool; do
12330 if test -n "$ncn_tool_prefix"; then
12331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12332 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 $as_echo_n "checking for $ac_word... " >&6; }
12335 if ${ac_cv_prog_DLLTOOL+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 if test -n "$DLLTOOL"; then
12339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12340 else
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12344 IFS=$as_save_IFS
12345 test -z "$as_dir" && as_dir=.
12346 for ac_exec_ext in '' $ac_executable_extensions; do
12347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12348 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 break 2
12352 done
12353 done
12354 IFS=$as_save_IFS
12358 DLLTOOL=$ac_cv_prog_DLLTOOL
12359 if test -n "$DLLTOOL"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12361 $as_echo "$DLLTOOL" >&6; }
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12369 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12371 set dummy ${ncn_progname}; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_prog_DLLTOOL+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 if test -n "$DLLTOOL"; then
12378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12379 else
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12387 ac_cv_prog_DLLTOOL="${ncn_progname}"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 break 2
12391 done
12392 done
12393 IFS=$as_save_IFS
12397 DLLTOOL=$ac_cv_prog_DLLTOOL
12398 if test -n "$DLLTOOL"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12400 $as_echo "$DLLTOOL" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12408 test -n "$ac_cv_prog_DLLTOOL" && break
12409 done
12411 if test -z "$ac_cv_prog_DLLTOOL" ; then
12412 set dummy dlltool
12413 if test $build = $host ; then
12414 DLLTOOL="$2"
12415 else
12416 DLLTOOL="${ncn_tool_prefix}$2"
12422 if test -n "$DSYMUTIL"; then
12423 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12424 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12425 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12428 if test -n "$ac_cv_prog_DSYMUTIL"; then
12429 for ncn_progname in dsymutil; do
12430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12431 set dummy ${ncn_progname}; ac_word=$2
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433 $as_echo_n "checking for $ac_word... " >&6; }
12434 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 if test -n "$DSYMUTIL"; then
12438 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12439 else
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12447 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12451 done
12452 done
12453 IFS=$as_save_IFS
12457 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12458 if test -n "$DSYMUTIL"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12460 $as_echo "$DSYMUTIL" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12467 done
12470 for ncn_progname in dsymutil; do
12471 if test -n "$ncn_tool_prefix"; then
12472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12473 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475 $as_echo_n "checking for $ac_word... " >&6; }
12476 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 if test -n "$DSYMUTIL"; then
12480 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12481 else
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12493 done
12494 done
12495 IFS=$as_save_IFS
12499 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12500 if test -n "$DSYMUTIL"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12502 $as_echo "$DSYMUTIL" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12510 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12512 set dummy ${ncn_progname}; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 if test -n "$DSYMUTIL"; then
12519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12532 done
12533 done
12534 IFS=$as_save_IFS
12538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12539 if test -n "$DSYMUTIL"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12541 $as_echo "$DSYMUTIL" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12549 test -n "$ac_cv_prog_DSYMUTIL" && break
12550 done
12552 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12553 set dummy dsymutil
12554 if test $build = $host ; then
12555 DSYMUTIL="$2"
12556 else
12557 DSYMUTIL="${ncn_tool_prefix}$2"
12563 if test -n "$LD"; then
12564 ac_cv_prog_LD=$LD
12565 elif test -n "$ac_cv_prog_LD"; then
12566 LD=$ac_cv_prog_LD
12569 if test -n "$ac_cv_prog_LD"; then
12570 for ncn_progname in ld; do
12571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12572 set dummy ${ncn_progname}; ac_word=$2
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574 $as_echo_n "checking for $ac_word... " >&6; }
12575 if ${ac_cv_prog_LD+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 if test -n "$LD"; then
12579 ac_cv_prog_LD="$LD" # Let the user override the test.
12580 else
12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582 for as_dir in $PATH
12584 IFS=$as_save_IFS
12585 test -z "$as_dir" && as_dir=.
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12588 ac_cv_prog_LD="${ncn_progname}"
12589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590 break 2
12592 done
12593 done
12594 IFS=$as_save_IFS
12598 LD=$ac_cv_prog_LD
12599 if test -n "$LD"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12601 $as_echo "$LD" >&6; }
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12608 done
12611 for ncn_progname in ld; do
12612 if test -n "$ncn_tool_prefix"; then
12613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12614 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if ${ac_cv_prog_LD+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 if test -n "$LD"; then
12621 ac_cv_prog_LD="$LD" # Let the user override the test.
12622 else
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12626 IFS=$as_save_IFS
12627 test -z "$as_dir" && as_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632 break 2
12634 done
12635 done
12636 IFS=$as_save_IFS
12640 LD=$ac_cv_prog_LD
12641 if test -n "$LD"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12643 $as_echo "$LD" >&6; }
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12651 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12653 set dummy ${ncn_progname}; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if ${ac_cv_prog_LD+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 if test -n "$LD"; then
12660 ac_cv_prog_LD="$LD" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_prog_LD="${ncn_progname}"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12679 LD=$ac_cv_prog_LD
12680 if test -n "$LD"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12682 $as_echo "$LD" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12690 test -n "$ac_cv_prog_LD" && break
12691 done
12693 if test -z "$ac_cv_prog_LD" ; then
12694 set dummy ld
12695 if test $build = $host ; then
12696 LD="$2"
12697 else
12698 LD="${ncn_tool_prefix}$2"
12704 if test -n "$LIPO"; then
12705 ac_cv_prog_LIPO=$LIPO
12706 elif test -n "$ac_cv_prog_LIPO"; then
12707 LIPO=$ac_cv_prog_LIPO
12710 if test -n "$ac_cv_prog_LIPO"; then
12711 for ncn_progname in lipo; do
12712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12713 set dummy ${ncn_progname}; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if ${ac_cv_prog_LIPO+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if test -n "$LIPO"; then
12720 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12721 else
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12729 ac_cv_prog_LIPO="${ncn_progname}"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12733 done
12734 done
12735 IFS=$as_save_IFS
12739 LIPO=$ac_cv_prog_LIPO
12740 if test -n "$LIPO"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12742 $as_echo "$LIPO" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12749 done
12752 for ncn_progname in lipo; do
12753 if test -n "$ncn_tool_prefix"; then
12754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12755 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if ${ac_cv_prog_LIPO+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 if test -n "$LIPO"; then
12762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12763 else
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12767 IFS=$as_save_IFS
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 break 2
12775 done
12776 done
12777 IFS=$as_save_IFS
12781 LIPO=$ac_cv_prog_LIPO
12782 if test -n "$LIPO"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12784 $as_echo "$LIPO" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12792 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12794 set dummy ${ncn_progname}; ac_word=$2
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12796 $as_echo_n "checking for $ac_word... " >&6; }
12797 if ${ac_cv_prog_LIPO+:} false; then :
12798 $as_echo_n "(cached) " >&6
12799 else
12800 if test -n "$LIPO"; then
12801 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12802 else
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_prog_LIPO="${ncn_progname}"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12814 done
12815 done
12816 IFS=$as_save_IFS
12820 LIPO=$ac_cv_prog_LIPO
12821 if test -n "$LIPO"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12823 $as_echo "$LIPO" >&6; }
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12831 test -n "$ac_cv_prog_LIPO" && break
12832 done
12834 if test -z "$ac_cv_prog_LIPO" ; then
12835 set dummy lipo
12836 if test $build = $host ; then
12837 LIPO="$2"
12838 else
12839 LIPO="${ncn_tool_prefix}$2"
12845 if test -n "$NM"; then
12846 ac_cv_prog_NM=$NM
12847 elif test -n "$ac_cv_prog_NM"; then
12848 NM=$ac_cv_prog_NM
12851 if test -n "$ac_cv_prog_NM"; then
12852 for ncn_progname in nm; do
12853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12854 set dummy ${ncn_progname}; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if ${ac_cv_prog_NM+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 if test -n "$NM"; then
12861 ac_cv_prog_NM="$NM" # Let the user override the test.
12862 else
12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864 for as_dir in $PATH
12866 IFS=$as_save_IFS
12867 test -z "$as_dir" && as_dir=.
12868 for ac_exec_ext in '' $ac_executable_extensions; do
12869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12870 ac_cv_prog_NM="${ncn_progname}"
12871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12872 break 2
12874 done
12875 done
12876 IFS=$as_save_IFS
12880 NM=$ac_cv_prog_NM
12881 if test -n "$NM"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12883 $as_echo "$NM" >&6; }
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12890 done
12893 for ncn_progname in nm; do
12894 if test -n "$ncn_tool_prefix"; then
12895 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12896 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if ${ac_cv_prog_NM+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test -n "$NM"; then
12903 ac_cv_prog_NM="$NM" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12912 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12916 done
12917 done
12918 IFS=$as_save_IFS
12922 NM=$ac_cv_prog_NM
12923 if test -n "$NM"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12925 $as_echo "$NM" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12933 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12935 set dummy ${ncn_progname}; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if ${ac_cv_prog_NM+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 if test -n "$NM"; then
12942 ac_cv_prog_NM="$NM" # Let the user override the test.
12943 else
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951 ac_cv_prog_NM="${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12955 done
12956 done
12957 IFS=$as_save_IFS
12961 NM=$ac_cv_prog_NM
12962 if test -n "$NM"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12964 $as_echo "$NM" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12972 test -n "$ac_cv_prog_NM" && break
12973 done
12975 if test -z "$ac_cv_prog_NM" ; then
12976 set dummy nm
12977 if test $build = $host ; then
12978 NM="$2"
12979 else
12980 NM="${ncn_tool_prefix}$2"
12986 if test -n "$RANLIB"; then
12987 ac_cv_prog_RANLIB=$RANLIB
12988 elif test -n "$ac_cv_prog_RANLIB"; then
12989 RANLIB=$ac_cv_prog_RANLIB
12992 if test -n "$ac_cv_prog_RANLIB"; then
12993 for ncn_progname in ranlib; do
12994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12995 set dummy ${ncn_progname}; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if ${ac_cv_prog_RANLIB+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 if test -n "$RANLIB"; then
13002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13003 else
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_prog_RANLIB="${ncn_progname}"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13015 done
13016 done
13017 IFS=$as_save_IFS
13021 RANLIB=$ac_cv_prog_RANLIB
13022 if test -n "$RANLIB"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13024 $as_echo "$RANLIB" >&6; }
13025 else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13031 done
13034 for ncn_progname in ranlib; do
13035 if test -n "$ncn_tool_prefix"; then
13036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13037 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if ${ac_cv_prog_RANLIB+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if test -n "$RANLIB"; then
13044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13053 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13057 done
13058 done
13059 IFS=$as_save_IFS
13063 RANLIB=$ac_cv_prog_RANLIB
13064 if test -n "$RANLIB"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13066 $as_echo "$RANLIB" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13074 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13076 set dummy ${ncn_progname}; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13078 $as_echo_n "checking for $ac_word... " >&6; }
13079 if ${ac_cv_prog_RANLIB+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 if test -n "$RANLIB"; then
13083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13084 else
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13092 ac_cv_prog_RANLIB="${ncn_progname}"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13096 done
13097 done
13098 IFS=$as_save_IFS
13102 RANLIB=$ac_cv_prog_RANLIB
13103 if test -n "$RANLIB"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13105 $as_echo "$RANLIB" >&6; }
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13113 test -n "$ac_cv_prog_RANLIB" && break
13114 done
13116 if test -z "$ac_cv_prog_RANLIB" ; then
13117 RANLIB="true"
13122 if test -n "$STRIP"; then
13123 ac_cv_prog_STRIP=$STRIP
13124 elif test -n "$ac_cv_prog_STRIP"; then
13125 STRIP=$ac_cv_prog_STRIP
13128 if test -n "$ac_cv_prog_STRIP"; then
13129 for ncn_progname in strip; do
13130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13131 set dummy ${ncn_progname}; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_STRIP+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 if test -n "$STRIP"; then
13138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_prog_STRIP="${ncn_progname}"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13151 done
13152 done
13153 IFS=$as_save_IFS
13157 STRIP=$ac_cv_prog_STRIP
13158 if test -n "$STRIP"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13160 $as_echo "$STRIP" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13167 done
13170 for ncn_progname in strip; do
13171 if test -n "$ncn_tool_prefix"; then
13172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if ${ac_cv_prog_STRIP+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 if test -n "$STRIP"; then
13180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13181 else
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13189 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 break 2
13193 done
13194 done
13195 IFS=$as_save_IFS
13199 STRIP=$ac_cv_prog_STRIP
13200 if test -n "$STRIP"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13202 $as_echo "$STRIP" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13210 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13212 set dummy ${ncn_progname}; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if ${ac_cv_prog_STRIP+:} false; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 if test -n "$STRIP"; then
13219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13220 else
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13228 ac_cv_prog_STRIP="${ncn_progname}"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13232 done
13233 done
13234 IFS=$as_save_IFS
13238 STRIP=$ac_cv_prog_STRIP
13239 if test -n "$STRIP"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13241 $as_echo "$STRIP" >&6; }
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13249 test -n "$ac_cv_prog_STRIP" && break
13250 done
13252 if test -z "$ac_cv_prog_STRIP" ; then
13253 STRIP="true"
13258 if test -n "$WINDRES"; then
13259 ac_cv_prog_WINDRES=$WINDRES
13260 elif test -n "$ac_cv_prog_WINDRES"; then
13261 WINDRES=$ac_cv_prog_WINDRES
13264 if test -n "$ac_cv_prog_WINDRES"; then
13265 for ncn_progname in windres; do
13266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13267 set dummy ${ncn_progname}; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if ${ac_cv_prog_WINDRES+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 if test -n "$WINDRES"; then
13274 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13275 else
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13279 IFS=$as_save_IFS
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283 ac_cv_prog_WINDRES="${ncn_progname}"
13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13285 break 2
13287 done
13288 done
13289 IFS=$as_save_IFS
13293 WINDRES=$ac_cv_prog_WINDRES
13294 if test -n "$WINDRES"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13296 $as_echo "$WINDRES" >&6; }
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13303 done
13306 for ncn_progname in windres; do
13307 if test -n "$ncn_tool_prefix"; then
13308 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13309 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if ${ac_cv_prog_WINDRES+:} false; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 if test -n "$WINDRES"; then
13316 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13317 else
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13329 done
13330 done
13331 IFS=$as_save_IFS
13335 WINDRES=$ac_cv_prog_WINDRES
13336 if test -n "$WINDRES"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13338 $as_echo "$WINDRES" >&6; }
13339 else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13346 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13348 set dummy ${ncn_progname}; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if ${ac_cv_prog_WINDRES+:} false; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 if test -n "$WINDRES"; then
13355 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13356 else
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13364 ac_cv_prog_WINDRES="${ncn_progname}"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13368 done
13369 done
13370 IFS=$as_save_IFS
13374 WINDRES=$ac_cv_prog_WINDRES
13375 if test -n "$WINDRES"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13377 $as_echo "$WINDRES" >&6; }
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13385 test -n "$ac_cv_prog_WINDRES" && break
13386 done
13388 if test -z "$ac_cv_prog_WINDRES" ; then
13389 set dummy windres
13390 if test $build = $host ; then
13391 WINDRES="$2"
13392 else
13393 WINDRES="${ncn_tool_prefix}$2"
13399 if test -n "$WINDMC"; then
13400 ac_cv_prog_WINDMC=$WINDMC
13401 elif test -n "$ac_cv_prog_WINDMC"; then
13402 WINDMC=$ac_cv_prog_WINDMC
13405 if test -n "$ac_cv_prog_WINDMC"; then
13406 for ncn_progname in windmc; do
13407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13408 set dummy ${ncn_progname}; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if ${ac_cv_prog_WINDMC+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 if test -n "$WINDMC"; then
13415 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13416 else
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424 ac_cv_prog_WINDMC="${ncn_progname}"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13428 done
13429 done
13430 IFS=$as_save_IFS
13434 WINDMC=$ac_cv_prog_WINDMC
13435 if test -n "$WINDMC"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13437 $as_echo "$WINDMC" >&6; }
13438 else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13444 done
13447 for ncn_progname in windmc; do
13448 if test -n "$ncn_tool_prefix"; then
13449 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13450 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if ${ac_cv_prog_WINDMC+:} false; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 if test -n "$WINDMC"; then
13457 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13458 else
13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13462 IFS=$as_save_IFS
13463 test -z "$as_dir" && as_dir=.
13464 for ac_exec_ext in '' $ac_executable_extensions; do
13465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468 break 2
13470 done
13471 done
13472 IFS=$as_save_IFS
13476 WINDMC=$ac_cv_prog_WINDMC
13477 if test -n "$WINDMC"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13479 $as_echo "$WINDMC" >&6; }
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13487 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13489 set dummy ${ncn_progname}; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if ${ac_cv_prog_WINDMC+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 if test -n "$WINDMC"; then
13496 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13497 else
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13501 IFS=$as_save_IFS
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13505 ac_cv_prog_WINDMC="${ncn_progname}"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507 break 2
13509 done
13510 done
13511 IFS=$as_save_IFS
13515 WINDMC=$ac_cv_prog_WINDMC
13516 if test -n "$WINDMC"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13518 $as_echo "$WINDMC" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13526 test -n "$ac_cv_prog_WINDMC" && break
13527 done
13529 if test -z "$ac_cv_prog_WINDMC" ; then
13530 set dummy windmc
13531 if test $build = $host ; then
13532 WINDMC="$2"
13533 else
13534 WINDMC="${ncn_tool_prefix}$2"
13540 if test -n "$OBJCOPY"; then
13541 ac_cv_prog_OBJCOPY=$OBJCOPY
13542 elif test -n "$ac_cv_prog_OBJCOPY"; then
13543 OBJCOPY=$ac_cv_prog_OBJCOPY
13546 if test -n "$ac_cv_prog_OBJCOPY"; then
13547 for ncn_progname in objcopy; do
13548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13549 set dummy ${ncn_progname}; ac_word=$2
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551 $as_echo_n "checking for $ac_word... " >&6; }
13552 if ${ac_cv_prog_OBJCOPY+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 if test -n "$OBJCOPY"; then
13556 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13557 else
13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13565 ac_cv_prog_OBJCOPY="${ncn_progname}"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 break 2
13569 done
13570 done
13571 IFS=$as_save_IFS
13575 OBJCOPY=$ac_cv_prog_OBJCOPY
13576 if test -n "$OBJCOPY"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13578 $as_echo "$OBJCOPY" >&6; }
13579 else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13585 done
13588 for ncn_progname in objcopy; do
13589 if test -n "$ncn_tool_prefix"; then
13590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13591 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if ${ac_cv_prog_OBJCOPY+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 if test -n "$OBJCOPY"; then
13598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13599 else
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13603 IFS=$as_save_IFS
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13609 break 2
13611 done
13612 done
13613 IFS=$as_save_IFS
13617 OBJCOPY=$ac_cv_prog_OBJCOPY
13618 if test -n "$OBJCOPY"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13620 $as_echo "$OBJCOPY" >&6; }
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13628 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13630 set dummy ${ncn_progname}; ac_word=$2
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13632 $as_echo_n "checking for $ac_word... " >&6; }
13633 if ${ac_cv_prog_OBJCOPY+:} false; then :
13634 $as_echo_n "(cached) " >&6
13635 else
13636 if test -n "$OBJCOPY"; then
13637 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13638 else
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13642 IFS=$as_save_IFS
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13646 ac_cv_prog_OBJCOPY="${ncn_progname}"
13647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 break 2
13650 done
13651 done
13652 IFS=$as_save_IFS
13656 OBJCOPY=$ac_cv_prog_OBJCOPY
13657 if test -n "$OBJCOPY"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13659 $as_echo "$OBJCOPY" >&6; }
13660 else
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13667 test -n "$ac_cv_prog_OBJCOPY" && break
13668 done
13670 if test -z "$ac_cv_prog_OBJCOPY" ; then
13671 set dummy objcopy
13672 if test $build = $host ; then
13673 OBJCOPY="$2"
13674 else
13675 OBJCOPY="${ncn_tool_prefix}$2"
13681 if test -n "$OBJDUMP"; then
13682 ac_cv_prog_OBJDUMP=$OBJDUMP
13683 elif test -n "$ac_cv_prog_OBJDUMP"; then
13684 OBJDUMP=$ac_cv_prog_OBJDUMP
13687 if test -n "$ac_cv_prog_OBJDUMP"; then
13688 for ncn_progname in objdump; do
13689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13690 set dummy ${ncn_progname}; ac_word=$2
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692 $as_echo_n "checking for $ac_word... " >&6; }
13693 if ${ac_cv_prog_OBJDUMP+:} false; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 if test -n "$OBJDUMP"; then
13697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13698 else
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13706 ac_cv_prog_OBJDUMP="${ncn_progname}"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13710 done
13711 done
13712 IFS=$as_save_IFS
13716 OBJDUMP=$ac_cv_prog_OBJDUMP
13717 if test -n "$OBJDUMP"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13719 $as_echo "$OBJDUMP" >&6; }
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13726 done
13729 for ncn_progname in objdump; do
13730 if test -n "$ncn_tool_prefix"; then
13731 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13732 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if ${ac_cv_prog_OBJDUMP+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 if test -n "$OBJDUMP"; then
13739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13740 else
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13752 done
13753 done
13754 IFS=$as_save_IFS
13758 OBJDUMP=$ac_cv_prog_OBJDUMP
13759 if test -n "$OBJDUMP"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13761 $as_echo "$OBJDUMP" >&6; }
13762 else
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13769 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13771 set dummy ${ncn_progname}; ac_word=$2
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13773 $as_echo_n "checking for $ac_word... " >&6; }
13774 if ${ac_cv_prog_OBJDUMP+:} false; then :
13775 $as_echo_n "(cached) " >&6
13776 else
13777 if test -n "$OBJDUMP"; then
13778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13779 else
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781 for as_dir in $PATH
13783 IFS=$as_save_IFS
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13787 ac_cv_prog_OBJDUMP="${ncn_progname}"
13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 break 2
13791 done
13792 done
13793 IFS=$as_save_IFS
13797 OBJDUMP=$ac_cv_prog_OBJDUMP
13798 if test -n "$OBJDUMP"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13800 $as_echo "$OBJDUMP" >&6; }
13801 else
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13808 test -n "$ac_cv_prog_OBJDUMP" && break
13809 done
13811 if test -z "$ac_cv_prog_OBJDUMP" ; then
13812 set dummy objdump
13813 if test $build = $host ; then
13814 OBJDUMP="$2"
13815 else
13816 OBJDUMP="${ncn_tool_prefix}$2"
13822 if test -n "$OTOOL"; then
13823 ac_cv_prog_OTOOL=$OTOOL
13824 elif test -n "$ac_cv_prog_OTOOL"; then
13825 OTOOL=$ac_cv_prog_OTOOL
13828 if test -n "$ac_cv_prog_OTOOL"; then
13829 for ncn_progname in otool; do
13830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13831 set dummy ${ncn_progname}; ac_word=$2
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13833 $as_echo_n "checking for $ac_word... " >&6; }
13834 if ${ac_cv_prog_OTOOL+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 if test -n "$OTOOL"; then
13838 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13839 else
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13843 IFS=$as_save_IFS
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13847 ac_cv_prog_OTOOL="${ncn_progname}"
13848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13849 break 2
13851 done
13852 done
13853 IFS=$as_save_IFS
13857 OTOOL=$ac_cv_prog_OTOOL
13858 if test -n "$OTOOL"; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13860 $as_echo "$OTOOL" >&6; }
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13867 done
13870 for ncn_progname in otool; do
13871 if test -n "$ncn_tool_prefix"; then
13872 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13873 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 $as_echo_n "checking for $ac_word... " >&6; }
13876 if ${ac_cv_prog_OTOOL+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 if test -n "$OTOOL"; then
13880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13881 else
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13889 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13893 done
13894 done
13895 IFS=$as_save_IFS
13899 OTOOL=$ac_cv_prog_OTOOL
13900 if test -n "$OTOOL"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13902 $as_echo "$OTOOL" >&6; }
13903 else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 $as_echo "no" >&6; }
13910 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13912 set dummy ${ncn_progname}; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if ${ac_cv_prog_OTOOL+:} false; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 if test -n "$OTOOL"; then
13919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13920 else
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928 ac_cv_prog_OTOOL="${ncn_progname}"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13932 done
13933 done
13934 IFS=$as_save_IFS
13938 OTOOL=$ac_cv_prog_OTOOL
13939 if test -n "$OTOOL"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13941 $as_echo "$OTOOL" >&6; }
13942 else
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13949 test -n "$ac_cv_prog_OTOOL" && break
13950 done
13952 if test -z "$ac_cv_prog_OTOOL" ; then
13953 set dummy otool
13954 if test $build = $host ; then
13955 OTOOL="$2"
13956 else
13957 OTOOL="${ncn_tool_prefix}$2"
13963 if test -n "$READELF"; then
13964 ac_cv_prog_READELF=$READELF
13965 elif test -n "$ac_cv_prog_READELF"; then
13966 READELF=$ac_cv_prog_READELF
13969 if test -n "$ac_cv_prog_READELF"; then
13970 for ncn_progname in readelf; do
13971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13972 set dummy ${ncn_progname}; ac_word=$2
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13974 $as_echo_n "checking for $ac_word... " >&6; }
13975 if ${ac_cv_prog_READELF+:} false; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 if test -n "$READELF"; then
13979 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13980 else
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13988 ac_cv_prog_READELF="${ncn_progname}"
13989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 break 2
13992 done
13993 done
13994 IFS=$as_save_IFS
13998 READELF=$ac_cv_prog_READELF
13999 if test -n "$READELF"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14001 $as_echo "$READELF" >&6; }
14002 else
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14008 done
14011 for ncn_progname in readelf; do
14012 if test -n "$ncn_tool_prefix"; then
14013 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14014 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if ${ac_cv_prog_READELF+:} false; then :
14018 $as_echo_n "(cached) " >&6
14019 else
14020 if test -n "$READELF"; then
14021 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14022 else
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14026 IFS=$as_save_IFS
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 break 2
14034 done
14035 done
14036 IFS=$as_save_IFS
14040 READELF=$ac_cv_prog_READELF
14041 if test -n "$READELF"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14043 $as_echo "$READELF" >&6; }
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14051 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14053 set dummy ${ncn_progname}; ac_word=$2
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14055 $as_echo_n "checking for $ac_word... " >&6; }
14056 if ${ac_cv_prog_READELF+:} false; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14059 if test -n "$READELF"; then
14060 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14061 else
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14065 IFS=$as_save_IFS
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
14068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14069 ac_cv_prog_READELF="${ncn_progname}"
14070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14071 break 2
14073 done
14074 done
14075 IFS=$as_save_IFS
14079 READELF=$ac_cv_prog_READELF
14080 if test -n "$READELF"; then
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14082 $as_echo "$READELF" >&6; }
14083 else
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14085 $as_echo "no" >&6; }
14090 test -n "$ac_cv_prog_READELF" && break
14091 done
14093 if test -z "$ac_cv_prog_READELF" ; then
14094 set dummy readelf
14095 if test $build = $host ; then
14096 READELF="$2"
14097 else
14098 READELF="${ncn_tool_prefix}$2"
14108 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14112 $as_echo_n "checking for -plugin option... " >&6; }
14114 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14115 plugin_option=
14116 for plugin in $plugin_names; do
14117 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14118 if test x$plugin_so = x$plugin; then
14119 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14121 if test x$plugin_so != x$plugin; then
14122 plugin_option="--plugin $plugin_so"
14123 break
14125 done
14126 if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}ar; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_prog_AR+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 if test -n "$AR"; then
14135 ac_cv_prog_AR="$AR" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_AR="${ac_tool_prefix}ar"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14148 done
14149 done
14150 IFS=$as_save_IFS
14154 AR=$ac_cv_prog_AR
14155 if test -n "$AR"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14157 $as_echo "$AR" >&6; }
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14165 if test -z "$ac_cv_prog_AR"; then
14166 ac_ct_AR=$AR
14167 # Extract the first word of "ar", so it can be a program name with args.
14168 set dummy ar; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test -n "$ac_ct_AR"; then
14175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14176 else
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_prog_ac_ct_AR="ar"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14188 done
14189 done
14190 IFS=$as_save_IFS
14194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14195 if test -n "$ac_ct_AR"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14197 $as_echo "$ac_ct_AR" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14203 if test "x$ac_ct_AR" = x; then
14204 AR=""
14205 else
14206 case $cross_compiling:$ac_tool_warned in
14207 yes:)
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14210 ac_tool_warned=yes ;;
14211 esac
14212 AR=$ac_ct_AR
14214 else
14215 AR="$ac_cv_prog_AR"
14218 if test "${AR}" = "" ; then
14219 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
14221 touch conftest.c
14222 ${AR} $plugin_option rc conftest.a conftest.c
14223 if test "$?" != 0; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14225 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14226 plugin_option=
14228 rm -f conftest.*
14229 if test -n "$plugin_option"; then
14230 PLUGIN_OPTION="$plugin_option"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14232 $as_echo "$plugin_option" >&6; }
14233 else
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 $as_echo "no" >&6; }
14238 AR_PLUGIN_OPTION=
14239 RANLIB_PLUGIN_OPTION=
14240 if test -n "$PLUGIN_OPTION"; then
14241 if $AR --help 2>&1 | grep -q "\--plugin"; then
14242 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14244 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
14245 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14251 # Target tools.
14253 # Check whether --with-build-time-tools was given.
14254 if test "${with_build_time_tools+set}" = set; then :
14255 withval=$with_build_time_tools; case x"$withval" in
14256 x/*) ;;
14258 with_build_time_tools=
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14260 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14262 esac
14263 else
14264 with_build_time_tools=
14270 if test -n "$CC_FOR_TARGET"; then
14271 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14272 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14273 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14276 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14277 for ncn_progname in cc gcc; do
14278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14279 set dummy ${ncn_progname}; ac_word=$2
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14281 $as_echo_n "checking for $ac_word... " >&6; }
14282 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 if test -n "$CC_FOR_TARGET"; then
14286 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14287 else
14288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289 for as_dir in $PATH
14291 IFS=$as_save_IFS
14292 test -z "$as_dir" && as_dir=.
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14295 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14297 break 2
14299 done
14300 done
14301 IFS=$as_save_IFS
14305 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14306 if test -n "$CC_FOR_TARGET"; then
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14308 $as_echo "$CC_FOR_TARGET" >&6; }
14309 else
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14315 done
14318 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14319 for ncn_progname in cc gcc; do
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14321 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14322 if test -x $with_build_time_tools/${ncn_progname}; then
14323 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14325 $as_echo "yes" >&6; }
14326 break
14327 else
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14331 done
14334 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14335 for ncn_progname in cc gcc; do
14336 if test -n "$ncn_target_tool_prefix"; then
14337 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14338 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 if test -n "$CC_FOR_TARGET"; then
14345 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14346 else
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14350 IFS=$as_save_IFS
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14356 break 2
14358 done
14359 done
14360 IFS=$as_save_IFS
14364 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14365 if test -n "$CC_FOR_TARGET"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14367 $as_echo "$CC_FOR_TARGET" >&6; }
14368 else
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14375 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14377 set dummy ${ncn_progname}; ac_word=$2
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 $as_echo_n "checking for $ac_word... " >&6; }
14380 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 if test -n "$CC_FOR_TARGET"; then
14384 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14385 else
14386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387 for as_dir in $PATH
14389 IFS=$as_save_IFS
14390 test -z "$as_dir" && as_dir=.
14391 for ac_exec_ext in '' $ac_executable_extensions; do
14392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14393 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14395 break 2
14397 done
14398 done
14399 IFS=$as_save_IFS
14403 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14404 if test -n "$CC_FOR_TARGET"; then
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14406 $as_echo "$CC_FOR_TARGET" >&6; }
14407 else
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409 $as_echo "no" >&6; }
14414 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14415 done
14418 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14419 set dummy cc gcc
14420 if test $build = $target ; then
14421 CC_FOR_TARGET="$2"
14422 else
14423 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14425 else
14426 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14431 if test -n "$CXX_FOR_TARGET"; then
14432 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14433 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14434 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14437 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14438 for ncn_progname in c++ g++ cxx gxx; do
14439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14440 set dummy ${ncn_progname}; ac_word=$2
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442 $as_echo_n "checking for $ac_word... " >&6; }
14443 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 if test -n "$CXX_FOR_TARGET"; then
14447 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14448 else
14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14452 IFS=$as_save_IFS
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 break 2
14460 done
14461 done
14462 IFS=$as_save_IFS
14466 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14467 if test -n "$CXX_FOR_TARGET"; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14469 $as_echo "$CXX_FOR_TARGET" >&6; }
14470 else
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 $as_echo "no" >&6; }
14476 done
14479 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14480 for ncn_progname in c++ g++ cxx gxx; do
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14482 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14483 if test -x $with_build_time_tools/${ncn_progname}; then
14484 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14486 $as_echo "yes" >&6; }
14487 break
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14492 done
14495 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14496 for ncn_progname in c++ g++ cxx gxx; do
14497 if test -n "$ncn_target_tool_prefix"; then
14498 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14499 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14501 $as_echo_n "checking for $ac_word... " >&6; }
14502 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 if test -n "$CXX_FOR_TARGET"; then
14506 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14507 else
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $PATH
14511 IFS=$as_save_IFS
14512 test -z "$as_dir" && as_dir=.
14513 for ac_exec_ext in '' $ac_executable_extensions; do
14514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14515 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14517 break 2
14519 done
14520 done
14521 IFS=$as_save_IFS
14525 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14526 if test -n "$CXX_FOR_TARGET"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14528 $as_echo "$CXX_FOR_TARGET" >&6; }
14529 else
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531 $as_echo "no" >&6; }
14536 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14538 set dummy ${ncn_progname}; ac_word=$2
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540 $as_echo_n "checking for $ac_word... " >&6; }
14541 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 if test -n "$CXX_FOR_TARGET"; then
14545 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14546 else
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14550 IFS=$as_save_IFS
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14556 break 2
14558 done
14559 done
14560 IFS=$as_save_IFS
14564 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14565 if test -n "$CXX_FOR_TARGET"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14567 $as_echo "$CXX_FOR_TARGET" >&6; }
14568 else
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570 $as_echo "no" >&6; }
14575 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14576 done
14579 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14580 set dummy c++ g++ cxx gxx
14581 if test $build = $target ; then
14582 CXX_FOR_TARGET="$2"
14583 else
14584 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14586 else
14587 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14592 if test -n "$GCC_FOR_TARGET"; then
14593 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14594 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14595 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14598 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14599 for ncn_progname in gcc; do
14600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14601 set dummy ${ncn_progname}; ac_word=$2
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14603 $as_echo_n "checking for $ac_word... " >&6; }
14604 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 if test -n "$GCC_FOR_TARGET"; then
14608 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14609 else
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14613 IFS=$as_save_IFS
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14617 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14619 break 2
14621 done
14622 done
14623 IFS=$as_save_IFS
14627 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14628 if test -n "$GCC_FOR_TARGET"; then
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14630 $as_echo "$GCC_FOR_TARGET" >&6; }
14631 else
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633 $as_echo "no" >&6; }
14637 done
14640 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14641 for ncn_progname in gcc; do
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14643 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14644 if test -x $with_build_time_tools/${ncn_progname}; then
14645 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14647 $as_echo "yes" >&6; }
14648 break
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 $as_echo "no" >&6; }
14653 done
14656 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14657 for ncn_progname in gcc; do
14658 if test -n "$ncn_target_tool_prefix"; then
14659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14662 $as_echo_n "checking for $ac_word... " >&6; }
14663 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14664 $as_echo_n "(cached) " >&6
14665 else
14666 if test -n "$GCC_FOR_TARGET"; then
14667 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14668 else
14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670 for as_dir in $PATH
14672 IFS=$as_save_IFS
14673 test -z "$as_dir" && as_dir=.
14674 for ac_exec_ext in '' $ac_executable_extensions; do
14675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14676 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14678 break 2
14680 done
14681 done
14682 IFS=$as_save_IFS
14686 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14687 if test -n "$GCC_FOR_TARGET"; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14689 $as_echo "$GCC_FOR_TARGET" >&6; }
14690 else
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14697 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14699 set dummy ${ncn_progname}; ac_word=$2
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14701 $as_echo_n "checking for $ac_word... " >&6; }
14702 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 if test -n "$GCC_FOR_TARGET"; then
14706 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14707 else
14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709 for as_dir in $PATH
14711 IFS=$as_save_IFS
14712 test -z "$as_dir" && as_dir=.
14713 for ac_exec_ext in '' $ac_executable_extensions; do
14714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14715 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14717 break 2
14719 done
14720 done
14721 IFS=$as_save_IFS
14725 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14726 if test -n "$GCC_FOR_TARGET"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14728 $as_echo "$GCC_FOR_TARGET" >&6; }
14729 else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14736 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14737 done
14740 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14741 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14742 else
14743 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14748 if test -n "$GFORTRAN_FOR_TARGET"; then
14749 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14750 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14751 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14754 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14755 for ncn_progname in gfortran; do
14756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14757 set dummy ${ncn_progname}; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14759 $as_echo_n "checking for $ac_word... " >&6; }
14760 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 if test -n "$GFORTRAN_FOR_TARGET"; then
14764 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14765 else
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14769 IFS=$as_save_IFS
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14775 break 2
14777 done
14778 done
14779 IFS=$as_save_IFS
14783 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14784 if test -n "$GFORTRAN_FOR_TARGET"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14786 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14787 else
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14793 done
14796 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14797 for ncn_progname in gfortran; do
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14799 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14800 if test -x $with_build_time_tools/${ncn_progname}; then
14801 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14803 $as_echo "yes" >&6; }
14804 break
14805 else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14809 done
14812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14813 for ncn_progname in gfortran; do
14814 if test -n "$ncn_target_tool_prefix"; then
14815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14818 $as_echo_n "checking for $ac_word... " >&6; }
14819 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 if test -n "$GFORTRAN_FOR_TARGET"; then
14823 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14824 else
14825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14828 IFS=$as_save_IFS
14829 test -z "$as_dir" && as_dir=.
14830 for ac_exec_ext in '' $ac_executable_extensions; do
14831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14832 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14834 break 2
14836 done
14837 done
14838 IFS=$as_save_IFS
14842 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14843 if test -n "$GFORTRAN_FOR_TARGET"; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14845 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14846 else
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14853 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14855 set dummy ${ncn_progname}; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 if test -n "$GFORTRAN_FOR_TARGET"; then
14862 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14863 else
14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14867 IFS=$as_save_IFS
14868 test -z "$as_dir" && as_dir=.
14869 for ac_exec_ext in '' $ac_executable_extensions; do
14870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14871 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14873 break 2
14875 done
14876 done
14877 IFS=$as_save_IFS
14881 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14882 if test -n "$GFORTRAN_FOR_TARGET"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14884 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14885 else
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887 $as_echo "no" >&6; }
14892 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14893 done
14896 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14897 set dummy gfortran
14898 if test $build = $target ; then
14899 GFORTRAN_FOR_TARGET="$2"
14900 else
14901 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14903 else
14904 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14909 if test -n "$GOC_FOR_TARGET"; then
14910 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14911 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14912 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14915 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14916 for ncn_progname in gccgo; do
14917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14918 set dummy ${ncn_progname}; ac_word=$2
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14920 $as_echo_n "checking for $ac_word... " >&6; }
14921 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 if test -n "$GOC_FOR_TARGET"; then
14925 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14926 else
14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14930 IFS=$as_save_IFS
14931 test -z "$as_dir" && as_dir=.
14932 for ac_exec_ext in '' $ac_executable_extensions; do
14933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14936 break 2
14938 done
14939 done
14940 IFS=$as_save_IFS
14944 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14945 if test -n "$GOC_FOR_TARGET"; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14947 $as_echo "$GOC_FOR_TARGET" >&6; }
14948 else
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950 $as_echo "no" >&6; }
14954 done
14957 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14958 for ncn_progname in gccgo; do
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14960 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14961 if test -x $with_build_time_tools/${ncn_progname}; then
14962 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14964 $as_echo "yes" >&6; }
14965 break
14966 else
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14968 $as_echo "no" >&6; }
14970 done
14973 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14974 for ncn_progname in gccgo; do
14975 if test -n "$ncn_target_tool_prefix"; then
14976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14977 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14979 $as_echo_n "checking for $ac_word... " >&6; }
14980 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14981 $as_echo_n "(cached) " >&6
14982 else
14983 if test -n "$GOC_FOR_TARGET"; then
14984 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14985 else
14986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14987 for as_dir in $PATH
14989 IFS=$as_save_IFS
14990 test -z "$as_dir" && as_dir=.
14991 for ac_exec_ext in '' $ac_executable_extensions; do
14992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14993 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14995 break 2
14997 done
14998 done
14999 IFS=$as_save_IFS
15003 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15004 if test -n "$GOC_FOR_TARGET"; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15006 $as_echo "$GOC_FOR_TARGET" >&6; }
15007 else
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009 $as_echo "no" >&6; }
15014 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15016 set dummy ${ncn_progname}; ac_word=$2
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15018 $as_echo_n "checking for $ac_word... " >&6; }
15019 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 if test -n "$GOC_FOR_TARGET"; then
15023 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15024 else
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15028 IFS=$as_save_IFS
15029 test -z "$as_dir" && as_dir=.
15030 for ac_exec_ext in '' $ac_executable_extensions; do
15031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15034 break 2
15036 done
15037 done
15038 IFS=$as_save_IFS
15042 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15043 if test -n "$GOC_FOR_TARGET"; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15045 $as_echo "$GOC_FOR_TARGET" >&6; }
15046 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15048 $as_echo "no" >&6; }
15053 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15054 done
15057 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15058 set dummy gccgo
15059 if test $build = $target ; then
15060 GOC_FOR_TARGET="$2"
15061 else
15062 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15064 else
15065 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15070 if test -n "$GDC_FOR_TARGET"; then
15071 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15072 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15073 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15076 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15077 for ncn_progname in gdc; do
15078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15079 set dummy ${ncn_progname}; ac_word=$2
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15081 $as_echo_n "checking for $ac_word... " >&6; }
15082 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 if test -n "$GDC_FOR_TARGET"; then
15086 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15087 else
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15091 IFS=$as_save_IFS
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15095 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15097 break 2
15099 done
15100 done
15101 IFS=$as_save_IFS
15105 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15106 if test -n "$GDC_FOR_TARGET"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15108 $as_echo "$GDC_FOR_TARGET" >&6; }
15109 else
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 $as_echo "no" >&6; }
15115 done
15118 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15119 for ncn_progname in gdc; do
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15121 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15122 if test -x $with_build_time_tools/${ncn_progname}; then
15123 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15125 $as_echo "yes" >&6; }
15126 break
15127 else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15131 done
15134 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15135 for ncn_progname in gdc; do
15136 if test -n "$ncn_target_tool_prefix"; then
15137 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15138 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15140 $as_echo_n "checking for $ac_word... " >&6; }
15141 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15142 $as_echo_n "(cached) " >&6
15143 else
15144 if test -n "$GDC_FOR_TARGET"; then
15145 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15146 else
15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15150 IFS=$as_save_IFS
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15156 break 2
15158 done
15159 done
15160 IFS=$as_save_IFS
15164 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15165 if test -n "$GDC_FOR_TARGET"; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15167 $as_echo "$GDC_FOR_TARGET" >&6; }
15168 else
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170 $as_echo "no" >&6; }
15175 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15177 set dummy ${ncn_progname}; ac_word=$2
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15179 $as_echo_n "checking for $ac_word... " >&6; }
15180 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183 if test -n "$GDC_FOR_TARGET"; then
15184 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15185 else
15186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH
15189 IFS=$as_save_IFS
15190 test -z "$as_dir" && as_dir=.
15191 for ac_exec_ext in '' $ac_executable_extensions; do
15192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15193 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15195 break 2
15197 done
15198 done
15199 IFS=$as_save_IFS
15203 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15204 if test -n "$GDC_FOR_TARGET"; then
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15206 $as_echo "$GDC_FOR_TARGET" >&6; }
15207 else
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209 $as_echo "no" >&6; }
15214 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15215 done
15218 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15219 set dummy gdc
15220 if test $build = $target ; then
15221 GDC_FOR_TARGET="$2"
15222 else
15223 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15225 else
15226 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15231 if test -n "$GM2_FOR_TARGET"; then
15232 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15233 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15234 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15237 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15238 for ncn_progname in gm2; do
15239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15240 set dummy ${ncn_progname}; ac_word=$2
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15242 $as_echo_n "checking for $ac_word... " >&6; }
15243 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15244 $as_echo_n "(cached) " >&6
15245 else
15246 if test -n "$GM2_FOR_TARGET"; then
15247 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15248 else
15249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15250 for as_dir in $PATH
15252 IFS=$as_save_IFS
15253 test -z "$as_dir" && as_dir=.
15254 for ac_exec_ext in '' $ac_executable_extensions; do
15255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15256 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15258 break 2
15260 done
15261 done
15262 IFS=$as_save_IFS
15266 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15267 if test -n "$GM2_FOR_TARGET"; then
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15269 $as_echo "$GM2_FOR_TARGET" >&6; }
15270 else
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272 $as_echo "no" >&6; }
15276 done
15279 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15280 for ncn_progname in gm2; do
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15282 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15283 if test -x $with_build_time_tools/${ncn_progname}; then
15284 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15286 $as_echo "yes" >&6; }
15287 break
15288 else
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290 $as_echo "no" >&6; }
15292 done
15295 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15296 for ncn_progname in gm2; do
15297 if test -n "$ncn_target_tool_prefix"; then
15298 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15299 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15301 $as_echo_n "checking for $ac_word... " >&6; }
15302 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 if test -n "$GM2_FOR_TARGET"; then
15306 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15307 else
15308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15309 for as_dir in $PATH
15311 IFS=$as_save_IFS
15312 test -z "$as_dir" && as_dir=.
15313 for ac_exec_ext in '' $ac_executable_extensions; do
15314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15315 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15317 break 2
15319 done
15320 done
15321 IFS=$as_save_IFS
15325 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15326 if test -n "$GM2_FOR_TARGET"; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15328 $as_echo "$GM2_FOR_TARGET" >&6; }
15329 else
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15331 $as_echo "no" >&6; }
15336 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15338 set dummy ${ncn_progname}; ac_word=$2
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15340 $as_echo_n "checking for $ac_word... " >&6; }
15341 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15342 $as_echo_n "(cached) " >&6
15343 else
15344 if test -n "$GM2_FOR_TARGET"; then
15345 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15346 else
15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 for as_dir in $PATH
15350 IFS=$as_save_IFS
15351 test -z "$as_dir" && as_dir=.
15352 for ac_exec_ext in '' $ac_executable_extensions; do
15353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15354 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15356 break 2
15358 done
15359 done
15360 IFS=$as_save_IFS
15364 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15365 if test -n "$GM2_FOR_TARGET"; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15367 $as_echo "$GM2_FOR_TARGET" >&6; }
15368 else
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15370 $as_echo "no" >&6; }
15375 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15376 done
15379 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15380 set dummy gm2
15381 if test $build = $target ; then
15382 GM2_FOR_TARGET="$2"
15383 else
15384 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15386 else
15387 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15392 cat > conftest.c << \EOF
15393 #ifdef __GNUC__
15394 gcc_yay;
15395 #endif
15397 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15398 have_gcc_for_target=yes
15399 else
15400 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15401 have_gcc_for_target=no
15403 rm conftest.c
15408 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15409 if test -n "$with_build_time_tools"; then
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15411 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15412 if test -x $with_build_time_tools/ar; then
15413 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15414 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15416 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15417 else
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15421 elif test $build != $host && test $have_gcc_for_target = yes; then
15422 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15423 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15424 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15427 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15428 # Extract the first word of "ar", so it can be a program name with args.
15429 set dummy ar; ac_word=$2
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15431 $as_echo_n "checking for $ac_word... " >&6; }
15432 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 case $AR_FOR_TARGET in
15436 [\\/]* | ?:[\\/]*)
15437 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441 for as_dir in $gcc_cv_tool_dirs
15443 IFS=$as_save_IFS
15444 test -z "$as_dir" && as_dir=.
15445 for ac_exec_ext in '' $ac_executable_extensions; do
15446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15447 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15449 break 2
15451 done
15452 done
15453 IFS=$as_save_IFS
15456 esac
15458 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15459 if test -n "$AR_FOR_TARGET"; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15461 $as_echo "$AR_FOR_TARGET" >&6; }
15462 else
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 $as_echo "no" >&6; }
15469 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15472 if test -n "$AR_FOR_TARGET"; then
15473 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15474 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15475 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15478 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15479 for ncn_progname in ar; do
15480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15481 set dummy ${ncn_progname}; ac_word=$2
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15483 $as_echo_n "checking for $ac_word... " >&6; }
15484 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 if test -n "$AR_FOR_TARGET"; then
15488 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15489 else
15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491 for as_dir in $PATH
15493 IFS=$as_save_IFS
15494 test -z "$as_dir" && as_dir=.
15495 for ac_exec_ext in '' $ac_executable_extensions; do
15496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15497 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15499 break 2
15501 done
15502 done
15503 IFS=$as_save_IFS
15507 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15508 if test -n "$AR_FOR_TARGET"; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15510 $as_echo "$AR_FOR_TARGET" >&6; }
15511 else
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513 $as_echo "no" >&6; }
15517 done
15520 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15521 for ncn_progname in ar; do
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15523 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15524 if test -x $with_build_time_tools/${ncn_progname}; then
15525 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15527 $as_echo "yes" >&6; }
15528 break
15529 else
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15531 $as_echo "no" >&6; }
15533 done
15536 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15537 for ncn_progname in ar; do
15538 if test -n "$ncn_target_tool_prefix"; then
15539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15542 $as_echo_n "checking for $ac_word... " >&6; }
15543 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15544 $as_echo_n "(cached) " >&6
15545 else
15546 if test -n "$AR_FOR_TARGET"; then
15547 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15548 else
15549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15550 for as_dir in $PATH
15552 IFS=$as_save_IFS
15553 test -z "$as_dir" && as_dir=.
15554 for ac_exec_ext in '' $ac_executable_extensions; do
15555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15556 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15558 break 2
15560 done
15561 done
15562 IFS=$as_save_IFS
15566 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15567 if test -n "$AR_FOR_TARGET"; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15569 $as_echo "$AR_FOR_TARGET" >&6; }
15570 else
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15572 $as_echo "no" >&6; }
15577 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15579 set dummy ${ncn_progname}; ac_word=$2
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15581 $as_echo_n "checking for $ac_word... " >&6; }
15582 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15583 $as_echo_n "(cached) " >&6
15584 else
15585 if test -n "$AR_FOR_TARGET"; then
15586 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15587 else
15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15591 IFS=$as_save_IFS
15592 test -z "$as_dir" && as_dir=.
15593 for ac_exec_ext in '' $ac_executable_extensions; do
15594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15595 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15597 break 2
15599 done
15600 done
15601 IFS=$as_save_IFS
15605 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15606 if test -n "$AR_FOR_TARGET"; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15608 $as_echo "$AR_FOR_TARGET" >&6; }
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611 $as_echo "no" >&6; }
15616 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15617 done
15620 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15621 set dummy ar
15622 if test $build = $target ; then
15623 AR_FOR_TARGET="$2"
15624 else
15625 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15627 else
15628 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15631 else
15632 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15638 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15639 if test -n "$with_build_time_tools"; then
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15641 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15642 if test -x $with_build_time_tools/as; then
15643 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15644 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15646 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15647 else
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649 $as_echo "no" >&6; }
15651 elif test $build != $host && test $have_gcc_for_target = yes; then
15652 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15653 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15654 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15657 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15658 # Extract the first word of "as", so it can be a program name with args.
15659 set dummy as; ac_word=$2
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15661 $as_echo_n "checking for $ac_word... " >&6; }
15662 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 case $AS_FOR_TARGET in
15666 [\\/]* | ?:[\\/]*)
15667 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 for as_dir in $gcc_cv_tool_dirs
15673 IFS=$as_save_IFS
15674 test -z "$as_dir" && as_dir=.
15675 for ac_exec_ext in '' $ac_executable_extensions; do
15676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15677 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15679 break 2
15681 done
15682 done
15683 IFS=$as_save_IFS
15686 esac
15688 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15689 if test -n "$AS_FOR_TARGET"; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15691 $as_echo "$AS_FOR_TARGET" >&6; }
15692 else
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15699 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15702 if test -n "$AS_FOR_TARGET"; then
15703 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15704 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15705 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15708 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15709 for ncn_progname in as; do
15710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15711 set dummy ${ncn_progname}; ac_word=$2
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15713 $as_echo_n "checking for $ac_word... " >&6; }
15714 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15717 if test -n "$AS_FOR_TARGET"; then
15718 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15719 else
15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721 for as_dir in $PATH
15723 IFS=$as_save_IFS
15724 test -z "$as_dir" && as_dir=.
15725 for ac_exec_ext in '' $ac_executable_extensions; do
15726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15727 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15729 break 2
15731 done
15732 done
15733 IFS=$as_save_IFS
15737 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15738 if test -n "$AS_FOR_TARGET"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15740 $as_echo "$AS_FOR_TARGET" >&6; }
15741 else
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743 $as_echo "no" >&6; }
15747 done
15750 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15751 for ncn_progname in as; do
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15753 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15754 if test -x $with_build_time_tools/${ncn_progname}; then
15755 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15757 $as_echo "yes" >&6; }
15758 break
15759 else
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15761 $as_echo "no" >&6; }
15763 done
15766 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15767 for ncn_progname in as; do
15768 if test -n "$ncn_target_tool_prefix"; then
15769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15772 $as_echo_n "checking for $ac_word... " >&6; }
15773 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15774 $as_echo_n "(cached) " >&6
15775 else
15776 if test -n "$AS_FOR_TARGET"; then
15777 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15778 else
15779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15780 for as_dir in $PATH
15782 IFS=$as_save_IFS
15783 test -z "$as_dir" && as_dir=.
15784 for ac_exec_ext in '' $ac_executable_extensions; do
15785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15786 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15788 break 2
15790 done
15791 done
15792 IFS=$as_save_IFS
15796 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15797 if test -n "$AS_FOR_TARGET"; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15799 $as_echo "$AS_FOR_TARGET" >&6; }
15800 else
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802 $as_echo "no" >&6; }
15807 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15809 set dummy ${ncn_progname}; ac_word=$2
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15811 $as_echo_n "checking for $ac_word... " >&6; }
15812 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15813 $as_echo_n "(cached) " >&6
15814 else
15815 if test -n "$AS_FOR_TARGET"; then
15816 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15817 else
15818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819 for as_dir in $PATH
15821 IFS=$as_save_IFS
15822 test -z "$as_dir" && as_dir=.
15823 for ac_exec_ext in '' $ac_executable_extensions; do
15824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15825 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15827 break 2
15829 done
15830 done
15831 IFS=$as_save_IFS
15835 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15836 if test -n "$AS_FOR_TARGET"; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15838 $as_echo "$AS_FOR_TARGET" >&6; }
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15846 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15847 done
15850 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15851 set dummy as
15852 if test $build = $target ; then
15853 AS_FOR_TARGET="$2"
15854 else
15855 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15857 else
15858 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15861 else
15862 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15868 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15869 if test -n "$with_build_time_tools"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15871 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15872 if test -x $with_build_time_tools/dlltool; then
15873 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15874 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15876 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15877 else
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879 $as_echo "no" >&6; }
15881 elif test $build != $host && test $have_gcc_for_target = yes; then
15882 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15883 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15884 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15887 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15888 # Extract the first word of "dlltool", so it can be a program name with args.
15889 set dummy dlltool; ac_word=$2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15891 $as_echo_n "checking for $ac_word... " >&6; }
15892 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 case $DLLTOOL_FOR_TARGET in
15896 [\\/]* | ?:[\\/]*)
15897 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15901 for as_dir in $gcc_cv_tool_dirs
15903 IFS=$as_save_IFS
15904 test -z "$as_dir" && as_dir=.
15905 for ac_exec_ext in '' $ac_executable_extensions; do
15906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15907 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 break 2
15911 done
15912 done
15913 IFS=$as_save_IFS
15916 esac
15918 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15919 if test -n "$DLLTOOL_FOR_TARGET"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15921 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15922 else
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15929 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15932 if test -n "$DLLTOOL_FOR_TARGET"; then
15933 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15934 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15935 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15938 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15939 for ncn_progname in dlltool; do
15940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15941 set dummy ${ncn_progname}; ac_word=$2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943 $as_echo_n "checking for $ac_word... " >&6; }
15944 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 if test -n "$DLLTOOL_FOR_TARGET"; then
15948 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15949 else
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 break 2
15961 done
15962 done
15963 IFS=$as_save_IFS
15967 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15968 if test -n "$DLLTOOL_FOR_TARGET"; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15970 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15971 else
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15973 $as_echo "no" >&6; }
15977 done
15980 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15981 for ncn_progname in dlltool; do
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15983 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15984 if test -x $with_build_time_tools/${ncn_progname}; then
15985 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15987 $as_echo "yes" >&6; }
15988 break
15989 else
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15991 $as_echo "no" >&6; }
15993 done
15996 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15997 for ncn_progname in dlltool; do
15998 if test -n "$ncn_target_tool_prefix"; then
15999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16002 $as_echo_n "checking for $ac_word... " >&6; }
16003 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16004 $as_echo_n "(cached) " >&6
16005 else
16006 if test -n "$DLLTOOL_FOR_TARGET"; then
16007 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16008 else
16009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16010 for as_dir in $PATH
16012 IFS=$as_save_IFS
16013 test -z "$as_dir" && as_dir=.
16014 for ac_exec_ext in '' $ac_executable_extensions; do
16015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16016 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16018 break 2
16020 done
16021 done
16022 IFS=$as_save_IFS
16026 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16027 if test -n "$DLLTOOL_FOR_TARGET"; then
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16029 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16030 else
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032 $as_echo "no" >&6; }
16037 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16039 set dummy ${ncn_progname}; ac_word=$2
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16041 $as_echo_n "checking for $ac_word... " >&6; }
16042 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16043 $as_echo_n "(cached) " >&6
16044 else
16045 if test -n "$DLLTOOL_FOR_TARGET"; then
16046 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16047 else
16048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049 for as_dir in $PATH
16051 IFS=$as_save_IFS
16052 test -z "$as_dir" && as_dir=.
16053 for ac_exec_ext in '' $ac_executable_extensions; do
16054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16055 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16057 break 2
16059 done
16060 done
16061 IFS=$as_save_IFS
16065 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16066 if test -n "$DLLTOOL_FOR_TARGET"; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16068 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16069 else
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071 $as_echo "no" >&6; }
16076 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16077 done
16080 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16081 set dummy dlltool
16082 if test $build = $target ; then
16083 DLLTOOL_FOR_TARGET="$2"
16084 else
16085 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16087 else
16088 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16091 else
16092 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16098 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16099 if test -n "$with_build_time_tools"; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16101 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16102 if test -x $with_build_time_tools/dsymutil; then
16103 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16104 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16106 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16107 else
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16111 elif test $build != $host && test $have_gcc_for_target = yes; then
16112 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16113 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16114 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16117 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16118 # Extract the first word of "dsymutil", so it can be a program name with args.
16119 set dummy dsymutil; ac_word=$2
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16121 $as_echo_n "checking for $ac_word... " >&6; }
16122 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124 else
16125 case $DSYMUTIL_FOR_TARGET in
16126 [\\/]* | ?:[\\/]*)
16127 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16131 for as_dir in $gcc_cv_tool_dirs
16133 IFS=$as_save_IFS
16134 test -z "$as_dir" && as_dir=.
16135 for ac_exec_ext in '' $ac_executable_extensions; do
16136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16137 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16139 break 2
16141 done
16142 done
16143 IFS=$as_save_IFS
16146 esac
16148 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16149 if test -n "$DSYMUTIL_FOR_TARGET"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16151 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16152 else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16159 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16162 if test -n "$DSYMUTIL_FOR_TARGET"; then
16163 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16164 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16165 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16168 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16169 for ncn_progname in dsymutil; do
16170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16171 set dummy ${ncn_progname}; ac_word=$2
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16173 $as_echo_n "checking for $ac_word... " >&6; }
16174 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16175 $as_echo_n "(cached) " >&6
16176 else
16177 if test -n "$DSYMUTIL_FOR_TARGET"; then
16178 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16179 else
16180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16181 for as_dir in $PATH
16183 IFS=$as_save_IFS
16184 test -z "$as_dir" && as_dir=.
16185 for ac_exec_ext in '' $ac_executable_extensions; do
16186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16187 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16189 break 2
16191 done
16192 done
16193 IFS=$as_save_IFS
16197 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16198 if test -n "$DSYMUTIL_FOR_TARGET"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16200 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16201 else
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16207 done
16210 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16211 for ncn_progname in dsymutil; do
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16213 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16214 if test -x $with_build_time_tools/${ncn_progname}; then
16215 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16217 $as_echo "yes" >&6; }
16218 break
16219 else
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16221 $as_echo "no" >&6; }
16223 done
16226 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16227 for ncn_progname in dsymutil; do
16228 if test -n "$ncn_target_tool_prefix"; then
16229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16230 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16232 $as_echo_n "checking for $ac_word... " >&6; }
16233 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16234 $as_echo_n "(cached) " >&6
16235 else
16236 if test -n "$DSYMUTIL_FOR_TARGET"; then
16237 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16238 else
16239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16240 for as_dir in $PATH
16242 IFS=$as_save_IFS
16243 test -z "$as_dir" && as_dir=.
16244 for ac_exec_ext in '' $ac_executable_extensions; do
16245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16246 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16248 break 2
16250 done
16251 done
16252 IFS=$as_save_IFS
16256 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16257 if test -n "$DSYMUTIL_FOR_TARGET"; then
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16259 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16260 else
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262 $as_echo "no" >&6; }
16267 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16269 set dummy ${ncn_progname}; ac_word=$2
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16271 $as_echo_n "checking for $ac_word... " >&6; }
16272 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16273 $as_echo_n "(cached) " >&6
16274 else
16275 if test -n "$DSYMUTIL_FOR_TARGET"; then
16276 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16277 else
16278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16281 IFS=$as_save_IFS
16282 test -z "$as_dir" && as_dir=.
16283 for ac_exec_ext in '' $ac_executable_extensions; do
16284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16285 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16287 break 2
16289 done
16290 done
16291 IFS=$as_save_IFS
16295 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16296 if test -n "$DSYMUTIL_FOR_TARGET"; then
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16298 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16299 else
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301 $as_echo "no" >&6; }
16306 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16307 done
16310 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16311 set dummy dsymutil
16312 if test $build = $target ; then
16313 DSYMUTIL_FOR_TARGET="$2"
16314 else
16315 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16317 else
16318 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16321 else
16322 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16328 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16329 if test -n "$with_build_time_tools"; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16331 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16332 if test -x $with_build_time_tools/ld; then
16333 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16334 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16336 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16337 else
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16339 $as_echo "no" >&6; }
16341 elif test $build != $host && test $have_gcc_for_target = yes; then
16342 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16343 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16344 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16347 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16348 # Extract the first word of "ld", so it can be a program name with args.
16349 set dummy ld; ac_word=$2
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16351 $as_echo_n "checking for $ac_word... " >&6; }
16352 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16353 $as_echo_n "(cached) " >&6
16354 else
16355 case $LD_FOR_TARGET in
16356 [\\/]* | ?:[\\/]*)
16357 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16361 for as_dir in $gcc_cv_tool_dirs
16363 IFS=$as_save_IFS
16364 test -z "$as_dir" && as_dir=.
16365 for ac_exec_ext in '' $ac_executable_extensions; do
16366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16367 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16369 break 2
16371 done
16372 done
16373 IFS=$as_save_IFS
16376 esac
16378 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16379 if test -n "$LD_FOR_TARGET"; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16381 $as_echo "$LD_FOR_TARGET" >&6; }
16382 else
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384 $as_echo "no" >&6; }
16389 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16392 if test -n "$LD_FOR_TARGET"; then
16393 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16394 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16395 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16398 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16399 for ncn_progname in ld; do
16400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16401 set dummy ${ncn_progname}; ac_word=$2
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16403 $as_echo_n "checking for $ac_word... " >&6; }
16404 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16405 $as_echo_n "(cached) " >&6
16406 else
16407 if test -n "$LD_FOR_TARGET"; then
16408 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16409 else
16410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16411 for as_dir in $PATH
16413 IFS=$as_save_IFS
16414 test -z "$as_dir" && as_dir=.
16415 for ac_exec_ext in '' $ac_executable_extensions; do
16416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16417 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16419 break 2
16421 done
16422 done
16423 IFS=$as_save_IFS
16427 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16428 if test -n "$LD_FOR_TARGET"; then
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16430 $as_echo "$LD_FOR_TARGET" >&6; }
16431 else
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16433 $as_echo "no" >&6; }
16437 done
16440 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16441 for ncn_progname in ld; do
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16443 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16444 if test -x $with_build_time_tools/${ncn_progname}; then
16445 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16447 $as_echo "yes" >&6; }
16448 break
16449 else
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16453 done
16456 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16457 for ncn_progname in ld; do
16458 if test -n "$ncn_target_tool_prefix"; then
16459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16460 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16462 $as_echo_n "checking for $ac_word... " >&6; }
16463 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16464 $as_echo_n "(cached) " >&6
16465 else
16466 if test -n "$LD_FOR_TARGET"; then
16467 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16468 else
16469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16470 for as_dir in $PATH
16472 IFS=$as_save_IFS
16473 test -z "$as_dir" && as_dir=.
16474 for ac_exec_ext in '' $ac_executable_extensions; do
16475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16476 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16478 break 2
16480 done
16481 done
16482 IFS=$as_save_IFS
16486 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16487 if test -n "$LD_FOR_TARGET"; then
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16489 $as_echo "$LD_FOR_TARGET" >&6; }
16490 else
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16492 $as_echo "no" >&6; }
16497 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16499 set dummy ${ncn_progname}; ac_word=$2
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16501 $as_echo_n "checking for $ac_word... " >&6; }
16502 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16503 $as_echo_n "(cached) " >&6
16504 else
16505 if test -n "$LD_FOR_TARGET"; then
16506 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16507 else
16508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16509 for as_dir in $PATH
16511 IFS=$as_save_IFS
16512 test -z "$as_dir" && as_dir=.
16513 for ac_exec_ext in '' $ac_executable_extensions; do
16514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16515 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16517 break 2
16519 done
16520 done
16521 IFS=$as_save_IFS
16525 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16526 if test -n "$LD_FOR_TARGET"; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16528 $as_echo "$LD_FOR_TARGET" >&6; }
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16536 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16537 done
16540 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16541 set dummy ld
16542 if test $build = $target ; then
16543 LD_FOR_TARGET="$2"
16544 else
16545 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16547 else
16548 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16551 else
16552 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16558 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16559 if test -n "$with_build_time_tools"; then
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16561 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16562 if test -x $with_build_time_tools/lipo; then
16563 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16564 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16566 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16567 else
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16569 $as_echo "no" >&6; }
16571 elif test $build != $host && test $have_gcc_for_target = yes; then
16572 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16573 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16574 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16577 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16578 # Extract the first word of "lipo", so it can be a program name with args.
16579 set dummy lipo; ac_word=$2
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16581 $as_echo_n "checking for $ac_word... " >&6; }
16582 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16585 case $LIPO_FOR_TARGET in
16586 [\\/]* | ?:[\\/]*)
16587 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16591 for as_dir in $gcc_cv_tool_dirs
16593 IFS=$as_save_IFS
16594 test -z "$as_dir" && as_dir=.
16595 for ac_exec_ext in '' $ac_executable_extensions; do
16596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16597 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16599 break 2
16601 done
16602 done
16603 IFS=$as_save_IFS
16606 esac
16608 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16609 if test -n "$LIPO_FOR_TARGET"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16611 $as_echo "$LIPO_FOR_TARGET" >&6; }
16612 else
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16619 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16622 if test -n "$LIPO_FOR_TARGET"; then
16623 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16624 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16625 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16628 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16629 for ncn_progname in lipo; do
16630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16631 set dummy ${ncn_progname}; ac_word=$2
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16633 $as_echo_n "checking for $ac_word... " >&6; }
16634 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 if test -n "$LIPO_FOR_TARGET"; then
16638 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16639 else
16640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16641 for as_dir in $PATH
16643 IFS=$as_save_IFS
16644 test -z "$as_dir" && as_dir=.
16645 for ac_exec_ext in '' $ac_executable_extensions; do
16646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16647 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16649 break 2
16651 done
16652 done
16653 IFS=$as_save_IFS
16657 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16658 if test -n "$LIPO_FOR_TARGET"; then
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16660 $as_echo "$LIPO_FOR_TARGET" >&6; }
16661 else
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16663 $as_echo "no" >&6; }
16667 done
16670 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16671 for ncn_progname in lipo; do
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16673 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16674 if test -x $with_build_time_tools/${ncn_progname}; then
16675 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16677 $as_echo "yes" >&6; }
16678 break
16679 else
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16681 $as_echo "no" >&6; }
16683 done
16686 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16687 for ncn_progname in lipo; do
16688 if test -n "$ncn_target_tool_prefix"; then
16689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16690 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16692 $as_echo_n "checking for $ac_word... " >&6; }
16693 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16694 $as_echo_n "(cached) " >&6
16695 else
16696 if test -n "$LIPO_FOR_TARGET"; then
16697 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16698 else
16699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16700 for as_dir in $PATH
16702 IFS=$as_save_IFS
16703 test -z "$as_dir" && as_dir=.
16704 for ac_exec_ext in '' $ac_executable_extensions; do
16705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16706 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16708 break 2
16710 done
16711 done
16712 IFS=$as_save_IFS
16716 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16717 if test -n "$LIPO_FOR_TARGET"; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16719 $as_echo "$LIPO_FOR_TARGET" >&6; }
16720 else
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722 $as_echo "no" >&6; }
16727 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16729 set dummy ${ncn_progname}; ac_word=$2
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16731 $as_echo_n "checking for $ac_word... " >&6; }
16732 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 if test -n "$LIPO_FOR_TARGET"; then
16736 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16737 else
16738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16739 for as_dir in $PATH
16741 IFS=$as_save_IFS
16742 test -z "$as_dir" && as_dir=.
16743 for ac_exec_ext in '' $ac_executable_extensions; do
16744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16745 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16747 break 2
16749 done
16750 done
16751 IFS=$as_save_IFS
16755 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16756 if test -n "$LIPO_FOR_TARGET"; then
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16758 $as_echo "$LIPO_FOR_TARGET" >&6; }
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16766 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16767 done
16770 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16771 set dummy lipo
16772 if test $build = $target ; then
16773 LIPO_FOR_TARGET="$2"
16774 else
16775 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16777 else
16778 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16781 else
16782 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16788 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16789 if test -n "$with_build_time_tools"; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16791 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16792 if test -x $with_build_time_tools/nm; then
16793 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16794 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16796 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16797 else
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16799 $as_echo "no" >&6; }
16801 elif test $build != $host && test $have_gcc_for_target = yes; then
16802 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16803 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16804 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16807 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16808 # Extract the first word of "nm", so it can be a program name with args.
16809 set dummy nm; ac_word=$2
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16811 $as_echo_n "checking for $ac_word... " >&6; }
16812 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16813 $as_echo_n "(cached) " >&6
16814 else
16815 case $NM_FOR_TARGET in
16816 [\\/]* | ?:[\\/]*)
16817 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16821 for as_dir in $gcc_cv_tool_dirs
16823 IFS=$as_save_IFS
16824 test -z "$as_dir" && as_dir=.
16825 for ac_exec_ext in '' $ac_executable_extensions; do
16826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16827 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16829 break 2
16831 done
16832 done
16833 IFS=$as_save_IFS
16836 esac
16838 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16839 if test -n "$NM_FOR_TARGET"; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16841 $as_echo "$NM_FOR_TARGET" >&6; }
16842 else
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16849 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16852 if test -n "$NM_FOR_TARGET"; then
16853 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16854 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16855 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16858 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16859 for ncn_progname in nm; do
16860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16861 set dummy ${ncn_progname}; ac_word=$2
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16863 $as_echo_n "checking for $ac_word... " >&6; }
16864 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867 if test -n "$NM_FOR_TARGET"; then
16868 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16869 else
16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16873 IFS=$as_save_IFS
16874 test -z "$as_dir" && as_dir=.
16875 for ac_exec_ext in '' $ac_executable_extensions; do
16876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16877 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16879 break 2
16881 done
16882 done
16883 IFS=$as_save_IFS
16887 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16888 if test -n "$NM_FOR_TARGET"; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16890 $as_echo "$NM_FOR_TARGET" >&6; }
16891 else
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; }
16897 done
16900 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16901 for ncn_progname in nm; do
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16903 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16904 if test -x $with_build_time_tools/${ncn_progname}; then
16905 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16907 $as_echo "yes" >&6; }
16908 break
16909 else
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16911 $as_echo "no" >&6; }
16913 done
16916 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16917 for ncn_progname in nm; do
16918 if test -n "$ncn_target_tool_prefix"; then
16919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16920 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16922 $as_echo_n "checking for $ac_word... " >&6; }
16923 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16924 $as_echo_n "(cached) " >&6
16925 else
16926 if test -n "$NM_FOR_TARGET"; then
16927 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16928 else
16929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930 for as_dir in $PATH
16932 IFS=$as_save_IFS
16933 test -z "$as_dir" && as_dir=.
16934 for ac_exec_ext in '' $ac_executable_extensions; do
16935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16936 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16938 break 2
16940 done
16941 done
16942 IFS=$as_save_IFS
16946 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16947 if test -n "$NM_FOR_TARGET"; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16949 $as_echo "$NM_FOR_TARGET" >&6; }
16950 else
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16952 $as_echo "no" >&6; }
16957 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16959 set dummy ${ncn_progname}; ac_word=$2
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16961 $as_echo_n "checking for $ac_word... " >&6; }
16962 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 if test -n "$NM_FOR_TARGET"; then
16966 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16967 else
16968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16969 for as_dir in $PATH
16971 IFS=$as_save_IFS
16972 test -z "$as_dir" && as_dir=.
16973 for ac_exec_ext in '' $ac_executable_extensions; do
16974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16975 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16977 break 2
16979 done
16980 done
16981 IFS=$as_save_IFS
16985 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16986 if test -n "$NM_FOR_TARGET"; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16988 $as_echo "$NM_FOR_TARGET" >&6; }
16989 else
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16996 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16997 done
17000 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17001 set dummy nm
17002 if test $build = $target ; then
17003 NM_FOR_TARGET="$2"
17004 else
17005 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17007 else
17008 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17011 else
17012 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17018 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17019 if test -n "$with_build_time_tools"; then
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
17021 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
17022 if test -x $with_build_time_tools/objcopy; then
17023 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17024 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17026 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17027 else
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17029 $as_echo "no" >&6; }
17031 elif test $build != $host && test $have_gcc_for_target = yes; then
17032 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17033 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17034 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17037 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17038 # Extract the first word of "objcopy", so it can be a program name with args.
17039 set dummy objcopy; ac_word=$2
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17041 $as_echo_n "checking for $ac_word... " >&6; }
17042 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 case $OBJCOPY_FOR_TARGET in
17046 [\\/]* | ?:[\\/]*)
17047 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17051 for as_dir in $gcc_cv_tool_dirs
17053 IFS=$as_save_IFS
17054 test -z "$as_dir" && as_dir=.
17055 for ac_exec_ext in '' $ac_executable_extensions; do
17056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17057 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17059 break 2
17061 done
17062 done
17063 IFS=$as_save_IFS
17066 esac
17068 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17069 if test -n "$OBJCOPY_FOR_TARGET"; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17071 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17072 else
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074 $as_echo "no" >&6; }
17079 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17082 if test -n "$OBJCOPY_FOR_TARGET"; then
17083 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17084 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17085 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17088 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17089 for ncn_progname in objcopy; do
17090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17091 set dummy ${ncn_progname}; ac_word=$2
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17093 $as_echo_n "checking for $ac_word... " >&6; }
17094 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17095 $as_echo_n "(cached) " >&6
17096 else
17097 if test -n "$OBJCOPY_FOR_TARGET"; then
17098 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17099 else
17100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17101 for as_dir in $PATH
17103 IFS=$as_save_IFS
17104 test -z "$as_dir" && as_dir=.
17105 for ac_exec_ext in '' $ac_executable_extensions; do
17106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17107 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17109 break 2
17111 done
17112 done
17113 IFS=$as_save_IFS
17117 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17118 if test -n "$OBJCOPY_FOR_TARGET"; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17120 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17121 else
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17123 $as_echo "no" >&6; }
17127 done
17130 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17131 for ncn_progname in objcopy; do
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17133 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17134 if test -x $with_build_time_tools/${ncn_progname}; then
17135 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17137 $as_echo "yes" >&6; }
17138 break
17139 else
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17141 $as_echo "no" >&6; }
17143 done
17146 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17147 for ncn_progname in objcopy; do
17148 if test -n "$ncn_target_tool_prefix"; then
17149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17150 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17152 $as_echo_n "checking for $ac_word... " >&6; }
17153 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17154 $as_echo_n "(cached) " >&6
17155 else
17156 if test -n "$OBJCOPY_FOR_TARGET"; then
17157 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17158 else
17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160 for as_dir in $PATH
17162 IFS=$as_save_IFS
17163 test -z "$as_dir" && as_dir=.
17164 for ac_exec_ext in '' $ac_executable_extensions; do
17165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17168 break 2
17170 done
17171 done
17172 IFS=$as_save_IFS
17176 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17177 if test -n "$OBJCOPY_FOR_TARGET"; then
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17179 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17180 else
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17182 $as_echo "no" >&6; }
17187 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17189 set dummy ${ncn_progname}; ac_word=$2
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17191 $as_echo_n "checking for $ac_word... " >&6; }
17192 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17193 $as_echo_n "(cached) " >&6
17194 else
17195 if test -n "$OBJCOPY_FOR_TARGET"; then
17196 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17197 else
17198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17201 IFS=$as_save_IFS
17202 test -z "$as_dir" && as_dir=.
17203 for ac_exec_ext in '' $ac_executable_extensions; do
17204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17205 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17207 break 2
17209 done
17210 done
17211 IFS=$as_save_IFS
17215 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17216 if test -n "$OBJCOPY_FOR_TARGET"; then
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17218 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17219 else
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221 $as_echo "no" >&6; }
17226 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17227 done
17230 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17231 set dummy objcopy
17232 if test $build = $target ; then
17233 OBJCOPY_FOR_TARGET="$2"
17234 else
17235 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17237 else
17238 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17241 else
17242 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17248 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17249 if test -n "$with_build_time_tools"; then
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17251 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17252 if test -x $with_build_time_tools/objdump; then
17253 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17254 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17256 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17257 else
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17261 elif test $build != $host && test $have_gcc_for_target = yes; then
17262 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17263 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17264 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17267 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17268 # Extract the first word of "objdump", so it can be a program name with args.
17269 set dummy objdump; ac_word=$2
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17271 $as_echo_n "checking for $ac_word... " >&6; }
17272 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17273 $as_echo_n "(cached) " >&6
17274 else
17275 case $OBJDUMP_FOR_TARGET in
17276 [\\/]* | ?:[\\/]*)
17277 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17281 for as_dir in $gcc_cv_tool_dirs
17283 IFS=$as_save_IFS
17284 test -z "$as_dir" && as_dir=.
17285 for ac_exec_ext in '' $ac_executable_extensions; do
17286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17287 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17289 break 2
17291 done
17292 done
17293 IFS=$as_save_IFS
17296 esac
17298 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17299 if test -n "$OBJDUMP_FOR_TARGET"; then
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17301 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17302 else
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17309 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17312 if test -n "$OBJDUMP_FOR_TARGET"; then
17313 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17314 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17315 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17318 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17319 for ncn_progname in objdump; do
17320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17321 set dummy ${ncn_progname}; ac_word=$2
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17323 $as_echo_n "checking for $ac_word... " >&6; }
17324 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17325 $as_echo_n "(cached) " >&6
17326 else
17327 if test -n "$OBJDUMP_FOR_TARGET"; then
17328 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17329 else
17330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17331 for as_dir in $PATH
17333 IFS=$as_save_IFS
17334 test -z "$as_dir" && as_dir=.
17335 for ac_exec_ext in '' $ac_executable_extensions; do
17336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17337 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17339 break 2
17341 done
17342 done
17343 IFS=$as_save_IFS
17347 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17348 if test -n "$OBJDUMP_FOR_TARGET"; then
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17350 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17351 else
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17357 done
17360 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17361 for ncn_progname in objdump; do
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17363 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17364 if test -x $with_build_time_tools/${ncn_progname}; then
17365 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17367 $as_echo "yes" >&6; }
17368 break
17369 else
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17371 $as_echo "no" >&6; }
17373 done
17376 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17377 for ncn_progname in objdump; do
17378 if test -n "$ncn_target_tool_prefix"; then
17379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17382 $as_echo_n "checking for $ac_word... " >&6; }
17383 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17384 $as_echo_n "(cached) " >&6
17385 else
17386 if test -n "$OBJDUMP_FOR_TARGET"; then
17387 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17388 else
17389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17390 for as_dir in $PATH
17392 IFS=$as_save_IFS
17393 test -z "$as_dir" && as_dir=.
17394 for ac_exec_ext in '' $ac_executable_extensions; do
17395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17396 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17398 break 2
17400 done
17401 done
17402 IFS=$as_save_IFS
17406 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17407 if test -n "$OBJDUMP_FOR_TARGET"; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17409 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17410 else
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412 $as_echo "no" >&6; }
17417 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17419 set dummy ${ncn_progname}; ac_word=$2
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17421 $as_echo_n "checking for $ac_word... " >&6; }
17422 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17423 $as_echo_n "(cached) " >&6
17424 else
17425 if test -n "$OBJDUMP_FOR_TARGET"; then
17426 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17427 else
17428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17429 for as_dir in $PATH
17431 IFS=$as_save_IFS
17432 test -z "$as_dir" && as_dir=.
17433 for ac_exec_ext in '' $ac_executable_extensions; do
17434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17435 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17437 break 2
17439 done
17440 done
17441 IFS=$as_save_IFS
17445 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17446 if test -n "$OBJDUMP_FOR_TARGET"; then
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17448 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17449 else
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17451 $as_echo "no" >&6; }
17456 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17457 done
17460 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17461 set dummy objdump
17462 if test $build = $target ; then
17463 OBJDUMP_FOR_TARGET="$2"
17464 else
17465 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17467 else
17468 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17471 else
17472 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17478 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17479 if test -n "$with_build_time_tools"; then
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17481 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17482 if test -x $with_build_time_tools/otool; then
17483 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17484 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17486 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17487 else
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17489 $as_echo "no" >&6; }
17491 elif test $build != $host && test $have_gcc_for_target = yes; then
17492 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17493 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17494 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17497 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17498 # Extract the first word of "otool", so it can be a program name with args.
17499 set dummy otool; ac_word=$2
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17501 $as_echo_n "checking for $ac_word... " >&6; }
17502 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17503 $as_echo_n "(cached) " >&6
17504 else
17505 case $OTOOL_FOR_TARGET in
17506 [\\/]* | ?:[\\/]*)
17507 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $gcc_cv_tool_dirs
17513 IFS=$as_save_IFS
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17519 break 2
17521 done
17522 done
17523 IFS=$as_save_IFS
17526 esac
17528 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17529 if test -n "$OTOOL_FOR_TARGET"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17531 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17532 else
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534 $as_echo "no" >&6; }
17539 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17542 if test -n "$OTOOL_FOR_TARGET"; then
17543 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17544 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17545 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17548 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17549 for ncn_progname in otool; do
17550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17551 set dummy ${ncn_progname}; ac_word=$2
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17553 $as_echo_n "checking for $ac_word... " >&6; }
17554 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17555 $as_echo_n "(cached) " >&6
17556 else
17557 if test -n "$OTOOL_FOR_TARGET"; then
17558 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17559 else
17560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17561 for as_dir in $PATH
17563 IFS=$as_save_IFS
17564 test -z "$as_dir" && as_dir=.
17565 for ac_exec_ext in '' $ac_executable_extensions; do
17566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17567 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17569 break 2
17571 done
17572 done
17573 IFS=$as_save_IFS
17577 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17578 if test -n "$OTOOL_FOR_TARGET"; then
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17580 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17581 else
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17583 $as_echo "no" >&6; }
17587 done
17590 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17591 for ncn_progname in otool; do
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17593 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17594 if test -x $with_build_time_tools/${ncn_progname}; then
17595 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17597 $as_echo "yes" >&6; }
17598 break
17599 else
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17603 done
17606 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17607 for ncn_progname in otool; do
17608 if test -n "$ncn_target_tool_prefix"; then
17609 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17610 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17612 $as_echo_n "checking for $ac_word... " >&6; }
17613 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17614 $as_echo_n "(cached) " >&6
17615 else
17616 if test -n "$OTOOL_FOR_TARGET"; then
17617 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17618 else
17619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17620 for as_dir in $PATH
17622 IFS=$as_save_IFS
17623 test -z "$as_dir" && as_dir=.
17624 for ac_exec_ext in '' $ac_executable_extensions; do
17625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17626 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17628 break 2
17630 done
17631 done
17632 IFS=$as_save_IFS
17636 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17637 if test -n "$OTOOL_FOR_TARGET"; then
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17639 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17640 else
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17642 $as_echo "no" >&6; }
17647 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17649 set dummy ${ncn_progname}; ac_word=$2
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17651 $as_echo_n "checking for $ac_word... " >&6; }
17652 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17653 $as_echo_n "(cached) " >&6
17654 else
17655 if test -n "$OTOOL_FOR_TARGET"; then
17656 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17657 else
17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659 for as_dir in $PATH
17661 IFS=$as_save_IFS
17662 test -z "$as_dir" && as_dir=.
17663 for ac_exec_ext in '' $ac_executable_extensions; do
17664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17665 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17667 break 2
17669 done
17670 done
17671 IFS=$as_save_IFS
17675 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17676 if test -n "$OTOOL_FOR_TARGET"; then
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17678 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17679 else
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17686 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17687 done
17690 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17691 set dummy otool
17692 if test $build = $target ; then
17693 OTOOL_FOR_TARGET="$2"
17694 else
17695 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17697 else
17698 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17701 else
17702 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17708 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17709 if test -n "$with_build_time_tools"; then
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17711 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17712 if test -x $with_build_time_tools/ranlib; then
17713 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17714 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17716 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17717 else
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17719 $as_echo "no" >&6; }
17721 elif test $build != $host && test $have_gcc_for_target = yes; then
17722 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17723 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17724 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17727 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17728 # Extract the first word of "ranlib", so it can be a program name with args.
17729 set dummy ranlib; ac_word=$2
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17731 $as_echo_n "checking for $ac_word... " >&6; }
17732 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17733 $as_echo_n "(cached) " >&6
17734 else
17735 case $RANLIB_FOR_TARGET in
17736 [\\/]* | ?:[\\/]*)
17737 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17741 for as_dir in $gcc_cv_tool_dirs
17743 IFS=$as_save_IFS
17744 test -z "$as_dir" && as_dir=.
17745 for ac_exec_ext in '' $ac_executable_extensions; do
17746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17747 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17749 break 2
17751 done
17752 done
17753 IFS=$as_save_IFS
17756 esac
17758 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17759 if test -n "$RANLIB_FOR_TARGET"; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17761 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17762 else
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17764 $as_echo "no" >&6; }
17769 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17772 if test -n "$RANLIB_FOR_TARGET"; then
17773 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17774 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17775 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17778 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17779 for ncn_progname in ranlib; do
17780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17781 set dummy ${ncn_progname}; ac_word=$2
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17783 $as_echo_n "checking for $ac_word... " >&6; }
17784 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17785 $as_echo_n "(cached) " >&6
17786 else
17787 if test -n "$RANLIB_FOR_TARGET"; then
17788 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17789 else
17790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17791 for as_dir in $PATH
17793 IFS=$as_save_IFS
17794 test -z "$as_dir" && as_dir=.
17795 for ac_exec_ext in '' $ac_executable_extensions; do
17796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17797 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17799 break 2
17801 done
17802 done
17803 IFS=$as_save_IFS
17807 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17808 if test -n "$RANLIB_FOR_TARGET"; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17810 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17811 else
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17813 $as_echo "no" >&6; }
17817 done
17820 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17821 for ncn_progname in ranlib; do
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17823 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17824 if test -x $with_build_time_tools/${ncn_progname}; then
17825 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17827 $as_echo "yes" >&6; }
17828 break
17829 else
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17831 $as_echo "no" >&6; }
17833 done
17836 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17837 for ncn_progname in ranlib; do
17838 if test -n "$ncn_target_tool_prefix"; then
17839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17842 $as_echo_n "checking for $ac_word... " >&6; }
17843 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17844 $as_echo_n "(cached) " >&6
17845 else
17846 if test -n "$RANLIB_FOR_TARGET"; then
17847 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17848 else
17849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17850 for as_dir in $PATH
17852 IFS=$as_save_IFS
17853 test -z "$as_dir" && as_dir=.
17854 for ac_exec_ext in '' $ac_executable_extensions; do
17855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17856 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17858 break 2
17860 done
17861 done
17862 IFS=$as_save_IFS
17866 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17867 if test -n "$RANLIB_FOR_TARGET"; then
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17869 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17870 else
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17877 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17879 set dummy ${ncn_progname}; ac_word=$2
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17881 $as_echo_n "checking for $ac_word... " >&6; }
17882 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17883 $as_echo_n "(cached) " >&6
17884 else
17885 if test -n "$RANLIB_FOR_TARGET"; then
17886 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17887 else
17888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17889 for as_dir in $PATH
17891 IFS=$as_save_IFS
17892 test -z "$as_dir" && as_dir=.
17893 for ac_exec_ext in '' $ac_executable_extensions; do
17894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17895 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17897 break 2
17899 done
17900 done
17901 IFS=$as_save_IFS
17905 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17906 if test -n "$RANLIB_FOR_TARGET"; then
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17908 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17909 else
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17911 $as_echo "no" >&6; }
17916 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17917 done
17920 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17921 set dummy ranlib
17922 if test $build = $target ; then
17923 RANLIB_FOR_TARGET="$2"
17924 else
17925 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17927 else
17928 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17931 else
17932 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17938 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17939 if test -n "$with_build_time_tools"; then
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
17941 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
17942 if test -x $with_build_time_tools/readelf; then
17943 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17944 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
17946 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17947 else
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17949 $as_echo "no" >&6; }
17951 elif test $build != $host && test $have_gcc_for_target = yes; then
17952 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17953 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17954 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17957 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17958 # Extract the first word of "readelf", so it can be a program name with args.
17959 set dummy readelf; ac_word=$2
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17961 $as_echo_n "checking for $ac_word... " >&6; }
17962 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17963 $as_echo_n "(cached) " >&6
17964 else
17965 case $READELF_FOR_TARGET in
17966 [\\/]* | ?:[\\/]*)
17967 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17971 for as_dir in $gcc_cv_tool_dirs
17973 IFS=$as_save_IFS
17974 test -z "$as_dir" && as_dir=.
17975 for ac_exec_ext in '' $ac_executable_extensions; do
17976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17977 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17979 break 2
17981 done
17982 done
17983 IFS=$as_save_IFS
17986 esac
17988 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17989 if test -n "$READELF_FOR_TARGET"; then
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17991 $as_echo "$READELF_FOR_TARGET" >&6; }
17992 else
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17994 $as_echo "no" >&6; }
17999 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18002 if test -n "$READELF_FOR_TARGET"; then
18003 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18004 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18005 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18008 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18009 for ncn_progname in readelf; do
18010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18011 set dummy ${ncn_progname}; ac_word=$2
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18013 $as_echo_n "checking for $ac_word... " >&6; }
18014 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18015 $as_echo_n "(cached) " >&6
18016 else
18017 if test -n "$READELF_FOR_TARGET"; then
18018 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18019 else
18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18021 for as_dir in $PATH
18023 IFS=$as_save_IFS
18024 test -z "$as_dir" && as_dir=.
18025 for ac_exec_ext in '' $ac_executable_extensions; do
18026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18027 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18029 break 2
18031 done
18032 done
18033 IFS=$as_save_IFS
18037 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18038 if test -n "$READELF_FOR_TARGET"; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18040 $as_echo "$READELF_FOR_TARGET" >&6; }
18041 else
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043 $as_echo "no" >&6; }
18047 done
18050 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18051 for ncn_progname in readelf; do
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18053 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18054 if test -x $with_build_time_tools/${ncn_progname}; then
18055 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18057 $as_echo "yes" >&6; }
18058 break
18059 else
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18061 $as_echo "no" >&6; }
18063 done
18066 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18067 for ncn_progname in readelf; do
18068 if test -n "$ncn_target_tool_prefix"; then
18069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18070 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18072 $as_echo_n "checking for $ac_word... " >&6; }
18073 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18074 $as_echo_n "(cached) " >&6
18075 else
18076 if test -n "$READELF_FOR_TARGET"; then
18077 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18078 else
18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH
18082 IFS=$as_save_IFS
18083 test -z "$as_dir" && as_dir=.
18084 for ac_exec_ext in '' $ac_executable_extensions; do
18085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18086 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18088 break 2
18090 done
18091 done
18092 IFS=$as_save_IFS
18096 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18097 if test -n "$READELF_FOR_TARGET"; then
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18099 $as_echo "$READELF_FOR_TARGET" >&6; }
18100 else
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18102 $as_echo "no" >&6; }
18107 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18109 set dummy ${ncn_progname}; ac_word=$2
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18111 $as_echo_n "checking for $ac_word... " >&6; }
18112 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18113 $as_echo_n "(cached) " >&6
18114 else
18115 if test -n "$READELF_FOR_TARGET"; then
18116 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18117 else
18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18121 IFS=$as_save_IFS
18122 test -z "$as_dir" && as_dir=.
18123 for ac_exec_ext in '' $ac_executable_extensions; do
18124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18127 break 2
18129 done
18130 done
18131 IFS=$as_save_IFS
18135 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18136 if test -n "$READELF_FOR_TARGET"; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18138 $as_echo "$READELF_FOR_TARGET" >&6; }
18139 else
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18141 $as_echo "no" >&6; }
18146 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18147 done
18150 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18151 set dummy readelf
18152 if test $build = $target ; then
18153 READELF_FOR_TARGET="$2"
18154 else
18155 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18157 else
18158 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18161 else
18162 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18168 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18169 if test -n "$with_build_time_tools"; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18171 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18172 if test -x $with_build_time_tools/strip; then
18173 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18174 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18176 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18177 else
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18179 $as_echo "no" >&6; }
18181 elif test $build != $host && test $have_gcc_for_target = yes; then
18182 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18183 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18184 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18187 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18188 # Extract the first word of "strip", so it can be a program name with args.
18189 set dummy strip; ac_word=$2
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18191 $as_echo_n "checking for $ac_word... " >&6; }
18192 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18193 $as_echo_n "(cached) " >&6
18194 else
18195 case $STRIP_FOR_TARGET in
18196 [\\/]* | ?:[\\/]*)
18197 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18201 for as_dir in $gcc_cv_tool_dirs
18203 IFS=$as_save_IFS
18204 test -z "$as_dir" && as_dir=.
18205 for ac_exec_ext in '' $ac_executable_extensions; do
18206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18207 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18209 break 2
18211 done
18212 done
18213 IFS=$as_save_IFS
18216 esac
18218 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18219 if test -n "$STRIP_FOR_TARGET"; then
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18221 $as_echo "$STRIP_FOR_TARGET" >&6; }
18222 else
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224 $as_echo "no" >&6; }
18229 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18232 if test -n "$STRIP_FOR_TARGET"; then
18233 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18234 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18235 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18238 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18239 for ncn_progname in strip; do
18240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18241 set dummy ${ncn_progname}; ac_word=$2
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18243 $as_echo_n "checking for $ac_word... " >&6; }
18244 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 if test -n "$STRIP_FOR_TARGET"; then
18248 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18249 else
18250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18251 for as_dir in $PATH
18253 IFS=$as_save_IFS
18254 test -z "$as_dir" && as_dir=.
18255 for ac_exec_ext in '' $ac_executable_extensions; do
18256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18257 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18259 break 2
18261 done
18262 done
18263 IFS=$as_save_IFS
18267 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18268 if test -n "$STRIP_FOR_TARGET"; then
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18270 $as_echo "$STRIP_FOR_TARGET" >&6; }
18271 else
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18273 $as_echo "no" >&6; }
18277 done
18280 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18281 for ncn_progname in strip; do
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18283 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18284 if test -x $with_build_time_tools/${ncn_progname}; then
18285 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18287 $as_echo "yes" >&6; }
18288 break
18289 else
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 $as_echo "no" >&6; }
18293 done
18296 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18297 for ncn_progname in strip; do
18298 if test -n "$ncn_target_tool_prefix"; then
18299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18302 $as_echo_n "checking for $ac_word... " >&6; }
18303 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18304 $as_echo_n "(cached) " >&6
18305 else
18306 if test -n "$STRIP_FOR_TARGET"; then
18307 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18308 else
18309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18310 for as_dir in $PATH
18312 IFS=$as_save_IFS
18313 test -z "$as_dir" && as_dir=.
18314 for ac_exec_ext in '' $ac_executable_extensions; do
18315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18316 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18318 break 2
18320 done
18321 done
18322 IFS=$as_save_IFS
18326 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18327 if test -n "$STRIP_FOR_TARGET"; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18329 $as_echo "$STRIP_FOR_TARGET" >&6; }
18330 else
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18337 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18339 set dummy ${ncn_progname}; ac_word=$2
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18341 $as_echo_n "checking for $ac_word... " >&6; }
18342 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18343 $as_echo_n "(cached) " >&6
18344 else
18345 if test -n "$STRIP_FOR_TARGET"; then
18346 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18347 else
18348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18349 for as_dir in $PATH
18351 IFS=$as_save_IFS
18352 test -z "$as_dir" && as_dir=.
18353 for ac_exec_ext in '' $ac_executable_extensions; do
18354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18355 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18357 break 2
18359 done
18360 done
18361 IFS=$as_save_IFS
18365 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18366 if test -n "$STRIP_FOR_TARGET"; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18368 $as_echo "$STRIP_FOR_TARGET" >&6; }
18369 else
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18371 $as_echo "no" >&6; }
18376 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18377 done
18380 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18381 set dummy strip
18382 if test $build = $target ; then
18383 STRIP_FOR_TARGET="$2"
18384 else
18385 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18387 else
18388 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18391 else
18392 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18398 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18399 if test -n "$with_build_time_tools"; then
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18401 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18402 if test -x $with_build_time_tools/windres; then
18403 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18404 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18406 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18407 else
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18409 $as_echo "no" >&6; }
18411 elif test $build != $host && test $have_gcc_for_target = yes; then
18412 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18413 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18414 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18417 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18418 # Extract the first word of "windres", so it can be a program name with args.
18419 set dummy windres; ac_word=$2
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18421 $as_echo_n "checking for $ac_word... " >&6; }
18422 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18423 $as_echo_n "(cached) " >&6
18424 else
18425 case $WINDRES_FOR_TARGET in
18426 [\\/]* | ?:[\\/]*)
18427 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18431 for as_dir in $gcc_cv_tool_dirs
18433 IFS=$as_save_IFS
18434 test -z "$as_dir" && as_dir=.
18435 for ac_exec_ext in '' $ac_executable_extensions; do
18436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18437 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18439 break 2
18441 done
18442 done
18443 IFS=$as_save_IFS
18446 esac
18448 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18449 if test -n "$WINDRES_FOR_TARGET"; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18451 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18452 else
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18454 $as_echo "no" >&6; }
18459 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18462 if test -n "$WINDRES_FOR_TARGET"; then
18463 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18464 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18465 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18468 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18469 for ncn_progname in windres; do
18470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18471 set dummy ${ncn_progname}; ac_word=$2
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18473 $as_echo_n "checking for $ac_word... " >&6; }
18474 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18475 $as_echo_n "(cached) " >&6
18476 else
18477 if test -n "$WINDRES_FOR_TARGET"; then
18478 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18479 else
18480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 for as_dir in $PATH
18483 IFS=$as_save_IFS
18484 test -z "$as_dir" && as_dir=.
18485 for ac_exec_ext in '' $ac_executable_extensions; do
18486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18487 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18489 break 2
18491 done
18492 done
18493 IFS=$as_save_IFS
18497 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18498 if test -n "$WINDRES_FOR_TARGET"; then
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18500 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18501 else
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18503 $as_echo "no" >&6; }
18507 done
18510 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18511 for ncn_progname in windres; do
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18513 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18514 if test -x $with_build_time_tools/${ncn_progname}; then
18515 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18517 $as_echo "yes" >&6; }
18518 break
18519 else
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18521 $as_echo "no" >&6; }
18523 done
18526 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18527 for ncn_progname in windres; do
18528 if test -n "$ncn_target_tool_prefix"; then
18529 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18530 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18532 $as_echo_n "checking for $ac_word... " >&6; }
18533 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18536 if test -n "$WINDRES_FOR_TARGET"; then
18537 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18538 else
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18542 IFS=$as_save_IFS
18543 test -z "$as_dir" && as_dir=.
18544 for ac_exec_ext in '' $ac_executable_extensions; do
18545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18546 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18548 break 2
18550 done
18551 done
18552 IFS=$as_save_IFS
18556 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18557 if test -n "$WINDRES_FOR_TARGET"; then
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18559 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18560 else
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18562 $as_echo "no" >&6; }
18567 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18569 set dummy ${ncn_progname}; ac_word=$2
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18571 $as_echo_n "checking for $ac_word... " >&6; }
18572 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18573 $as_echo_n "(cached) " >&6
18574 else
18575 if test -n "$WINDRES_FOR_TARGET"; then
18576 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18577 else
18578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18579 for as_dir in $PATH
18581 IFS=$as_save_IFS
18582 test -z "$as_dir" && as_dir=.
18583 for ac_exec_ext in '' $ac_executable_extensions; do
18584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18585 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18587 break 2
18589 done
18590 done
18591 IFS=$as_save_IFS
18595 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18596 if test -n "$WINDRES_FOR_TARGET"; then
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18598 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18599 else
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18601 $as_echo "no" >&6; }
18606 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18607 done
18610 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18611 set dummy windres
18612 if test $build = $target ; then
18613 WINDRES_FOR_TARGET="$2"
18614 else
18615 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18617 else
18618 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18621 else
18622 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18628 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18629 if test -n "$with_build_time_tools"; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18631 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18632 if test -x $with_build_time_tools/windmc; then
18633 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18634 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18636 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18637 else
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18639 $as_echo "no" >&6; }
18641 elif test $build != $host && test $have_gcc_for_target = yes; then
18642 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18643 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18644 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18647 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18648 # Extract the first word of "windmc", so it can be a program name with args.
18649 set dummy windmc; ac_word=$2
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18651 $as_echo_n "checking for $ac_word... " >&6; }
18652 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18653 $as_echo_n "(cached) " >&6
18654 else
18655 case $WINDMC_FOR_TARGET in
18656 [\\/]* | ?:[\\/]*)
18657 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661 for as_dir in $gcc_cv_tool_dirs
18663 IFS=$as_save_IFS
18664 test -z "$as_dir" && as_dir=.
18665 for ac_exec_ext in '' $ac_executable_extensions; do
18666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18667 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18669 break 2
18671 done
18672 done
18673 IFS=$as_save_IFS
18676 esac
18678 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18679 if test -n "$WINDMC_FOR_TARGET"; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18681 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18682 else
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18684 $as_echo "no" >&6; }
18689 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18692 if test -n "$WINDMC_FOR_TARGET"; then
18693 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18694 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18695 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18698 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18699 for ncn_progname in windmc; do
18700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18701 set dummy ${ncn_progname}; ac_word=$2
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18703 $as_echo_n "checking for $ac_word... " >&6; }
18704 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18705 $as_echo_n "(cached) " >&6
18706 else
18707 if test -n "$WINDMC_FOR_TARGET"; then
18708 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18709 else
18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711 for as_dir in $PATH
18713 IFS=$as_save_IFS
18714 test -z "$as_dir" && as_dir=.
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18719 break 2
18721 done
18722 done
18723 IFS=$as_save_IFS
18727 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18728 if test -n "$WINDMC_FOR_TARGET"; then
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18730 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18731 else
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18733 $as_echo "no" >&6; }
18737 done
18740 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18741 for ncn_progname in windmc; do
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18743 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18744 if test -x $with_build_time_tools/${ncn_progname}; then
18745 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747 $as_echo "yes" >&6; }
18748 break
18749 else
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18751 $as_echo "no" >&6; }
18753 done
18756 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18757 for ncn_progname in windmc; do
18758 if test -n "$ncn_target_tool_prefix"; then
18759 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18760 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18762 $as_echo_n "checking for $ac_word... " >&6; }
18763 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18764 $as_echo_n "(cached) " >&6
18765 else
18766 if test -n "$WINDMC_FOR_TARGET"; then
18767 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18768 else
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18772 IFS=$as_save_IFS
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18778 break 2
18780 done
18781 done
18782 IFS=$as_save_IFS
18786 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18787 if test -n "$WINDMC_FOR_TARGET"; then
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18789 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18790 else
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792 $as_echo "no" >&6; }
18797 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18799 set dummy ${ncn_progname}; ac_word=$2
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18801 $as_echo_n "checking for $ac_word... " >&6; }
18802 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18803 $as_echo_n "(cached) " >&6
18804 else
18805 if test -n "$WINDMC_FOR_TARGET"; then
18806 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18807 else
18808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18809 for as_dir in $PATH
18811 IFS=$as_save_IFS
18812 test -z "$as_dir" && as_dir=.
18813 for ac_exec_ext in '' $ac_executable_extensions; do
18814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18815 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18817 break 2
18819 done
18820 done
18821 IFS=$as_save_IFS
18825 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18826 if test -n "$WINDMC_FOR_TARGET"; then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18828 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18829 else
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18836 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18837 done
18840 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18841 set dummy windmc
18842 if test $build = $target ; then
18843 WINDMC_FOR_TARGET="$2"
18844 else
18845 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18847 else
18848 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18851 else
18852 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18856 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18859 $as_echo_n "checking where to find the target ar... " >&6; }
18860 if test "x${build}" != "x${host}" ; then
18861 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18862 # We already found the complete path
18863 ac_dir=`dirname $AR_FOR_TARGET`
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18865 $as_echo "pre-installed in $ac_dir" >&6; }
18866 else
18867 # Canadian cross, just use what we found
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18869 $as_echo "pre-installed" >&6; }
18871 else
18872 ok=yes
18873 case " ${configdirs} " in
18874 *" binutils "*) ;;
18875 *) ok=no ;;
18876 esac
18878 if test $ok = yes; then
18879 # An in-tree tool is available and we can use it
18880 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18882 $as_echo "just compiled" >&6; }
18883 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18884 # We already found the complete path
18885 ac_dir=`dirname $AR_FOR_TARGET`
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18887 $as_echo "pre-installed in $ac_dir" >&6; }
18888 elif test "x$target" = "x$host"; then
18889 # We can use an host tool
18890 AR_FOR_TARGET='$(AR)'
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18892 $as_echo "host tool" >&6; }
18893 else
18894 # We need a cross tool
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18896 $as_echo "pre-installed" >&6; }
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
18901 $as_echo_n "checking where to find the target as... " >&6; }
18902 if test "x${build}" != "x${host}" ; then
18903 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18904 # We already found the complete path
18905 ac_dir=`dirname $AS_FOR_TARGET`
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18907 $as_echo "pre-installed in $ac_dir" >&6; }
18908 else
18909 # Canadian cross, just use what we found
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18911 $as_echo "pre-installed" >&6; }
18913 else
18914 ok=yes
18915 case " ${configdirs} " in
18916 *" gas "*) ;;
18917 *) ok=no ;;
18918 esac
18920 if test $ok = yes; then
18921 # An in-tree tool is available and we can use it
18922 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18924 $as_echo "just compiled" >&6; }
18925 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18926 # We already found the complete path
18927 ac_dir=`dirname $AS_FOR_TARGET`
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18929 $as_echo "pre-installed in $ac_dir" >&6; }
18930 elif test "x$target" = "x$host"; then
18931 # We can use an host tool
18932 AS_FOR_TARGET='$(AS)'
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18934 $as_echo "host tool" >&6; }
18935 else
18936 # We need a cross tool
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18938 $as_echo "pre-installed" >&6; }
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
18943 $as_echo_n "checking where to find the target cc... " >&6; }
18944 if test "x${build}" != "x${host}" ; then
18945 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18946 # We already found the complete path
18947 ac_dir=`dirname $CC_FOR_TARGET`
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18949 $as_echo "pre-installed in $ac_dir" >&6; }
18950 else
18951 # Canadian cross, just use what we found
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18953 $as_echo "pre-installed" >&6; }
18955 else
18956 ok=yes
18957 case " ${configdirs} " in
18958 *" gcc "*) ;;
18959 *) ok=no ;;
18960 esac
18962 if test $ok = yes; then
18963 # An in-tree tool is available and we can use it
18964 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18966 $as_echo "just compiled" >&6; }
18967 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18968 # We already found the complete path
18969 ac_dir=`dirname $CC_FOR_TARGET`
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18971 $as_echo "pre-installed in $ac_dir" >&6; }
18972 elif test "x$target" = "x$host"; then
18973 # We can use an host tool
18974 CC_FOR_TARGET='$(CC)'
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18976 $as_echo "host tool" >&6; }
18977 else
18978 # We need a cross tool
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18980 $as_echo "pre-installed" >&6; }
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
18985 $as_echo_n "checking where to find the target c++... " >&6; }
18986 if test "x${build}" != "x${host}" ; then
18987 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18988 # We already found the complete path
18989 ac_dir=`dirname $CXX_FOR_TARGET`
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18991 $as_echo "pre-installed in $ac_dir" >&6; }
18992 else
18993 # Canadian cross, just use what we found
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18995 $as_echo "pre-installed" >&6; }
18997 else
18998 ok=yes
18999 case " ${configdirs} " in
19000 *" gcc "*) ;;
19001 *) ok=no ;;
19002 esac
19003 case ,${enable_languages}, in
19004 *,c++,*) ;;
19005 *) ok=no ;;
19006 esac
19007 if test $ok = yes; then
19008 # An in-tree tool is available and we can use it
19009 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'
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19011 $as_echo "just compiled" >&6; }
19012 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19013 # We already found the complete path
19014 ac_dir=`dirname $CXX_FOR_TARGET`
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19016 $as_echo "pre-installed in $ac_dir" >&6; }
19017 elif test "x$target" = "x$host"; then
19018 # We can use an host tool
19019 CXX_FOR_TARGET='$(CXX)'
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19021 $as_echo "host tool" >&6; }
19022 else
19023 # We need a cross tool
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19025 $as_echo "pre-installed" >&6; }
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19030 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19031 if test "x${build}" != "x${host}" ; then
19032 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19033 # We already found the complete path
19034 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19036 $as_echo "pre-installed in $ac_dir" >&6; }
19037 else
19038 # Canadian cross, just use what we found
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19040 $as_echo "pre-installed" >&6; }
19042 else
19043 ok=yes
19044 case " ${configdirs} " in
19045 *" gcc "*) ;;
19046 *) ok=no ;;
19047 esac
19048 case ,${enable_languages}, in
19049 *,c++,*) ;;
19050 *) ok=no ;;
19051 esac
19052 if test $ok = yes; then
19053 # An in-tree tool is available and we can use it
19054 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'
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19056 $as_echo "just compiled" >&6; }
19057 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19058 # We already found the complete path
19059 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19061 $as_echo "pre-installed in $ac_dir" >&6; }
19062 elif test "x$target" = "x$host"; then
19063 # We can use an host tool
19064 RAW_CXX_FOR_TARGET='$(CXX)'
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19066 $as_echo "host tool" >&6; }
19067 else
19068 # We need a cross tool
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19070 $as_echo "pre-installed" >&6; }
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19075 $as_echo_n "checking where to find the target dlltool... " >&6; }
19076 if test "x${build}" != "x${host}" ; then
19077 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19078 # We already found the complete path
19079 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19081 $as_echo "pre-installed in $ac_dir" >&6; }
19082 else
19083 # Canadian cross, just use what we found
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19085 $as_echo "pre-installed" >&6; }
19087 else
19088 ok=yes
19089 case " ${configdirs} " in
19090 *" binutils "*) ;;
19091 *) ok=no ;;
19092 esac
19094 if test $ok = yes; then
19095 # An in-tree tool is available and we can use it
19096 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19098 $as_echo "just compiled" >&6; }
19099 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19100 # We already found the complete path
19101 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19103 $as_echo "pre-installed in $ac_dir" >&6; }
19104 elif test "x$target" = "x$host"; then
19105 # We can use an host tool
19106 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19108 $as_echo "host tool" >&6; }
19109 else
19110 # We need a cross tool
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19112 $as_echo "pre-installed" >&6; }
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19117 $as_echo_n "checking where to find the target dsymutil... " >&6; }
19118 if test "x${build}" != "x${host}" ; then
19119 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19120 # We already found the complete path
19121 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19123 $as_echo "pre-installed in $ac_dir" >&6; }
19124 else
19125 # Canadian cross, just use what we found
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19127 $as_echo "pre-installed" >&6; }
19129 else
19130 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19131 # We already found the complete path
19132 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19134 $as_echo "pre-installed in $ac_dir" >&6; }
19135 elif test "x$target" = "x$host"; then
19136 # We can use an host tool
19137 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19139 $as_echo "host tool" >&6; }
19140 else
19141 # We need a cross tool
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19143 $as_echo "pre-installed" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19148 $as_echo_n "checking where to find the target gcc... " >&6; }
19149 if test "x${build}" != "x${host}" ; then
19150 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19151 # We already found the complete path
19152 ac_dir=`dirname $GCC_FOR_TARGET`
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19154 $as_echo "pre-installed in $ac_dir" >&6; }
19155 else
19156 # Canadian cross, just use what we found
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19158 $as_echo "pre-installed" >&6; }
19160 else
19161 ok=yes
19162 case " ${configdirs} " in
19163 *" gcc "*) ;;
19164 *) ok=no ;;
19165 esac
19167 if test $ok = yes; then
19168 # An in-tree tool is available and we can use it
19169 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19171 $as_echo "just compiled" >&6; }
19172 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19173 # We already found the complete path
19174 ac_dir=`dirname $GCC_FOR_TARGET`
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19176 $as_echo "pre-installed in $ac_dir" >&6; }
19177 elif test "x$target" = "x$host"; then
19178 # We can use an host tool
19179 GCC_FOR_TARGET='$()'
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19181 $as_echo "host tool" >&6; }
19182 else
19183 # We need a cross tool
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19185 $as_echo "pre-installed" >&6; }
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19190 $as_echo_n "checking where to find the target gfortran... " >&6; }
19191 if test "x${build}" != "x${host}" ; then
19192 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19193 # We already found the complete path
19194 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19196 $as_echo "pre-installed in $ac_dir" >&6; }
19197 else
19198 # Canadian cross, just use what we found
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19200 $as_echo "pre-installed" >&6; }
19202 else
19203 ok=yes
19204 case " ${configdirs} " in
19205 *" gcc "*) ;;
19206 *) ok=no ;;
19207 esac
19208 case ,${enable_languages}, in
19209 *,fortran,*) ;;
19210 *) ok=no ;;
19211 esac
19212 if test $ok = yes; then
19213 # An in-tree tool is available and we can use it
19214 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19216 $as_echo "just compiled" >&6; }
19217 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19218 # We already found the complete path
19219 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19221 $as_echo "pre-installed in $ac_dir" >&6; }
19222 elif test "x$target" = "x$host"; then
19223 # We can use an host tool
19224 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19226 $as_echo "host tool" >&6; }
19227 else
19228 # We need a cross tool
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19230 $as_echo "pre-installed" >&6; }
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19235 $as_echo_n "checking where to find the target gccgo... " >&6; }
19236 if test "x${build}" != "x${host}" ; then
19237 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19238 # We already found the complete path
19239 ac_dir=`dirname $GOC_FOR_TARGET`
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19241 $as_echo "pre-installed in $ac_dir" >&6; }
19242 else
19243 # Canadian cross, just use what we found
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19245 $as_echo "pre-installed" >&6; }
19247 else
19248 ok=yes
19249 case " ${configdirs} " in
19250 *" gcc "*) ;;
19251 *) ok=no ;;
19252 esac
19253 case ,${enable_languages}, in
19254 *,go,*) ;;
19255 *) ok=no ;;
19256 esac
19257 if test $ok = yes; then
19258 # An in-tree tool is available and we can use it
19259 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19261 $as_echo "just compiled" >&6; }
19262 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19263 # We already found the complete path
19264 ac_dir=`dirname $GOC_FOR_TARGET`
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19266 $as_echo "pre-installed in $ac_dir" >&6; }
19267 elif test "x$target" = "x$host"; then
19268 # We can use an host tool
19269 GOC_FOR_TARGET='$(GOC)'
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19271 $as_echo "host tool" >&6; }
19272 else
19273 # We need a cross tool
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19275 $as_echo "pre-installed" >&6; }
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19280 $as_echo_n "checking where to find the target gdc... " >&6; }
19281 if test "x${build}" != "x${host}" ; then
19282 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19283 # We already found the complete path
19284 ac_dir=`dirname $GDC_FOR_TARGET`
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19286 $as_echo "pre-installed in $ac_dir" >&6; }
19287 else
19288 # Canadian cross, just use what we found
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19290 $as_echo "pre-installed" >&6; }
19292 else
19293 ok=yes
19294 case " ${configdirs} " in
19295 *" gcc "*) ;;
19296 *) ok=no ;;
19297 esac
19298 case ,${enable_languages}, in
19299 *,d,*) ;;
19300 *) ok=no ;;
19301 esac
19302 if test $ok = yes; then
19303 # An in-tree tool is available and we can use it
19304 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19306 $as_echo "just compiled" >&6; }
19307 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19308 # We already found the complete path
19309 ac_dir=`dirname $GDC_FOR_TARGET`
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19311 $as_echo "pre-installed in $ac_dir" >&6; }
19312 elif test "x$target" = "x$host"; then
19313 # We can use an host tool
19314 GDC_FOR_TARGET='$(GDC)'
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19316 $as_echo "host tool" >&6; }
19317 else
19318 # We need a cross tool
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19320 $as_echo "pre-installed" >&6; }
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19325 $as_echo_n "checking where to find the target gm2... " >&6; }
19326 if test "x${build}" != "x${host}" ; then
19327 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19328 # We already found the complete path
19329 ac_dir=`dirname $GM2_FOR_TARGET`
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19331 $as_echo "pre-installed in $ac_dir" >&6; }
19332 else
19333 # Canadian cross, just use what we found
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19335 $as_echo "pre-installed" >&6; }
19337 else
19338 ok=yes
19339 case " ${configdirs} " in
19340 *" gcc "*) ;;
19341 *) ok=no ;;
19342 esac
19343 case ,${enable_languages}, in
19344 *,m2,*) ;;
19345 *) ok=no ;;
19346 esac
19347 if test $ok = yes; then
19348 # An in-tree tool is available and we can use it
19349 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19351 $as_echo "just compiled" >&6; }
19352 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19353 # We already found the complete path
19354 ac_dir=`dirname $GM2_FOR_TARGET`
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19356 $as_echo "pre-installed in $ac_dir" >&6; }
19357 elif test "x$target" = "x$host"; then
19358 # We can use an host tool
19359 GM2_FOR_TARGET='$(GM2)'
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19361 $as_echo "host tool" >&6; }
19362 else
19363 # We need a cross tool
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19365 $as_echo "pre-installed" >&6; }
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19370 $as_echo_n "checking where to find the target ld... " >&6; }
19371 if test "x${build}" != "x${host}" ; then
19372 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19373 # We already found the complete path
19374 ac_dir=`dirname $LD_FOR_TARGET`
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19376 $as_echo "pre-installed in $ac_dir" >&6; }
19377 else
19378 # Canadian cross, just use what we found
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19380 $as_echo "pre-installed" >&6; }
19382 else
19383 ok=yes
19384 case " ${configdirs} " in
19385 *" ld "*) ;;
19386 *) ok=no ;;
19387 esac
19389 if test $ok = yes; then
19390 # An in-tree tool is available and we can use it
19391 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19393 $as_echo "just compiled" >&6; }
19394 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19395 # We already found the complete path
19396 ac_dir=`dirname $LD_FOR_TARGET`
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19398 $as_echo "pre-installed in $ac_dir" >&6; }
19399 elif test "x$target" = "x$host"; then
19400 # We can use an host tool
19401 LD_FOR_TARGET='$(LD)'
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19403 $as_echo "host tool" >&6; }
19404 else
19405 # We need a cross tool
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19407 $as_echo "pre-installed" >&6; }
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19412 $as_echo_n "checking where to find the target lipo... " >&6; }
19413 if test "x${build}" != "x${host}" ; then
19414 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19415 # We already found the complete path
19416 ac_dir=`dirname $LIPO_FOR_TARGET`
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19418 $as_echo "pre-installed in $ac_dir" >&6; }
19419 else
19420 # Canadian cross, just use what we found
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19422 $as_echo "pre-installed" >&6; }
19424 else
19425 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19426 # We already found the complete path
19427 ac_dir=`dirname $LIPO_FOR_TARGET`
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19429 $as_echo "pre-installed in $ac_dir" >&6; }
19430 elif test "x$target" = "x$host"; then
19431 # We can use an host tool
19432 LIPO_FOR_TARGET='$(LIPO)'
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19434 $as_echo "host tool" >&6; }
19435 else
19436 # We need a cross tool
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19438 $as_echo "pre-installed" >&6; }
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19443 $as_echo_n "checking where to find the target nm... " >&6; }
19444 if test "x${build}" != "x${host}" ; then
19445 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19446 # We already found the complete path
19447 ac_dir=`dirname $NM_FOR_TARGET`
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19449 $as_echo "pre-installed in $ac_dir" >&6; }
19450 else
19451 # Canadian cross, just use what we found
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19453 $as_echo "pre-installed" >&6; }
19455 else
19456 ok=yes
19457 case " ${configdirs} " in
19458 *" binutils "*) ;;
19459 *) ok=no ;;
19460 esac
19462 if test $ok = yes; then
19463 # An in-tree tool is available and we can use it
19464 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19466 $as_echo "just compiled" >&6; }
19467 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19468 # We already found the complete path
19469 ac_dir=`dirname $NM_FOR_TARGET`
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19471 $as_echo "pre-installed in $ac_dir" >&6; }
19472 elif test "x$target" = "x$host"; then
19473 # We can use an host tool
19474 NM_FOR_TARGET='$(NM)'
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19476 $as_echo "host tool" >&6; }
19477 else
19478 # We need a cross tool
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19480 $as_echo "pre-installed" >&6; }
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19485 $as_echo_n "checking where to find the target objcopy... " >&6; }
19486 if test "x${build}" != "x${host}" ; then
19487 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19488 # We already found the complete path
19489 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19491 $as_echo "pre-installed in $ac_dir" >&6; }
19492 else
19493 # Canadian cross, just use what we found
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19495 $as_echo "pre-installed" >&6; }
19497 else
19498 ok=yes
19499 case " ${configdirs} " in
19500 *" binutils "*) ;;
19501 *) ok=no ;;
19502 esac
19504 if test $ok = yes; then
19505 # An in-tree tool is available and we can use it
19506 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19508 $as_echo "just compiled" >&6; }
19509 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19510 # We already found the complete path
19511 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19513 $as_echo "pre-installed in $ac_dir" >&6; }
19514 elif test "x$target" = "x$host"; then
19515 # We can use an host tool
19516 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19518 $as_echo "host tool" >&6; }
19519 else
19520 # We need a cross tool
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19522 $as_echo "pre-installed" >&6; }
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19527 $as_echo_n "checking where to find the target objdump... " >&6; }
19528 if test "x${build}" != "x${host}" ; then
19529 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19530 # We already found the complete path
19531 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19533 $as_echo "pre-installed in $ac_dir" >&6; }
19534 else
19535 # Canadian cross, just use what we found
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19537 $as_echo "pre-installed" >&6; }
19539 else
19540 ok=yes
19541 case " ${configdirs} " in
19542 *" binutils "*) ;;
19543 *) ok=no ;;
19544 esac
19546 if test $ok = yes; then
19547 # An in-tree tool is available and we can use it
19548 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19550 $as_echo "just compiled" >&6; }
19551 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19552 # We already found the complete path
19553 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19555 $as_echo "pre-installed in $ac_dir" >&6; }
19556 elif test "x$target" = "x$host"; then
19557 # We can use an host tool
19558 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19560 $as_echo "host tool" >&6; }
19561 else
19562 # We need a cross tool
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19564 $as_echo "pre-installed" >&6; }
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19569 $as_echo_n "checking where to find the target otool... " >&6; }
19570 if test "x${build}" != "x${host}" ; then
19571 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19572 # We already found the complete path
19573 ac_dir=`dirname $OTOOL_FOR_TARGET`
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19575 $as_echo "pre-installed in $ac_dir" >&6; }
19576 else
19577 # Canadian cross, just use what we found
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19579 $as_echo "pre-installed" >&6; }
19581 else
19582 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19583 # We already found the complete path
19584 ac_dir=`dirname $OTOOL_FOR_TARGET`
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19586 $as_echo "pre-installed in $ac_dir" >&6; }
19587 elif test "x$target" = "x$host"; then
19588 # We can use an host tool
19589 OTOOL_FOR_TARGET='$(OTOOL)'
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19591 $as_echo "host tool" >&6; }
19592 else
19593 # We need a cross tool
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19595 $as_echo "pre-installed" >&6; }
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19600 $as_echo_n "checking where to find the target ranlib... " >&6; }
19601 if test "x${build}" != "x${host}" ; then
19602 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19603 # We already found the complete path
19604 ac_dir=`dirname $RANLIB_FOR_TARGET`
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19606 $as_echo "pre-installed in $ac_dir" >&6; }
19607 else
19608 # Canadian cross, just use what we found
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19610 $as_echo "pre-installed" >&6; }
19612 else
19613 ok=yes
19614 case " ${configdirs} " in
19615 *" binutils "*) ;;
19616 *) ok=no ;;
19617 esac
19619 if test $ok = yes; then
19620 # An in-tree tool is available and we can use it
19621 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19623 $as_echo "just compiled" >&6; }
19624 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19625 # We already found the complete path
19626 ac_dir=`dirname $RANLIB_FOR_TARGET`
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19628 $as_echo "pre-installed in $ac_dir" >&6; }
19629 elif test "x$target" = "x$host"; then
19630 # We can use an host tool
19631 RANLIB_FOR_TARGET='$(RANLIB)'
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19633 $as_echo "host tool" >&6; }
19634 else
19635 # We need a cross tool
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19637 $as_echo "pre-installed" >&6; }
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19642 $as_echo_n "checking where to find the target readelf... " >&6; }
19643 if test "x${build}" != "x${host}" ; then
19644 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19645 # We already found the complete path
19646 ac_dir=`dirname $READELF_FOR_TARGET`
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19648 $as_echo "pre-installed in $ac_dir" >&6; }
19649 else
19650 # Canadian cross, just use what we found
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19652 $as_echo "pre-installed" >&6; }
19654 else
19655 ok=yes
19656 case " ${configdirs} " in
19657 *" binutils "*) ;;
19658 *) ok=no ;;
19659 esac
19661 if test $ok = yes; then
19662 # An in-tree tool is available and we can use it
19663 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19665 $as_echo "just compiled" >&6; }
19666 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19667 # We already found the complete path
19668 ac_dir=`dirname $READELF_FOR_TARGET`
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19670 $as_echo "pre-installed in $ac_dir" >&6; }
19671 elif test "x$target" = "x$host"; then
19672 # We can use an host tool
19673 READELF_FOR_TARGET='$(READELF)'
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19675 $as_echo "host tool" >&6; }
19676 else
19677 # We need a cross tool
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19679 $as_echo "pre-installed" >&6; }
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19684 $as_echo_n "checking where to find the target strip... " >&6; }
19685 if test "x${build}" != "x${host}" ; then
19686 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19687 # We already found the complete path
19688 ac_dir=`dirname $STRIP_FOR_TARGET`
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19690 $as_echo "pre-installed in $ac_dir" >&6; }
19691 else
19692 # Canadian cross, just use what we found
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19694 $as_echo "pre-installed" >&6; }
19696 else
19697 ok=yes
19698 case " ${configdirs} " in
19699 *" binutils "*) ;;
19700 *) ok=no ;;
19701 esac
19703 if test $ok = yes; then
19704 # An in-tree tool is available and we can use it
19705 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19707 $as_echo "just compiled" >&6; }
19708 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19709 # We already found the complete path
19710 ac_dir=`dirname $STRIP_FOR_TARGET`
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19712 $as_echo "pre-installed in $ac_dir" >&6; }
19713 elif test "x$target" = "x$host"; then
19714 # We can use an host tool
19715 STRIP_FOR_TARGET='$(STRIP)'
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19717 $as_echo "host tool" >&6; }
19718 else
19719 # We need a cross tool
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19721 $as_echo "pre-installed" >&6; }
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19726 $as_echo_n "checking where to find the target windres... " >&6; }
19727 if test "x${build}" != "x${host}" ; then
19728 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19729 # We already found the complete path
19730 ac_dir=`dirname $WINDRES_FOR_TARGET`
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19732 $as_echo "pre-installed in $ac_dir" >&6; }
19733 else
19734 # Canadian cross, just use what we found
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19736 $as_echo "pre-installed" >&6; }
19738 else
19739 ok=yes
19740 case " ${configdirs} " in
19741 *" binutils "*) ;;
19742 *) ok=no ;;
19743 esac
19745 if test $ok = yes; then
19746 # An in-tree tool is available and we can use it
19747 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19749 $as_echo "just compiled" >&6; }
19750 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19751 # We already found the complete path
19752 ac_dir=`dirname $WINDRES_FOR_TARGET`
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19754 $as_echo "pre-installed in $ac_dir" >&6; }
19755 elif test "x$target" = "x$host"; then
19756 # We can use an host tool
19757 WINDRES_FOR_TARGET='$(WINDRES)'
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19759 $as_echo "host tool" >&6; }
19760 else
19761 # We need a cross tool
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19763 $as_echo "pre-installed" >&6; }
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19768 $as_echo_n "checking where to find the target windmc... " >&6; }
19769 if test "x${build}" != "x${host}" ; then
19770 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19771 # We already found the complete path
19772 ac_dir=`dirname $WINDMC_FOR_TARGET`
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19774 $as_echo "pre-installed in $ac_dir" >&6; }
19775 else
19776 # Canadian cross, just use what we found
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19778 $as_echo "pre-installed" >&6; }
19780 else
19781 ok=yes
19782 case " ${configdirs} " in
19783 *" binutils "*) ;;
19784 *) ok=no ;;
19785 esac
19787 if test $ok = yes; then
19788 # An in-tree tool is available and we can use it
19789 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19791 $as_echo "just compiled" >&6; }
19792 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19793 # We already found the complete path
19794 ac_dir=`dirname $WINDMC_FOR_TARGET`
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19796 $as_echo "pre-installed in $ac_dir" >&6; }
19797 elif test "x$target" = "x$host"; then
19798 # We can use an host tool
19799 WINDMC_FOR_TARGET='$(WINDMC)'
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19801 $as_echo "host tool" >&6; }
19802 else
19803 # We need a cross tool
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19805 $as_echo "pre-installed" >&6; }
19813 # Certain tools may need extra flags.
19814 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19815 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19816 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19818 # When building target libraries, except in a Canadian cross, we use
19819 # the same toolchain as the compiler we just built.
19820 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19821 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19822 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19823 if test $host = $build; then
19824 case " $configdirs " in
19825 *" gcc "*)
19826 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19827 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19828 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19830 esac
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19838 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19839 # Check whether --enable-maintainer-mode was given.
19840 if test "${enable_maintainer_mode+set}" = set; then :
19841 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19842 else
19843 USE_MAINTAINER_MODE=no
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19847 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19850 if test "$USE_MAINTAINER_MODE" = yes; then
19851 MAINTAINER_MODE_TRUE=
19852 MAINTAINER_MODE_FALSE='#'
19853 else
19854 MAINTAINER_MODE_TRUE='#'
19855 MAINTAINER_MODE_FALSE=
19857 MAINT=$MAINTAINER_MODE_TRUE
19859 # ---------------------
19860 # GCC bootstrap support
19861 # ---------------------
19863 # Stage specific cflags for build.
19864 stage1_cflags="-g"
19865 case $build in
19866 vax-*-*)
19867 case ${GCC} in
19868 yes) stage1_cflags="-g -Wa,-J" ;;
19869 *) stage1_cflags="-g -J" ;;
19870 esac ;;
19871 esac
19875 # Enable --enable-checking in stage1 of the compiler.
19876 # Check whether --enable-stage1-checking was given.
19877 if test "${enable_stage1_checking+set}" = set; then :
19878 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19879 else
19880 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
19881 # For --disable-checking or implicit --enable-checking=release, avoid
19882 # setting --enable-checking=gc in the default stage1 checking for LTO
19883 # bootstraps. See PR62077.
19884 case $BUILD_CONFIG in
19885 *lto*)
19886 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19888 stage1_checking=--enable-checking=yes,types;;
19889 esac
19890 if test "x$enable_checking" = x && \
19891 test -d ${srcdir}/gcc && \
19892 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19893 stage1_checking=--enable-checking=yes,types,extra
19895 else
19896 stage1_checking=--enable-checking=$enable_checking,types
19902 # Enable -Werror in bootstrap stage2 and later.
19903 # Check whether --enable-werror was given.
19904 if test "${enable_werror+set}" = set; then :
19905 enableval=$enable_werror;
19906 case ${enable_werror} in
19907 yes) stage2_werror_flag="--enable-werror-always" ;;
19908 *) stage2_werror_flag="" ;;
19909 esac
19911 else
19913 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19914 case $BUILD_CONFIG in
19915 bootstrap-debug)
19916 stage2_werror_flag="--enable-werror-always" ;;
19918 stage2_werror_flag="--enable-werror-always" ;;
19919 esac
19927 # Specify what files to not compare during bootstrap.
19929 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
19930 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
19931 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
19932 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
19933 case "$target" in
19934 hppa*64*-*-hpux*) ;;
19935 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
19936 esac
19939 ac_config_files="$ac_config_files Makefile"
19941 cat >confcache <<\_ACEOF
19942 # This file is a shell script that caches the results of configure
19943 # tests run on this system so they can be shared between configure
19944 # scripts and configure runs, see configure's option --config-cache.
19945 # It is not useful on other systems. If it contains results you don't
19946 # want to keep, you may remove or edit it.
19948 # config.status only pays attention to the cache file if you give it
19949 # the --recheck option to rerun configure.
19951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19953 # following values.
19955 _ACEOF
19957 # The following way of writing the cache mishandles newlines in values,
19958 # but we know of no workaround that is simple, portable, and efficient.
19959 # So, we kill variables containing newlines.
19960 # Ultrix sh set writes to stderr and can't be redirected directly,
19961 # and sets the high bit in the cache file unless we assign to the vars.
19963 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19964 eval ac_val=\$$ac_var
19965 case $ac_val in #(
19966 *${as_nl}*)
19967 case $ac_var in #(
19968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19970 esac
19971 case $ac_var in #(
19972 _ | IFS | as_nl) ;; #(
19973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19974 *) { eval $ac_var=; unset $ac_var;} ;;
19975 esac ;;
19976 esac
19977 done
19979 (set) 2>&1 |
19980 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19981 *${as_nl}ac_space=\ *)
19982 # `set' does not quote correctly, so add quotes: double-quote
19983 # substitution turns \\\\ into \\, and sed turns \\ into \.
19984 sed -n \
19985 "s/'/'\\\\''/g;
19986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19987 ;; #(
19989 # `set' quotes correctly as required by POSIX, so do not add quotes.
19990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19992 esac |
19993 sort
19995 sed '
19996 /^ac_cv_env_/b end
19997 t clear
19998 :clear
19999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20000 t end
20001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20002 :end' >>confcache
20003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20004 if test -w "$cache_file"; then
20005 if test "x$cache_file" != "x/dev/null"; then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20007 $as_echo "$as_me: updating cache $cache_file" >&6;}
20008 if test ! -f "$cache_file" || test -h "$cache_file"; then
20009 cat confcache >"$cache_file"
20010 else
20011 case $cache_file in #(
20012 */* | ?:*)
20013 mv -f confcache "$cache_file"$$ &&
20014 mv -f "$cache_file"$$ "$cache_file" ;; #(
20016 mv -f confcache "$cache_file" ;;
20017 esac
20020 else
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20022 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20025 rm -f confcache
20027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20028 # Let make expand exec_prefix.
20029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20031 # Transform confdefs.h into DEFS.
20032 # Protect against shell expansion while executing Makefile rules.
20033 # Protect against Makefile macro expansion.
20035 # If the first sed substitution is executed (which looks for macros that
20036 # take arguments), then branch to the quote section. Otherwise,
20037 # look for a macro that doesn't take arguments.
20038 ac_script='
20039 :mline
20040 /\\$/{
20042 s,\\\n,,
20043 b mline
20045 t clear
20046 :clear
20047 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20048 t quote
20049 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20050 t quote
20051 b any
20052 :quote
20053 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20054 s/\[/\\&/g
20055 s/\]/\\&/g
20056 s/\$/$$/g
20058 :any
20061 s/^\n//
20062 s/\n/ /g
20066 DEFS=`sed -n "$ac_script" confdefs.h`
20069 ac_libobjs=
20070 ac_ltlibobjs=
20072 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20073 # 1. Remove the extension, and $U if already installed.
20074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20077 # will be set to the directory where LIBOBJS objects are built.
20078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20080 done
20081 LIBOBJS=$ac_libobjs
20083 LTLIBOBJS=$ac_ltlibobjs
20087 : "${CONFIG_STATUS=./config.status}"
20088 ac_write_fail=0
20089 ac_clean_files_save=$ac_clean_files
20090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20093 as_write_fail=0
20094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20095 #! $SHELL
20096 # Generated by $as_me.
20097 # Run this file to recreate the current configuration.
20098 # Compiler output produced by configure, useful for debugging
20099 # configure, is in config.log if it exists.
20101 debug=false
20102 ac_cs_recheck=false
20103 ac_cs_silent=false
20105 SHELL=\${CONFIG_SHELL-$SHELL}
20106 export SHELL
20107 _ASEOF
20108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20109 ## -------------------- ##
20110 ## M4sh Initialization. ##
20111 ## -------------------- ##
20113 # Be more Bourne compatible
20114 DUALCASE=1; export DUALCASE # for MKS sh
20115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20116 emulate sh
20117 NULLCMD=:
20118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20119 # is contrary to our usage. Disable this feature.
20120 alias -g '${1+"$@"}'='"$@"'
20121 setopt NO_GLOB_SUBST
20122 else
20123 case `(set -o) 2>/dev/null` in #(
20124 *posix*) :
20125 set -o posix ;; #(
20126 *) :
20128 esac
20132 as_nl='
20134 export as_nl
20135 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20136 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20139 # Prefer a ksh shell builtin over an external printf program on Solaris,
20140 # but without wasting forks for bash or zsh.
20141 if test -z "$BASH_VERSION$ZSH_VERSION" \
20142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20143 as_echo='print -r --'
20144 as_echo_n='print -rn --'
20145 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20146 as_echo='printf %s\n'
20147 as_echo_n='printf %s'
20148 else
20149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20150 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20151 as_echo_n='/usr/ucb/echo -n'
20152 else
20153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20154 as_echo_n_body='eval
20155 arg=$1;
20156 case $arg in #(
20157 *"$as_nl"*)
20158 expr "X$arg" : "X\\(.*\\)$as_nl";
20159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20160 esac;
20161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20163 export as_echo_n_body
20164 as_echo_n='sh -c $as_echo_n_body as_echo'
20166 export as_echo_body
20167 as_echo='sh -c $as_echo_body as_echo'
20170 # The user is always right.
20171 if test "${PATH_SEPARATOR+set}" != set; then
20172 PATH_SEPARATOR=:
20173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20174 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20175 PATH_SEPARATOR=';'
20180 # IFS
20181 # We need space, tab and new line, in precisely that order. Quoting is
20182 # there to prevent editors from complaining about space-tab.
20183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20184 # splitting by setting IFS to empty value.)
20185 IFS=" "" $as_nl"
20187 # Find who we are. Look in the path if we contain no directory separator.
20188 as_myself=
20189 case $0 in #((
20190 *[\\/]* ) as_myself=$0 ;;
20191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20192 for as_dir in $PATH
20194 IFS=$as_save_IFS
20195 test -z "$as_dir" && as_dir=.
20196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20197 done
20198 IFS=$as_save_IFS
20201 esac
20202 # We did not find ourselves, most probably we were run as `sh COMMAND'
20203 # in which case we are not to be found in the path.
20204 if test "x$as_myself" = x; then
20205 as_myself=$0
20207 if test ! -f "$as_myself"; then
20208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20209 exit 1
20212 # Unset variables that we do not need and which cause bugs (e.g. in
20213 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20214 # suppresses any "Segmentation fault" message there. '((' could
20215 # trigger a bug in pdksh 5.2.14.
20216 for as_var in BASH_ENV ENV MAIL MAILPATH
20217 do eval test x\${$as_var+set} = xset \
20218 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20219 done
20220 PS1='$ '
20221 PS2='> '
20222 PS4='+ '
20224 # NLS nuisances.
20225 LC_ALL=C
20226 export LC_ALL
20227 LANGUAGE=C
20228 export LANGUAGE
20230 # CDPATH.
20231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20234 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20235 # ----------------------------------------
20236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20238 # script with STATUS, using 1 if that was 0.
20239 as_fn_error ()
20241 as_status=$1; test $as_status -eq 0 && as_status=1
20242 if test "$4"; then
20243 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20246 $as_echo "$as_me: error: $2" >&2
20247 as_fn_exit $as_status
20248 } # as_fn_error
20251 # as_fn_set_status STATUS
20252 # -----------------------
20253 # Set $? to STATUS, without forking.
20254 as_fn_set_status ()
20256 return $1
20257 } # as_fn_set_status
20259 # as_fn_exit STATUS
20260 # -----------------
20261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20262 as_fn_exit ()
20264 set +e
20265 as_fn_set_status $1
20266 exit $1
20267 } # as_fn_exit
20269 # as_fn_unset VAR
20270 # ---------------
20271 # Portably unset VAR.
20272 as_fn_unset ()
20274 { eval $1=; unset $1;}
20276 as_unset=as_fn_unset
20277 # as_fn_append VAR VALUE
20278 # ----------------------
20279 # Append the text in VALUE to the end of the definition contained in VAR. Take
20280 # advantage of any shell optimizations that allow amortized linear growth over
20281 # repeated appends, instead of the typical quadratic growth present in naive
20282 # implementations.
20283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20284 eval 'as_fn_append ()
20286 eval $1+=\$2
20288 else
20289 as_fn_append ()
20291 eval $1=\$$1\$2
20293 fi # as_fn_append
20295 # as_fn_arith ARG...
20296 # ------------------
20297 # Perform arithmetic evaluation on the ARGs, and store the result in the
20298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20299 # must be portable across $(()) and expr.
20300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20301 eval 'as_fn_arith ()
20303 as_val=$(( $* ))
20305 else
20306 as_fn_arith ()
20308 as_val=`expr "$@" || test $? -eq 1`
20310 fi # as_fn_arith
20313 if expr a : '\(a\)' >/dev/null 2>&1 &&
20314 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20315 as_expr=expr
20316 else
20317 as_expr=false
20320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20321 as_basename=basename
20322 else
20323 as_basename=false
20326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20327 as_dirname=dirname
20328 else
20329 as_dirname=false
20332 as_me=`$as_basename -- "$0" ||
20333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20334 X"$0" : 'X\(//\)$' \| \
20335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20336 $as_echo X/"$0" |
20337 sed '/^.*\/\([^/][^/]*\)\/*$/{
20338 s//\1/
20341 /^X\/\(\/\/\)$/{
20342 s//\1/
20345 /^X\/\(\/\).*/{
20346 s//\1/
20349 s/.*/./; q'`
20351 # Avoid depending upon Character Ranges.
20352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20355 as_cr_digits='0123456789'
20356 as_cr_alnum=$as_cr_Letters$as_cr_digits
20358 ECHO_C= ECHO_N= ECHO_T=
20359 case `echo -n x` in #(((((
20360 -n*)
20361 case `echo 'xy\c'` in
20362 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20363 xy) ECHO_C='\c';;
20364 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20365 ECHO_T=' ';;
20366 esac;;
20368 ECHO_N='-n';;
20369 esac
20371 rm -f conf$$ conf$$.exe conf$$.file
20372 if test -d conf$$.dir; then
20373 rm -f conf$$.dir/conf$$.file
20374 else
20375 rm -f conf$$.dir
20376 mkdir conf$$.dir 2>/dev/null
20378 if (echo >conf$$.file) 2>/dev/null; then
20379 if ln -s conf$$.file conf$$ 2>/dev/null; then
20380 as_ln_s='ln -s'
20381 # ... but there are two gotchas:
20382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20384 # In both cases, we have to default to `cp -pR'.
20385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20386 as_ln_s='cp -pR'
20387 elif ln conf$$.file conf$$ 2>/dev/null; then
20388 as_ln_s=ln
20389 else
20390 as_ln_s='cp -pR'
20392 else
20393 as_ln_s='cp -pR'
20395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20396 rmdir conf$$.dir 2>/dev/null
20399 # as_fn_mkdir_p
20400 # -------------
20401 # Create "$as_dir" as a directory, including parents if necessary.
20402 as_fn_mkdir_p ()
20405 case $as_dir in #(
20406 -*) as_dir=./$as_dir;;
20407 esac
20408 test -d "$as_dir" || eval $as_mkdir_p || {
20409 as_dirs=
20410 while :; do
20411 case $as_dir in #(
20412 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20413 *) as_qdir=$as_dir;;
20414 esac
20415 as_dirs="'$as_qdir' $as_dirs"
20416 as_dir=`$as_dirname -- "$as_dir" ||
20417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20418 X"$as_dir" : 'X\(//\)[^/]' \| \
20419 X"$as_dir" : 'X\(//\)$' \| \
20420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20421 $as_echo X"$as_dir" |
20422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20423 s//\1/
20426 /^X\(\/\/\)[^/].*/{
20427 s//\1/
20430 /^X\(\/\/\)$/{
20431 s//\1/
20434 /^X\(\/\).*/{
20435 s//\1/
20438 s/.*/./; q'`
20439 test -d "$as_dir" && break
20440 done
20441 test -z "$as_dirs" || eval "mkdir $as_dirs"
20442 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20445 } # as_fn_mkdir_p
20446 if mkdir -p . 2>/dev/null; then
20447 as_mkdir_p='mkdir -p "$as_dir"'
20448 else
20449 test -d ./-p && rmdir ./-p
20450 as_mkdir_p=false
20454 # as_fn_executable_p FILE
20455 # -----------------------
20456 # Test if FILE is an executable regular file.
20457 as_fn_executable_p ()
20459 test -f "$1" && test -x "$1"
20460 } # as_fn_executable_p
20461 as_test_x='test -x'
20462 as_executable_p=as_fn_executable_p
20464 # Sed expression to map a string onto a valid CPP name.
20465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20467 # Sed expression to map a string onto a valid variable name.
20468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20471 exec 6>&1
20472 ## ----------------------------------- ##
20473 ## Main body of $CONFIG_STATUS script. ##
20474 ## ----------------------------------- ##
20475 _ASEOF
20476 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20479 # Save the log message, to keep $0 and so on meaningful, and to
20480 # report actual input values of CONFIG_FILES etc. instead of their
20481 # values after options handling.
20482 ac_log="
20483 This file was extended by $as_me, which was
20484 generated by GNU Autoconf 2.69. Invocation command line was
20486 CONFIG_FILES = $CONFIG_FILES
20487 CONFIG_HEADERS = $CONFIG_HEADERS
20488 CONFIG_LINKS = $CONFIG_LINKS
20489 CONFIG_COMMANDS = $CONFIG_COMMANDS
20490 $ $0 $@
20492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20495 _ACEOF
20497 case $ac_config_files in *"
20498 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20499 esac
20503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20504 # Files that config.status was made for.
20505 config_files="$ac_config_files"
20507 _ACEOF
20509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20510 ac_cs_usage="\
20511 \`$as_me' instantiates files and other configuration actions
20512 from templates according to the current configuration. Unless the files
20513 and actions are specified as TAGs, all are instantiated by default.
20515 Usage: $0 [OPTION]... [TAG]...
20517 -h, --help print this help, then exit
20518 -V, --version print version number and configuration settings, then exit
20519 --config print configuration, then exit
20520 -q, --quiet, --silent
20521 do not print progress messages
20522 -d, --debug don't remove temporary files
20523 --recheck update $as_me by reconfiguring in the same conditions
20524 --file=FILE[:TEMPLATE]
20525 instantiate the configuration file FILE
20527 Configuration files:
20528 $config_files
20530 Report bugs to the package provider."
20532 _ACEOF
20533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20534 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20535 ac_cs_version="\\
20536 config.status
20537 configured by $0, generated by GNU Autoconf 2.69,
20538 with options \\"\$ac_cs_config\\"
20540 Copyright (C) 2012 Free Software Foundation, Inc.
20541 This config.status script is free software; the Free Software Foundation
20542 gives unlimited permission to copy, distribute and modify it."
20544 ac_pwd='$ac_pwd'
20545 srcdir='$srcdir'
20546 INSTALL='$INSTALL'
20547 AWK='$AWK'
20548 test -n "\$AWK" || AWK=awk
20549 _ACEOF
20551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20552 # The default lists apply if the user does not specify any file.
20553 ac_need_defaults=:
20554 while test $# != 0
20556 case $1 in
20557 --*=?*)
20558 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20559 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20560 ac_shift=:
20562 --*=)
20563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20564 ac_optarg=
20565 ac_shift=:
20568 ac_option=$1
20569 ac_optarg=$2
20570 ac_shift=shift
20572 esac
20574 case $ac_option in
20575 # Handling of the options.
20576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20577 ac_cs_recheck=: ;;
20578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20579 $as_echo "$ac_cs_version"; exit ;;
20580 --config | --confi | --conf | --con | --co | --c )
20581 $as_echo "$ac_cs_config"; exit ;;
20582 --debug | --debu | --deb | --de | --d | -d )
20583 debug=: ;;
20584 --file | --fil | --fi | --f )
20585 $ac_shift
20586 case $ac_optarg in
20587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20588 '') as_fn_error $? "missing file argument" ;;
20589 esac
20590 as_fn_append CONFIG_FILES " '$ac_optarg'"
20591 ac_need_defaults=false;;
20592 --he | --h | --help | --hel | -h )
20593 $as_echo "$ac_cs_usage"; exit ;;
20594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20596 ac_cs_silent=: ;;
20598 # This is an error.
20599 -*) as_fn_error $? "unrecognized option: \`$1'
20600 Try \`$0 --help' for more information." ;;
20602 *) as_fn_append ac_config_targets " $1"
20603 ac_need_defaults=false ;;
20605 esac
20606 shift
20607 done
20609 ac_configure_extra_args=
20611 if $ac_cs_silent; then
20612 exec 6>/dev/null
20613 ac_configure_extra_args="$ac_configure_extra_args --silent"
20616 _ACEOF
20617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20618 if \$ac_cs_recheck; then
20619 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20620 shift
20621 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20622 CONFIG_SHELL='$SHELL'
20623 export CONFIG_SHELL
20624 exec "\$@"
20627 _ACEOF
20628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20629 exec 5>>config.log
20631 echo
20632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20633 ## Running $as_me. ##
20634 _ASBOX
20635 $as_echo "$ac_log"
20636 } >&5
20638 _ACEOF
20639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20641 # INIT-COMMANDS
20643 extrasub_build="$extrasub_build"
20644 extrasub_host="$extrasub_host"
20645 extrasub_target="$extrasub_target"
20647 _ACEOF
20649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20651 # Handling of arguments.
20652 for ac_config_target in $ac_config_targets
20654 case $ac_config_target in
20655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20657 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20658 esac
20659 done
20662 # If the user did not use the arguments to specify the items to instantiate,
20663 # then the envvar interface is used. Set only those that are not.
20664 # We use the long form for the default assignment because of an extremely
20665 # bizarre bug on SunOS 4.1.3.
20666 if $ac_need_defaults; then
20667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20670 # Have a temporary directory for convenience. Make it in the build tree
20671 # simply because there is no reason against having it here, and in addition,
20672 # creating and moving files from /tmp can sometimes cause problems.
20673 # Hook for its removal unless debugging.
20674 # Note that there is a small window in which the directory will not be cleaned:
20675 # after its creation but before its name has been assigned to `$tmp'.
20676 $debug ||
20678 tmp= ac_tmp=
20679 trap 'exit_status=$?
20680 : "${ac_tmp:=$tmp}"
20681 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20683 trap 'as_fn_exit 1' 1 2 13 15
20685 # Create a (secure) tmp directory for tmp files.
20688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20689 test -d "$tmp"
20690 } ||
20692 tmp=./conf$$-$RANDOM
20693 (umask 077 && mkdir "$tmp")
20694 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20695 ac_tmp=$tmp
20697 # Set up the scripts for CONFIG_FILES section.
20698 # No need to generate them if there are no CONFIG_FILES.
20699 # This happens for instance with `./config.status config.h'.
20700 if test -n "$CONFIG_FILES"; then
20702 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20703 ac_cs_awk_getline=:
20704 ac_cs_awk_pipe_init=
20705 ac_cs_awk_read_file='
20706 while ((getline aline < (F[key])) > 0)
20707 print(aline)
20708 close(F[key])'
20709 ac_cs_awk_pipe_fini=
20710 else
20711 ac_cs_awk_getline=false
20712 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20713 ac_cs_awk_read_file='
20714 print "|#_!!_#|"
20715 print "cat " F[key] " &&"
20716 '$ac_cs_awk_pipe_init
20717 # The final `:' finishes the AND list.
20718 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20720 ac_cr=`echo X | tr X '\015'`
20721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20722 # But we know of no other shell where ac_cr would be empty at this
20723 # point, so we can use a bashism as a fallback.
20724 if test "x$ac_cr" = x; then
20725 eval ac_cr=\$\'\\r\'
20727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20729 ac_cs_awk_cr='\\r'
20730 else
20731 ac_cs_awk_cr=$ac_cr
20734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20735 _ACEOF
20737 # Create commands to substitute file output variables.
20739 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20740 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20741 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20742 echo "_ACAWK" &&
20743 echo "_ACEOF"
20744 } >conf$$files.sh &&
20745 . ./conf$$files.sh ||
20746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20747 rm -f conf$$files.sh
20750 echo "cat >conf$$subs.awk <<_ACEOF" &&
20751 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20752 echo "_ACEOF"
20753 } >conf$$subs.sh ||
20754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20755 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20756 ac_delim='%!_!# '
20757 for ac_last_try in false false false false false :; do
20758 . ./conf$$subs.sh ||
20759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20761 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20762 if test $ac_delim_n = $ac_delim_num; then
20763 break
20764 elif $ac_last_try; then
20765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20766 else
20767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20769 done
20770 rm -f conf$$subs.sh
20772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20773 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20774 _ACEOF
20775 sed -n '
20777 s/^/S["/; s/!.*/"]=/
20780 s/^[^!]*!//
20781 :repl
20782 t repl
20783 s/'"$ac_delim"'$//
20784 t delim
20787 s/\(.\{148\}\)..*/\1/
20788 t more1
20789 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20792 b repl
20793 :more1
20794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20797 s/.\{148\}//
20798 t nl
20799 :delim
20801 s/\(.\{148\}\)..*/\1/
20802 t more2
20803 s/["\\]/\\&/g; s/^/"/; s/$/"/
20806 :more2
20807 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20810 s/.\{148\}//
20811 t delim
20812 ' <conf$$subs.awk | sed '
20813 /^[^""]/{
20815 s/\n//
20817 ' >>$CONFIG_STATUS || ac_write_fail=1
20818 rm -f conf$$subs.awk
20819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20820 _ACAWK
20821 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20822 for (key in S) S_is_set[key] = 1
20823 FS = "\a"
20824 \$ac_cs_awk_pipe_init
20827 line = $ 0
20828 nfields = split(line, field, "@")
20829 substed = 0
20830 len = length(field[1])
20831 for (i = 2; i < nfields; i++) {
20832 key = field[i]
20833 keylen = length(key)
20834 if (S_is_set[key]) {
20835 value = S[key]
20836 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20837 len += length(value) + length(field[++i])
20838 substed = 1
20839 } else
20840 len += 1 + keylen
20842 if (nfields == 3 && !substed) {
20843 key = field[2]
20844 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20845 \$ac_cs_awk_read_file
20846 next
20849 print line
20851 \$ac_cs_awk_pipe_fini
20852 _ACAWK
20853 _ACEOF
20854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20855 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20857 else
20859 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20860 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20861 _ACEOF
20863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20865 # trailing colons and then remove the whole line if VPATH becomes empty
20866 # (actually we leave an empty line to preserve line numbers).
20867 if test "x$srcdir" = x.; then
20868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20870 s///
20871 s/^/:/
20872 s/[ ]*$/:/
20873 s/:\$(srcdir):/:/g
20874 s/:\${srcdir}:/:/g
20875 s/:@srcdir@:/:/g
20876 s/^:*//
20877 s/:*$//
20879 s/\(=[ ]*\).*/\1/
20881 s/\n//
20882 s/^[^=]*=[ ]*$//
20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20887 fi # test -n "$CONFIG_FILES"
20890 eval set X " :F $CONFIG_FILES "
20891 shift
20892 for ac_tag
20894 case $ac_tag in
20895 :[FHLC]) ac_mode=$ac_tag; continue;;
20896 esac
20897 case $ac_mode$ac_tag in
20898 :[FHL]*:*);;
20899 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20900 :[FH]-) ac_tag=-:-;;
20901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20902 esac
20903 ac_save_IFS=$IFS
20904 IFS=:
20905 set x $ac_tag
20906 IFS=$ac_save_IFS
20907 shift
20908 ac_file=$1
20909 shift
20911 case $ac_mode in
20912 :L) ac_source=$1;;
20913 :[FH])
20914 ac_file_inputs=
20915 for ac_f
20917 case $ac_f in
20918 -) ac_f="$ac_tmp/stdin";;
20919 *) # Look for the file first in the build tree, then in the source tree
20920 # (if the path is not absolute). The absolute path cannot be DOS-style,
20921 # because $ac_f cannot contain `:'.
20922 test -f "$ac_f" ||
20923 case $ac_f in
20924 [\\/$]*) false;;
20925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20926 esac ||
20927 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20928 esac
20929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20930 as_fn_append ac_file_inputs " '$ac_f'"
20931 done
20933 # Let's still pretend it is `configure' which instantiates (i.e., don't
20934 # use $as_me), people would be surprised to read:
20935 # /* config.h. Generated by config.status. */
20936 configure_input='Generated from '`
20937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20938 `' by configure.'
20939 if test x"$ac_file" != x-; then
20940 configure_input="$ac_file. $configure_input"
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20942 $as_echo "$as_me: creating $ac_file" >&6;}
20944 # Neutralize special characters interpreted by sed in replacement strings.
20945 case $configure_input in #(
20946 *\&* | *\|* | *\\* )
20947 ac_sed_conf_input=`$as_echo "$configure_input" |
20948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20949 *) ac_sed_conf_input=$configure_input;;
20950 esac
20952 case $ac_tag in
20953 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20955 esac
20957 esac
20959 ac_dir=`$as_dirname -- "$ac_file" ||
20960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20961 X"$ac_file" : 'X\(//\)[^/]' \| \
20962 X"$ac_file" : 'X\(//\)$' \| \
20963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20964 $as_echo X"$ac_file" |
20965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20966 s//\1/
20969 /^X\(\/\/\)[^/].*/{
20970 s//\1/
20973 /^X\(\/\/\)$/{
20974 s//\1/
20977 /^X\(\/\).*/{
20978 s//\1/
20981 s/.*/./; q'`
20982 as_dir="$ac_dir"; as_fn_mkdir_p
20983 ac_builddir=.
20985 case "$ac_dir" in
20986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20989 # A ".." for each directory in $ac_dir_suffix.
20990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20991 case $ac_top_builddir_sub in
20992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20994 esac ;;
20995 esac
20996 ac_abs_top_builddir=$ac_pwd
20997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20998 # for backward compatibility:
20999 ac_top_builddir=$ac_top_build_prefix
21001 case $srcdir in
21002 .) # We are building in place.
21003 ac_srcdir=.
21004 ac_top_srcdir=$ac_top_builddir_sub
21005 ac_abs_top_srcdir=$ac_pwd ;;
21006 [\\/]* | ?:[\\/]* ) # Absolute name.
21007 ac_srcdir=$srcdir$ac_dir_suffix;
21008 ac_top_srcdir=$srcdir
21009 ac_abs_top_srcdir=$srcdir ;;
21010 *) # Relative name.
21011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21012 ac_top_srcdir=$ac_top_build_prefix$srcdir
21013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21014 esac
21015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21018 case $ac_mode in
21021 # CONFIG_FILE
21024 case $INSTALL in
21025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21027 esac
21028 _ACEOF
21030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21031 # If the template does not know about datarootdir, expand it.
21032 # FIXME: This hack should be removed a few years after 2.60.
21033 ac_datarootdir_hack=; ac_datarootdir_seen=
21034 ac_sed_dataroot='
21035 /datarootdir/ {
21039 /@datadir@/p
21040 /@docdir@/p
21041 /@infodir@/p
21042 /@localedir@/p
21043 /@mandir@/p'
21044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21045 *datarootdir*) ac_datarootdir_seen=yes;;
21046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21049 _ACEOF
21050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21051 ac_datarootdir_hack='
21052 s&@datadir@&$datadir&g
21053 s&@docdir@&$docdir&g
21054 s&@infodir@&$infodir&g
21055 s&@localedir@&$localedir&g
21056 s&@mandir@&$mandir&g
21057 s&\\\${datarootdir}&$datarootdir&g' ;;
21058 esac
21059 _ACEOF
21061 # Neutralize VPATH when `$srcdir' = `.'.
21062 # Shell code in configure.ac might set extrasub.
21063 # FIXME: do we really want to maintain this feature?
21064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21065 ac_sed_extra="$ac_vpsub
21066 $extrasub
21067 _ACEOF
21068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21071 s|@configure_input@|$ac_sed_conf_input|;t t
21072 s&@top_builddir@&$ac_top_builddir_sub&;t t
21073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21074 s&@srcdir@&$ac_srcdir&;t t
21075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21076 s&@top_srcdir@&$ac_top_srcdir&;t t
21077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21078 s&@builddir@&$ac_builddir&;t t
21079 s&@abs_builddir@&$ac_abs_builddir&;t t
21080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21081 s&@INSTALL@&$ac_INSTALL&;t t
21082 $ac_datarootdir_hack
21084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21085 if $ac_cs_awk_getline; then
21086 $AWK -f "$ac_tmp/subs.awk"
21087 else
21088 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21089 fi \
21090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21095 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21097 which seems to be undefined. Please make sure it is defined" >&5
21098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21099 which seems to be undefined. Please make sure it is defined" >&2;}
21101 rm -f "$ac_tmp/stdin"
21102 case $ac_file in
21103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21105 esac \
21106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21111 esac
21114 case $ac_file$ac_mode in
21115 "Makefile":F) sed "$extrasub_build" Makefile |
21116 sed "$extrasub_host" |
21117 sed "$extrasub_target" > mf$$
21118 mv -f mf$$ Makefile ;;
21120 esac
21121 done # for ac_tag
21124 as_fn_exit 0
21125 _ACEOF
21126 ac_clean_files=$ac_clean_files_save
21128 test $ac_write_fail = 0 ||
21129 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21132 # configure is writing to config.log, and then calls config.status.
21133 # config.status does its own redirection, appending to config.log.
21134 # Unfortunately, on DOS this fails, as config.log is still kept open
21135 # by configure, so config.status won't be able to write to it; its
21136 # output is simply discarded. So we exec the FD to /dev/null,
21137 # effectively closing config.log, so it can be properly (re)opened and
21138 # appended to by config.status. When coming back to configure, we
21139 # need to make the FD available again.
21140 if test "$no_create" != yes; then
21141 ac_cs_success=:
21142 ac_config_status_args=
21143 test "$silent" = yes &&
21144 ac_config_status_args="$ac_config_status_args --quiet"
21145 exec 5>/dev/null
21146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21147 exec 5>>config.log
21148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21149 # would make configure fail if this is the last instruction.
21150 $ac_cs_success || as_fn_exit 1
21152 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21154 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}