Daily bump.
[official-gcc.git] / configure
blob7f619d24ec527553f9ddfa46149981acff393df9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
632 LIPO
634 DSYMUTIL
635 DLLTOOL
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_shared
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
691 islinc
692 isllibs
693 poststage1_ldflags
694 poststage1_libs
695 stage1_ldflags
696 stage1_libs
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
701 gmpinc
702 gmplibs
703 HAVE_CXX11_FOR_BUILD
704 HAVE_CXX11
705 do_compare
707 GNATMAKE
708 GNATBIND
709 ac_ct_CXX
710 CXXFLAGS
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
719 extra_liboffloadmic_configure_flags
720 target_subdir
721 host_subdir
722 build_subdir
723 build_libsubdir
726 LN_S
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_os
732 target_vendor
733 target_cpu
734 target
735 host_os
736 host_vendor
737 host_cpu
738 host
739 target_noncanonical
740 host_noncanonical
741 build_noncanonical
742 build_os
743 build_vendor
744 build_cpu
745 build
746 TOPLEVEL_CONFIGURE_ARGUMENTS
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files='serialization_dependencies
786 host_makefile_frag
787 target_makefile_frag
788 alphaieee_frag
789 ospace_frag'
790 ac_user_opts='
791 enable_option_checking
792 with_build_libsubdir
793 with_system_zlib
794 enable_as_accelerator_for
795 enable_offload_targets
796 enable_offload_defaulted
797 enable_gold
798 enable_ld
799 enable_compressed_debug_sections
800 enable_libquadmath
801 enable_libquadmath_support
802 enable_libada
803 enable_libssp
804 enable_libstdcxx
805 enable_liboffloadmic
806 enable_bootstrap
807 with_mpc
808 with_mpc_include
809 with_mpc_lib
810 with_mpfr_dir
811 with_mpfr
812 with_mpfr_include
813 with_mpfr_lib
814 with_gmp_dir
815 with_gmp
816 with_gmp_include
817 with_gmp_lib
818 with_stage1_libs
819 with_static_standard_libraries
820 with_stage1_ldflags
821 with_boot_libs
822 with_boot_ldflags
823 with_isl
824 with_isl_include
825 with_isl_lib
826 enable_isl_version_check
827 enable_lto
828 enable_linker_plugin_configure_flags
829 enable_linker_plugin_flags
830 enable_host_shared
831 enable_stage1_languages
832 enable_objc_gc
833 with_target_bdw_gc
834 with_target_bdw_gc_include
835 with_target_bdw_gc_lib
836 with_gcc_major_version_only
837 with_build_sysroot
838 with_debug_prefix_map
839 with_build_config
840 enable_vtable_verify
841 enable_serial_configure
842 with_build_time_tools
843 enable_maintainer_mode
844 enable_stage1_checking
845 enable_werror
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
856 CXXFLAGS
858 build_configargs
859 host_configargs
860 target_configargs
863 DLLTOOL
864 DSYMUTIL
866 LIPO
868 RANLIB
869 STRIP
870 WINDRES
871 WINDMC
872 OBJCOPY
873 OBJDUMP
874 OTOOL
875 READELF
876 CC_FOR_TARGET
877 CXX_FOR_TARGET
878 GCC_FOR_TARGET
879 GFORTRAN_FOR_TARGET
880 GOC_FOR_TARGET
881 GDC_FOR_TARGET
882 AR_FOR_TARGET
883 AS_FOR_TARGET
884 DLLTOOL_FOR_TARGET
885 DSYMUTIL_FOR_TARGET
886 LD_FOR_TARGET
887 LIPO_FOR_TARGET
888 NM_FOR_TARGET
889 OBJCOPY_FOR_TARGET
890 OBJDUMP_FOR_TARGET
891 OTOOL_FOR_TARGET
892 RANLIB_FOR_TARGET
893 READELF_FOR_TARGET
894 STRIP_FOR_TARGET
895 WINDRES_FOR_TARGET
896 WINDMC_FOR_TARGET'
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
947 ac_prev=
948 ac_dashdash=
949 for ac_option
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
968 ac_dashdash=yes ;;
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
987 --config-cache | -C)
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 esac
1305 done
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360 test "$silent" = yes && exec 6>/dev/null
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1389 /^X\(\/\/\)$/{
1390 s//\1/
1393 /^X\(\/\).*/{
1394 s//\1/
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1402 else
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 case $srcdir in
1424 *" "*)
1425 as_fn_error $? "path to source, $srcdir, contains spaces"
1427 esac
1428 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1430 for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1438 # Report the --help message.
1440 if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
1444 \`configure' configures this package to adapt to many kinds of systems.
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE. See below for descriptions of some of the useful variables.
1451 Defaults for the options are specified in brackets.
1453 Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print \`checking ...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464 Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
1466 [$ac_default_prefix]
1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 [PREFIX]
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1475 For better control, use the options below.
1477 Fine tuning of the installation directories:
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1497 _ACEOF
1499 cat <<\_ACEOF
1501 Program names:
1502 --program-prefix=PREFIX prepend PREFIX to installed program names
1503 --program-suffix=SUFFIX append SUFFIX to installed program names
1504 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506 System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1510 _ACEOF
1513 if test -n "$ac_init_help"; then
1515 cat <<\_ACEOF
1517 Optional Features:
1518 --disable-option-checking ignore unrecognized --enable/--with options
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-as-accelerator-for=ARG
1522 build as offload target compiler. Specify offload
1523 host triple by ARG
1524 --enable-offload-targets=LIST
1525 enable offloading to devices from comma-separated
1526 LIST of TARGET[=DIR]. Use optional path to find
1527 offload target compiler during the build
1528 --enable-offload-defaulted
1529 If enabled, configured but not installed offload compilers and
1530 libgomp plugins are silently ignored. Useful for distribution
1531 compilers where those are in separate optional packages.
1533 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1534 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1535 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1536 Enable compressed debug sections for gas, gold or ld
1537 by default
1538 --disable-libquadmath do not build libquadmath directory
1539 --disable-libquadmath-support
1540 disable libquadmath support for Fortran
1541 --enable-libada build libada directory
1542 --enable-libssp build libssp directory
1543 --disable-libstdcxx do not build libstdc++-v3 directory
1544 --enable-liboffloadmic=ARG
1545 build liboffloadmic [ARG={no,host,target}]
1546 --enable-bootstrap enable bootstrapping [yes if native build]
1547 --disable-isl-version-check
1548 disable check for isl version
1549 --enable-lto enable link time optimization support
1550 --enable-linker-plugin-configure-flags=FLAGS
1551 additional flags for configuring linker plugins
1552 [none]
1553 --enable-linker-plugin-flags=FLAGS
1554 additional flags for configuring and building linker
1555 plugins [none]
1556 --enable-host-shared build host code as shared libraries
1557 --enable-stage1-languages[=all]
1558 choose additional languages to build during stage1.
1559 Mostly useful for compiler development
1560 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1561 Objective-C runtime
1562 --enable-vtable-verify Enable vtable verification feature
1563 --enable-serial-[{host,target,build}-]configure
1564 force sequential configuration of sub-packages for
1565 the host, target or build machine, or all
1566 sub-packages
1567 --enable-maintainer-mode
1568 enable make rules and dependencies not useful (and
1569 sometimes confusing) to the casual installer
1570 --enable-stage1-checking[=all]
1571 choose additional checking for stage1 of the
1572 compiler
1573 --enable-werror enable -Werror in bootstrap stage2 and later
1575 Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-build-libsubdir=DIR Directory where to find libraries for build system
1579 --with-system-zlib use installed libz
1580 --with-mpc=PATH specify prefix directory for installed MPC package.
1581 Equivalent to --with-mpc-include=PATH/include plus
1582 --with-mpc-lib=PATH/lib
1583 --with-mpc-include=PATH specify directory for installed MPC include files
1584 --with-mpc-lib=PATH specify directory for the installed MPC library
1585 --with-mpfr-dir=PATH this option has been REMOVED
1586 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1587 Equivalent to --with-mpfr-include=PATH/include plus
1588 --with-mpfr-lib=PATH/lib
1589 --with-mpfr-include=PATH
1590 specify directory for installed MPFR include files
1591 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1592 --with-gmp-dir=PATH this option has been REMOVED
1593 --with-gmp=PATH specify prefix directory for the installed GMP
1594 package. Equivalent to
1595 --with-gmp-include=PATH/include plus
1596 --with-gmp-lib=PATH/lib
1597 --with-gmp-include=PATH specify directory for installed GMP include files
1598 --with-gmp-lib=PATH specify directory for the installed GMP library
1599 --with-stage1-libs=LIBS libraries for stage1
1600 --with-static-standard-libraries
1601 use -static-libstdc++ and -static-libgcc
1602 (default=auto)
1603 --with-stage1-ldflags=FLAGS
1604 linker flags for stage1
1605 --with-boot-libs=LIBS libraries for stage2 and later
1606 --with-boot-ldflags=FLAGS
1607 linker flags for stage2 and later
1608 --with-isl=PATH Specify prefix directory for the installed isl
1609 package. Equivalent to
1610 --with-isl-include=PATH/include plus
1611 --with-isl-lib=PATH/lib
1612 --with-isl-include=PATH Specify directory for installed isl include files
1613 --with-isl-lib=PATH Specify the directory for the installed isl library
1614 --with-target-bdw-gc=PATHLIST
1615 specify prefix directory for installed bdw-gc
1616 package. Equivalent to
1617 --with-target-bdw-gc-include=PATH/include plus
1618 --with-target-bdw-gc-lib=PATH/lib
1619 --with-target-bdw-gc-include=PATHLIST
1620 specify directories for installed bdw-gc include
1621 files
1622 --with-target-bdw-gc-lib=PATHLIST
1623 specify directories for installed bdw-gc library
1624 --with-gcc-major-version-only
1625 use only GCC major number in filesystem paths
1626 --with-build-sysroot=SYSROOT
1627 use sysroot as the system root during the build
1628 --with-debug-prefix-map='A=B C=D ...'
1629 map A to B, C to D ... in debug information
1630 --with-build-config='NAME NAME2...'
1631 use config/NAME.mk build configuration
1632 --with-build-time-tools=PATH
1633 use given path to find target tools during the build
1635 Some influential environment variables:
1636 CC C compiler command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1639 nonstandard directory <lib dir>
1640 LIBS libraries to pass to the linker, e.g. -l<library>
1641 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1642 you have headers in a nonstandard directory <include dir>
1643 CXX C++ compiler command
1644 CXXFLAGS C++ compiler flags
1645 build_configargs
1646 additional configure arguments for build directories
1647 host_configargs
1648 additional configure arguments for host directories
1649 target_configargs
1650 additional configure arguments for target directories
1651 AR AR for the host
1652 AS AS for the host
1653 DLLTOOL DLLTOOL for the host
1654 DSYMUTIL DSYMUTIL for the host
1655 LD LD for the host
1656 LIPO LIPO for the host
1657 NM NM for the host
1658 RANLIB RANLIB for the host
1659 STRIP STRIP for the host
1660 WINDRES WINDRES for the host
1661 WINDMC WINDMC for the host
1662 OBJCOPY OBJCOPY for the host
1663 OBJDUMP OBJDUMP for the host
1664 OTOOL OTOOL for the host
1665 READELF READELF for the host
1666 CC_FOR_TARGET
1667 CC for the target
1668 CXX_FOR_TARGET
1669 CXX for the target
1670 GCC_FOR_TARGET
1671 GCC for the target
1672 GFORTRAN_FOR_TARGET
1673 GFORTRAN for the target
1674 GOC_FOR_TARGET
1675 GOC for the target
1676 GDC_FOR_TARGET
1677 GDC for the target
1678 AR_FOR_TARGET
1679 AR for the target
1680 AS_FOR_TARGET
1681 AS for the target
1682 DLLTOOL_FOR_TARGET
1683 DLLTOOL for the target
1684 DSYMUTIL_FOR_TARGET
1685 DSYMUTIL for the target
1686 LD_FOR_TARGET
1687 LD for the target
1688 LIPO_FOR_TARGET
1689 LIPO for the target
1690 NM_FOR_TARGET
1691 NM for the target
1692 OBJCOPY_FOR_TARGET
1693 OBJCOPY for the target
1694 OBJDUMP_FOR_TARGET
1695 OBJDUMP for the target
1696 OTOOL_FOR_TARGET
1697 OTOOL for the target
1698 RANLIB_FOR_TARGET
1699 RANLIB for the target
1700 READELF_FOR_TARGET
1701 READELF for the target
1702 STRIP_FOR_TARGET
1703 STRIP for the target
1704 WINDRES_FOR_TARGET
1705 WINDRES for the target
1706 WINDMC_FOR_TARGET
1707 WINDMC for the target
1709 Use these variables to override the choices made by `configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1712 Report bugs to the package provider.
1713 _ACEOF
1714 ac_status=$?
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722 continue
1723 ac_builddir=.
1725 case "$ac_dir" in
1726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 esac ;;
1735 esac
1736 ac_abs_top_builddir=$ac_pwd
1737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir=$ac_top_build_prefix
1741 case $srcdir in
1742 .) # We are building in place.
1743 ac_srcdir=.
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1747 ac_srcdir=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1750 *) # Relative name.
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 esac
1755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for guested configure.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1763 echo &&
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1765 else
1766 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 fi || ac_status=$?
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1769 done
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1774 cat <<\_ACEOF
1775 configure
1776 generated by GNU Autoconf 2.69
1778 Copyright (C) 2012 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1781 _ACEOF
1782 exit
1785 ## ------------------------ ##
1786 ## Autoconf initialization. ##
1787 ## ------------------------ ##
1789 # ac_fn_c_try_compile LINENO
1790 # --------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_c_try_compile
1827 # ac_fn_cxx_try_compile LINENO
1828 # ----------------------------
1829 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_compile ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext
1834 if { { ac_try="$ac_compile"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_compile") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_cxx_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest.$ac_objext; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 ac_retval=1
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1863 } # ac_fn_cxx_try_compile
1865 # ac_fn_cxx_try_link LINENO
1866 # -------------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_cxx_try_link ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_cxx_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
1892 test -x conftest$ac_exeext
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=1
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1909 } # ac_fn_cxx_try_link
1911 # ac_fn_c_try_link LINENO
1912 # -----------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_c_try_link ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 test -x conftest$ac_exeext
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1945 ac_retval=1
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1955 } # ac_fn_c_try_link
1956 cat >config.log <<_ACEOF
1957 This file contains any messages produced by compilers while
1958 running configure, to aid debugging if configure makes a mistake.
1960 It was created by $as_me, which was
1961 generated by GNU Autoconf 2.69. Invocation command line was
1963 $ $0 $@
1965 _ACEOF
1966 exec 5>>config.log
1968 cat <<_ASUNAME
1969 ## --------- ##
1970 ## Platform. ##
1971 ## --------- ##
1973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1977 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1985 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1990 _ASUNAME
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 $as_echo "PATH: $as_dir"
1998 done
1999 IFS=$as_save_IFS
2001 } >&5
2003 cat >&5 <<_ACEOF
2006 ## ----------- ##
2007 ## Core tests. ##
2008 ## ----------- ##
2010 _ACEOF
2013 # Keep a trace of the command line.
2014 # Strip out --no-create and --no-recursion so they do not pile up.
2015 # Strip out --silent because we don't want to record it for future runs.
2016 # Also quote any args containing shell meta-characters.
2017 # Make two passes to allow for proper duplicate-argument suppression.
2018 ac_configure_args=
2019 ac_configure_args0=
2020 ac_configure_args1=
2021 ac_must_keep_next=false
2022 for ac_pass in 1 2
2024 for ac_arg
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
2031 *\'*)
2032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 esac
2034 case $ac_pass in
2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2037 as_fn_append ac_configure_args1 " '$ac_arg'"
2038 if test $ac_must_keep_next = true; then
2039 ac_must_keep_next=false # Got value, back to normal.
2040 else
2041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2050 -* ) ac_must_keep_next=true ;;
2051 esac
2053 as_fn_append ac_configure_args " '$ac_arg'"
2055 esac
2056 done
2057 done
2058 { ac_configure_args0=; unset ac_configure_args0;}
2059 { ac_configure_args1=; unset ac_configure_args1;}
2061 # When interrupted or exit'd, cleanup temporary files, and complete
2062 # config.log. We remove comments because anyway the quotes in there
2063 # would cause problems or look ugly.
2064 # WARNING: Use '\'' to represent an apostrophe within the trap.
2065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2066 trap 'exit_status=$?
2067 # Save into config.log some information that might help in debugging.
2069 echo
2071 $as_echo "## ---------------- ##
2072 ## Cache variables. ##
2073 ## ---------------- ##"
2074 echo
2075 # The following way of writing the cache mishandles newlines in values,
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in #(
2080 *${as_nl}*)
2081 case $ac_var in #(
2082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 esac
2085 case $ac_var in #(
2086 _ | IFS | as_nl) ;; #(
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088 *) { eval $ac_var=; unset $ac_var;} ;;
2089 esac ;;
2090 esac
2091 done
2092 (set) 2>&1 |
2093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094 *${as_nl}ac_space=\ *)
2095 sed -n \
2096 "s/'\''/'\''\\\\'\'''\''/g;
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 ;; #(
2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2102 esac |
2103 sort
2105 echo
2107 $as_echo "## ----------------- ##
2108 ## Output variables. ##
2109 ## ----------------- ##"
2110 echo
2111 for ac_var in $ac_subst_vars
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2121 if test -n "$ac_subst_files"; then
2122 $as_echo "## ------------------- ##
2123 ## File substitutions. ##
2124 ## ------------------- ##"
2125 echo
2126 for ac_var in $ac_subst_files
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2137 if test -s confdefs.h; then
2138 $as_echo "## ----------- ##
2139 ## confdefs.h. ##
2140 ## ----------- ##"
2141 echo
2142 cat confdefs.h
2143 echo
2145 test "$ac_signal" != 0 &&
2146 $as_echo "$as_me: caught signal $ac_signal"
2147 $as_echo "$as_me: exit $exit_status"
2148 } >&5
2149 rm -f core *.core core.conftest.* &&
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2151 exit $exit_status
2153 for ac_signal in 1 2 13 15; do
2154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2155 done
2156 ac_signal=0
2158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2159 rm -f -r conftest* confdefs.h
2161 $as_echo "/* confdefs.h */" > confdefs.h
2163 # Predefined preprocessor variables.
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_NAME "$PACKAGE_NAME"
2167 _ACEOF
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171 _ACEOF
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2175 _ACEOF
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_STRING "$PACKAGE_STRING"
2179 _ACEOF
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183 _ACEOF
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_URL "$PACKAGE_URL"
2187 _ACEOF
2190 # Let the site file select an alternate cache file if it wants to.
2191 # Prefer an explicitly selected file to automatically selected ones.
2192 ac_site_file1=NONE
2193 ac_site_file2=NONE
2194 if test -n "$CONFIG_SITE"; then
2195 # We do not want a PATH search for config.site.
2196 case $CONFIG_SITE in #((
2197 -*) ac_site_file1=./$CONFIG_SITE;;
2198 */*) ac_site_file1=$CONFIG_SITE;;
2199 *) ac_site_file1=./$CONFIG_SITE;;
2200 esac
2201 elif test "x$prefix" != xNONE; then
2202 ac_site_file1=$prefix/share/config.site
2203 ac_site_file2=$prefix/etc/config.site
2204 else
2205 ac_site_file1=$ac_default_prefix/share/config.site
2206 ac_site_file2=$ac_default_prefix/etc/config.site
2208 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2210 test "x$ac_site_file" = xNONE && continue
2211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2213 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2214 sed 's/^/| /' "$ac_site_file" >&5
2215 . "$ac_site_file" \
2216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 as_fn_error $? "failed to load site script $ac_site_file
2219 See \`config.log' for more details" "$LINENO" 5; }
2221 done
2223 if test -r "$cache_file"; then
2224 # Some versions of bash will fail to source /dev/null (special files
2225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2228 $as_echo "$as_me: loading cache $cache_file" >&6;}
2229 case $cache_file in
2230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2231 *) . "./$cache_file";;
2232 esac
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2236 $as_echo "$as_me: creating cache $cache_file" >&6;}
2237 >$cache_file
2240 # Check that the precious variables saved in the cache have kept the same
2241 # value.
2242 ac_cache_corrupted=false
2243 for ac_var in $ac_precious_vars; do
2244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2245 eval ac_new_set=\$ac_env_${ac_var}_set
2246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2247 eval ac_new_val=\$ac_env_${ac_var}_value
2248 case $ac_old_set,$ac_new_set in
2249 set,)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,set)
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2257 ,);;
2259 if test "x$ac_old_val" != "x$ac_new_val"; then
2260 # differences in whitespace do not lead to failure.
2261 ac_old_val_w=`echo x $ac_old_val`
2262 ac_new_val_w=`echo x $ac_new_val`
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2265 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266 ac_cache_corrupted=:
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2269 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2270 eval $ac_var=\$ac_old_val
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2273 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2275 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2276 fi;;
2277 esac
2278 # Pass precious variables to config.status.
2279 if test "$ac_new_set" = set; then
2280 case $ac_new_val in
2281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 *) ac_arg=$ac_var=$ac_new_val ;;
2283 esac
2284 case " $ac_configure_args " in
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2287 esac
2289 done
2290 if $ac_cache_corrupted; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2294 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2295 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2297 ## -------------------- ##
2298 ## Main body of script. ##
2299 ## -------------------- ##
2301 ac_ext=c
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 progname=$0
2315 # if PWD already has a value, it is probably wrong.
2316 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2318 # Export original configure arguments for use by sub-configures.
2319 # Quote arguments with shell meta charatcers.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS=
2321 set -- "$progname" "$@"
2322 for ac_arg
2324 case "$ac_arg" in
2325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2326 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2327 # if the argument is of the form -foo=baz, quote the baz part only
2328 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2329 *) ;;
2330 esac
2331 # Add the quoted argument to the list.
2332 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2333 done
2334 if test "$silent" = yes; then
2335 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2337 # Remove the initial space we just introduced and, as these will be
2338 # expanded by make, quote '$'.
2339 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2342 # Find the build, host, and target systems.
2343 ac_aux_dir=
2344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2358 done
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2372 # Make sure we can run config.sub.
2373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2377 $as_echo_n "checking build system type... " >&6; }
2378 if ${ac_cv_build+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 ac_build_alias=$build_alias
2382 test "x$ac_build_alias" = x &&
2383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2384 test "x$ac_build_alias" = x &&
2385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2391 $as_echo "$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2393 *-*-*) ;;
2394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2395 esac
2396 build=$ac_cv_build
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_build
2399 shift
2400 build_cpu=$1
2401 build_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 build_os=$*
2406 IFS=$ac_save_IFS
2407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410 case ${build_alias} in
2411 "") build_noncanonical=${build} ;;
2412 *) build_noncanonical=${build_alias} ;;
2413 esac
2417 case ${host_alias} in
2418 "") host_noncanonical=${build_noncanonical} ;;
2419 *) host_noncanonical=${host_alias} ;;
2420 esac
2424 case ${target_alias} in
2425 "") target_noncanonical=${host_noncanonical} ;;
2426 *) target_noncanonical=${target_alias} ;;
2427 esac
2432 test "$host_noncanonical" = "$target_noncanonical" &&
2433 test "$program_prefix$program_suffix$program_transform_name" = \
2434 NONENONEs,x,x, &&
2435 program_transform_name=s,y,y,
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438 $as_echo_n "checking host system type... " >&6; }
2439 if ${ac_cv_host+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 if test "x$host_alias" = x; then
2443 ac_cv_host=$ac_cv_build
2444 else
2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451 $as_echo "$ac_cv_host" >&6; }
2452 case $ac_cv_host in
2453 *-*-*) ;;
2454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2455 esac
2456 host=$ac_cv_host
2457 ac_save_IFS=$IFS; IFS='-'
2458 set x $ac_cv_host
2459 shift
2460 host_cpu=$1
2461 host_vendor=$2
2462 shift; shift
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2465 host_os=$*
2466 IFS=$ac_save_IFS
2467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2471 $as_echo_n "checking target system type... " >&6; }
2472 if ${ac_cv_target+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test "x$target_alias" = x; then
2476 ac_cv_target=$ac_cv_host
2477 else
2478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2484 $as_echo "$ac_cv_target" >&6; }
2485 case $ac_cv_target in
2486 *-*-*) ;;
2487 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2488 esac
2489 target=$ac_cv_target
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_target
2492 shift
2493 target_cpu=$1
2494 target_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 target_os=$*
2499 IFS=$ac_save_IFS
2500 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503 # The aliases save the names the user supplied, while $host etc.
2504 # will get canonicalized.
2505 test -n "$target_alias" &&
2506 test "$program_prefix$program_suffix$program_transform_name" = \
2507 NONENONEs,x,x, &&
2508 program_prefix=${target_alias}-
2510 test "$program_prefix" != NONE &&
2511 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2512 # Use a double $ so make ignores it.
2513 test "$program_suffix" != NONE &&
2514 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2515 # Double any \ or $.
2516 # By default was `s,x,x', remove it if useless.
2517 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2518 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2522 # Get 'install' or 'install-sh' and its variants.
2523 # Find a good install program. We prefer a C program (faster),
2524 # so one script is as good as another. But avoid the broken or
2525 # incompatible versions:
2526 # SysV /etc/install, /usr/sbin/install
2527 # SunOS /usr/etc/install
2528 # IRIX /sbin/install
2529 # AIX /bin/install
2530 # AmigaOS /C/install, which installs bootblocks on floppy discs
2531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2534 # OS/2's system install, which has a completely different semantic
2535 # ./install, which can be erroneously created by make from ./install.sh.
2536 # Reject install programs that cannot install multiple files.
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2538 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2539 if test -z "$INSTALL"; then
2540 if ${ac_cv_path_install+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 # Account for people who put trailing slashes in PATH elements.
2549 case $as_dir/ in #((
2550 ./ | .// | /[cC]/* | \
2551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2552 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2553 /usr/ucb/* ) ;;
2555 # OSF1 and SCO ODT 3.0 have their own names for install.
2556 # Don't use installbsd from OSF since it installs stuff as root
2557 # by default.
2558 for ac_prog in ginstall scoinst install; do
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2561 if test $ac_prog = install &&
2562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # AIX install. It has an incompatible calling convention.
2565 elif test $ac_prog = install &&
2566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # program-specific install script used by HP pwplus--don't use.
2569 else
2570 rm -rf conftest.one conftest.two conftest.dir
2571 echo one > conftest.one
2572 echo two > conftest.two
2573 mkdir conftest.dir
2574 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2575 test -s conftest.one && test -s conftest.two &&
2576 test -s conftest.dir/conftest.one &&
2577 test -s conftest.dir/conftest.two
2578 then
2579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2580 break 3
2584 done
2585 done
2587 esac
2589 done
2590 IFS=$as_save_IFS
2592 rm -rf conftest.one conftest.two conftest.dir
2595 if test "${ac_cv_path_install+set}" = set; then
2596 INSTALL=$ac_cv_path_install
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for INSTALL within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 INSTALL=$ac_install_sh
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2606 $as_echo "$INSTALL" >&6; }
2608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2609 # It thinks the first close brace ends the variable substitution.
2610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2617 $as_echo_n "checking whether ln works... " >&6; }
2618 if ${acx_cv_prog_LN+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 rm -f conftestdata_t
2622 echo >conftestdata_f
2623 if ln conftestdata_f conftestdata_t 2>/dev/null
2624 then
2625 acx_cv_prog_LN=ln
2626 else
2627 acx_cv_prog_LN=no
2629 rm -f conftestdata_f conftestdata_t
2632 if test $acx_cv_prog_LN = no; then
2633 LN="cp"
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2635 $as_echo "no, using $LN" >&6; }
2636 else
2637 LN="$acx_cv_prog_LN"
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639 $as_echo "yes" >&6; }
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2643 $as_echo_n "checking whether ln -s works... " >&6; }
2644 LN_S=$as_ln_s
2645 if test "$LN_S" = "ln -s"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647 $as_echo "yes" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2650 $as_echo "no, using $LN_S" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2654 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2655 if ${ac_cv_path_SED+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2659 for ac_i in 1 2 3 4 5 6 7; do
2660 ac_script="$ac_script$as_nl$ac_script"
2661 done
2662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2663 { ac_script=; unset ac_script;}
2664 if test -z "$SED"; then
2665 ac_path_SED_found=false
2666 # Loop through the user's path and test for each of PROGNAME-LIST
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_prog in sed gsed; do
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2675 as_fn_executable_p "$ac_path_SED" || continue
2676 # Check for GNU ac_path_SED and select it if it is found.
2677 # Check for GNU $ac_path_SED
2678 case `"$ac_path_SED" --version 2>&1` in
2679 *GNU*)
2680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2682 ac_count=0
2683 $as_echo_n 0123456789 >"conftest.in"
2684 while :
2686 cat "conftest.in" "conftest.in" >"conftest.tmp"
2687 mv "conftest.tmp" "conftest.in"
2688 cp "conftest.in" "conftest.nl"
2689 $as_echo '' >> "conftest.nl"
2690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2692 as_fn_arith $ac_count + 1 && ac_count=$as_val
2693 if test $ac_count -gt ${ac_path_SED_max-0}; then
2694 # Best one so far, save it but keep looking for a better one
2695 ac_cv_path_SED="$ac_path_SED"
2696 ac_path_SED_max=$ac_count
2698 # 10*(2^10) chars as input seems more than enough
2699 test $ac_count -gt 10 && break
2700 done
2701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2702 esac
2704 $ac_path_SED_found && break 3
2705 done
2706 done
2707 done
2708 IFS=$as_save_IFS
2709 if test -z "$ac_cv_path_SED"; then
2710 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2712 else
2713 ac_cv_path_SED=$SED
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2718 $as_echo "$ac_cv_path_SED" >&6; }
2719 SED="$ac_cv_path_SED"
2720 rm -f conftest.sed
2722 for ac_prog in gawk mawk nawk awk
2724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2725 set dummy $ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_AWK+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$AWK"; then
2732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_AWK="$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 AWK=$ac_cv_prog_AWK
2752 if test -n "$AWK"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2754 $as_echo "$AWK" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$AWK" && break
2762 done
2765 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2767 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2768 # a relative path.
2769 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2770 INSTALL="${srcpwd}/install-sh -c"
2773 # Set srcdir to "." if that's what it is.
2774 # This is important for multilib support.
2775 pwd=`${PWDCMD-pwd}`
2776 if test "${pwd}" = "${srcpwd}" ; then
2777 srcdir=.
2780 topsrcdir=$srcpwd
2782 extra_host_args=
2784 ### To add a new directory to the tree, first choose whether it is a target
2785 ### or a host dependent tool. Then put it into the appropriate list
2786 ### (library or tools, host or target), doing a dependency sort.
2788 # Subdirs will be configured in the order listed in build_configdirs,
2789 # configdirs, or target_configdirs; see the serialization section below.
2791 # Dependency sorting is only needed when *configuration* must be done in
2792 # a particular order. In all cases a dependency should be specified in
2793 # the Makefile, whether or not it's implicitly specified here.
2795 # Double entries in build_configdirs, configdirs, or target_configdirs may
2796 # cause circular dependencies and break everything horribly.
2798 # these library is used by various programs built for the build
2799 # environment
2801 build_libs="build-libiberty build-libcpp"
2803 # these tools are built for the build environment
2804 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2806 # these libraries are used by various programs built for the host environment
2808 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2810 # these tools are built for the host environment
2811 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2812 # know that we are building the simulator.
2813 # binutils, gas and ld appear in that order because it makes sense to run
2814 # "make check" in that particular order.
2815 # If --enable-gold is used, "gold" may replace "ld".
2816 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2818 # these libraries are built for the target environment, and are built after
2819 # the host libraries and the host tools (which may be a cross compiler)
2820 # Note that libiberty is not a target library.
2821 target_libraries="target-libgcc \
2822 target-libbacktrace \
2823 target-libgloss \
2824 target-newlib \
2825 target-libgomp \
2826 target-liboffloadmic \
2827 target-libatomic \
2828 target-libitm \
2829 target-libstdc++-v3 \
2830 target-libsanitizer \
2831 target-libvtv \
2832 target-libssp \
2833 target-libquadmath \
2834 target-libgfortran \
2835 target-libffi \
2836 target-libobjc \
2837 target-libada \
2838 target-libgo \
2839 target-libphobos \
2840 target-zlib"
2842 # these tools are built using the target libraries, and are intended to
2843 # run only in the target environment
2845 # note: any program that *uses* libraries that are in the "target_libraries"
2846 # list belongs in this list.
2848 target_tools="target-rda"
2850 ################################################################################
2852 ## All tools belong in one of the four categories, and are assigned above
2853 ## We assign ${configdirs} this way to remove all embedded newlines. This
2854 ## is important because configure will choke if they ever get through.
2855 ## ${configdirs} is directories we build using the host tools.
2856 ## ${target_configdirs} is directories we build using the target tools.
2857 configdirs=`echo ${host_libs} ${host_tools}`
2858 target_configdirs=`echo ${target_libraries} ${target_tools}`
2859 build_configdirs=`echo ${build_libs} ${build_tools}`
2863 ################################################################################
2865 srcname="gnu development package"
2867 # This gets set non-empty for some net releases of packages.
2868 appdirs=""
2870 # Define is_cross_compiler to save on calls to 'test'.
2871 is_cross_compiler=
2872 if test x"${host}" = x"${target}" ; then
2873 is_cross_compiler=no
2874 else
2875 is_cross_compiler=yes
2878 # Find the build and target subdir names.
2880 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2881 # have matching libraries, they should use host libraries: Makefile.tpl
2882 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2883 # However, they still use the build modules, because the corresponding
2884 # host modules (e.g. bison) are only built for the host when bootstrap
2885 # finishes. So:
2886 # - build_subdir is where we find build modules, and never changes.
2887 # - build_libsubdir is where we find build libraries, and can be overridden.
2889 # Prefix 'build-' so this never conflicts with target_subdir.
2890 build_subdir="build-${build_noncanonical}"
2892 # Check whether --with-build-libsubdir was given.
2893 if test "${with_build_libsubdir+set}" = set; then :
2894 withval=$with_build_libsubdir; build_libsubdir="$withval"
2895 else
2896 build_libsubdir="$build_subdir"
2899 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2900 if ( test $srcdir = . && test -d gcc ) \
2901 || test -d $srcdir/../host-${host_noncanonical}; then
2902 host_subdir="host-${host_noncanonical}"
2903 else
2904 host_subdir=.
2906 # No prefix.
2907 target_subdir=${target_noncanonical}
2909 # Be sure to cover against remnants of an in-tree build.
2910 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2911 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2912 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2915 # Skipdirs are removed silently.
2916 skipdirs=
2917 # Noconfigdirs are removed loudly.
2918 noconfigdirs=""
2920 use_gnu_ld=
2921 # Make sure we don't let GNU ld be added if we didn't want it.
2922 if test x$with_gnu_ld = xno ; then
2923 use_gnu_ld=no
2924 noconfigdirs="$noconfigdirs ld gold"
2927 use_gnu_as=
2928 # Make sure we don't let GNU as be added if we didn't want it.
2929 if test x$with_gnu_as = xno ; then
2930 use_gnu_as=no
2931 noconfigdirs="$noconfigdirs gas"
2934 use_included_zlib=
2936 # Check whether --with-system-zlib was given.
2937 if test "${with_system_zlib+set}" = set; then :
2938 withval=$with_system_zlib;
2941 # Make sure we don't let ZLIB be added if we didn't want it.
2942 if test x$with_system_zlib = xyes ; then
2943 use_included_zlib=no
2944 noconfigdirs="$noconfigdirs zlib"
2947 # some tools are so dependent upon X11 that if we're not building with X,
2948 # it's not even worth trying to configure, much less build, that tool.
2950 case ${with_x} in
2951 yes | "") ;; # the default value for this tree is that X11 is available
2953 skipdirs="${skipdirs} tk itcl libgui"
2954 # We won't be able to build gdbtk without X.
2955 enable_gdbtk=no
2957 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2958 esac
2960 # Some are only suitable for cross toolchains.
2961 # Remove these if host=target.
2962 cross_only="target-libgloss target-newlib target-opcodes"
2964 case $is_cross_compiler in
2965 no) skipdirs="${skipdirs} ${cross_only}" ;;
2966 esac
2968 # If both --with-headers and --with-libs are specified, default to
2969 # --without-newlib.
2970 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2971 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2972 if test x"${with_newlib}" = x ; then
2973 with_newlib=no
2977 # Recognize --with-newlib/--without-newlib.
2978 case ${with_newlib} in
2979 no) skipdirs="${skipdirs} target-newlib" ;;
2980 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2981 esac
2983 # Check whether --enable-as-accelerator-for was given.
2984 if test "${enable_as_accelerator_for+set}" = set; then :
2985 enableval=$enable_as_accelerator_for;
2989 # Check whether --enable-offload-targets was given.
2990 if test "${enable_offload_targets+set}" = set; then :
2991 enableval=$enable_offload_targets;
2992 if test x"$enable_offload_targets" = x; then
2993 as_fn_error $? "no offload targets specified" "$LINENO" 5
2996 else
2997 enable_offload_targets=
3001 # Check whether --enable-offload-defaulted was given.
3002 if test "${enable_offload_defaulted+set}" = set; then :
3003 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3004 else
3005 enable_offload_defaulted=
3009 # Handle --enable-gold, --enable-ld.
3010 # --disable-gold [--enable-ld]
3011 # Build only ld. Default option.
3012 # --enable-gold [--enable-ld]
3013 # Build both gold and ld. Install gold as "ld.gold", install ld
3014 # as "ld.bfd" and "ld".
3015 # --enable-gold=default [--enable-ld]
3016 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3017 # install ld as "ld.bfd".
3018 # --enable-gold[=default] --disable-ld
3019 # Build only gold, which is then installed as both "ld.gold" and "ld".
3020 # --enable-gold --enable-ld=default
3021 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3022 # and ld.bfd).
3023 # In other words, ld is default
3024 # --enable-gold=default --enable-ld=default
3025 # Error.
3027 default_ld=
3028 # Check whether --enable-gold was given.
3029 if test "${enable_gold+set}" = set; then :
3030 enableval=$enable_gold; ENABLE_GOLD=$enableval
3031 else
3032 ENABLE_GOLD=no
3035 case "${ENABLE_GOLD}" in
3036 yes|default)
3037 # Check for ELF target.
3038 is_elf=no
3039 case "${target}" in
3040 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3041 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3042 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3043 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3044 case "${target}" in
3045 *-*-linux*aout* | *-*-linux*oldld*)
3048 is_elf=yes
3050 esac
3051 esac
3053 if test "$is_elf" = "yes"; then
3054 # Check for target supported by gold.
3055 case "${target}" in
3056 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3057 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3058 configdirs="$configdirs gold"
3059 if test x${ENABLE_GOLD} = xdefault; then
3060 default_ld=gold
3062 ENABLE_GOLD=yes
3064 esac
3070 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3072 esac
3074 # Check whether --enable-ld was given.
3075 if test "${enable_ld+set}" = set; then :
3076 enableval=$enable_ld; ENABLE_LD=$enableval
3077 else
3078 ENABLE_LD=yes
3082 case "${ENABLE_LD}" in
3083 default)
3084 if test x${default_ld} != x; then
3085 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3088 yes)
3091 if test x${ENABLE_GOLD} != xyes; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3093 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3095 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3098 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3100 esac
3102 # PR gas/19109
3103 # Decide the default method for compressing debug sections.
3104 # Provide a configure time option to override our default.
3105 # Check whether --enable-compressed_debug_sections was given.
3106 if test "${enable_compressed_debug_sections+set}" = set; then :
3107 enableval=$enable_compressed_debug_sections;
3108 if test x"$enable_compressed_debug_sections" = xyes; then
3109 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3112 else
3113 enable_compressed_debug_sections=
3117 # Configure extra directories which are host specific
3119 case "${host}" in
3120 *-cygwin*)
3121 configdirs="$configdirs libtermcap" ;;
3122 esac
3124 # A target can indicate whether a language isn't supported for some reason.
3125 # Only spaces may be used in this macro; not newlines or tabs.
3126 unsupported_languages=
3128 # Remove more programs from consideration, based on the host or
3129 # target this usually means that a port of the program doesn't
3130 # exist yet.
3132 case "${host}" in
3133 i[3456789]86-*-msdosdjgpp*)
3134 noconfigdirs="$noconfigdirs tcl tk itcl"
3136 esac
3139 # Check whether --enable-libquadmath was given.
3140 if test "${enable_libquadmath+set}" = set; then :
3141 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3142 else
3143 ENABLE_LIBQUADMATH=yes
3146 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3147 noconfigdirs="$noconfigdirs target-libquadmath"
3151 # Check whether --enable-libquadmath-support was given.
3152 if test "${enable_libquadmath_support+set}" = set; then :
3153 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3154 else
3155 ENABLE_LIBQUADMATH_SUPPORT=yes
3158 enable_libquadmath_support=
3159 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3160 enable_libquadmath_support=no
3164 # Check whether --enable-libada was given.
3165 if test "${enable_libada+set}" = set; then :
3166 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3167 else
3168 ENABLE_LIBADA=yes
3171 if test "${ENABLE_LIBADA}" != "yes" ; then
3172 noconfigdirs="$noconfigdirs gnattools"
3175 # Check whether --enable-libssp was given.
3176 if test "${enable_libssp+set}" = set; then :
3177 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3178 else
3179 ENABLE_LIBSSP=yes
3183 # Check whether --enable-libstdcxx was given.
3184 if test "${enable_libstdcxx+set}" = set; then :
3185 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3186 else
3187 ENABLE_LIBSTDCXX=default
3190 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3191 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3194 # If this is accelerator compiler and its target is intelmic we enable
3195 # target liboffloadmic by default. If this is compiler with offloading
3196 # for intelmic we enable host liboffloadmic by default. Otherwise
3197 # liboffloadmic is disabled by default.
3198 # Check whether --enable-liboffloadmic was given.
3199 if test "${enable_liboffloadmic+set}" = set; then :
3200 enableval=$enable_liboffloadmic; case "$enableval" in
3201 no | host | target)
3202 enable_liboffloadmic=$enableval ;;
3204 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3205 esac
3206 else
3207 if test x"$enable_as_accelerator_for" != x; then
3208 case "${target}" in
3209 *-intelmic-* | *-intelmicemul-*)
3210 enable_liboffloadmic=target
3211 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3214 enable_liboffloadmic=no
3216 esac
3217 else
3218 case "${enable_offload_targets}" in
3219 *-intelmic-* | *-intelmicemul-*)
3220 enable_liboffloadmic=host
3221 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3224 enable_liboffloadmic=no
3226 esac
3232 # Enable libgomp by default on hosted POSIX systems, and a few others.
3233 if test x$enable_libgomp = x ; then
3234 case "${target}" in
3235 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3237 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3239 *-*-solaris2* | *-*-hpux11*)
3241 *-*-darwin* | *-*-aix*)
3243 nvptx*-*-* | amdgcn*-*-*)
3246 noconfigdirs="$noconfigdirs target-libgomp"
3248 esac
3251 # Disable libatomic on unsupported systems.
3252 if test -d ${srcdir}/libatomic; then
3253 if test x$enable_libatomic = x; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3255 $as_echo_n "checking for libatomic support... " >&6; }
3256 if (srcdir=${srcdir}/libatomic; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-libatomic"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3270 # Disable liboffloadmic on unsupported systems.
3271 if test -d ${srcdir}/liboffloadmic; then
3272 if test x$enable_liboffloadmic != xno; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3274 $as_echo_n "checking for liboffloadmic support... " >&6; }
3275 if (srcdir=${srcdir}/liboffloadmic; \
3276 . ${srcdir}/configure.tgt; \
3277 test -n "$UNSUPPORTED")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-liboffloadmic"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3289 # Disable libitm on unsupported systems.
3290 if test -d ${srcdir}/libitm; then
3291 if test x$enable_libitm = x; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3293 $as_echo_n "checking for libitm support... " >&6; }
3294 if (srcdir=${srcdir}/libitm; \
3295 . ${srcdir}/configure.tgt; \
3296 test -n "$UNSUPPORTED")
3297 then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 noconfigdirs="$noconfigdirs target-libitm"
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3308 # Disable libsanitizer on unsupported systems.
3309 if test -d ${srcdir}/libsanitizer; then
3310 if test x$enable_libsanitizer = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3312 $as_echo_n "checking for libsanitizer support... " >&6; }
3313 if (srcdir=${srcdir}/libsanitizer; \
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-libsanitizer"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3327 # Disable libvtv on unsupported systems.
3328 if test -d ${srcdir}/libvtv; then
3329 if test x$enable_libvtv = x; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3331 $as_echo_n "checking for libvtv support... " >&6; }
3332 if (srcdir=${srcdir}/libvtv; \
3333 . ${srcdir}/configure.tgt; \
3334 test "$VTV_SUPPORTED" != "yes")
3335 then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs="$noconfigdirs target-libvtv"
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3346 # Disable libquadmath for some systems.
3347 case "${target}" in
3348 avr-*-*)
3349 noconfigdirs="$noconfigdirs target-libquadmath"
3351 # libquadmath is unused on AIX and libquadmath build process use of
3352 # LD_LIBRARY_PATH can break AIX bootstrap.
3353 powerpc-*-aix* | rs6000-*-aix*)
3354 noconfigdirs="$noconfigdirs target-libquadmath"
3356 esac
3358 # Disable libssp for some systems.
3359 case "${target}" in
3360 avr-*-*)
3361 # No hosted I/O support.
3362 noconfigdirs="$noconfigdirs target-libssp"
3364 bpf-*-*)
3365 noconfigdirs="$noconfigdirs target-libssp"
3367 powerpc-*-aix* | rs6000-*-aix*)
3368 noconfigdirs="$noconfigdirs target-libssp"
3370 pru-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3374 rl78-*-*)
3375 # libssp uses a misaligned load to trigger a fault, but the RL78
3376 # doesn't fault for those - instead, it gives a build-time error
3377 # for explicit misaligned loads.
3378 noconfigdirs="$noconfigdirs target-libssp"
3380 visium-*-*)
3381 # No hosted I/O support.
3382 noconfigdirs="$noconfigdirs target-libssp"
3384 esac
3386 # Disable libstdc++-v3 for some systems.
3387 # Allow user to override this if they pass --enable-libstdc++-v3
3388 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3389 case "${target}" in
3390 *-*-vxworks*)
3391 # VxWorks uses the Dinkumware C++ library.
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3394 amdgcn*-*-*)
3395 # Not ported/fails to build when using newlib.
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3398 arm*-wince-pe*)
3399 # the C++ libraries don't build on top of CE's C libraries
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 avr-*-*)
3403 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 bpf-*-*)
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 ft32-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411 esac
3414 # Disable C++ on systems where it is known to not work.
3415 # For testing, you can override this with --enable-languages=c++.
3416 case ,${enable_languages}, in
3417 *,c++,*)
3420 case "${target}" in
3421 bpf-*-*)
3422 unsupported_languages="$unsupported_languages c++"
3424 esac
3426 esac
3428 # Disable Objc on systems where it is known to not work.
3429 # For testing, you can override this with --enable-languages=objc.
3430 case ,${enable_languages}, in
3431 *,objc,*)
3434 case "${target}" in
3435 bpf-*-*)
3436 unsupported_languages="$unsupported_languages objc"
3438 esac
3440 esac
3442 # Disable D on systems where it is known to not work.
3443 # For testing, you can override this with --enable-languages=d.
3444 case ,${enable_languages}, in
3445 *,d,*)
3448 case "${target}" in
3449 bpf-*-*)
3450 unsupported_languages="$unsupported_languages d"
3452 esac
3454 esac
3456 # Disable libphobos on unsupported systems.
3457 # For testing, you can override this with --enable-libphobos.
3458 if test -d ${srcdir}/libphobos; then
3459 if test x$enable_libphobos = x; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3461 $as_echo_n "checking for libphobos support... " >&6; }
3462 if (srcdir=${srcdir}/libphobos; \
3463 . ${srcdir}/configure.tgt; \
3464 test "$LIBPHOBOS_SUPPORTED" != "yes")
3465 then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 noconfigdirs="$noconfigdirs target-libphobos"
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471 $as_echo "yes" >&6; }
3476 # Disable Fortran for some systems.
3477 case "${target}" in
3478 mmix-*-*)
3479 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3480 unsupported_languages="$unsupported_languages fortran"
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages fortran"
3485 esac
3487 # Disable libffi for some systems.
3488 case "${target}" in
3489 powerpc-*-darwin*)
3491 i[3456789]86-*-darwin*)
3493 x86_64-*-darwin[912]*)
3495 *-*-darwin*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3498 *-*-netware*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3501 *-*-phoenix*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3504 *-*-rtems*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3507 *-*-tpf*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3510 *-*-uclinux*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3513 *-*-vxworks*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3516 aarch64*-*-freebsd*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3519 alpha*-*-*vms*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3522 arm*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3525 arm-wince-pe)
3526 noconfigdirs="$noconfigdirs target-libffi"
3528 arm*-*-symbianelf*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 bpf-*-*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 cris-*-* | crisv32-*-*)
3535 case "${target}" in
3536 *-*-linux*)
3538 *) # See PR46792 regarding target-libffi.
3539 noconfigdirs="$noconfigdirs target-libffi";;
3540 esac
3542 hppa*64*-*-hpux*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3545 hppa*-hp-hpux11*)
3547 hppa*-*-hpux*)
3548 noconfigdirs="$noconfigdirs target-libffi"
3550 ia64*-*-*vms*)
3551 noconfigdirs="$noconfigdirs target-libffi"
3553 i[3456789]86-w64-mingw*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3556 i[3456789]86-*-mingw*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3559 x86_64-*-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3562 mmix-*-*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3565 powerpc-*-aix*)
3567 rs6000-*-aix*)
3569 ft32-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3572 *-*-lynxos*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3575 esac
3577 # Disable the go frontend on systems where it is known to not work. Please keep
3578 # this in sync with contrib/config-list.mk.
3579 case "${target}" in
3580 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3581 unsupported_languages="$unsupported_languages go"
3583 esac
3585 # Only allow gdbserver on some systems.
3586 if test -d ${srcdir}/gdbserver; then
3587 if test x$enable_gdbserver = x; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3589 $as_echo_n "checking for gdbserver support... " >&6; }
3590 if (srcdir=${srcdir}/gdbserver; \
3591 . ${srcdir}/configure.srv; \
3592 test -n "$UNSUPPORTED")
3593 then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 noconfigdirs="$noconfigdirs gdbserver"
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3599 $as_echo "yes" >&6; }
3604 # Disable libgo for some systems where it is known to not work.
3605 # For testing, you can easily override this with --enable-libgo.
3606 if test x$enable_libgo = x; then
3607 case "${target}" in
3608 *-*-darwin*)
3609 # PR 46986
3610 noconfigdirs="$noconfigdirs target-libgo"
3612 *-*-cygwin* | *-*-mingw*)
3613 noconfigdirs="$noconfigdirs target-libgo"
3615 bpf-*-*)
3616 noconfigdirs="$noconfigdirs target-libgo"
3618 esac
3621 # Default libgloss CPU subdirectory.
3622 libgloss_dir="$target_cpu"
3624 case "${target}" in
3625 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3626 libgloss_dir=wince
3628 aarch64*-*-* )
3629 libgloss_dir=aarch64
3631 arm*-*-*)
3632 libgloss_dir=arm
3634 cris-*-* | crisv32-*-*)
3635 libgloss_dir=cris
3637 hppa*-*-*)
3638 libgloss_dir=pa
3640 i[3456789]86-*-*)
3641 libgloss_dir=i386
3643 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3644 libgloss_dir=m68hc11
3646 m68*-*-* | fido-*-*)
3647 libgloss_dir=m68k
3649 mips*-*-*)
3650 libgloss_dir=mips
3652 powerpc*-*-*)
3653 libgloss_dir=rs6000
3655 pru-*-*)
3656 libgloss_dir=pru
3658 sparc*-*-*)
3659 libgloss_dir=sparc
3661 esac
3663 # Disable newlib and libgloss for various target OSes.
3664 case "${target}" in
3665 alpha*-dec-osf*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 i[3456789]86-*-linux*)
3669 # This section makes it possible to build newlib natively on linux.
3670 # If we are using a cross compiler then don't configure newlib.
3671 if test x${is_cross_compiler} != xno ; then
3672 noconfigdirs="$noconfigdirs target-newlib"
3674 noconfigdirs="$noconfigdirs target-libgloss"
3675 # If we are not using a cross compiler, do configure newlib.
3676 # Note however, that newlib will only be configured in this situation
3677 # if the --with-newlib option has been given, because otherwise
3678 # 'target-newlib' will appear in skipdirs.
3680 i[3456789]86-*-rdos*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 sparc-*-sunos4*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 bpf-*-*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 *-*-aix*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 *-*-beos*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 *-*-chorusos)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 *-*-dragonfly*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 *-*-freebsd*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 *-*-lynxos*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 *-*-mingw*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 *-*-netbsd*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 *-*-netware*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 *-*-tpf*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 *-*-uclinux*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-vxworks*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 esac
3733 case "${target}" in
3734 *-*-chorusos)
3736 aarch64-*-darwin*)
3737 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3738 noconfigdirs="$noconfigdirs sim target-rda"
3740 amdgcn*-*-*)
3742 arm-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3746 powerpc-*-darwin*)
3747 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3748 noconfigdirs="$noconfigdirs sim target-rda"
3750 i[3456789]86-*-darwin*)
3751 noconfigdirs="$noconfigdirs ld gprof"
3752 noconfigdirs="$noconfigdirs sim target-rda"
3754 x86_64-*-darwin[912]*)
3755 noconfigdirs="$noconfigdirs ld gas gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3758 *-*-darwin*)
3759 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs="$noconfigdirs sim target-rda"
3762 *-*-dragonfly*)
3764 *-*-freebsd*)
3765 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3766 && ! test -d ${srcdir}/gmp \
3767 && test -f /usr/local/include/gmp.h; then
3768 with_gmp=/usr/local
3771 *-*-kaos*)
3772 # Remove unsupported stuff on all kaOS configurations.
3773 noconfigdirs="$noconfigdirs target-libgloss"
3775 *-*-netbsd*)
3777 *-*-netware*)
3779 *-*-phoenix*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3782 *-*-rtems*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3785 # The tpf target doesn't support gdb yet.
3786 *-*-tpf*)
3787 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3789 *-*-uclinux*)
3790 noconfigdirs="$noconfigdirs target-rda"
3792 *-*-vxworks*)
3794 alpha*-dec-osf*)
3795 # ld works, but does not support shared libraries.
3796 # gas doesn't generate exception information.
3797 noconfigdirs="$noconfigdirs gas ld"
3799 alpha*-*-*vms*)
3800 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3802 alpha*-*-*)
3803 # newlib is not 64 bit ready
3804 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3806 bpf-*-*)
3807 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3809 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3810 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3812 arc*-*-*)
3813 noconfigdirs="$noconfigdirs sim"
3815 arm-*-pe*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3818 arm-*-riscix*)
3819 noconfigdirs="$noconfigdirs ld target-libgloss"
3821 avr-*-*)
3822 if test x${with_avrlibc} != xno; then
3823 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3826 c4x-*-* | tic4x-*-*)
3827 noconfigdirs="$noconfigdirs target-libgloss"
3829 tic54x-*-*)
3830 noconfigdirs="$noconfigdirs target-libgloss gdb"
3832 d10v-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3835 d30v-*-*)
3836 noconfigdirs="$noconfigdirs gdb"
3838 fr30-*-elf*)
3839 noconfigdirs="$noconfigdirs gdb"
3841 ft32-*-*)
3842 noconfigdirs="$noconfigdirs target-rda gprof"
3844 moxie-*-*)
3845 noconfigdirs="$noconfigdirs"
3847 h8300*-*-*)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3850 h8500-*-*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3853 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3855 hppa*64*-*-hpux*)
3856 noconfigdirs="$noconfigdirs gdb"
3858 hppa*-*-hpux11*)
3859 noconfigdirs="$noconfigdirs gdb ld"
3861 hppa*64*-*-linux*)
3863 hppa*-*-linux*)
3865 hppa*-*-*elf* | \
3866 hppa*-*-lites* | \
3867 hppa*-*-openbsd* | \
3868 hppa*64*-*-*)
3870 hppa*-*-pro*)
3872 hppa*-*-*)
3873 noconfigdirs="$noconfigdirs ld"
3875 i960-*-*)
3876 noconfigdirs="$noconfigdirs gdb"
3878 ia64*-*-elf*)
3879 # No gdb support yet.
3880 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3882 ia64*-**-hpux*)
3883 # No ld support yet.
3884 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3886 ia64*-*-*vms*)
3887 # No ld support yet.
3888 noconfigdirs="$noconfigdirs libgui itcl ld"
3890 i[3456789]86-w64-mingw*)
3892 i[3456789]86-*-mingw*)
3893 target_configdirs="$target_configdirs target-winsup"
3895 *-*-cygwin*)
3896 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3897 noconfigdirs="$noconfigdirs target-libgloss"
3898 # always build newlib if winsup directory is present.
3899 if test -d "$srcdir/winsup/cygwin"; then
3900 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3901 elif test -d "$srcdir/newlib"; then
3902 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3905 i[3456789]86-*-pe)
3906 noconfigdirs="$noconfigdirs target-libgloss"
3908 i[3456789]86-*-sco3.2v5*)
3909 # The linker does not yet know about weak symbols in COFF,
3910 # and is not configured to handle mixed ELF and COFF.
3911 noconfigdirs="$noconfigdirs ld target-libgloss"
3913 i[3456789]86-*-sco*)
3914 noconfigdirs="$noconfigdirs gprof target-libgloss"
3916 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3917 noconfigdirs="$noconfigdirs target-libgloss"
3919 i[3456789]86-*-sysv4*)
3920 noconfigdirs="$noconfigdirs target-libgloss"
3922 i[3456789]86-*-beos*)
3923 noconfigdirs="$noconfigdirs gdb"
3925 i[3456789]86-*-rdos*)
3926 noconfigdirs="$noconfigdirs gdb"
3928 mmix-*-*)
3929 noconfigdirs="$noconfigdirs gdb"
3931 mt-*-*)
3932 noconfigdirs="$noconfigdirs sim"
3934 nfp-*-*)
3935 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3936 noconfigdirs="$noconfigdirs $target_libraries"
3938 pdp11-*-*)
3939 noconfigdirs="$noconfigdirs gdb gprof"
3941 powerpc-*-aix*)
3942 # copied from rs6000-*-* entry
3943 noconfigdirs="$noconfigdirs gprof"
3945 powerpc*-*-winnt* | powerpc*-*-pe*)
3946 target_configdirs="$target_configdirs target-winsup"
3947 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3948 # always build newlib.
3949 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3951 # This is temporary until we can link against shared libraries
3952 powerpcle-*-solaris*)
3953 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3955 powerpc-*-beos*)
3956 noconfigdirs="$noconfigdirs gdb"
3958 rs6000-*-lynxos*)
3959 noconfigdirs="$noconfigdirs gprof"
3961 rs6000-*-aix*)
3962 noconfigdirs="$noconfigdirs gprof"
3964 rs6000-*-*)
3965 noconfigdirs="$noconfigdirs gprof"
3967 m68k-apollo-*)
3968 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3970 microblaze*)
3971 noconfigdirs="$noconfigdirs gprof"
3973 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3974 if test x$with_newlib = xyes; then
3975 noconfigdirs="$noconfigdirs gprof"
3978 mips*-*-irix5*)
3979 noconfigdirs="$noconfigdirs gprof target-libgloss"
3981 mips*-*-irix6*)
3982 noconfigdirs="$noconfigdirs gprof target-libgloss"
3984 mips*-*-bsd*)
3985 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3987 mips*-*-linux*)
3989 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3990 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3991 noconfigdirs="$noconfigdirs ld gas gprof"
3993 mips*-*-*)
3994 noconfigdirs="$noconfigdirs gprof"
3996 nvptx*-*-*)
3997 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3999 sh-*-*)
4000 case "${target}" in
4001 sh*-*-elf)
4004 noconfigdirs="$noconfigdirs target-libgloss" ;;
4005 esac
4007 sparc-*-sunos4*)
4008 if test x${is_cross_compiler} = xno ; then
4009 use_gnu_ld=no
4012 tic6x-*-*)
4013 noconfigdirs="$noconfigdirs sim"
4015 tilepro*-*-* | tilegx*-*-*)
4016 noconfigdirs="$noconfigdirs sim"
4018 v810-*-*)
4019 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4021 vax-*-*)
4022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4024 wasm32-*-*)
4025 noconfigdirs="$noconfigdirs ld"
4027 esac
4029 # If we aren't building newlib, then don't build libgloss, since libgloss
4030 # depends upon some newlib header files.
4031 case "${noconfigdirs}" in
4032 *target-libgloss*) ;;
4033 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4034 esac
4036 # Work in distributions that contain no compiler tools, like Autoconf.
4037 host_makefile_frag=/dev/null
4038 if test -d ${srcdir}/config ; then
4039 case "${host}" in
4040 i[3456789]86-*-msdosdjgpp*)
4041 host_makefile_frag="config/mh-djgpp"
4043 *-cygwin*)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4046 $as_echo_n "checking to see if cat works as expected... " >&6; }
4047 echo a >cygwin-cat-check
4048 if test `cat cygwin-cat-check` = a ; then
4049 rm cygwin-cat-check
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051 $as_echo "yes" >&6; }
4052 else
4053 rm cygwin-cat-check
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 as_fn_error $? "The cat command does not ignore carriage return characters.
4057 Please either mount the build directory in binary mode or run the following
4058 commands before running any configure script:
4059 set -o igncr
4060 export SHELLOPTS
4061 " "$LINENO" 5
4064 host_makefile_frag="config/mh-cygwin"
4066 *-mingw*)
4067 host_makefile_frag="config/mh-mingw"
4069 alpha*-linux*)
4070 host_makefile_frag="config/mh-alpha-linux"
4072 hppa*-hp-hpux10*)
4073 host_makefile_frag="config/mh-pa-hpux10"
4075 hppa*-hp-hpux*)
4076 host_makefile_frag="config/mh-pa"
4078 hppa*-*)
4079 host_makefile_frag="config/mh-pa"
4081 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4082 host_makefile_frag="config/mh-darwin"
4084 powerpc-*-aix*)
4085 host_makefile_frag="config/mh-ppc-aix"
4087 rs6000-*-aix*)
4088 host_makefile_frag="config/mh-ppc-aix"
4090 esac
4093 if test "${build}" != "${host}" ; then
4094 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4095 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4096 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4097 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4098 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4099 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4100 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4101 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4102 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4103 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4104 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4105 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4106 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4107 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4108 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4109 else
4110 AR_FOR_BUILD="\$(AR)"
4111 AS_FOR_BUILD="\$(AS)"
4112 CC_FOR_BUILD="\$(CC)"
4113 CXX_FOR_BUILD="\$(CXX)"
4114 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4115 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4116 GOC_FOR_BUILD="\$(GOC)"
4117 GDC_FOR_BUILD="\$(GDC)"
4118 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4119 LD_FOR_BUILD="\$(LD)"
4120 NM_FOR_BUILD="\$(NM)"
4121 RANLIB_FOR_BUILD="\$(RANLIB)"
4122 WINDRES_FOR_BUILD="\$(WINDRES)"
4123 WINDMC_FOR_BUILD="\$(WINDMC)"
4126 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 $as_echo_n "checking for $ac_word... " >&6; }
4136 if ${ac_cv_prog_CC+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4153 done
4154 done
4155 IFS=$as_save_IFS
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162 $as_echo "$CC" >&6; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4170 if test -z "$ac_cv_prog_CC"; then
4171 ac_ct_CC=$CC
4172 # Extract the first word of "gcc", so it can be a program name with args.
4173 set dummy gcc; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_CC="gcc"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4195 IFS=$as_save_IFS
4199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4200 if test -n "$ac_ct_CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4202 $as_echo "$ac_ct_CC" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4208 if test "x$ac_ct_CC" = x; then
4209 CC=""
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217 CC=$ac_ct_CC
4219 else
4220 CC="$ac_cv_prog_CC"
4223 if test -z "$CC"; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}cc; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if ${ac_cv_prog_CC+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_CC="${ac_tool_prefix}cc"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 CC=$ac_cv_prog_CC
4253 if test -n "$CC"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4255 $as_echo "$CC" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4264 if test -z "$CC"; then
4265 # Extract the first word of "cc", so it can be a program name with args.
4266 set dummy cc; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_CC+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$CC"; then
4273 ac_cv_prog_CC="$CC" # Let the user override the test.
4274 else
4275 ac_prog_rejected=no
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4284 ac_prog_rejected=yes
4285 continue
4287 ac_cv_prog_CC="cc"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4295 if test $ac_prog_rejected = yes; then
4296 # We found a bogon in the path, so make sure we never use it.
4297 set dummy $ac_cv_prog_CC
4298 shift
4299 if test $# != 0; then
4300 # We chose a different compiler from the bogus one.
4301 # However, it has the same basename, so the bogon will be chosen
4302 # first if we set CC to just the basename; use the full file name.
4303 shift
4304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4312 $as_echo "$CC" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4320 if test -z "$CC"; then
4321 if test -n "$ac_tool_prefix"; then
4322 for ac_prog in cl.exe
4324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_CC+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 CC=$ac_cv_prog_CC
4352 if test -n "$CC"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4354 $as_echo "$CC" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4361 test -n "$CC" && break
4362 done
4364 if test -z "$CC"; then
4365 ac_ct_CC=$CC
4366 for ac_prog in cl.exe
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369 set dummy $ac_prog; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -n "$ac_ct_CC"; then
4376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_ac_ct_CC="$ac_prog"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4391 IFS=$as_save_IFS
4395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4396 if test -n "$ac_ct_CC"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4398 $as_echo "$ac_ct_CC" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4405 test -n "$ac_ct_CC" && break
4406 done
4408 if test "x$ac_ct_CC" = x; then
4409 CC=""
4410 else
4411 case $cross_compiling:$ac_tool_warned in
4412 yes:)
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4415 ac_tool_warned=yes ;;
4416 esac
4417 CC=$ac_ct_CC
4424 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error $? "no acceptable C compiler found in \$PATH
4427 See \`config.log' for more details" "$LINENO" 5; }
4429 # Provide some information about the compiler.
4430 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4431 set X $ac_compile
4432 ac_compiler=$2
4433 for ac_option in --version -v -V -qversion; do
4434 { { ac_try="$ac_compiler $ac_option >&5"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4442 ac_status=$?
4443 if test -s conftest.err; then
4444 sed '10a\
4445 ... rest of stderr output deleted ...
4446 10q' conftest.err >conftest.er1
4447 cat conftest.er1 >&5
4449 rm -f conftest.er1 conftest.err
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452 done
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4458 main ()
4462 return 0;
4464 _ACEOF
4465 ac_clean_files_save=$ac_clean_files
4466 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4467 # Try to create an executable without -o first, disregard a.out.
4468 # It will help us diagnose broken compilers, and finding out an intuition
4469 # of exeext.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4471 $as_echo_n "checking whether the C compiler works... " >&6; }
4472 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4474 # The possible output files:
4475 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4477 ac_rmfiles=
4478 for ac_file in $ac_files
4480 case $ac_file in
4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4483 esac
4484 done
4485 rm -f $ac_rmfiles
4487 if { { ac_try="$ac_link_default"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_link_default") 2>&5
4495 ac_status=$?
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }; then :
4498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4499 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4500 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4501 # so that the user can short-circuit this test for compilers unknown to
4502 # Autoconf.
4503 for ac_file in $ac_files ''
4505 test -f "$ac_file" || continue
4506 case $ac_file in
4507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4509 [ab].out )
4510 # We found the default executable, but exeext='' is most
4511 # certainly right.
4512 break;;
4513 *.* )
4514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4515 then :; else
4516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4518 # We set ac_cv_exeext here because the later test for it is not
4519 # safe: cross compilers may not add the suffix if given an `-o'
4520 # argument, so we may need to know it at that point already.
4521 # Even if this section looks crufty: it has the advantage of
4522 # actually working.
4523 break;;
4525 break;;
4526 esac
4527 done
4528 test "$ac_cv_exeext" = no && ac_cv_exeext=
4530 else
4531 ac_file=''
4533 if test -z "$ac_file"; then :
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error 77 "C compiler cannot create executables
4542 See \`config.log' for more details" "$LINENO" 5; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545 $as_echo "yes" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4548 $as_echo_n "checking for C compiler default output file name... " >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4550 $as_echo "$ac_file" >&6; }
4551 ac_exeext=$ac_cv_exeext
4553 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4554 ac_clean_files=$ac_clean_files_save
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4556 $as_echo_n "checking for suffix of executables... " >&6; }
4557 if { { ac_try="$ac_link"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_link") 2>&5
4565 ac_status=$?
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4570 # work properly (i.e., refer to `conftest.exe'), while it won't with
4571 # `rm'.
4572 for ac_file in conftest.exe conftest conftest.*; do
4573 test -f "$ac_file" || continue
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4577 break;;
4578 * ) break;;
4579 esac
4580 done
4581 else
4582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4584 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4585 See \`config.log' for more details" "$LINENO" 5; }
4587 rm -f conftest conftest$ac_cv_exeext
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4589 $as_echo "$ac_cv_exeext" >&6; }
4591 rm -f conftest.$ac_ext
4592 EXEEXT=$ac_cv_exeext
4593 ac_exeext=$EXEEXT
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <stdio.h>
4598 main ()
4600 FILE *f = fopen ("conftest.out", "w");
4601 return ferror (f) || fclose (f) != 0;
4604 return 0;
4606 _ACEOF
4607 ac_clean_files="$ac_clean_files conftest.out"
4608 # Check that the compiler produces executables we can run. If not, either
4609 # the compiler is broken, or we cross compile.
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4611 $as_echo_n "checking whether we are cross compiling... " >&6; }
4612 if test "$cross_compiling" != yes; then
4613 { { ac_try="$ac_link"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619 $as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_link") 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }
4624 if { ac_try='./conftest$ac_cv_exeext'
4625 { { case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630 $as_echo "$ac_try_echo"; } >&5
4631 (eval "$ac_try") 2>&5
4632 ac_status=$?
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }; }; then
4635 cross_compiling=no
4636 else
4637 if test "$cross_compiling" = maybe; then
4638 cross_compiling=yes
4639 else
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot run C compiled programs.
4643 If you meant to cross compile, use \`--host'.
4644 See \`config.log' for more details" "$LINENO" 5; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4649 $as_echo "$cross_compiling" >&6; }
4651 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4652 ac_clean_files=$ac_clean_files_save
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4654 $as_echo_n "checking for suffix of object files... " >&6; }
4655 if ${ac_cv_objext+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4662 main ()
4666 return 0;
4668 _ACEOF
4669 rm -f conftest.o conftest.obj
4670 if { { ac_try="$ac_compile"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676 $as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_compile") 2>&5
4678 ac_status=$?
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }; then :
4681 for ac_file in conftest.o conftest.obj conftest.*; do
4682 test -f "$ac_file" || continue;
4683 case $ac_file in
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686 break;;
4687 esac
4688 done
4689 else
4690 $as_echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4695 as_fn_error $? "cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details" "$LINENO" 5; }
4698 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4701 $as_echo "$ac_cv_objext" >&6; }
4702 OBJEXT=$ac_cv_objext
4703 ac_objext=$OBJEXT
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4705 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4706 if ${ac_cv_c_compiler_gnu+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4713 main ()
4715 #ifndef __GNUC__
4716 choke me
4717 #endif
4720 return 0;
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_compiler_gnu=yes
4725 else
4726 ac_compiler_gnu=no
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4734 if test $ac_compiler_gnu = yes; then
4735 GCC=yes
4736 else
4737 GCC=
4739 ac_test_CFLAGS=${CFLAGS+set}
4740 ac_save_CFLAGS=$CFLAGS
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4743 if ${ac_cv_prog_cc_g+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 ac_save_c_werror_flag=$ac_c_werror_flag
4747 ac_c_werror_flag=yes
4748 ac_cv_prog_cc_g=no
4749 CFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4754 main ()
4758 return 0;
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_g=yes
4763 else
4764 CFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4769 main ()
4773 return 0;
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4778 else
4779 ac_c_werror_flag=$ac_save_c_werror_flag
4780 CFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4785 main ()
4789 return 0;
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_g=yes
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4803 $as_echo "$ac_cv_prog_cc_g" >&6; }
4804 if test "$ac_test_CFLAGS" = set; then
4805 CFLAGS=$ac_save_CFLAGS
4806 elif test $ac_cv_prog_cc_g = yes; then
4807 if test "$GCC" = yes; then
4808 CFLAGS="-g -O2"
4809 else
4810 CFLAGS="-g"
4812 else
4813 if test "$GCC" = yes; then
4814 CFLAGS="-O2"
4815 else
4816 CFLAGS=
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4821 if ${ac_cv_prog_cc_c89+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 ac_cv_prog_cc_c89=no
4825 ac_save_CC=$CC
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <stdarg.h>
4829 #include <stdio.h>
4830 struct stat;
4831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4832 struct buf { int x; };
4833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4834 static char *e (p, i)
4835 char **p;
4836 int i;
4838 return p[i];
4840 static char *f (char * (*g) (char **, int), char **p, ...)
4842 char *s;
4843 va_list v;
4844 va_start (v,p);
4845 s = g (p, va_arg (v,int));
4846 va_end (v);
4847 return s;
4850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4851 function prototypes and stuff, but not '\xHH' hex character constants.
4852 These don't provoke an error unfortunately, instead are silently treated
4853 as 'x'. The following induces an error, until -std is added to get
4854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4855 array size at least. It's necessary to write '\x00'==0 to get something
4856 that's true only with -std. */
4857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4860 inside strings and character constants. */
4861 #define FOO(x) 'x'
4862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4864 int test (int i, double x);
4865 struct s1 {int (*f) (int a);};
4866 struct s2 {int (*f) (double a);};
4867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4868 int argc;
4869 char **argv;
4871 main ()
4873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4875 return 0;
4877 _ACEOF
4878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4881 CC="$ac_save_CC $ac_arg"
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_prog_cc_c89=$ac_arg
4885 rm -f core conftest.err conftest.$ac_objext
4886 test "x$ac_cv_prog_cc_c89" != "xno" && break
4887 done
4888 rm -f conftest.$ac_ext
4889 CC=$ac_save_CC
4892 # AC_CACHE_VAL
4893 case "x$ac_cv_prog_cc_c89" in
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4896 $as_echo "none needed" >&6; } ;;
4897 xno)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4899 $as_echo "unsupported" >&6; } ;;
4901 CC="$CC $ac_cv_prog_cc_c89"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4904 esac
4905 if test "x$ac_cv_prog_cc_c89" != xno; then :
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4916 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4917 if ${ac_cv_prog_cc_c99+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 ac_cv_prog_cc_c99=no
4921 ac_save_CC=$CC
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <stdarg.h>
4925 #include <stdbool.h>
4926 #include <stdlib.h>
4927 #include <wchar.h>
4928 #include <stdio.h>
4930 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4931 #define debug(...) fprintf (stderr, __VA_ARGS__)
4932 #define showlist(...) puts (#__VA_ARGS__)
4933 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4934 static void
4935 test_varargs_macros (void)
4937 int x = 1234;
4938 int y = 5678;
4939 debug ("Flag");
4940 debug ("X = %d\n", x);
4941 showlist (The first, second, and third items.);
4942 report (x>y, "x is %d but y is %d", x, y);
4945 // Check long long types.
4946 #define BIG64 18446744073709551615ull
4947 #define BIG32 4294967295ul
4948 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4949 #if !BIG_OK
4950 your preprocessor is broken;
4951 #endif
4952 #if BIG_OK
4953 #else
4954 your preprocessor is broken;
4955 #endif
4956 static long long int bignum = -9223372036854775807LL;
4957 static unsigned long long int ubignum = BIG64;
4959 struct incomplete_array
4961 int datasize;
4962 double data[];
4965 struct named_init {
4966 int number;
4967 const wchar_t *name;
4968 double average;
4971 typedef const char *ccp;
4973 static inline int
4974 test_restrict (ccp restrict text)
4976 // See if C++-style comments work.
4977 // Iterate through items via the restricted pointer.
4978 // Also check for declarations in for loops.
4979 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4980 continue;
4981 return 0;
4984 // Check varargs and va_copy.
4985 static void
4986 test_varargs (const char *format, ...)
4988 va_list args;
4989 va_start (args, format);
4990 va_list args_copy;
4991 va_copy (args_copy, args);
4993 const char *str;
4994 int number;
4995 float fnumber;
4997 while (*format)
4999 switch (*format++)
5001 case 's': // string
5002 str = va_arg (args_copy, const char *);
5003 break;
5004 case 'd': // int
5005 number = va_arg (args_copy, int);
5006 break;
5007 case 'f': // float
5008 fnumber = va_arg (args_copy, double);
5009 break;
5010 default:
5011 break;
5014 va_end (args_copy);
5015 va_end (args);
5019 main ()
5022 // Check bool.
5023 _Bool success = false;
5025 // Check restrict.
5026 if (test_restrict ("String literal") == 0)
5027 success = true;
5028 char *restrict newvar = "Another string";
5030 // Check varargs.
5031 test_varargs ("s, d' f .", "string", 65, 34.234);
5032 test_varargs_macros ();
5034 // Check flexible array members.
5035 struct incomplete_array *ia =
5036 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5037 ia->datasize = 10;
5038 for (int i = 0; i < ia->datasize; ++i)
5039 ia->data[i] = i * 1.234;
5041 // Check named initializers.
5042 struct named_init ni = {
5043 .number = 34,
5044 .name = L"Test wide string",
5045 .average = 543.34343,
5048 ni.number = 58;
5050 int dynamic_array[ni.number];
5051 dynamic_array[ni.number - 1] = 543;
5053 // work around unused variable warnings
5054 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5055 || dynamic_array[ni.number - 1] != 543);
5058 return 0;
5060 _ACEOF
5061 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5063 CC="$ac_save_CC $ac_arg"
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 ac_cv_prog_cc_c99=$ac_arg
5067 rm -f core conftest.err conftest.$ac_objext
5068 test "x$ac_cv_prog_cc_c99" != "xno" && break
5069 done
5070 rm -f conftest.$ac_ext
5071 CC=$ac_save_CC
5074 # AC_CACHE_VAL
5075 case "x$ac_cv_prog_cc_c99" in
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5078 $as_echo "none needed" >&6; } ;;
5079 xno)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5081 $as_echo "unsupported" >&6; } ;;
5083 CC="$CC $ac_cv_prog_cc_c99"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5085 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5086 esac
5087 if test "x$ac_cv_prog_cc_c99" != xno; then :
5092 ac_ext=cpp
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097 if test -z "$CXX"; then
5098 if test -n "$CCC"; then
5099 CXX=$CCC
5100 else
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CXX+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CXX"; then
5112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 CXX=$ac_cv_prog_CXX
5132 if test -n "$CXX"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5134 $as_echo "$CXX" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$CXX" && break
5142 done
5144 if test -z "$CXX"; then
5145 ac_ct_CXX=$CXX
5146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_CXX"; then
5156 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ac_ct_CXX="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5176 if test -n "$ac_ct_CXX"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5178 $as_echo "$ac_ct_CXX" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$ac_ct_CXX" && break
5186 done
5188 if test "x$ac_ct_CXX" = x; then
5189 CXX="g++"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 CXX=$ac_ct_CXX
5203 # Provide some information about the compiler.
5204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5205 set X $ac_compile
5206 ac_compiler=$2
5207 for ac_option in --version -v -V -qversion; do
5208 { { ac_try="$ac_compiler $ac_option >&5"
5209 case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212 esac
5213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5214 $as_echo "$ac_try_echo"; } >&5
5215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5216 ac_status=$?
5217 if test -s conftest.err; then
5218 sed '10a\
5219 ... rest of stderr output deleted ...
5220 10q' conftest.err >conftest.er1
5221 cat conftest.er1 >&5
5223 rm -f conftest.er1 conftest.err
5224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; }
5226 done
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5229 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5230 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5237 main ()
5239 #ifndef __GNUC__
5240 choke me
5241 #endif
5244 return 0;
5246 _ACEOF
5247 if ac_fn_cxx_try_compile "$LINENO"; then :
5248 ac_compiler_gnu=yes
5249 else
5250 ac_compiler_gnu=no
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5257 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5258 if test $ac_compiler_gnu = yes; then
5259 GXX=yes
5260 else
5261 GXX=
5263 ac_test_CXXFLAGS=${CXXFLAGS+set}
5264 ac_save_CXXFLAGS=$CXXFLAGS
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5266 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5267 if ${ac_cv_prog_cxx_g+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5271 ac_cxx_werror_flag=yes
5272 ac_cv_prog_cxx_g=no
5273 CXXFLAGS="-g"
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5278 main ()
5282 return 0;
5284 _ACEOF
5285 if ac_fn_cxx_try_compile "$LINENO"; then :
5286 ac_cv_prog_cxx_g=yes
5287 else
5288 CXXFLAGS=""
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5293 main ()
5297 return 0;
5299 _ACEOF
5300 if ac_fn_cxx_try_compile "$LINENO"; then :
5302 else
5303 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5304 CXXFLAGS="-g"
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5309 main ()
5313 return 0;
5315 _ACEOF
5316 if ac_fn_cxx_try_compile "$LINENO"; then :
5317 ac_cv_prog_cxx_g=yes
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5327 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5328 if test "$ac_test_CXXFLAGS" = set; then
5329 CXXFLAGS=$ac_save_CXXFLAGS
5330 elif test $ac_cv_prog_cxx_g = yes; then
5331 if test "$GXX" = yes; then
5332 CXXFLAGS="-g -O2"
5333 else
5334 CXXFLAGS="-g"
5336 else
5337 if test "$GXX" = yes; then
5338 CXXFLAGS="-O2"
5339 else
5340 CXXFLAGS=
5343 ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350 # We must set the default linker to the linker used by gcc for the correct
5351 # operation of libtool. If LD is not defined and we are using gcc, try to
5352 # set the LD default to the ld used by gcc.
5353 if test -z "$LD"; then
5354 if test "$GCC" = yes; then
5355 case $build in
5356 *-*-mingw*)
5357 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5359 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5360 esac
5361 case $gcc_prog_ld in
5362 # Accept absolute paths.
5363 [\\/]* | [A-Za-z]:[\\/]*)
5364 LD="$gcc_prog_ld" ;;
5365 esac
5369 # Check whether -static-libstdc++ -static-libgcc is supported.
5370 have_static_libs=no
5371 if test "$GCC" = yes; then
5372 saved_LDFLAGS="$LDFLAGS"
5374 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5376 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5377 ac_ext=cpp
5378 ac_cpp='$CXXCPP $CPPFLAGS'
5379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5387 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5388 #error -static-libstdc++ not implemented
5389 #endif
5390 int main() {}
5391 _ACEOF
5392 if ac_fn_cxx_try_link "$LINENO"; then :
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394 $as_echo "yes" >&6; }; have_static_libs=yes
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5399 rm -f core conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408 LDFLAGS="$saved_LDFLAGS"
5414 if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5416 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_GNATBIND+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$GNATBIND"; then
5423 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 GNATBIND=$ac_cv_prog_GNATBIND
5443 if test -n "$GNATBIND"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5445 $as_echo "$GNATBIND" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5453 if test -z "$ac_cv_prog_GNATBIND"; then
5454 ac_ct_GNATBIND=$GNATBIND
5455 # Extract the first word of "gnatbind", so it can be a program name with args.
5456 set dummy gnatbind; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$ac_ct_GNATBIND"; then
5463 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5476 done
5477 done
5478 IFS=$as_save_IFS
5482 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5483 if test -n "$ac_ct_GNATBIND"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5485 $as_echo "$ac_ct_GNATBIND" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5491 if test "x$ac_ct_GNATBIND" = x; then
5492 GNATBIND="no"
5493 else
5494 case $cross_compiling:$ac_tool_warned in
5495 yes:)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5499 esac
5500 GNATBIND=$ac_ct_GNATBIND
5502 else
5503 GNATBIND="$ac_cv_prog_GNATBIND"
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_GNATMAKE+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$GNATMAKE"; then
5515 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5528 done
5529 done
5530 IFS=$as_save_IFS
5534 GNATMAKE=$ac_cv_prog_GNATMAKE
5535 if test -n "$GNATMAKE"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5537 $as_echo "$GNATMAKE" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5545 if test -z "$ac_cv_prog_GNATMAKE"; then
5546 ac_ct_GNATMAKE=$GNATMAKE
5547 # Extract the first word of "gnatmake", so it can be a program name with args.
5548 set dummy gnatmake; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$ac_ct_GNATMAKE"; then
5555 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5570 IFS=$as_save_IFS
5574 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5575 if test -n "$ac_ct_GNATMAKE"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5577 $as_echo "$ac_ct_GNATMAKE" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5583 if test "x$ac_ct_GNATMAKE" = x; then
5584 GNATMAKE="no"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 GNATMAKE=$ac_ct_GNATMAKE
5594 else
5595 GNATMAKE="$ac_cv_prog_GNATMAKE"
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5599 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5600 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 cat >conftest.adb <<EOF
5604 procedure conftest is begin null; end conftest;
5606 acx_cv_cc_gcc_supports_ada=no
5607 # There is a bug in old released versions of GCC which causes the
5608 # driver to exit successfully when the appropriate language module
5609 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5610 # Therefore we must check for the error message as well as an
5611 # unsuccessful exit.
5612 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5613 # given a .adb file, but produce no object file. So we must check
5614 # if an object file was really produced to guard against this.
5615 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5616 if test x"$errors" = x && test -f conftest.$ac_objext; then
5617 acx_cv_cc_gcc_supports_ada=yes
5619 rm -f conftest.*
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5622 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5624 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5625 have_gnat=yes
5626 else
5627 have_gnat=no
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_GDC+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$GDC"; then
5641 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5654 done
5655 done
5656 IFS=$as_save_IFS
5660 GDC=$ac_cv_prog_GDC
5661 if test -n "$GDC"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5663 $as_echo "$GDC" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5671 if test -z "$ac_cv_prog_GDC"; then
5672 ac_ct_GDC=$GDC
5673 # Extract the first word of "gdc", so it can be a program name with args.
5674 set dummy gdc; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -n "$ac_ct_GDC"; then
5681 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_GDC="gdc"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5694 done
5695 done
5696 IFS=$as_save_IFS
5700 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5701 if test -n "$ac_ct_GDC"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5703 $as_echo "$ac_ct_GDC" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5709 if test "x$ac_ct_GDC" = x; then
5710 GDC="no"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713 yes:)
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718 GDC=$ac_ct_GDC
5720 else
5721 GDC="$ac_cv_prog_GDC"
5724 if test "x$GDC" != xno; then
5725 have_gdc=yes
5726 else
5727 have_gdc=no
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5731 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5732 if ${gcc_cv_prog_cmp_skip+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 echo abfoo >t1
5736 echo cdfoo >t2
5737 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5738 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5739 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5741 else
5742 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5745 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5746 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5748 else
5749 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5752 rm t1 t2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5756 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5757 do_compare="$gcc_cv_prog_cmp_skip"
5761 # Check whether --enable-bootstrap was given.
5762 if test "${enable_bootstrap+set}" = set; then :
5763 enableval=$enable_bootstrap;
5764 else
5765 enable_bootstrap=default
5769 # Issue errors and warnings for invalid/strange bootstrap combinations.
5770 if test -r $srcdir/gcc/configure; then
5771 have_compiler=yes
5772 else
5773 have_compiler=no
5776 case "$have_compiler:$host:$target:$enable_bootstrap" in
5777 *:*:*:no) ;;
5779 # Default behavior. Enable bootstrap if we have a compiler
5780 # and we are in a native configuration.
5781 yes:$build:$build:default)
5782 enable_bootstrap=yes ;;
5784 *:*:*:default)
5785 enable_bootstrap=no ;;
5787 # We have a compiler and we are in a native configuration, bootstrap is ok
5788 yes:$build:$build:yes)
5791 # Other configurations, but we have a compiler. Assume the user knows
5792 # what he's doing.
5793 yes:*:*:yes)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5795 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5798 # No compiler: if they passed --enable-bootstrap explicitly, fail
5799 no:*:*:yes)
5800 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5802 # Fail if wrong command line
5804 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5806 esac
5808 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5809 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5810 # require C++11 (or higher).
5811 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5812 CXX="$CXX -std=c++11"
5813 elif test "$have_compiler" = yes; then
5814 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5815 ac_ext=cpp
5816 ac_cpp='$CXXCPP $CPPFLAGS'
5817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5820 ac_success=no
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5823 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5824 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5831 // If the compiler admits that it is not ready for C++11, why torture it?
5832 // Hopefully, this will speed up the test.
5834 #ifndef __cplusplus
5836 #error "This is not a C++ compiler"
5838 #elif __cplusplus < 201103L
5840 #error "This is not a C++11 compiler"
5842 #else
5844 namespace cxx11
5847 namespace test_static_assert
5850 template <typename T>
5851 struct check
5853 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5858 namespace test_final_override
5861 struct Base
5863 virtual ~Base() {}
5864 virtual void f() {}
5867 struct Derived : public Base
5869 virtual ~Derived() override {}
5870 virtual void f() override {}
5875 namespace test_double_right_angle_brackets
5878 template < typename T >
5879 struct check {};
5881 typedef check<void> single_type;
5882 typedef check<check<void>> double_type;
5883 typedef check<check<check<void>>> triple_type;
5884 typedef check<check<check<check<void>>>> quadruple_type;
5888 namespace test_decltype
5894 int a = 1;
5895 decltype(a) b = 2;
5896 return a + b;
5901 namespace test_type_deduction
5904 template < typename T1, typename T2 >
5905 struct is_same
5907 static const bool value = false;
5910 template < typename T >
5911 struct is_same<T, T>
5913 static const bool value = true;
5916 template < typename T1, typename T2 >
5917 auto
5918 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5920 return a1 + a2;
5924 test(const int c, volatile int v)
5926 static_assert(is_same<int, decltype(0)>::value == true, "");
5927 static_assert(is_same<int, decltype(c)>::value == false, "");
5928 static_assert(is_same<int, decltype(v)>::value == false, "");
5929 auto ac = c;
5930 auto av = v;
5931 auto sumi = ac + av + 'x';
5932 auto sumf = ac + av + 1.0;
5933 static_assert(is_same<int, decltype(ac)>::value == true, "");
5934 static_assert(is_same<int, decltype(av)>::value == true, "");
5935 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5936 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5937 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5938 return (sumf > 0.0) ? sumi : add(c, v);
5943 namespace test_noexcept
5946 int f() { return 0; }
5947 int g() noexcept { return 0; }
5949 static_assert(noexcept(f()) == false, "");
5950 static_assert(noexcept(g()) == true, "");
5954 namespace test_constexpr
5957 template < typename CharT >
5958 unsigned long constexpr
5959 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5961 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5964 template < typename CharT >
5965 unsigned long constexpr
5966 strlen_c(const CharT *const s) noexcept
5968 return strlen_c_r(s, 0UL);
5971 static_assert(strlen_c("") == 0UL, "");
5972 static_assert(strlen_c("1") == 1UL, "");
5973 static_assert(strlen_c("example") == 7UL, "");
5974 static_assert(strlen_c("another\0example") == 7UL, "");
5978 namespace test_rvalue_references
5981 template < int N >
5982 struct answer
5984 static constexpr int value = N;
5987 answer<1> f(int&) { return answer<1>(); }
5988 answer<2> f(const int&) { return answer<2>(); }
5989 answer<3> f(int&&) { return answer<3>(); }
5991 void
5992 test()
5994 int i = 0;
5995 const int c = 0;
5996 static_assert(decltype(f(i))::value == 1, "");
5997 static_assert(decltype(f(c))::value == 2, "");
5998 static_assert(decltype(f(0))::value == 3, "");
6003 namespace test_uniform_initialization
6006 struct test
6008 static const int zero {};
6009 static const int one {1};
6012 static_assert(test::zero == 0, "");
6013 static_assert(test::one == 1, "");
6017 namespace test_lambdas
6020 void
6021 test1()
6023 auto lambda1 = [](){};
6024 auto lambda2 = lambda1;
6025 lambda1();
6026 lambda2();
6030 test2()
6032 auto a = [](int i, int j){ return i + j; }(1, 2);
6033 auto b = []() -> int { return '0'; }();
6034 auto c = [=](){ return a + b; }();
6035 auto d = [&](){ return c; }();
6036 auto e = [a, &b](int x) mutable {
6037 const auto identity = [](int y){ return y; };
6038 for (auto i = 0; i < a; ++i)
6039 a += b--;
6040 return x + identity(a + b);
6041 }(0);
6042 return a + b + c + d + e;
6046 test3()
6048 const auto nullary = [](){ return 0; };
6049 const auto unary = [](int x){ return x; };
6050 using nullary_t = decltype(nullary);
6051 using unary_t = decltype(unary);
6052 const auto higher1st = [](nullary_t f){ return f(); };
6053 const auto higher2nd = [unary](nullary_t f1){
6054 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6056 return higher1st(nullary) + higher2nd(nullary)(unary);
6061 namespace test_variadic_templates
6064 template <int...>
6065 struct sum;
6067 template <int N0, int... N1toN>
6068 struct sum<N0, N1toN...>
6070 static constexpr auto value = N0 + sum<N1toN...>::value;
6073 template <>
6074 struct sum<>
6076 static constexpr auto value = 0;
6079 static_assert(sum<>::value == 0, "");
6080 static_assert(sum<1>::value == 1, "");
6081 static_assert(sum<23>::value == 23, "");
6082 static_assert(sum<1, 2>::value == 3, "");
6083 static_assert(sum<5, 5, 11>::value == 21, "");
6084 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6088 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6089 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6090 // because of this.
6091 namespace test_template_alias_sfinae
6094 struct foo {};
6096 template<typename T>
6097 using member = typename T::member_type;
6099 template<typename T>
6100 void func(...) {}
6102 template<typename T>
6103 void func(member<T>*) {}
6105 void test();
6107 void test() { func<foo>(0); }
6111 } // namespace cxx11
6113 #endif // __cplusplus >= 201103L
6117 _ACEOF
6118 if ac_fn_cxx_try_compile "$LINENO"; then :
6119 ax_cv_cxx_compile_cxx11=yes
6120 else
6121 ax_cv_cxx_compile_cxx11=no
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6126 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6127 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6128 ac_success=yes
6131 if test x$ac_success = xno; then
6132 for alternative in ${ax_cxx_compile_alternatives}; do
6133 switch="-std=gnu++${alternative}"
6134 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6136 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6137 if eval \${$cachevar+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 ac_save_CXX="$CXX"
6141 CXX="$CXX $switch"
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6146 // If the compiler admits that it is not ready for C++11, why torture it?
6147 // Hopefully, this will speed up the test.
6149 #ifndef __cplusplus
6151 #error "This is not a C++ compiler"
6153 #elif __cplusplus < 201103L
6155 #error "This is not a C++11 compiler"
6157 #else
6159 namespace cxx11
6162 namespace test_static_assert
6165 template <typename T>
6166 struct check
6168 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6173 namespace test_final_override
6176 struct Base
6178 virtual ~Base() {}
6179 virtual void f() {}
6182 struct Derived : public Base
6184 virtual ~Derived() override {}
6185 virtual void f() override {}
6190 namespace test_double_right_angle_brackets
6193 template < typename T >
6194 struct check {};
6196 typedef check<void> single_type;
6197 typedef check<check<void>> double_type;
6198 typedef check<check<check<void>>> triple_type;
6199 typedef check<check<check<check<void>>>> quadruple_type;
6203 namespace test_decltype
6209 int a = 1;
6210 decltype(a) b = 2;
6211 return a + b;
6216 namespace test_type_deduction
6219 template < typename T1, typename T2 >
6220 struct is_same
6222 static const bool value = false;
6225 template < typename T >
6226 struct is_same<T, T>
6228 static const bool value = true;
6231 template < typename T1, typename T2 >
6232 auto
6233 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6235 return a1 + a2;
6239 test(const int c, volatile int v)
6241 static_assert(is_same<int, decltype(0)>::value == true, "");
6242 static_assert(is_same<int, decltype(c)>::value == false, "");
6243 static_assert(is_same<int, decltype(v)>::value == false, "");
6244 auto ac = c;
6245 auto av = v;
6246 auto sumi = ac + av + 'x';
6247 auto sumf = ac + av + 1.0;
6248 static_assert(is_same<int, decltype(ac)>::value == true, "");
6249 static_assert(is_same<int, decltype(av)>::value == true, "");
6250 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6251 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6252 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6253 return (sumf > 0.0) ? sumi : add(c, v);
6258 namespace test_noexcept
6261 int f() { return 0; }
6262 int g() noexcept { return 0; }
6264 static_assert(noexcept(f()) == false, "");
6265 static_assert(noexcept(g()) == true, "");
6269 namespace test_constexpr
6272 template < typename CharT >
6273 unsigned long constexpr
6274 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6276 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6279 template < typename CharT >
6280 unsigned long constexpr
6281 strlen_c(const CharT *const s) noexcept
6283 return strlen_c_r(s, 0UL);
6286 static_assert(strlen_c("") == 0UL, "");
6287 static_assert(strlen_c("1") == 1UL, "");
6288 static_assert(strlen_c("example") == 7UL, "");
6289 static_assert(strlen_c("another\0example") == 7UL, "");
6293 namespace test_rvalue_references
6296 template < int N >
6297 struct answer
6299 static constexpr int value = N;
6302 answer<1> f(int&) { return answer<1>(); }
6303 answer<2> f(const int&) { return answer<2>(); }
6304 answer<3> f(int&&) { return answer<3>(); }
6306 void
6307 test()
6309 int i = 0;
6310 const int c = 0;
6311 static_assert(decltype(f(i))::value == 1, "");
6312 static_assert(decltype(f(c))::value == 2, "");
6313 static_assert(decltype(f(0))::value == 3, "");
6318 namespace test_uniform_initialization
6321 struct test
6323 static const int zero {};
6324 static const int one {1};
6327 static_assert(test::zero == 0, "");
6328 static_assert(test::one == 1, "");
6332 namespace test_lambdas
6335 void
6336 test1()
6338 auto lambda1 = [](){};
6339 auto lambda2 = lambda1;
6340 lambda1();
6341 lambda2();
6345 test2()
6347 auto a = [](int i, int j){ return i + j; }(1, 2);
6348 auto b = []() -> int { return '0'; }();
6349 auto c = [=](){ return a + b; }();
6350 auto d = [&](){ return c; }();
6351 auto e = [a, &b](int x) mutable {
6352 const auto identity = [](int y){ return y; };
6353 for (auto i = 0; i < a; ++i)
6354 a += b--;
6355 return x + identity(a + b);
6356 }(0);
6357 return a + b + c + d + e;
6361 test3()
6363 const auto nullary = [](){ return 0; };
6364 const auto unary = [](int x){ return x; };
6365 using nullary_t = decltype(nullary);
6366 using unary_t = decltype(unary);
6367 const auto higher1st = [](nullary_t f){ return f(); };
6368 const auto higher2nd = [unary](nullary_t f1){
6369 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6371 return higher1st(nullary) + higher2nd(nullary)(unary);
6376 namespace test_variadic_templates
6379 template <int...>
6380 struct sum;
6382 template <int N0, int... N1toN>
6383 struct sum<N0, N1toN...>
6385 static constexpr auto value = N0 + sum<N1toN...>::value;
6388 template <>
6389 struct sum<>
6391 static constexpr auto value = 0;
6394 static_assert(sum<>::value == 0, "");
6395 static_assert(sum<1>::value == 1, "");
6396 static_assert(sum<23>::value == 23, "");
6397 static_assert(sum<1, 2>::value == 3, "");
6398 static_assert(sum<5, 5, 11>::value == 21, "");
6399 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6403 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6404 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6405 // because of this.
6406 namespace test_template_alias_sfinae
6409 struct foo {};
6411 template<typename T>
6412 using member = typename T::member_type;
6414 template<typename T>
6415 void func(...) {}
6417 template<typename T>
6418 void func(member<T>*) {}
6420 void test();
6422 void test() { func<foo>(0); }
6426 } // namespace cxx11
6428 #endif // __cplusplus >= 201103L
6432 _ACEOF
6433 if ac_fn_cxx_try_compile "$LINENO"; then :
6434 eval $cachevar=yes
6435 else
6436 eval $cachevar=no
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 CXX="$ac_save_CXX"
6441 eval ac_res=\$$cachevar
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6443 $as_echo "$ac_res" >&6; }
6444 if eval test x\$$cachevar = xyes; then
6445 CXX="$CXX $switch"
6446 if test -n "$CXXCPP" ; then
6447 CXXCPP="$CXXCPP $switch"
6449 ac_success=yes
6450 break
6452 done
6455 if test x$ac_success = xno; then
6456 for alternative in ${ax_cxx_compile_alternatives}; do
6457 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6458 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6460 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6461 if eval \${$cachevar+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 ac_save_CXX="$CXX"
6465 CXX="$CXX $switch"
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6470 // If the compiler admits that it is not ready for C++11, why torture it?
6471 // Hopefully, this will speed up the test.
6473 #ifndef __cplusplus
6475 #error "This is not a C++ compiler"
6477 #elif __cplusplus < 201103L
6479 #error "This is not a C++11 compiler"
6481 #else
6483 namespace cxx11
6486 namespace test_static_assert
6489 template <typename T>
6490 struct check
6492 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6497 namespace test_final_override
6500 struct Base
6502 virtual ~Base() {}
6503 virtual void f() {}
6506 struct Derived : public Base
6508 virtual ~Derived() override {}
6509 virtual void f() override {}
6514 namespace test_double_right_angle_brackets
6517 template < typename T >
6518 struct check {};
6520 typedef check<void> single_type;
6521 typedef check<check<void>> double_type;
6522 typedef check<check<check<void>>> triple_type;
6523 typedef check<check<check<check<void>>>> quadruple_type;
6527 namespace test_decltype
6533 int a = 1;
6534 decltype(a) b = 2;
6535 return a + b;
6540 namespace test_type_deduction
6543 template < typename T1, typename T2 >
6544 struct is_same
6546 static const bool value = false;
6549 template < typename T >
6550 struct is_same<T, T>
6552 static const bool value = true;
6555 template < typename T1, typename T2 >
6556 auto
6557 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6559 return a1 + a2;
6563 test(const int c, volatile int v)
6565 static_assert(is_same<int, decltype(0)>::value == true, "");
6566 static_assert(is_same<int, decltype(c)>::value == false, "");
6567 static_assert(is_same<int, decltype(v)>::value == false, "");
6568 auto ac = c;
6569 auto av = v;
6570 auto sumi = ac + av + 'x';
6571 auto sumf = ac + av + 1.0;
6572 static_assert(is_same<int, decltype(ac)>::value == true, "");
6573 static_assert(is_same<int, decltype(av)>::value == true, "");
6574 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6575 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6576 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6577 return (sumf > 0.0) ? sumi : add(c, v);
6582 namespace test_noexcept
6585 int f() { return 0; }
6586 int g() noexcept { return 0; }
6588 static_assert(noexcept(f()) == false, "");
6589 static_assert(noexcept(g()) == true, "");
6593 namespace test_constexpr
6596 template < typename CharT >
6597 unsigned long constexpr
6598 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6600 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6603 template < typename CharT >
6604 unsigned long constexpr
6605 strlen_c(const CharT *const s) noexcept
6607 return strlen_c_r(s, 0UL);
6610 static_assert(strlen_c("") == 0UL, "");
6611 static_assert(strlen_c("1") == 1UL, "");
6612 static_assert(strlen_c("example") == 7UL, "");
6613 static_assert(strlen_c("another\0example") == 7UL, "");
6617 namespace test_rvalue_references
6620 template < int N >
6621 struct answer
6623 static constexpr int value = N;
6626 answer<1> f(int&) { return answer<1>(); }
6627 answer<2> f(const int&) { return answer<2>(); }
6628 answer<3> f(int&&) { return answer<3>(); }
6630 void
6631 test()
6633 int i = 0;
6634 const int c = 0;
6635 static_assert(decltype(f(i))::value == 1, "");
6636 static_assert(decltype(f(c))::value == 2, "");
6637 static_assert(decltype(f(0))::value == 3, "");
6642 namespace test_uniform_initialization
6645 struct test
6647 static const int zero {};
6648 static const int one {1};
6651 static_assert(test::zero == 0, "");
6652 static_assert(test::one == 1, "");
6656 namespace test_lambdas
6659 void
6660 test1()
6662 auto lambda1 = [](){};
6663 auto lambda2 = lambda1;
6664 lambda1();
6665 lambda2();
6669 test2()
6671 auto a = [](int i, int j){ return i + j; }(1, 2);
6672 auto b = []() -> int { return '0'; }();
6673 auto c = [=](){ return a + b; }();
6674 auto d = [&](){ return c; }();
6675 auto e = [a, &b](int x) mutable {
6676 const auto identity = [](int y){ return y; };
6677 for (auto i = 0; i < a; ++i)
6678 a += b--;
6679 return x + identity(a + b);
6680 }(0);
6681 return a + b + c + d + e;
6685 test3()
6687 const auto nullary = [](){ return 0; };
6688 const auto unary = [](int x){ return x; };
6689 using nullary_t = decltype(nullary);
6690 using unary_t = decltype(unary);
6691 const auto higher1st = [](nullary_t f){ return f(); };
6692 const auto higher2nd = [unary](nullary_t f1){
6693 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6695 return higher1st(nullary) + higher2nd(nullary)(unary);
6700 namespace test_variadic_templates
6703 template <int...>
6704 struct sum;
6706 template <int N0, int... N1toN>
6707 struct sum<N0, N1toN...>
6709 static constexpr auto value = N0 + sum<N1toN...>::value;
6712 template <>
6713 struct sum<>
6715 static constexpr auto value = 0;
6718 static_assert(sum<>::value == 0, "");
6719 static_assert(sum<1>::value == 1, "");
6720 static_assert(sum<23>::value == 23, "");
6721 static_assert(sum<1, 2>::value == 3, "");
6722 static_assert(sum<5, 5, 11>::value == 21, "");
6723 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6727 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6728 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6729 // because of this.
6730 namespace test_template_alias_sfinae
6733 struct foo {};
6735 template<typename T>
6736 using member = typename T::member_type;
6738 template<typename T>
6739 void func(...) {}
6741 template<typename T>
6742 void func(member<T>*) {}
6744 void test();
6746 void test() { func<foo>(0); }
6750 } // namespace cxx11
6752 #endif // __cplusplus >= 201103L
6756 _ACEOF
6757 if ac_fn_cxx_try_compile "$LINENO"; then :
6758 eval $cachevar=yes
6759 else
6760 eval $cachevar=no
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 CXX="$ac_save_CXX"
6765 eval ac_res=\$$cachevar
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6767 $as_echo "$ac_res" >&6; }
6768 if eval test x\$$cachevar = xyes; then
6769 CXX="$CXX $switch"
6770 if test -n "$CXXCPP" ; then
6771 CXXCPP="$CXXCPP $switch"
6773 ac_success=yes
6774 break
6776 done
6777 if test x$ac_success = xyes; then
6778 break
6780 done
6783 ac_ext=c
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6789 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6790 if test x$ac_success = xno; then
6791 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6794 if test x$ac_success = xno; then
6795 HAVE_CXX11=0
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6797 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6798 else
6799 HAVE_CXX11=1
6801 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6807 if test "${build}" != "${host}"; then
6808 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6809 ac_ext=cpp
6810 ac_cpp='$CXXCPP $CPPFLAGS'
6811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6814 ac_success=no
6815 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6816 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6817 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6818 CXX="$CXX_FOR_BUILD"
6819 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6820 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6822 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6823 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6830 // If the compiler admits that it is not ready for C++11, why torture it?
6831 // Hopefully, this will speed up the test.
6833 #ifndef __cplusplus
6835 #error "This is not a C++ compiler"
6837 #elif __cplusplus < 201103L
6839 #error "This is not a C++11 compiler"
6841 #else
6843 namespace cxx11
6846 namespace test_static_assert
6849 template <typename T>
6850 struct check
6852 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6857 namespace test_final_override
6860 struct Base
6862 virtual ~Base() {}
6863 virtual void f() {}
6866 struct Derived : public Base
6868 virtual ~Derived() override {}
6869 virtual void f() override {}
6874 namespace test_double_right_angle_brackets
6877 template < typename T >
6878 struct check {};
6880 typedef check<void> single_type;
6881 typedef check<check<void>> double_type;
6882 typedef check<check<check<void>>> triple_type;
6883 typedef check<check<check<check<void>>>> quadruple_type;
6887 namespace test_decltype
6893 int a = 1;
6894 decltype(a) b = 2;
6895 return a + b;
6900 namespace test_type_deduction
6903 template < typename T1, typename T2 >
6904 struct is_same
6906 static const bool value = false;
6909 template < typename T >
6910 struct is_same<T, T>
6912 static const bool value = true;
6915 template < typename T1, typename T2 >
6916 auto
6917 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6919 return a1 + a2;
6923 test(const int c, volatile int v)
6925 static_assert(is_same<int, decltype(0)>::value == true, "");
6926 static_assert(is_same<int, decltype(c)>::value == false, "");
6927 static_assert(is_same<int, decltype(v)>::value == false, "");
6928 auto ac = c;
6929 auto av = v;
6930 auto sumi = ac + av + 'x';
6931 auto sumf = ac + av + 1.0;
6932 static_assert(is_same<int, decltype(ac)>::value == true, "");
6933 static_assert(is_same<int, decltype(av)>::value == true, "");
6934 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6935 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6936 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6937 return (sumf > 0.0) ? sumi : add(c, v);
6942 namespace test_noexcept
6945 int f() { return 0; }
6946 int g() noexcept { return 0; }
6948 static_assert(noexcept(f()) == false, "");
6949 static_assert(noexcept(g()) == true, "");
6953 namespace test_constexpr
6956 template < typename CharT >
6957 unsigned long constexpr
6958 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6960 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6963 template < typename CharT >
6964 unsigned long constexpr
6965 strlen_c(const CharT *const s) noexcept
6967 return strlen_c_r(s, 0UL);
6970 static_assert(strlen_c("") == 0UL, "");
6971 static_assert(strlen_c("1") == 1UL, "");
6972 static_assert(strlen_c("example") == 7UL, "");
6973 static_assert(strlen_c("another\0example") == 7UL, "");
6977 namespace test_rvalue_references
6980 template < int N >
6981 struct answer
6983 static constexpr int value = N;
6986 answer<1> f(int&) { return answer<1>(); }
6987 answer<2> f(const int&) { return answer<2>(); }
6988 answer<3> f(int&&) { return answer<3>(); }
6990 void
6991 test()
6993 int i = 0;
6994 const int c = 0;
6995 static_assert(decltype(f(i))::value == 1, "");
6996 static_assert(decltype(f(c))::value == 2, "");
6997 static_assert(decltype(f(0))::value == 3, "");
7002 namespace test_uniform_initialization
7005 struct test
7007 static const int zero {};
7008 static const int one {1};
7011 static_assert(test::zero == 0, "");
7012 static_assert(test::one == 1, "");
7016 namespace test_lambdas
7019 void
7020 test1()
7022 auto lambda1 = [](){};
7023 auto lambda2 = lambda1;
7024 lambda1();
7025 lambda2();
7029 test2()
7031 auto a = [](int i, int j){ return i + j; }(1, 2);
7032 auto b = []() -> int { return '0'; }();
7033 auto c = [=](){ return a + b; }();
7034 auto d = [&](){ return c; }();
7035 auto e = [a, &b](int x) mutable {
7036 const auto identity = [](int y){ return y; };
7037 for (auto i = 0; i < a; ++i)
7038 a += b--;
7039 return x + identity(a + b);
7040 }(0);
7041 return a + b + c + d + e;
7045 test3()
7047 const auto nullary = [](){ return 0; };
7048 const auto unary = [](int x){ return x; };
7049 using nullary_t = decltype(nullary);
7050 using unary_t = decltype(unary);
7051 const auto higher1st = [](nullary_t f){ return f(); };
7052 const auto higher2nd = [unary](nullary_t f1){
7053 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7055 return higher1st(nullary) + higher2nd(nullary)(unary);
7060 namespace test_variadic_templates
7063 template <int...>
7064 struct sum;
7066 template <int N0, int... N1toN>
7067 struct sum<N0, N1toN...>
7069 static constexpr auto value = N0 + sum<N1toN...>::value;
7072 template <>
7073 struct sum<>
7075 static constexpr auto value = 0;
7078 static_assert(sum<>::value == 0, "");
7079 static_assert(sum<1>::value == 1, "");
7080 static_assert(sum<23>::value == 23, "");
7081 static_assert(sum<1, 2>::value == 3, "");
7082 static_assert(sum<5, 5, 11>::value == 21, "");
7083 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7087 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7088 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7089 // because of this.
7090 namespace test_template_alias_sfinae
7093 struct foo {};
7095 template<typename T>
7096 using member = typename T::member_type;
7098 template<typename T>
7099 void func(...) {}
7101 template<typename T>
7102 void func(member<T>*) {}
7104 void test();
7106 void test() { func<foo>(0); }
7110 } // namespace cxx11
7112 #endif // __cplusplus >= 201103L
7116 _ACEOF
7117 if ac_fn_cxx_try_compile "$LINENO"; then :
7118 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7119 else
7120 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7125 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7126 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7127 ac_success=yes
7130 if test x$ac_success = xno; then
7131 for alternative in ${ax_cxx_compile_alternatives}; do
7132 switch="-std=gnu++${alternative}"
7133 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7135 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7136 if eval \${$cachevar+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 ac_save_CXX="$CXX"
7140 CXX="$CXX $switch"
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7145 // If the compiler admits that it is not ready for C++11, why torture it?
7146 // Hopefully, this will speed up the test.
7148 #ifndef __cplusplus
7150 #error "This is not a C++ compiler"
7152 #elif __cplusplus < 201103L
7154 #error "This is not a C++11 compiler"
7156 #else
7158 namespace cxx11
7161 namespace test_static_assert
7164 template <typename T>
7165 struct check
7167 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7172 namespace test_final_override
7175 struct Base
7177 virtual ~Base() {}
7178 virtual void f() {}
7181 struct Derived : public Base
7183 virtual ~Derived() override {}
7184 virtual void f() override {}
7189 namespace test_double_right_angle_brackets
7192 template < typename T >
7193 struct check {};
7195 typedef check<void> single_type;
7196 typedef check<check<void>> double_type;
7197 typedef check<check<check<void>>> triple_type;
7198 typedef check<check<check<check<void>>>> quadruple_type;
7202 namespace test_decltype
7208 int a = 1;
7209 decltype(a) b = 2;
7210 return a + b;
7215 namespace test_type_deduction
7218 template < typename T1, typename T2 >
7219 struct is_same
7221 static const bool value = false;
7224 template < typename T >
7225 struct is_same<T, T>
7227 static const bool value = true;
7230 template < typename T1, typename T2 >
7231 auto
7232 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7234 return a1 + a2;
7238 test(const int c, volatile int v)
7240 static_assert(is_same<int, decltype(0)>::value == true, "");
7241 static_assert(is_same<int, decltype(c)>::value == false, "");
7242 static_assert(is_same<int, decltype(v)>::value == false, "");
7243 auto ac = c;
7244 auto av = v;
7245 auto sumi = ac + av + 'x';
7246 auto sumf = ac + av + 1.0;
7247 static_assert(is_same<int, decltype(ac)>::value == true, "");
7248 static_assert(is_same<int, decltype(av)>::value == true, "");
7249 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7250 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7251 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7252 return (sumf > 0.0) ? sumi : add(c, v);
7257 namespace test_noexcept
7260 int f() { return 0; }
7261 int g() noexcept { return 0; }
7263 static_assert(noexcept(f()) == false, "");
7264 static_assert(noexcept(g()) == true, "");
7268 namespace test_constexpr
7271 template < typename CharT >
7272 unsigned long constexpr
7273 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7275 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7278 template < typename CharT >
7279 unsigned long constexpr
7280 strlen_c(const CharT *const s) noexcept
7282 return strlen_c_r(s, 0UL);
7285 static_assert(strlen_c("") == 0UL, "");
7286 static_assert(strlen_c("1") == 1UL, "");
7287 static_assert(strlen_c("example") == 7UL, "");
7288 static_assert(strlen_c("another\0example") == 7UL, "");
7292 namespace test_rvalue_references
7295 template < int N >
7296 struct answer
7298 static constexpr int value = N;
7301 answer<1> f(int&) { return answer<1>(); }
7302 answer<2> f(const int&) { return answer<2>(); }
7303 answer<3> f(int&&) { return answer<3>(); }
7305 void
7306 test()
7308 int i = 0;
7309 const int c = 0;
7310 static_assert(decltype(f(i))::value == 1, "");
7311 static_assert(decltype(f(c))::value == 2, "");
7312 static_assert(decltype(f(0))::value == 3, "");
7317 namespace test_uniform_initialization
7320 struct test
7322 static const int zero {};
7323 static const int one {1};
7326 static_assert(test::zero == 0, "");
7327 static_assert(test::one == 1, "");
7331 namespace test_lambdas
7334 void
7335 test1()
7337 auto lambda1 = [](){};
7338 auto lambda2 = lambda1;
7339 lambda1();
7340 lambda2();
7344 test2()
7346 auto a = [](int i, int j){ return i + j; }(1, 2);
7347 auto b = []() -> int { return '0'; }();
7348 auto c = [=](){ return a + b; }();
7349 auto d = [&](){ return c; }();
7350 auto e = [a, &b](int x) mutable {
7351 const auto identity = [](int y){ return y; };
7352 for (auto i = 0; i < a; ++i)
7353 a += b--;
7354 return x + identity(a + b);
7355 }(0);
7356 return a + b + c + d + e;
7360 test3()
7362 const auto nullary = [](){ return 0; };
7363 const auto unary = [](int x){ return x; };
7364 using nullary_t = decltype(nullary);
7365 using unary_t = decltype(unary);
7366 const auto higher1st = [](nullary_t f){ return f(); };
7367 const auto higher2nd = [unary](nullary_t f1){
7368 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7370 return higher1st(nullary) + higher2nd(nullary)(unary);
7375 namespace test_variadic_templates
7378 template <int...>
7379 struct sum;
7381 template <int N0, int... N1toN>
7382 struct sum<N0, N1toN...>
7384 static constexpr auto value = N0 + sum<N1toN...>::value;
7387 template <>
7388 struct sum<>
7390 static constexpr auto value = 0;
7393 static_assert(sum<>::value == 0, "");
7394 static_assert(sum<1>::value == 1, "");
7395 static_assert(sum<23>::value == 23, "");
7396 static_assert(sum<1, 2>::value == 3, "");
7397 static_assert(sum<5, 5, 11>::value == 21, "");
7398 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7402 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7403 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7404 // because of this.
7405 namespace test_template_alias_sfinae
7408 struct foo {};
7410 template<typename T>
7411 using member = typename T::member_type;
7413 template<typename T>
7414 void func(...) {}
7416 template<typename T>
7417 void func(member<T>*) {}
7419 void test();
7421 void test() { func<foo>(0); }
7425 } // namespace cxx11
7427 #endif // __cplusplus >= 201103L
7431 _ACEOF
7432 if ac_fn_cxx_try_compile "$LINENO"; then :
7433 eval $cachevar=yes
7434 else
7435 eval $cachevar=no
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 CXX="$ac_save_CXX"
7440 eval ac_res=\$$cachevar
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7442 $as_echo "$ac_res" >&6; }
7443 if eval test x\$$cachevar = xyes; then
7444 CXX="$CXX $switch"
7445 if test -n "$CXXCPP" ; then
7446 CXXCPP="$CXXCPP $switch"
7448 ac_success=yes
7449 break
7451 done
7454 if test x$ac_success = xno; then
7455 for alternative in ${ax_cxx_compile_alternatives}; do
7456 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7457 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7459 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7460 if eval \${$cachevar+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 ac_save_CXX="$CXX"
7464 CXX="$CXX $switch"
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7469 // If the compiler admits that it is not ready for C++11, why torture it?
7470 // Hopefully, this will speed up the test.
7472 #ifndef __cplusplus
7474 #error "This is not a C++ compiler"
7476 #elif __cplusplus < 201103L
7478 #error "This is not a C++11 compiler"
7480 #else
7482 namespace cxx11
7485 namespace test_static_assert
7488 template <typename T>
7489 struct check
7491 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7496 namespace test_final_override
7499 struct Base
7501 virtual ~Base() {}
7502 virtual void f() {}
7505 struct Derived : public Base
7507 virtual ~Derived() override {}
7508 virtual void f() override {}
7513 namespace test_double_right_angle_brackets
7516 template < typename T >
7517 struct check {};
7519 typedef check<void> single_type;
7520 typedef check<check<void>> double_type;
7521 typedef check<check<check<void>>> triple_type;
7522 typedef check<check<check<check<void>>>> quadruple_type;
7526 namespace test_decltype
7532 int a = 1;
7533 decltype(a) b = 2;
7534 return a + b;
7539 namespace test_type_deduction
7542 template < typename T1, typename T2 >
7543 struct is_same
7545 static const bool value = false;
7548 template < typename T >
7549 struct is_same<T, T>
7551 static const bool value = true;
7554 template < typename T1, typename T2 >
7555 auto
7556 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7558 return a1 + a2;
7562 test(const int c, volatile int v)
7564 static_assert(is_same<int, decltype(0)>::value == true, "");
7565 static_assert(is_same<int, decltype(c)>::value == false, "");
7566 static_assert(is_same<int, decltype(v)>::value == false, "");
7567 auto ac = c;
7568 auto av = v;
7569 auto sumi = ac + av + 'x';
7570 auto sumf = ac + av + 1.0;
7571 static_assert(is_same<int, decltype(ac)>::value == true, "");
7572 static_assert(is_same<int, decltype(av)>::value == true, "");
7573 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7574 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7575 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7576 return (sumf > 0.0) ? sumi : add(c, v);
7581 namespace test_noexcept
7584 int f() { return 0; }
7585 int g() noexcept { return 0; }
7587 static_assert(noexcept(f()) == false, "");
7588 static_assert(noexcept(g()) == true, "");
7592 namespace test_constexpr
7595 template < typename CharT >
7596 unsigned long constexpr
7597 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7599 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7602 template < typename CharT >
7603 unsigned long constexpr
7604 strlen_c(const CharT *const s) noexcept
7606 return strlen_c_r(s, 0UL);
7609 static_assert(strlen_c("") == 0UL, "");
7610 static_assert(strlen_c("1") == 1UL, "");
7611 static_assert(strlen_c("example") == 7UL, "");
7612 static_assert(strlen_c("another\0example") == 7UL, "");
7616 namespace test_rvalue_references
7619 template < int N >
7620 struct answer
7622 static constexpr int value = N;
7625 answer<1> f(int&) { return answer<1>(); }
7626 answer<2> f(const int&) { return answer<2>(); }
7627 answer<3> f(int&&) { return answer<3>(); }
7629 void
7630 test()
7632 int i = 0;
7633 const int c = 0;
7634 static_assert(decltype(f(i))::value == 1, "");
7635 static_assert(decltype(f(c))::value == 2, "");
7636 static_assert(decltype(f(0))::value == 3, "");
7641 namespace test_uniform_initialization
7644 struct test
7646 static const int zero {};
7647 static const int one {1};
7650 static_assert(test::zero == 0, "");
7651 static_assert(test::one == 1, "");
7655 namespace test_lambdas
7658 void
7659 test1()
7661 auto lambda1 = [](){};
7662 auto lambda2 = lambda1;
7663 lambda1();
7664 lambda2();
7668 test2()
7670 auto a = [](int i, int j){ return i + j; }(1, 2);
7671 auto b = []() -> int { return '0'; }();
7672 auto c = [=](){ return a + b; }();
7673 auto d = [&](){ return c; }();
7674 auto e = [a, &b](int x) mutable {
7675 const auto identity = [](int y){ return y; };
7676 for (auto i = 0; i < a; ++i)
7677 a += b--;
7678 return x + identity(a + b);
7679 }(0);
7680 return a + b + c + d + e;
7684 test3()
7686 const auto nullary = [](){ return 0; };
7687 const auto unary = [](int x){ return x; };
7688 using nullary_t = decltype(nullary);
7689 using unary_t = decltype(unary);
7690 const auto higher1st = [](nullary_t f){ return f(); };
7691 const auto higher2nd = [unary](nullary_t f1){
7692 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7694 return higher1st(nullary) + higher2nd(nullary)(unary);
7699 namespace test_variadic_templates
7702 template <int...>
7703 struct sum;
7705 template <int N0, int... N1toN>
7706 struct sum<N0, N1toN...>
7708 static constexpr auto value = N0 + sum<N1toN...>::value;
7711 template <>
7712 struct sum<>
7714 static constexpr auto value = 0;
7717 static_assert(sum<>::value == 0, "");
7718 static_assert(sum<1>::value == 1, "");
7719 static_assert(sum<23>::value == 23, "");
7720 static_assert(sum<1, 2>::value == 3, "");
7721 static_assert(sum<5, 5, 11>::value == 21, "");
7722 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7726 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7727 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7728 // because of this.
7729 namespace test_template_alias_sfinae
7732 struct foo {};
7734 template<typename T>
7735 using member = typename T::member_type;
7737 template<typename T>
7738 void func(...) {}
7740 template<typename T>
7741 void func(member<T>*) {}
7743 void test();
7745 void test() { func<foo>(0); }
7749 } // namespace cxx11
7751 #endif // __cplusplus >= 201103L
7755 _ACEOF
7756 if ac_fn_cxx_try_compile "$LINENO"; then :
7757 eval $cachevar=yes
7758 else
7759 eval $cachevar=no
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 CXX="$ac_save_CXX"
7764 eval ac_res=\$$cachevar
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7766 $as_echo "$ac_res" >&6; }
7767 if eval test x\$$cachevar = xyes; then
7768 CXX="$CXX $switch"
7769 if test -n "$CXXCPP" ; then
7770 CXXCPP="$CXXCPP $switch"
7772 ac_success=yes
7773 break
7775 done
7776 if test x$ac_success = xyes; then
7777 break
7779 done
7781 CXX_FOR_BUILD="$CXX"
7782 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7783 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7784 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7785 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7786 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7787 ac_ext=c
7788 ac_cpp='$CPP $CPPFLAGS'
7789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7794 if test x$ac_success = xno; then
7795 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7798 if test x$ac_success = xno; then
7799 HAVE_CXX11_FOR_BUILD=0
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7801 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7802 else
7803 HAVE_CXX11_FOR_BUILD=1
7805 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7813 # Used for setting $lt_cv_objdir
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7815 $as_echo_n "checking for objdir... " >&6; }
7816 if ${lt_cv_objdir+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 rm -f .libs 2>/dev/null
7820 mkdir .libs 2>/dev/null
7821 if test -d .libs; then
7822 lt_cv_objdir=.libs
7823 else
7824 # MS-DOS does not allow filenames that begin with a dot.
7825 lt_cv_objdir=_libs
7827 rmdir .libs 2>/dev/null
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7830 $as_echo "$lt_cv_objdir" >&6; }
7831 objdir=$lt_cv_objdir
7837 cat >>confdefs.h <<_ACEOF
7838 #define LT_OBJDIR "$lt_cv_objdir/"
7839 _ACEOF
7843 # Check for GMP, MPFR and MPC
7844 gmplibs="-lmpc -lmpfr -lgmp"
7845 gmpinc=
7846 have_gmp=no
7848 # Specify a location for mpc
7849 # check for this first so it ends up on the link line before mpfr.
7851 # Check whether --with-mpc was given.
7852 if test "${with_mpc+set}" = set; then :
7853 withval=$with_mpc;
7857 # Check whether --with-mpc-include was given.
7858 if test "${with_mpc_include+set}" = set; then :
7859 withval=$with_mpc_include;
7863 # Check whether --with-mpc-lib was given.
7864 if test "${with_mpc_lib+set}" = set; then :
7865 withval=$with_mpc_lib;
7869 if test "x$with_mpc" != x; then
7870 gmplibs="-L$with_mpc/lib $gmplibs"
7871 gmpinc="-I$with_mpc/include $gmpinc"
7873 if test "x$with_mpc_include" != x; then
7874 gmpinc="-I$with_mpc_include $gmpinc"
7876 if test "x$with_mpc_lib" != x; then
7877 gmplibs="-L$with_mpc_lib $gmplibs"
7879 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7880 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7881 gmpinc='-I$$s/mpc/src '"$gmpinc"
7882 # Do not test the mpc version. Assume that it is sufficient, since
7883 # it is in the source tree, and the library has not been built yet
7884 # but it would be included on the link line in the version check below
7885 # hence making the test fail.
7886 have_gmp=yes
7889 # Specify a location for mpfr
7890 # check for this first so it ends up on the link line before gmp.
7892 # Check whether --with-mpfr-dir was given.
7893 if test "${with_mpfr_dir+set}" = set; then :
7894 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7895 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7900 # Check whether --with-mpfr was given.
7901 if test "${with_mpfr+set}" = set; then :
7902 withval=$with_mpfr;
7906 # Check whether --with-mpfr-include was given.
7907 if test "${with_mpfr_include+set}" = set; then :
7908 withval=$with_mpfr_include;
7912 # Check whether --with-mpfr-lib was given.
7913 if test "${with_mpfr_lib+set}" = set; then :
7914 withval=$with_mpfr_lib;
7918 if test "x$with_mpfr" != x; then
7919 gmplibs="-L$with_mpfr/lib $gmplibs"
7920 gmpinc="-I$with_mpfr/include $gmpinc"
7922 if test "x$with_mpfr_include" != x; then
7923 gmpinc="-I$with_mpfr_include $gmpinc"
7925 if test "x$with_mpfr_lib" != x; then
7926 gmplibs="-L$with_mpfr_lib $gmplibs"
7928 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7929 # MPFR v3.1.0 moved the sources into a src sub-directory.
7930 if ! test -d ${srcdir}/mpfr/src; then
7931 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7933 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7934 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7935 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7936 # Do not test the mpfr version. Assume that it is sufficient, since
7937 # it is in the source tree, and the library has not been built yet
7938 # but it would be included on the link line in the version check below
7939 # hence making the test fail.
7940 have_gmp=yes
7943 # Specify a location for gmp
7945 # Check whether --with-gmp-dir was given.
7946 if test "${with_gmp_dir+set}" = set; then :
7947 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7948 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7953 # Check whether --with-gmp was given.
7954 if test "${with_gmp+set}" = set; then :
7955 withval=$with_gmp;
7959 # Check whether --with-gmp-include was given.
7960 if test "${with_gmp_include+set}" = set; then :
7961 withval=$with_gmp_include;
7965 # Check whether --with-gmp-lib was given.
7966 if test "${with_gmp_lib+set}" = set; then :
7967 withval=$with_gmp_lib;
7972 if test "x$with_gmp" != x; then
7973 gmplibs="-L$with_gmp/lib $gmplibs"
7974 gmpinc="-I$with_gmp/include $gmpinc"
7976 if test "x$with_gmp_include" != x; then
7977 gmpinc="-I$with_gmp_include $gmpinc"
7979 if test "x$with_gmp_lib" != x; then
7980 gmplibs="-L$with_gmp_lib $gmplibs"
7982 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7983 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7984 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7985 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7986 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7987 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7988 # Do not test the gmp version. Assume that it is sufficient, since
7989 # it is in the source tree, and the library has not been built yet
7990 # but it would be included on the link line in the version check below
7991 # hence making the test fail.
7992 have_gmp=yes
7995 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7996 have_gmp=yes
7997 saved_CFLAGS="$CFLAGS"
7998 CFLAGS="$CFLAGS $gmpinc"
7999 # Check for the recommended and required versions of GMP.
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8001 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 #include "gmp.h"
8007 main ()
8010 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8011 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8012 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8013 choke me
8014 #endif
8017 return 0;
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 #include <gmp.h>
8025 main ()
8028 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8029 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8030 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8031 choke me
8032 #endif
8035 return 0;
8037 _ACEOF
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8040 $as_echo "yes" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8043 $as_echo "buggy but acceptable" >&6; }
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }; have_gmp=no
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 # If we have GMP, check the MPFR version.
8053 if test x"$have_gmp" = xyes; then
8054 # Check for the recommended and required versions of MPFR.
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8056 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <gmp.h>
8060 #include <mpfr.h>
8062 main ()
8065 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8066 choke me
8067 #endif
8070 return 0;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 #include <gmp.h>
8077 #include <mpfr.h>
8079 main ()
8082 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8083 choke me
8084 #endif
8087 return 0;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092 $as_echo "yes" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8095 $as_echo "buggy but acceptable" >&6; }
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }; have_gmp=no
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 # Check for the MPC header version.
8106 if test x"$have_gmp" = xyes ; then
8107 # Check for the recommended and required versions of MPC.
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8109 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <mpc.h>
8114 main ()
8117 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8118 choke me
8119 #endif
8122 return 0;
8124 _ACEOF
8125 if ac_fn_c_try_compile "$LINENO"; then :
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #include <mpc.h>
8130 main ()
8133 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8134 choke me
8135 #endif
8138 return 0;
8140 _ACEOF
8141 if ac_fn_c_try_compile "$LINENO"; then :
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8143 $as_echo "yes" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8146 $as_echo "buggy but acceptable" >&6; }
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }; have_gmp=no
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 # Now check the MPFR library.
8157 if test x"$have_gmp" = xyes; then
8158 saved_LIBS="$LIBS"
8159 LIBS="$LIBS $gmplibs"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8161 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 #include <mpc.h>
8166 main ()
8169 mpfr_t n;
8170 mpfr_t x;
8171 mpc_t c;
8172 int t;
8173 mpfr_init (n);
8174 mpfr_init (x);
8175 mpfr_atan2 (n, n, x, MPFR_RNDN);
8176 mpfr_erfc (n, x, MPFR_RNDN);
8177 mpfr_subnormalize (x, t, MPFR_RNDN);
8178 mpfr_clear(n);
8179 mpfr_clear(x);
8180 mpc_init2 (c, 53);
8181 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8182 mpc_cosh (c, c, MPC_RNDNN);
8183 mpc_pow (c, c, c, MPC_RNDNN);
8184 mpc_acosh (c, c, MPC_RNDNN);
8185 mpc_clear (c);
8188 return 0;
8190 _ACEOF
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193 $as_echo "yes" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }; have_gmp=no
8198 rm -f core conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 LIBS="$saved_LIBS"
8203 CFLAGS="$saved_CFLAGS"
8205 # The library versions listed in the error message below should match
8206 # the HARD-minimums enforced above.
8207 if test x$have_gmp != xyes; then
8208 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8209 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8210 their locations. Source code for these libraries can be found at
8211 their respective hosting sites as well as at
8212 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8213 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8214 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8215 make sure that you have installed both the libraries and the header
8216 files. They may be located in separate packages." "$LINENO" 5
8220 # Flags needed for both GMP, MPFR and/or MPC.
8228 # Libraries to use for stage1 or when not bootstrapping.
8230 # Check whether --with-stage1-libs was given.
8231 if test "${with_stage1_libs+set}" = set; then :
8232 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8233 stage1_libs=
8234 else
8235 stage1_libs=$withval
8237 else
8238 stage1_libs=
8243 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8244 # default is yes if gcc is being built; no otherwise. The reason for
8245 # this default is that gdb is sometimes linked against GNU Source
8246 # Highlight, which is a shared library that uses C++ exceptions. In
8247 # this case, -static-libstdc++ will cause crashes.
8249 # Check whether --with-static-standard-libraries was given.
8250 if test "${with_static_standard_libraries+set}" = set; then :
8251 withval=$with_static_standard_libraries;
8252 else
8253 with_static_standard_libraries=auto
8256 if test "$with_static_standard_libraries" = auto; then
8257 with_static_standard_libraries=$have_compiler
8260 # Linker flags to use for stage1 or when not bootstrapping.
8262 # Check whether --with-stage1-ldflags was given.
8263 if test "${with_stage1_ldflags+set}" = set; then :
8264 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8265 stage1_ldflags=
8266 else
8267 stage1_ldflags=$withval
8269 else
8270 stage1_ldflags=
8271 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8272 # if supported. But if the user explicitly specified the libraries to use,
8273 # trust that they are doing what they want.
8274 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8275 -a "$have_static_libs" = yes; then
8276 stage1_ldflags="-static-libstdc++ -static-libgcc"
8282 # Libraries to use for stage2 and later builds.
8284 # Check whether --with-boot-libs was given.
8285 if test "${with_boot_libs+set}" = set; then :
8286 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8287 poststage1_libs=
8288 else
8289 poststage1_libs=$withval
8291 else
8292 poststage1_libs=
8297 # Linker flags to use for stage2 and later builds.
8299 # Check whether --with-boot-ldflags was given.
8300 if test "${with_boot_ldflags+set}" = set; then :
8301 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8302 poststage1_ldflags=
8303 else
8304 poststage1_ldflags=$withval
8306 else
8307 poststage1_ldflags=
8308 # In stages 2 and 3, default to linking libstdc++ and libgcc
8309 # statically. But if the user explicitly specified the libraries to
8310 # use, trust that they are doing what they want.
8311 if test "$poststage1_libs" = ""; then
8312 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8318 # GCC GRAPHITE dependency isl.
8319 # Basic setup is inlined here, actual checks are in config/isl.m4
8322 # Check whether --with-isl was given.
8323 if test "${with_isl+set}" = set; then :
8324 withval=$with_isl;
8328 # Treat --without-isl as a request to disable
8329 # GRAPHITE support and skip all following checks.
8330 if test "x$with_isl" != "xno"; then
8331 # Check for isl
8334 # Check whether --with-isl-include was given.
8335 if test "${with_isl_include+set}" = set; then :
8336 withval=$with_isl_include;
8340 # Check whether --with-isl-lib was given.
8341 if test "${with_isl_lib+set}" = set; then :
8342 withval=$with_isl_lib;
8346 # Check whether --enable-isl-version-check was given.
8347 if test "${enable_isl_version_check+set}" = set; then :
8348 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8349 else
8350 ENABLE_ISL_CHECK=yes
8354 # Initialize isllibs and islinc.
8355 case $with_isl in
8357 isllibs=
8358 islinc=
8360 "" | yes)
8363 isllibs="-L$with_isl/lib"
8364 islinc="-I$with_isl/include"
8366 esac
8367 if test "x${with_isl_include}" != x ; then
8368 islinc="-I$with_isl_include"
8370 if test "x${with_isl_lib}" != x; then
8371 isllibs="-L$with_isl_lib"
8373 if test "x${islinc}" = x && test "x${isllibs}" = x \
8374 && test -d ${srcdir}/isl; then
8375 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8376 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8377 ENABLE_ISL_CHECK=no
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8379 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8382 isllibs="${isllibs} -lisl"
8386 if test "${ENABLE_ISL_CHECK}" = yes ; then
8387 _isl_saved_CFLAGS=$CFLAGS
8388 _isl_saved_LDFLAGS=$LDFLAGS
8389 _isl_saved_LIBS=$LIBS
8391 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8392 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8393 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8396 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <isl/schedule.h>
8401 main ()
8403 isl_options_set_schedule_serialize_sccs (NULL, 0);
8405 return 0;
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 gcc_cv_isl=yes
8410 else
8411 gcc_cv_isl=no
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8416 $as_echo "$gcc_cv_isl" >&6; }
8418 if test "${gcc_cv_isl}" = no ; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8420 $as_echo "required isl version is 0.15 or later" >&6; }
8423 CFLAGS=$_isl_saved_CFLAGS
8424 LDFLAGS=$_isl_saved_LDFLAGS
8425 LIBS=$_isl_saved_LIBS
8433 if test "x${with_isl}" = xno; then
8434 graphite_requested=no
8435 elif test "x${with_isl}" != x \
8436 || test "x${with_isl_include}" != x \
8437 || test "x${with_isl_lib}" != x ; then
8438 graphite_requested=yes
8439 else
8440 graphite_requested=no
8445 if test "${gcc_cv_isl}" = no ; then
8446 isllibs=
8447 islinc=
8450 if test "${graphite_requested}" = yes \
8451 && test "x${isllibs}" = x \
8452 && test "x${islinc}" = x ; then
8454 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8460 # If the isl check failed, disable builds of in-tree variant of isl
8461 if test "x$with_isl" = xno ||
8462 test "x$gcc_cv_isl" = xno; then
8463 noconfigdirs="$noconfigdirs isl"
8464 islinc=
8470 # Check for LTO support.
8471 # Check whether --enable-lto was given.
8472 if test "${enable_lto+set}" = set; then :
8473 enableval=$enable_lto; enable_lto=$enableval
8474 else
8475 enable_lto=yes; default_enable_lto=yes
8482 target_elf=no
8483 case $target in
8484 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8485 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8486 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8487 nvptx-*-none)
8488 target_elf=no
8491 target_elf=yes
8493 esac
8495 if test $target_elf = yes; then :
8496 # ELF platforms build the lto-plugin always.
8497 build_lto_plugin=yes
8499 else
8500 if test x"$default_enable_lto" = x"yes" ; then
8501 case $target in
8502 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8503 # On other non-ELF platforms, LTO has yet to be validated.
8504 *) enable_lto=no ;;
8505 esac
8506 else
8507 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8508 # It would also be nice to check the binutils support, but we don't
8509 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8510 # warn during gcc/ subconfigure; unless you're bootstrapping with
8511 # -flto it won't be needed until after installation anyway.
8512 case $target in
8513 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8514 *) if test x"$enable_lto" = x"yes"; then
8515 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8518 esac
8520 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8521 # Build it unless LTO was explicitly disabled.
8522 case $target in
8523 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8524 *) ;;
8525 esac
8530 # Check whether --enable-linker-plugin-configure-flags was given.
8531 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8532 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8533 else
8534 extra_linker_plugin_configure_flags=
8538 # Check whether --enable-linker-plugin-flags was given.
8539 if test "${enable_linker_plugin_flags+set}" = set; then :
8540 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8541 else
8542 extra_linker_plugin_flags=
8547 # Enable --enable-host-shared.
8548 # Checked early to determine whether jit is an 'all' language
8549 # Check whether --enable-host-shared was given.
8550 if test "${enable_host_shared+set}" = set; then :
8551 enableval=$enable_host_shared; host_shared=$enableval
8552 case $target in
8553 x86_64-*-darwin* | aarch64-*-darwin*)
8554 if test x$host_shared != xyes ; then
8555 # PIC is the default, and actually cannot be switched off.
8556 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8557 host_shared=yes
8558 fi ;;
8559 *) ;;
8560 esac
8561 else
8562 case $target in
8563 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8564 *) host_shared=no ;;
8565 esac
8570 # By default, C and C++ are the only stage 1 languages.
8571 stage1_languages=,c,
8573 # Target libraries that we bootstrap.
8574 bootstrap_target_libs=,target-libgcc,
8576 # Figure out what language subdirectories are present.
8577 # Look if the user specified --enable-languages="..."; if not, use
8578 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8579 # go away some day.
8580 # NB: embedded tabs in this IF block -- do not untabify
8581 if test -d ${srcdir}/gcc; then
8582 if test x"${enable_languages+set}" != xset; then
8583 if test x"${LANGUAGES+set}" = xset; then
8584 enable_languages="${LANGUAGES}"
8585 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8586 else
8587 enable_languages=default
8589 else
8590 if test x"${enable_languages}" = x ||
8591 test x"${enable_languages}" = xyes;
8592 then
8593 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8594 exit 1
8597 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8599 # 'f95' is the old name for the 'fortran' language. We issue a warning
8600 # and make the substitution.
8601 case ,${enable_languages}, in
8602 *,f95,*)
8603 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8604 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8606 esac
8608 # If bootstrapping, C++ must be enabled.
8609 case ",$enable_languages,:$enable_bootstrap" in
8610 *,c++,*:*) ;;
8611 *:yes)
8612 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8613 enable_languages="${enable_languages},c++"
8614 else
8615 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8618 esac
8620 # First scan to see if an enabled language requires some other language.
8621 # We assume that a given config-lang.in will list all the language
8622 # front ends it requires, even if some are required indirectly.
8623 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8624 case ${lang_frag} in
8625 ..) ;;
8626 # The odd quoting in the next line works around
8627 # an apparent bug in bash 1.12 on linux.
8628 ${srcdir}/gcc/[*]/config-lang.in) ;;
8630 # From the config-lang.in, get $language, $lang_requires, and
8631 # $lang_requires_boot_languages.
8632 language=
8633 lang_requires=
8634 lang_requires_boot_languages=
8635 # set srcdir during sourcing lang_frag to the gcc dir.
8636 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8637 # polutes this shell
8638 saved_srcdir=${srcdir}
8639 srcdir=${srcdir}/gcc . ${lang_frag}
8640 srcdir=${saved_srcdir}
8641 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8642 case ,${enable_languages}, in
8643 *,$other,*) ;;
8644 *,default,*) ;;
8645 *,all,*) ;;
8646 *,$language,*)
8647 echo " \`$other' language required by \`$language'; enabling" 1>&2
8648 enable_languages="${enable_languages},${other}"
8650 esac
8651 done
8652 for other in ${lang_requires_boot_languages} ; do
8653 if test "$other" != "c"; then
8654 case ,${enable_stage1_languages}, in
8655 *,$other,*) ;;
8656 *,default,*) ;;
8657 *,all,*) ;;
8659 case ,${enable_languages}, in
8660 *,$language,*)
8661 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8662 enable_stage1_languages="$enable_stage1_languages,${other}"
8664 esac
8666 esac
8668 done
8670 esac
8671 done
8673 new_enable_languages=,c,
8675 # If LTO is enabled, add the LTO front end.
8676 if test "$enable_lto" = "yes" ; then
8677 case ,${enable_languages}, in
8678 *,lto,*) ;;
8679 *) enable_languages="${enable_languages},lto" ;;
8680 esac
8681 if test "${build_lto_plugin}" = "yes" ; then
8682 configdirs="$configdirs lto-plugin"
8686 # If we're building an offloading compiler, add the LTO front end.
8687 if test x"$enable_as_accelerator_for" != x ; then
8688 case ,${enable_languages}, in
8689 *,lto,*) ;;
8690 *) enable_languages="${enable_languages},lto" ;;
8691 esac
8694 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8695 potential_languages=,c,
8697 enabled_target_libs=
8698 disabled_target_libs=
8700 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8701 case ${lang_frag} in
8702 ..) ;;
8703 # The odd quoting in the next line works around
8704 # an apparent bug in bash 1.12 on linux.
8705 ${srcdir}/gcc/[*]/config-lang.in) ;;
8707 # From the config-lang.in, get $language, $target_libs,
8708 # $lang_dirs, $boot_language, and $build_by_default
8709 language=
8710 target_libs=
8711 lang_dirs=
8712 subdir_requires=
8713 boot_language=no
8714 build_by_default=yes
8715 # set srcdir during sourcing. See above about save & restore
8716 saved_srcdir=${srcdir}
8717 srcdir=${srcdir}/gcc . ${lang_frag}
8718 srcdir=${saved_srcdir}
8719 if test x${language} = x; then
8720 echo "${lang_frag} doesn't set \$language." 1>&2
8721 exit 1
8724 if test "$language" = "c++"; then
8725 boot_language=yes
8728 add_this_lang=no
8729 # C is always enabled, so no need to add it again
8730 if test "$language" != "c"; then
8731 case ,${enable_languages}, in
8732 *,${language},*)
8733 # Language was explicitly selected; include it
8734 add_this_lang=yes
8736 *,all,*)
8737 # All languages are enabled
8738 add_this_lang=all
8740 *,default,*)
8741 # 'default' was selected, select it if it is a default language
8742 add_this_lang=${build_by_default}
8744 esac
8747 # Disable languages that need other directories if these aren't available.
8748 for i in $subdir_requires; do
8749 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8750 case ${add_this_lang} in
8751 yes)
8752 # Specifically requested language; tell them.
8753 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8755 all)
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8757 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8758 add_this_lang=unsupported
8761 # Silently disable.
8762 add_this_lang=unsupported
8764 esac
8765 done
8767 # Disable Ada if no preexisting GNAT is available.
8768 case ${add_this_lang}:${language}:${have_gnat} in
8769 yes:ada:no)
8770 # Specifically requested language; tell them.
8771 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8773 all:ada:no)
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8775 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8776 add_this_lang=unsupported
8778 *:ada:no)
8779 # Silently disable.
8780 add_this_lang=unsupported
8782 esac
8784 # Disable D if no preexisting GDC is available.
8785 case ${add_this_lang}:${language}:${have_gdc} in
8786 yes:d:no)
8787 # Specifically requested language; tell them.
8788 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8790 all:d:no)
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8792 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8793 add_this_lang=unsupported
8795 *:d:no)
8796 # Silently disable.
8797 add_this_lang=unsupported
8799 esac
8801 # Disable jit if -enable-host-shared not specified
8802 # but not if building for Mingw. All code in Windows
8803 # is position independent code (PIC).
8804 case $target in
8805 *mingw*) ;;
8807 case ${add_this_lang}:${language}:${host_shared} in
8808 yes:jit:no)
8809 # PR jit/64780: explicitly specify --enable-host-shared
8810 as_fn_error $? "
8811 Enabling language \"jit\" requires --enable-host-shared.
8813 --enable-host-shared typically slows the rest of the compiler down by
8814 a few %, so you must explicitly enable it.
8816 If you want to build both the jit and the regular compiler, it is often
8817 best to do this via two separate configure/builds, in separate
8818 directories, to avoid imposing the performance cost of
8819 --enable-host-shared on the regular compiler." "$LINENO" 5
8821 all:jit:no)
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8823 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8824 add_this_lang=unsupported
8826 *:jit:no)
8827 # Silently disable.
8828 add_this_lang=unsupported
8830 esac
8832 esac
8834 # Disable a language that is unsupported by the target.
8835 case "${add_this_lang}: $unsupported_languages " in
8836 no:*) ;;
8837 unsupported:*) ;;
8838 *:*" $language "*)
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8840 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8841 add_this_lang=unsupported
8843 esac
8845 case $add_this_lang in
8846 unsupported)
8847 # Remove language-dependent dirs.
8848 disabled_target_libs="$disabled_target_libs $target_libs"
8849 noconfigdirs="$noconfigdirs $lang_dirs"
8852 # Remove language-dependent dirs; still show language as supported.
8853 disabled_target_libs="$disabled_target_libs $target_libs"
8854 noconfigdirs="$noconfigdirs $lang_dirs"
8855 potential_languages="${potential_languages}${language},"
8857 all|yes)
8858 new_enable_languages="${new_enable_languages}${language},"
8859 potential_languages="${potential_languages}${language},"
8860 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8861 enabled_target_libs="$enabled_target_libs $target_libs"
8862 case "${boot_language}:,$enable_stage1_languages," in
8863 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8864 # Add to (comma-separated) list of stage 1 languages.
8865 case ",$stage1_languages," in
8866 *,$language,* | ,yes, | ,all,) ;;
8867 *) stage1_languages="${stage1_languages}${language}," ;;
8868 esac
8869 # We need to bootstrap any supporting libraries.
8870 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8872 esac
8874 esac
8876 esac
8877 done
8879 # Add target libraries which are only needed for disabled languages
8880 # to noconfigdirs.
8881 if test -n "$disabled_target_libs"; then
8882 for dir in $disabled_target_libs; do
8883 case " $enabled_target_libs " in
8884 *" ${dir} "*) ;;
8885 *) noconfigdirs="$noconfigdirs $dir" ;;
8886 esac
8887 done
8890 # Check whether --enable-stage1-languages was given.
8891 if test "${enable_stage1_languages+set}" = set; then :
8892 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8893 ,no,|,,)
8894 # Set it to something that will have no effect in the loop below
8895 enable_stage1_languages=c ;;
8896 ,yes,)
8897 enable_stage1_languages=`echo $new_enable_languages | \
8898 sed -e "s/^,//" -e "s/,$//" ` ;;
8899 *,all,*)
8900 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8901 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8902 esac
8904 # Add "good" languages from enable_stage1_languages to stage1_languages,
8905 # while "bad" languages go in missing_languages. Leave no duplicates.
8906 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8907 case $potential_languages in
8908 *,$i,*)
8909 case $stage1_languages in
8910 *,$i,*) ;;
8911 *) stage1_languages="$stage1_languages$i," ;;
8912 esac ;;
8914 case $missing_languages in
8915 *,$i,*) ;;
8916 *) missing_languages="$missing_languages$i," ;;
8917 esac ;;
8918 esac
8919 done
8923 # Remove leading/trailing commas that were added for simplicity
8924 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8925 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8926 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8927 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8929 if test "x$missing_languages" != x; then
8930 as_fn_error $? "
8931 The following requested languages could not be built: ${missing_languages}
8932 Supported languages are: ${potential_languages}" "$LINENO" 5
8934 if test "x$new_enable_languages" != "x$enable_languages"; then
8935 echo The following languages will be built: ${new_enable_languages}
8936 enable_languages="$new_enable_languages"
8940 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8943 # Handle --disable-<component> generically.
8944 for dir in $configdirs $build_configdirs $target_configdirs ; do
8945 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8946 varname=`echo $dirname | sed -e s/+/_/g`
8947 if eval test x\${enable_${varname}} "=" xno ; then
8948 noconfigdirs="$noconfigdirs $dir"
8950 done
8952 # Check for Boehm's garbage collector
8953 # Check whether --enable-objc-gc was given.
8954 if test "${enable_objc_gc+set}" = set; then :
8955 enableval=$enable_objc_gc;
8959 # Check whether --with-target-bdw-gc was given.
8960 if test "${with_target_bdw_gc+set}" = set; then :
8961 withval=$with_target_bdw_gc;
8965 # Check whether --with-target-bdw-gc-include was given.
8966 if test "${with_target_bdw_gc_include+set}" = set; then :
8967 withval=$with_target_bdw_gc_include;
8971 # Check whether --with-target-bdw-gc-lib was given.
8972 if test "${with_target_bdw_gc_lib+set}" = set; then :
8973 withval=$with_target_bdw_gc_lib;
8977 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8979 $as_echo_n "checking for bdw garbage collector... " >&6; }
8980 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8982 $as_echo "using bdw-gc in default locations" >&6; }
8983 else
8984 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8985 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8986 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8987 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8990 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8993 esac
8995 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8996 case ,${enable_languages}, in
8997 *,c++,*)
8998 # Disable libitm, libsanitizer if we're not building libstdc++
8999 case "${noconfigdirs}" in
9000 *target-libstdc++-v3*)
9001 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9003 *) ;;
9004 esac
9007 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9009 esac
9011 # If gcc/ is not in the source tree then we'll not be building a
9012 # target compiler, assume in that case we don't want to build any
9013 # target libraries or tools.
9015 # This was added primarily for the benefit for binutils-gdb who reuse
9016 # this configure script, but don't always have target tools available.
9017 if test ! -d ${srcdir}/gcc; then
9018 skipdirs="${skipdirs} ${target_configdirs}"
9021 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9022 # $build_configdirs and $target_configdirs.
9023 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9025 notsupp=""
9026 for dir in . $skipdirs $noconfigdirs ; do
9027 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9028 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9029 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9030 if test -r $srcdir/$dirname/configure ; then
9031 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9032 true
9033 else
9034 notsupp="$notsupp $dir"
9038 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9039 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9040 if test -r $srcdir/$dirname/configure ; then
9041 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9042 true
9043 else
9044 notsupp="$notsupp $dir"
9048 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9049 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9050 if test -r $srcdir/$dirname/configure ; then
9051 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9052 true
9053 else
9054 notsupp="$notsupp $dir"
9058 done
9060 # Quietly strip out all directories which aren't configurable in this tree.
9061 # This relies on all configurable subdirectories being autoconfiscated, which
9062 # is now the case.
9063 build_configdirs_all="$build_configdirs"
9064 build_configdirs=
9065 for i in ${build_configdirs_all} ; do
9066 j=`echo $i | sed -e s/build-//g`
9067 if test -f ${srcdir}/$j/configure ; then
9068 build_configdirs="${build_configdirs} $i"
9070 done
9072 configdirs_all="$configdirs"
9073 configdirs=
9074 for i in ${configdirs_all} ; do
9075 if test -f ${srcdir}/$i/configure ; then
9076 configdirs="${configdirs} $i"
9078 done
9080 target_configdirs_all="$target_configdirs"
9081 target_configdirs=
9082 for i in ${target_configdirs_all} ; do
9083 j=`echo $i | sed -e s/target-//g`
9084 if test -f ${srcdir}/$j/configure ; then
9085 target_configdirs="${target_configdirs} $i"
9087 done
9089 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9090 # so we have to add it after the preceding checks.
9091 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9092 then
9093 case " $configdirs " in
9094 *" libiberty "*)
9095 # If we can build libiberty, we can also build libiberty-linker-plugin.
9096 configdirs="$configdirs libiberty-linker-plugin"
9097 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9098 --with-libiberty=../libiberty-linker-plugin";;
9100 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9101 esac
9104 # Sometimes we have special requirements for the host libiberty.
9105 extra_host_libiberty_configure_flags=
9106 extra_host_zlib_configure_flags=
9107 case " $configdirs " in
9108 *" lto-plugin "* | *" libcc1 "*)
9109 # When these are to be built as shared libraries, the same applies to
9110 # libiberty.
9111 extra_host_libiberty_configure_flags=--enable-shared
9113 *" bfd "*)
9114 # When bfd is to be built as a shared library, the same applies to
9115 # zlib.
9116 if test "$enable_shared" = "yes"; then
9117 extra_host_zlib_configure_flags=--enable-host-shared
9120 esac
9124 # Produce a warning message for the subdirs we can't configure.
9125 # This isn't especially interesting in the Cygnus tree, but in the individual
9126 # FSF releases, it's important to let people know when their machine isn't
9127 # supported by the one or two programs in a package.
9129 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9130 # If $appdirs is non-empty, at least one of those directories must still
9131 # be configured, or we error out. (E.g., if the gas release supports a
9132 # specified target in some subdirs but not the gas subdir, we shouldn't
9133 # pretend that all is well.)
9134 if test -n "$appdirs" ; then
9135 for dir in $appdirs ; do
9136 if test -r $dir/Makefile.in ; then
9137 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9138 appdirs=""
9139 break
9141 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9142 appdirs=""
9143 break
9146 done
9147 if test -n "$appdirs" ; then
9148 echo "*** This configuration is not supported by this package." 1>&2
9149 exit 1
9152 # Okay, some application will build, or we don't care to check. Still
9153 # notify of subdirs not getting built.
9154 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9155 echo " ${notsupp}" 1>&2
9156 echo " (Any other directories should still work fine.)" 1>&2
9159 case "$host" in
9160 *msdosdjgpp*)
9161 enable_gdbtk=no ;;
9162 esac
9164 # To find our prefix, in gcc_cv_tool_prefix.
9166 # The user is always right.
9167 if test "${PATH_SEPARATOR+set}" != set; then
9168 echo "#! /bin/sh" >conf$$.sh
9169 echo "exit 0" >>conf$$.sh
9170 chmod +x conf$$.sh
9171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9172 PATH_SEPARATOR=';'
9173 else
9174 PATH_SEPARATOR=:
9176 rm -f conf$$.sh
9180 get_gcc_base_ver="cat"
9182 # Check whether --with-gcc-major-version-only was given.
9183 if test "${with_gcc_major_version_only+set}" = set; then :
9184 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9185 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9195 if test "x$exec_prefix" = xNONE; then
9196 if test "x$prefix" = xNONE; then
9197 gcc_cv_tool_prefix=$ac_default_prefix
9198 else
9199 gcc_cv_tool_prefix=$prefix
9201 else
9202 gcc_cv_tool_prefix=$exec_prefix
9205 # If there is no compiler in the tree, use the PATH only. In any
9206 # case, if there is no compiler in the tree nobody should use
9207 # AS_FOR_TARGET and LD_FOR_TARGET.
9208 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9209 if test x$with_gcc_major_version_only = xyes ; then
9210 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9211 else
9212 gcc_version=`cat $srcdir/gcc/BASE-VER`
9214 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9219 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9220 else
9221 gcc_cv_tool_dirs=
9224 if test x$build = x$target && test -n "$md_exec_prefix"; then
9225 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9230 copy_dirs=
9233 # Check whether --with-build-sysroot was given.
9234 if test "${with_build_sysroot+set}" = set; then :
9235 withval=$with_build_sysroot; if test x"$withval" != x ; then
9236 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9238 else
9239 SYSROOT_CFLAGS_FOR_TARGET=
9245 # Check whether --with-debug-prefix-map was given.
9246 if test "${with_debug_prefix_map+set}" = set; then :
9247 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9248 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9249 for debug_map in $withval; do
9250 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9251 done
9253 else
9254 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9259 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9260 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9261 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9262 # We want to ensure that TARGET libraries (which we know are built with
9263 # gcc) are built with "-O2 -g", so include those options when setting
9264 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9265 if test "x$CFLAGS_FOR_TARGET" = x; then
9266 if test "x${is_cross_compiler}" = xyes; then
9267 CFLAGS_FOR_TARGET="-g -O2"
9268 else
9269 CFLAGS_FOR_TARGET=$CFLAGS
9270 case " $CFLAGS " in
9271 *" -O2 "*) ;;
9272 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9273 esac
9274 case " $CFLAGS " in
9275 *" -g "* | *" -g3 "*) ;;
9276 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9277 esac
9282 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9283 if test "x${is_cross_compiler}" = xyes; then
9284 CXXFLAGS_FOR_TARGET="-g -O2"
9285 else
9286 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9287 case " $CXXFLAGS " in
9288 *" -O2 "*) ;;
9289 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9290 esac
9291 case " $CXXFLAGS " in
9292 *" -g "* | *" -g3 "*) ;;
9293 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9294 esac
9301 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9302 # the named directory are copied to $(tooldir)/sys-include.
9303 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9304 if test x${is_cross_compiler} = xno ; then
9305 echo 1>&2 '***' --with-headers is only supported when cross compiling
9306 exit 1
9308 if test x"${with_headers}" != xyes ; then
9309 x=${gcc_cv_tool_prefix}
9310 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9314 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9315 # the name directories are copied to $(tooldir)/lib. Multiple directories
9316 # are permitted.
9317 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9318 if test x${is_cross_compiler} = xno ; then
9319 echo 1>&2 '***' --with-libs is only supported when cross compiling
9320 exit 1
9322 if test x"${with_libs}" != xyes ; then
9323 # Copy the libraries in reverse order, so that files in the first named
9324 # library override files in subsequent libraries.
9325 x=${gcc_cv_tool_prefix}
9326 for l in ${with_libs}; do
9327 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9328 done
9332 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9334 # This is done by determining whether or not the appropriate directory
9335 # is available, and by checking whether or not specific configurations
9336 # have requested that this magic not happen.
9338 # The command line options always override the explicit settings in
9339 # configure.ac, and the settings in configure.ac override this magic.
9341 # If the default for a toolchain is to use GNU as and ld, and you don't
9342 # want to do that, then you should use the --without-gnu-as and
9343 # --without-gnu-ld options for the configure script. Similarly, if
9344 # the default is to use the included zlib and you don't want to do that,
9345 # you should use the --with-system-zlib option for the configure script.
9347 if test x${use_gnu_as} = x &&
9348 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9349 with_gnu_as=yes
9350 extra_host_args="$extra_host_args --with-gnu-as"
9353 if test x${use_gnu_ld} = x &&
9354 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9355 with_gnu_ld=yes
9356 extra_host_args="$extra_host_args --with-gnu-ld"
9359 if test x${use_included_zlib} = x &&
9360 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9362 else
9363 with_system_zlib=yes
9364 extra_host_args="$extra_host_args --with-system-zlib"
9367 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9368 # can detect this case.
9370 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9371 with_newlib=yes
9372 extra_host_args="$extra_host_args --with-newlib"
9375 # Handle ${copy_dirs}
9376 set fnord ${copy_dirs}
9377 shift
9378 while test $# != 0 ; do
9379 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9381 else
9382 echo Copying $1 to $2
9384 # Use the install script to create the directory and all required
9385 # parent directories.
9386 if test -d $2 ; then
9388 else
9389 echo >config.temp
9390 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9393 # Copy the directory, assuming we have tar.
9394 # FIXME: Should we use B in the second tar? Not all systems support it.
9395 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9397 # It is the responsibility of the user to correctly adjust all
9398 # symlinks. If somebody can figure out how to handle them correctly
9399 # here, feel free to add the code.
9401 echo $1 > $2/COPIED
9403 shift; shift
9404 done
9406 # Determine a target-dependent exec_prefix that the installed
9407 # gcc will search in. Keep this list sorted by triplet, with
9408 # the *-*-osname triplets last.
9409 md_exec_prefix=
9410 case "${target}" in
9411 i[34567]86-pc-msdosdjgpp*)
9412 md_exec_prefix=/dev/env/DJDIR/bin
9414 *-*-hpux* | \
9415 *-*-nto-qnx* | \
9416 *-*-solaris2*)
9417 md_exec_prefix=/usr/ccs/bin
9419 esac
9421 extra_arflags_for_target=
9422 extra_nmflags_for_target=
9423 extra_ranlibflags_for_target=
9424 target_makefile_frag=/dev/null
9425 case "${target}" in
9426 spu-*-*)
9427 target_makefile_frag="config/mt-spu"
9429 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9430 target_makefile_frag="config/mt-sde"
9432 mipsisa*-*-elfoabi*)
9433 target_makefile_frag="config/mt-mips-elfoabi"
9435 mips*-*-*linux* | mips*-*-gnu*)
9436 target_makefile_frag="config/mt-mips-gnu"
9438 nios2-*-elf*)
9439 target_makefile_frag="config/mt-nios2-elf"
9441 *-*-linux-android*)
9442 target_makefile_frag="config/mt-android"
9444 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9445 target_makefile_frag="config/mt-gnu"
9447 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9448 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9449 # commands to handle both 32-bit and 64-bit objects. These flags are
9450 # harmless if we're using GNU nm or ar.
9451 extra_arflags_for_target=" -X32_64"
9452 extra_nmflags_for_target=" -B -X32_64"
9454 esac
9456 alphaieee_frag=/dev/null
9457 case $target in
9458 alpha*-*-*)
9459 # This just makes sure to use the -mieee option to build target libs.
9460 # This should probably be set individually by each library.
9461 alphaieee_frag="config/mt-alphaieee"
9463 esac
9465 # If --enable-target-optspace always use -Os instead of -O2 to build
9466 # the target libraries, similarly if it is not specified, use -Os
9467 # on selected platforms.
9468 ospace_frag=/dev/null
9469 case "${enable_target_optspace}:${target}" in
9470 yes:*)
9471 ospace_frag="config/mt-ospace"
9473 :d30v-*)
9474 ospace_frag="config/mt-d30v"
9476 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9477 ospace_frag="config/mt-ospace"
9479 no:* | :*)
9482 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9484 esac
9486 # Some systems (e.g., one of the i386-aix systems the gas testers are
9487 # using) don't handle "\$" correctly, so don't use it here.
9488 tooldir='${exec_prefix}'/${target_noncanonical}
9489 build_tooldir=${tooldir}
9491 # Create a .gdbinit file which runs the one in srcdir
9492 # and tells GDB to look there for source files.
9494 if test -r ${srcdir}/.gdbinit ; then
9495 case ${srcdir} in
9496 .) ;;
9497 *) cat > ./.gdbinit <<EOF
9498 # ${NO_EDIT}
9499 dir ${srcdir}
9500 dir .
9501 source ${srcdir}/.gdbinit
9504 esac
9507 # Make sure that the compiler is able to generate an executable. If it
9508 # can't, we are probably in trouble. We don't care whether we can run the
9509 # executable--we might be using a cross compiler--we only care whether it
9510 # can be created. At this point the main configure script has set CC.
9511 we_are_ok=no
9512 echo "int main () { return 0; }" > conftest.c
9513 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9514 if test $? = 0 ; then
9515 if test -s conftest || test -s conftest.exe ; then
9516 we_are_ok=yes
9519 case $we_are_ok in
9521 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9522 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9523 rm -f conftest*
9524 exit 1
9526 esac
9527 rm -f conftest*
9529 # Decide which environment variable is used to find dynamic libraries.
9530 case "${host}" in
9531 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9532 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9533 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9534 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9535 esac
9537 # On systems where the dynamic library environment variable is PATH,
9538 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9539 # built executables to PATH.
9540 if test "$RPATH_ENVVAR" = PATH; then
9541 GCC_SHLIB_SUBDIR=/shlib
9542 else
9543 GCC_SHLIB_SUBDIR=
9546 # Adjust the toplevel makefile according to whether bootstrap was selected.
9547 case $enable_bootstrap in
9548 yes)
9549 bootstrap_suffix=bootstrap
9550 BUILD_CONFIG=bootstrap-debug
9553 bootstrap_suffix=no-bootstrap
9554 BUILD_CONFIG=
9556 esac
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9559 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9562 # Check whether --with-build-config was given.
9563 if test "${with_build_config+set}" = set; then :
9564 withval=$with_build_config; case $with_build_config in
9565 yes) with_build_config= ;;
9566 no) with_build_config= BUILD_CONFIG= ;;
9567 esac
9571 if test "x${with_build_config}" != x; then
9572 BUILD_CONFIG=$with_build_config
9573 else
9574 case $BUILD_CONFIG in
9575 bootstrap-debug)
9576 if echo "int f (void) { return 0; }" > conftest.c &&
9577 ${CC} -c conftest.c &&
9578 mv conftest.o conftest.o.g0 &&
9579 ${CC} -c -g conftest.c &&
9580 mv conftest.o conftest.o.g &&
9581 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9583 else
9584 BUILD_CONFIG=
9586 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9588 esac
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9591 $as_echo "$BUILD_CONFIG" >&6; }
9594 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9596 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9597 # Check whether --enable-vtable-verify was given.
9598 if test "${enable_vtable_verify+set}" = set; then :
9599 enableval=$enable_vtable_verify; case "$enableval" in
9600 yes) enable_vtable_verify=yes ;;
9601 no) enable_vtable_verify=no ;;
9602 *) enable_vtable_verify=no;;
9603 esac
9604 else
9605 enable_vtable_verify=no
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9609 $as_echo "$enable_vtable_verify" >&6; }
9611 # Record target_configdirs and the configure arguments for target and
9612 # build configuration in Makefile.
9613 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9614 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9615 bootstrap_fixincludes=no
9617 # If we are building libgomp, bootstrap it.
9618 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9619 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9622 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9623 # or bootstrap-ubsan, bootstrap it.
9624 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9625 case "$BUILD_CONFIG" in
9626 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9627 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9628 bootstrap_fixincludes=yes
9630 esac
9633 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9634 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9635 test "$enable_vtable_verify" != no; then
9636 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9639 # If we are building libatomic and the list of enabled languages includes the
9640 # D frontend, bootstrap it.
9641 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9642 case ,${enable_languages}, in
9643 *,d,*)
9644 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9646 esac
9649 # Determine whether gdb needs tk/tcl or not.
9650 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9651 # and in that case we want gdb to be built without tk. Ugh!
9652 # In fact I believe gdb is the *only* package directly dependent on tk,
9653 # so we should be able to put the 'maybe's in unconditionally and
9654 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9655 # 100% sure that that's safe though.
9657 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9658 case "$enable_gdbtk" in
9660 GDB_TK="" ;;
9661 yes)
9662 GDB_TK="${gdb_tk}" ;;
9664 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9665 # distro. Eventually someone will fix this and move Insight, nee
9666 # gdbtk to a separate directory.
9667 if test -d ${srcdir}/gdb/gdbtk ; then
9668 GDB_TK="${gdb_tk}"
9669 else
9670 GDB_TK=""
9673 esac
9674 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9675 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9677 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9678 # else does, only include them if one of these is built. The Makefile
9679 # provides the ordering, so it's enough here to add to the list.
9680 case " ${configdirs} " in
9681 *\ gdb\ *)
9682 configdirs="${configdirs} gnulib gdbsupport"
9684 *\ gdbserver\ *)
9685 configdirs="${configdirs} gnulib gdbsupport"
9687 *\ sim\ *)
9688 configdirs="${configdirs} gnulib"
9690 esac
9692 # Strip out unwanted targets.
9694 # While at that, we remove Makefiles if we were started for recursive
9695 # configuration, so that the top-level Makefile reconfigures them,
9696 # like we used to do when configure itself was recursive.
9698 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9699 # but now we're fixing up the Makefile ourselves with the additional
9700 # commands passed to AC_CONFIG_FILES. Use separate variables
9701 # extrasub-{build,host,target} not because there is any reason to split
9702 # the substitutions up that way, but only to remain below the limit of
9703 # 99 commands in a script, for HP-UX sed.
9705 # Do not nest @if/@endif or @unless/@endunless pairs, because
9706 # configure will not warn you at all.
9708 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9709 yes:yes:*\ gold\ *:*,c++,*) ;;
9710 yes:yes:*\ gold\ *:*)
9711 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9713 esac
9715 extrasub_build=
9716 for module in ${build_configdirs} ; do
9717 if test -z "${no_recursion}" \
9718 && test -f ${build_subdir}/${module}/Makefile; then
9719 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9720 rm -f ${build_subdir}/${module}/Makefile
9722 extrasub_build="$extrasub_build
9723 /^@if build-$module\$/d
9724 /^@endif build-$module\$/d
9725 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9726 /^@if build-$module-$bootstrap_suffix\$/d
9727 /^@endif build-$module-$bootstrap_suffix\$/d
9728 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9729 done
9730 extrasub_host=
9731 for module in ${configdirs} ; do
9732 if test -z "${no_recursion}"; then
9733 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9734 if test -f ${file}; then
9735 echo 1>&2 "*** removing ${file} to force reconfigure"
9736 rm -f ${file}
9738 done
9740 case ${module},${bootstrap_fixincludes} in
9741 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9742 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9743 esac
9744 extrasub_host="$extrasub_host
9745 /^@if $module\$/d
9746 /^@endif $module\$/d
9747 /^@unless $module\$/,/^@endunless $module\$/d
9748 /^@if $module-$host_bootstrap_suffix\$/d
9749 /^@endif $module-$host_bootstrap_suffix\$/d
9750 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9751 done
9752 extrasub_target=
9753 for module in ${target_configdirs} ; do
9754 if test -z "${no_recursion}" \
9755 && test -f ${target_subdir}/${module}/Makefile; then
9756 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9757 rm -f ${target_subdir}/${module}/Makefile
9760 # We only bootstrap target libraries listed in bootstrap_target_libs.
9761 case $bootstrap_target_libs in
9762 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9763 *) target_bootstrap_suffix=no-bootstrap ;;
9764 esac
9766 extrasub_target="$extrasub_target
9767 /^@if target-$module\$/d
9768 /^@endif target-$module\$/d
9769 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9770 /^@if target-$module-$target_bootstrap_suffix\$/d
9771 /^@endif target-$module-$target_bootstrap_suffix\$/d
9772 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9773 done
9775 # Do the final fixup along with target modules.
9776 extrasub_target="$extrasub_target
9777 /^@if /,/^@endif /d
9778 /^@unless /d
9779 /^@endunless /d"
9781 # Create the serialization dependencies. This uses a temporary file.
9783 # Check whether --enable-serial-configure was given.
9784 if test "${enable_serial_configure+set}" = set; then :
9785 enableval=$enable_serial_configure;
9789 case ${enable_serial_configure} in
9790 yes)
9791 enable_serial_build_configure=yes
9792 enable_serial_host_configure=yes
9793 enable_serial_target_configure=yes
9795 esac
9797 # These force 'configure's to be done one at a time, to avoid problems
9798 # with contention over a shared config.cache.
9799 rm -f serdep.tmp
9800 echo '# serdep.tmp' > serdep.tmp
9801 olditem=
9802 test "x${enable_serial_build_configure}" = xyes &&
9803 for item in ${build_configdirs} ; do
9804 case ${olditem} in
9805 "") ;;
9806 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9807 esac
9808 olditem=${item}
9809 done
9810 olditem=
9811 test "x${enable_serial_host_configure}" = xyes &&
9812 for item in ${configdirs} ; do
9813 case ${olditem} in
9814 "") ;;
9815 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9816 esac
9817 olditem=${item}
9818 done
9819 olditem=
9820 test "x${enable_serial_target_configure}" = xyes &&
9821 for item in ${target_configdirs} ; do
9822 case ${olditem} in
9823 "") ;;
9824 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9825 esac
9826 olditem=${item}
9827 done
9828 serialization_dependencies=serdep.tmp
9831 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9832 # target, nonopt, and variable assignments. These are the ones we
9833 # might not want to pass down to subconfigures. The exception being
9834 # --cache-file=/dev/null, which is used to turn off the use of cache
9835 # files altogether, and which should be passed on to subconfigures.
9836 # Also strip program-prefix, program-suffix, and program-transform-name,
9837 # so that we can pass down a consistent program-transform-name.
9838 baseargs=
9839 tbaseargs=
9840 keep_next=no
9841 skip_next=no
9842 eval "set -- $ac_configure_args"
9843 for ac_arg
9845 if test X"$skip_next" = X"yes"; then
9846 skip_next=no
9847 continue
9849 if test X"$keep_next" = X"yes"; then
9850 case $ac_arg in
9851 *\'*)
9852 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9853 esac
9854 baseargs="$baseargs '$ac_arg'"
9855 tbaseargs="$tbaseargs '$ac_arg'"
9856 keep_next=no
9857 continue
9860 # Handle separated arguments. Based on the logic generated by
9861 # autoconf 2.59.
9862 case $ac_arg in
9863 *=* | --config-cache | -C | -disable-* | --disable-* \
9864 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9865 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9866 | -with-* | --with-* | -without-* | --without-* | --x)
9867 separate_arg=no
9870 separate_arg=yes
9873 separate_arg=no
9875 esac
9877 skip_targ=no
9878 case $ac_arg in
9880 --with-* | --without-*)
9881 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9883 case $libopt in
9884 *[-_]include)
9885 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9887 *[-_]lib)
9888 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9891 lib=$libopt
9893 esac
9896 case $lib in
9897 mpc | mpfr | gmp | isl)
9898 # If we're processing --with-$lib, --with-$lib-include or
9899 # --with-$lib-lib, for one of the libs above, and target is
9900 # different from host, don't pass the current argument to any
9901 # target library's configure.
9902 if test x$is_cross_compiler = xyes; then
9903 skip_targ=yes
9906 esac
9908 esac
9910 case "$ac_arg" in
9911 --cache-file=/dev/null | \
9912 -cache-file=/dev/null )
9913 # Handled here to avoid the test to skip args below.
9914 baseargs="$baseargs '$ac_arg'"
9915 tbaseargs="$tbaseargs '$ac_arg'"
9916 # Assert: $separate_arg should always be no.
9917 keep_next=$separate_arg
9919 --no*)
9920 continue
9922 --c* | \
9923 --sr* | \
9924 --ho* | \
9925 --bu* | \
9926 --t* | \
9927 --program-* | \
9928 -cache_file* | \
9929 -srcdir* | \
9930 -host* | \
9931 -build* | \
9932 -target* | \
9933 -program-prefix* | \
9934 -program-suffix* | \
9935 -program-transform-name* )
9936 skip_next=$separate_arg
9937 continue
9940 # An option. Add it.
9941 case $ac_arg in
9942 *\'*)
9943 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9944 esac
9945 baseargs="$baseargs '$ac_arg'"
9946 if test X"$skip_targ" = Xno; then
9947 tbaseargs="$tbaseargs '$ac_arg'"
9949 keep_next=$separate_arg
9952 # Either a variable assignment, or a nonopt (triplet). Don't
9953 # pass it down; let the Makefile handle this.
9954 continue
9956 esac
9957 done
9958 # Remove the initial space we just introduced and, as these will be
9959 # expanded by make, quote '$'.
9960 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9962 # Add in --program-transform-name, after --program-prefix and
9963 # --program-suffix have been applied to it. Autoconf has already
9964 # doubled dollar signs and backslashes in program_transform_name; we want
9965 # the backslashes un-doubled, and then the entire thing wrapped in single
9966 # quotes, because this will be expanded first by make and then by the shell.
9967 # Also, because we want to override the logic in subdir configure scripts to
9968 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9969 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9970 ${program_transform_name}
9971 EOF_SED
9972 gcc_transform_name=`cat conftestsed.out`
9973 rm -f conftestsed.out
9974 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9975 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9976 if test "$silent" = yes; then
9977 baseargs="$baseargs --silent"
9978 tbaseargs="$tbaseargs --silent"
9980 baseargs="$baseargs --disable-option-checking"
9981 tbaseargs="$tbaseargs --disable-option-checking"
9983 # Record and document user additions to sub configure arguments.
9988 # For the build-side libraries, we just need to pretend we're native,
9989 # and not use the same cache file. Multilibs are neither needed nor
9990 # desired. We can't even use the same cache file for all build-side
9991 # libraries, as they're compiled differently; some with C, some with
9992 # C++ or with different feature-enabling options.
9993 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9995 # For host modules, accept cache file option, or specification as blank.
9996 case "${cache_file}" in
9997 "") # empty
9998 cache_file_option="" ;;
9999 /* | [A-Za-z]:[\\/]* ) # absolute path
10000 cache_file_option="--cache-file=${cache_file}" ;;
10001 *) # relative path
10002 cache_file_option="--cache-file=../${cache_file}" ;;
10003 esac
10005 # Host dirs don't like to share a cache file either, horribly enough.
10006 # This seems to be due to autoconf 2.5x stupidity.
10007 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10009 target_configargs="$target_configargs ${tbaseargs}"
10011 # Passing a --with-cross-host argument lets the target libraries know
10012 # whether they are being built with a cross-compiler or being built
10013 # native. However, it would be better to use other mechanisms to make the
10014 # sorts of decisions they want to make on this basis. Please consider
10015 # this option to be deprecated. FIXME.
10016 if test x${is_cross_compiler} = xyes ; then
10017 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10020 # Special user-friendly check for native x86_64-linux build, if
10021 # multilib is not explicitly enabled.
10022 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10023 x86_64-*linux*:yes:$build:$build:)
10024 # Make sure we have a development environment that handles 32-bit
10025 dev64=no
10026 echo "int main () { return 0; }" > conftest.c
10027 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10028 if test $? = 0 ; then
10029 if test -s conftest || test -s conftest.exe ; then
10030 dev64=yes
10033 rm -f conftest*
10034 if test x${dev64} != xyes ; then
10035 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
10038 esac
10040 # Default to --enable-multilib.
10041 if test x${enable_multilib} = x ; then
10042 target_configargs="--enable-multilib ${target_configargs}"
10045 # Pass --with-newlib if appropriate. Note that target_configdirs has
10046 # changed from the earlier setting of with_newlib.
10047 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10048 target_configargs="--with-newlib ${target_configargs}"
10051 # Different target subdirs use different values of certain variables
10052 # (notably CXX). Worse, multilibs use *lots* of different values.
10053 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10054 # it doesn't automatically accept command-line overrides of them.
10055 # This means it's not safe for target subdirs to share a cache file,
10056 # which is disgusting, but there you have it. Hopefully this can be
10057 # fixed in future. It's still worthwhile to use a cache file for each
10058 # directory. I think.
10060 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10061 # We need to pass --target, as newer autoconf's requires consistency
10062 # for target_alias and gcc doesn't manage it consistently.
10063 target_configargs="--cache-file=./config.cache ${target_configargs}"
10065 FLAGS_FOR_TARGET=
10066 case " $target_configdirs " in
10067 *" newlib "*)
10068 case " $target_configargs " in
10069 *" --with-newlib "*)
10070 case "$target" in
10071 *-cygwin*)
10072 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10074 esac
10076 # If we're not building GCC, don't discard standard headers.
10077 if test -d ${srcdir}/gcc; then
10078 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10080 if test "${build}" != "${host}"; then
10081 # On Canadian crosses, CC_FOR_TARGET will have already been set
10082 # by `configure', so we won't have an opportunity to add -Bgcc/
10083 # to it. This is right: we don't want to search that directory
10084 # for binaries, but we want the header files in there, so add
10085 # them explicitly.
10086 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10088 # Someone might think of using the pre-installed headers on
10089 # Canadian crosses, in case the installed compiler is not fully
10090 # compatible with the compiler being built. In this case, it
10091 # would be better to flag an error than risking having
10092 # incompatible object files being constructed. We can't
10093 # guarantee that an error will be flagged, but let's hope the
10094 # compiler will do it, when presented with incompatible header
10095 # files.
10099 case "${target}-${is_cross_compiler}" in
10100 i[3456789]86-*-linux*-no)
10101 # Here host == target, so we don't need to build gcc,
10102 # so we don't want to discard standard headers.
10103 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10106 # If we're building newlib, use its generic headers last, but search
10107 # for any libc-related directories first (so make it the last -B
10108 # switch).
10109 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10111 # If we're building libgloss, find the startup file, simulator library
10112 # and linker script.
10113 case " $target_configdirs " in
10114 *" libgloss "*)
10115 # Look for startup file, simulator library and maybe linker script.
10116 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10117 # Look for libnosys.a in case the target needs it.
10118 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10119 # Most targets have the linker script in the source directory.
10120 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10122 esac
10124 esac
10126 esac
10128 esac
10130 case "$target" in
10131 x86_64-*mingw* | *-w64-mingw*)
10132 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10133 # however, use a symlink named 'mingw' in ${prefix} .
10134 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10136 *-mingw*)
10137 # MinGW can't be handled as Cygwin above since it does not use newlib.
10138 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'
10140 esac
10142 # Allow the user to override the flags for
10143 # our build compiler if desired.
10144 if test x"${build}" = x"${host}" ; then
10145 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10146 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10147 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10148 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10151 # On Canadian crosses, we'll be searching the right directories for
10152 # the previously-installed cross compiler, so don't bother to add
10153 # flags for directories within the install tree of the compiler
10154 # being built; programs in there won't even run.
10155 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10156 # Search for pre-installed headers if nothing else fits.
10157 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10160 if test "x${use_gnu_ld}" = x &&
10161 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10162 # Arrange for us to find uninstalled linker scripts.
10163 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10166 # Search for other target-specific linker scripts and such.
10167 case "${target}" in
10168 mep*)
10169 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10171 esac
10173 # Makefile fragments.
10174 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10176 eval fragval=\$$frag
10177 if test $fragval != /dev/null; then
10178 eval $frag=${srcdir}/$fragval
10180 done
10186 # Miscellanea: directories, flags, etc.
10195 # Build module lists & subconfigure args.
10199 # Host module lists & subconfigure args.
10204 # Target module lists & subconfigure args.
10208 # Build tools.
10229 # Generate default definitions for YACC, M4, LEX and other programs that run
10230 # on the build machine. These are used if the Makefile can't locate these
10231 # programs in objdir.
10232 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10234 for ac_prog in 'bison -y' byacc yacc
10236 # Extract the first word of "$ac_prog", so it can be a program name with args.
10237 set dummy $ac_prog; ac_word=$2
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if ${ac_cv_prog_YACC+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 if test -n "$YACC"; then
10244 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10245 else
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_prog_YACC="$ac_prog"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10257 done
10258 done
10259 IFS=$as_save_IFS
10263 YACC=$ac_cv_prog_YACC
10264 if test -n "$YACC"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10266 $as_echo "$YACC" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10273 test -n "$YACC" && break
10274 done
10275 test -n "$YACC" || YACC="$MISSING bison -y"
10277 case " $build_configdirs " in
10278 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10279 esac
10281 for ac_prog in bison
10283 # Extract the first word of "$ac_prog", so it can be a program name with args.
10284 set dummy $ac_prog; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_prog_BISON+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 if test -n "$BISON"; then
10291 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10292 else
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 ac_cv_prog_BISON="$ac_prog"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 break 2
10304 done
10305 done
10306 IFS=$as_save_IFS
10310 BISON=$ac_cv_prog_BISON
10311 if test -n "$BISON"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10313 $as_echo "$BISON" >&6; }
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10320 test -n "$BISON" && break
10321 done
10322 test -n "$BISON" || BISON="$MISSING bison"
10324 case " $build_configdirs " in
10325 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10326 esac
10328 for ac_prog in gm4 gnum4 m4
10330 # Extract the first word of "$ac_prog", so it can be a program name with args.
10331 set dummy $ac_prog; ac_word=$2
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333 $as_echo_n "checking for $ac_word... " >&6; }
10334 if ${ac_cv_prog_M4+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 if test -n "$M4"; then
10338 ac_cv_prog_M4="$M4" # Let the user override the test.
10339 else
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10347 ac_cv_prog_M4="$ac_prog"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10351 done
10352 done
10353 IFS=$as_save_IFS
10357 M4=$ac_cv_prog_M4
10358 if test -n "$M4"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10360 $as_echo "$M4" >&6; }
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10367 test -n "$M4" && break
10368 done
10369 test -n "$M4" || M4="$MISSING m4"
10371 case " $build_configdirs " in
10372 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10373 esac
10375 for ac_prog in flex lex
10377 # Extract the first word of "$ac_prog", so it can be a program name with args.
10378 set dummy $ac_prog; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_prog_LEX+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 if test -n "$LEX"; then
10385 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10386 else
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_prog_LEX="$ac_prog"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396 break 2
10398 done
10399 done
10400 IFS=$as_save_IFS
10404 LEX=$ac_cv_prog_LEX
10405 if test -n "$LEX"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10407 $as_echo "$LEX" >&6; }
10408 else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10414 test -n "$LEX" && break
10415 done
10416 test -n "$LEX" || LEX="$MISSING flex"
10418 case " $build_configdirs " in
10419 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10420 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10421 esac
10423 for ac_prog in flex
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426 set dummy $ac_prog; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_prog_FLEX+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 if test -n "$FLEX"; then
10433 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10434 else
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10442 ac_cv_prog_FLEX="$ac_prog"
10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10446 done
10447 done
10448 IFS=$as_save_IFS
10452 FLEX=$ac_cv_prog_FLEX
10453 if test -n "$FLEX"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10455 $as_echo "$FLEX" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10462 test -n "$FLEX" && break
10463 done
10464 test -n "$FLEX" || FLEX="$MISSING flex"
10466 case " $build_configdirs " in
10467 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10468 esac
10470 for ac_prog in makeinfo
10472 # Extract the first word of "$ac_prog", so it can be a program name with args.
10473 set dummy $ac_prog; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if ${ac_cv_prog_MAKEINFO+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 if test -n "$MAKEINFO"; then
10480 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10481 else
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489 ac_cv_prog_MAKEINFO="$ac_prog"
10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 break 2
10493 done
10494 done
10495 IFS=$as_save_IFS
10499 MAKEINFO=$ac_cv_prog_MAKEINFO
10500 if test -n "$MAKEINFO"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10502 $as_echo "$MAKEINFO" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10509 test -n "$MAKEINFO" && break
10510 done
10511 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10513 case " $build_configdirs " in
10514 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10517 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10518 # higher, else we use the "missing" dummy.
10519 if ${MAKEINFO} --version \
10520 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10522 else
10523 MAKEINFO="$MISSING makeinfo"
10527 esac
10529 # FIXME: expect and dejagnu may become build tools?
10531 for ac_prog in expect
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534 set dummy $ac_prog; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if ${ac_cv_prog_EXPECT+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$EXPECT"; then
10541 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_EXPECT="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10554 done
10555 done
10556 IFS=$as_save_IFS
10560 EXPECT=$ac_cv_prog_EXPECT
10561 if test -n "$EXPECT"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10563 $as_echo "$EXPECT" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10570 test -n "$EXPECT" && break
10571 done
10572 test -n "$EXPECT" || EXPECT="expect"
10574 case " $configdirs " in
10575 *" expect "*)
10576 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10578 esac
10580 for ac_prog in runtest
10582 # Extract the first word of "$ac_prog", so it can be a program name with args.
10583 set dummy $ac_prog; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_RUNTEST+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 if test -n "$RUNTEST"; then
10590 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10591 else
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_RUNTEST="$ac_prog"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10603 done
10604 done
10605 IFS=$as_save_IFS
10609 RUNTEST=$ac_cv_prog_RUNTEST
10610 if test -n "$RUNTEST"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10612 $as_echo "$RUNTEST" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10619 test -n "$RUNTEST" && break
10620 done
10621 test -n "$RUNTEST" || RUNTEST="runtest"
10623 case " $configdirs " in
10624 *" dejagnu "*)
10625 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10627 esac
10630 # Host tools.
10631 ncn_tool_prefix=
10632 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10633 ncn_target_tool_prefix=
10634 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10638 if test -n "$AR"; then
10639 ac_cv_prog_AR=$AR
10640 elif test -n "$ac_cv_prog_AR"; then
10641 AR=$ac_cv_prog_AR
10644 if test -n "$ac_cv_prog_AR"; then
10645 for ncn_progname in ar; do
10646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10647 set dummy ${ncn_progname}; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_prog_AR+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test -n "$AR"; then
10654 ac_cv_prog_AR="$AR" # Let the user override the test.
10655 else
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10663 ac_cv_prog_AR="${ncn_progname}"
10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 break 2
10667 done
10668 done
10669 IFS=$as_save_IFS
10673 AR=$ac_cv_prog_AR
10674 if test -n "$AR"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10676 $as_echo "$AR" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10683 done
10686 for ncn_progname in ar; do
10687 if test -n "$ncn_tool_prefix"; then
10688 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10689 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_prog_AR+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 if test -n "$AR"; then
10696 ac_cv_prog_AR="$AR" # Let the user override the test.
10697 else
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 break 2
10709 done
10710 done
10711 IFS=$as_save_IFS
10715 AR=$ac_cv_prog_AR
10716 if test -n "$AR"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10718 $as_echo "$AR" >&6; }
10719 else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10726 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10728 set dummy ${ncn_progname}; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if ${ac_cv_prog_AR+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 if test -n "$AR"; then
10735 ac_cv_prog_AR="$AR" # Let the user override the test.
10736 else
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_prog_AR="${ncn_progname}"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10748 done
10749 done
10750 IFS=$as_save_IFS
10754 AR=$ac_cv_prog_AR
10755 if test -n "$AR"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10757 $as_echo "$AR" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10765 test -n "$ac_cv_prog_AR" && break
10766 done
10768 if test -z "$ac_cv_prog_AR" ; then
10769 set dummy ar
10770 if test $build = $host ; then
10771 AR="$2"
10772 else
10773 AR="${ncn_tool_prefix}$2"
10779 if test -n "$AS"; then
10780 ac_cv_prog_AS=$AS
10781 elif test -n "$ac_cv_prog_AS"; then
10782 AS=$ac_cv_prog_AS
10785 if test -n "$ac_cv_prog_AS"; then
10786 for ncn_progname in as; do
10787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10788 set dummy ${ncn_progname}; ac_word=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_prog_AS+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 if test -n "$AS"; then
10795 ac_cv_prog_AS="$AS" # Let the user override the test.
10796 else
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_AS="${ncn_progname}"
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10808 done
10809 done
10810 IFS=$as_save_IFS
10814 AS=$ac_cv_prog_AS
10815 if test -n "$AS"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10817 $as_echo "$AS" >&6; }
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10824 done
10827 for ncn_progname in as; do
10828 if test -n "$ncn_tool_prefix"; then
10829 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10830 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832 $as_echo_n "checking for $ac_word... " >&6; }
10833 if ${ac_cv_prog_AS+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 if test -n "$AS"; then
10837 ac_cv_prog_AS="$AS" # Let the user override the test.
10838 else
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10850 done
10851 done
10852 IFS=$as_save_IFS
10856 AS=$ac_cv_prog_AS
10857 if test -n "$AS"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10859 $as_echo "$AS" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10867 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10869 set dummy ${ncn_progname}; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if ${ac_cv_prog_AS+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 if test -n "$AS"; then
10876 ac_cv_prog_AS="$AS" # Let the user override the test.
10877 else
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879 for as_dir in $PATH
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_prog_AS="${ncn_progname}"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10889 done
10890 done
10891 IFS=$as_save_IFS
10895 AS=$ac_cv_prog_AS
10896 if test -n "$AS"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10898 $as_echo "$AS" >&6; }
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10906 test -n "$ac_cv_prog_AS" && break
10907 done
10909 if test -z "$ac_cv_prog_AS" ; then
10910 set dummy as
10911 if test $build = $host ; then
10912 AS="$2"
10913 else
10914 AS="${ncn_tool_prefix}$2"
10920 if test -n "$DLLTOOL"; then
10921 ac_cv_prog_DLLTOOL=$DLLTOOL
10922 elif test -n "$ac_cv_prog_DLLTOOL"; then
10923 DLLTOOL=$ac_cv_prog_DLLTOOL
10926 if test -n "$ac_cv_prog_DLLTOOL"; then
10927 for ncn_progname in dlltool; do
10928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10929 set dummy ${ncn_progname}; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_prog_DLLTOOL+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 if test -n "$DLLTOOL"; then
10936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10937 else
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10945 ac_cv_prog_DLLTOOL="${ncn_progname}"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10949 done
10950 done
10951 IFS=$as_save_IFS
10955 DLLTOOL=$ac_cv_prog_DLLTOOL
10956 if test -n "$DLLTOOL"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10958 $as_echo "$DLLTOOL" >&6; }
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10965 done
10968 for ncn_progname in dlltool; do
10969 if test -n "$ncn_tool_prefix"; then
10970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10971 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_prog_DLLTOOL+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 if test -n "$DLLTOOL"; then
10978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10979 else
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10991 done
10992 done
10993 IFS=$as_save_IFS
10997 DLLTOOL=$ac_cv_prog_DLLTOOL
10998 if test -n "$DLLTOOL"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11000 $as_echo "$DLLTOOL" >&6; }
11001 else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11008 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11010 set dummy ${ncn_progname}; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if ${ac_cv_prog_DLLTOOL+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 if test -n "$DLLTOOL"; then
11017 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11018 else
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_prog_DLLTOOL="${ncn_progname}"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11030 done
11031 done
11032 IFS=$as_save_IFS
11036 DLLTOOL=$ac_cv_prog_DLLTOOL
11037 if test -n "$DLLTOOL"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11039 $as_echo "$DLLTOOL" >&6; }
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11047 test -n "$ac_cv_prog_DLLTOOL" && break
11048 done
11050 if test -z "$ac_cv_prog_DLLTOOL" ; then
11051 set dummy dlltool
11052 if test $build = $host ; then
11053 DLLTOOL="$2"
11054 else
11055 DLLTOOL="${ncn_tool_prefix}$2"
11061 if test -n "$DSYMUTIL"; then
11062 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11063 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11064 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11067 if test -n "$ac_cv_prog_DSYMUTIL"; then
11068 for ncn_progname in dsymutil; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070 set dummy ${ncn_progname}; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 if test -n "$DSYMUTIL"; then
11077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11078 else
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11090 done
11091 done
11092 IFS=$as_save_IFS
11096 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11097 if test -n "$DSYMUTIL"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11099 $as_echo "$DSYMUTIL" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11106 done
11109 for ncn_progname in dsymutil; do
11110 if test -n "$ncn_tool_prefix"; then
11111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11112 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 $as_echo_n "checking for $ac_word... " >&6; }
11115 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 if test -n "$DSYMUTIL"; then
11119 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11120 else
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11132 done
11133 done
11134 IFS=$as_save_IFS
11138 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11139 if test -n "$DSYMUTIL"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11141 $as_echo "$DSYMUTIL" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11149 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11151 set dummy ${ncn_progname}; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 if test -n "$DSYMUTIL"; then
11158 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11159 else
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in $PATH
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11171 done
11172 done
11173 IFS=$as_save_IFS
11177 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11178 if test -n "$DSYMUTIL"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11180 $as_echo "$DSYMUTIL" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11188 test -n "$ac_cv_prog_DSYMUTIL" && break
11189 done
11191 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11192 set dummy dsymutil
11193 if test $build = $host ; then
11194 DSYMUTIL="$2"
11195 else
11196 DSYMUTIL="${ncn_tool_prefix}$2"
11202 if test -n "$LD"; then
11203 ac_cv_prog_LD=$LD
11204 elif test -n "$ac_cv_prog_LD"; then
11205 LD=$ac_cv_prog_LD
11208 if test -n "$ac_cv_prog_LD"; then
11209 for ncn_progname in ld; do
11210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11211 set dummy ${ncn_progname}; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_prog_LD+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 if test -n "$LD"; then
11218 ac_cv_prog_LD="$LD" # Let the user override the test.
11219 else
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_LD="${ncn_progname}"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11231 done
11232 done
11233 IFS=$as_save_IFS
11237 LD=$ac_cv_prog_LD
11238 if test -n "$LD"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11240 $as_echo "$LD" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11247 done
11250 for ncn_progname in ld; do
11251 if test -n "$ncn_tool_prefix"; then
11252 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11253 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_prog_LD+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 if test -n "$LD"; then
11260 ac_cv_prog_LD="$LD" # Let the user override the test.
11261 else
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11273 done
11274 done
11275 IFS=$as_save_IFS
11279 LD=$ac_cv_prog_LD
11280 if test -n "$LD"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11282 $as_echo "$LD" >&6; }
11283 else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11290 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292 set dummy ${ncn_progname}; ac_word=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if ${ac_cv_prog_LD+:} false; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 if test -n "$LD"; then
11299 ac_cv_prog_LD="$LD" # Let the user override the test.
11300 else
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_prog_LD="${ncn_progname}"
11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11312 done
11313 done
11314 IFS=$as_save_IFS
11318 LD=$ac_cv_prog_LD
11319 if test -n "$LD"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11321 $as_echo "$LD" >&6; }
11322 else
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324 $as_echo "no" >&6; }
11329 test -n "$ac_cv_prog_LD" && break
11330 done
11332 if test -z "$ac_cv_prog_LD" ; then
11333 set dummy ld
11334 if test $build = $host ; then
11335 LD="$2"
11336 else
11337 LD="${ncn_tool_prefix}$2"
11343 if test -n "$LIPO"; then
11344 ac_cv_prog_LIPO=$LIPO
11345 elif test -n "$ac_cv_prog_LIPO"; then
11346 LIPO=$ac_cv_prog_LIPO
11349 if test -n "$ac_cv_prog_LIPO"; then
11350 for ncn_progname in lipo; do
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352 set dummy ${ncn_progname}; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_prog_LIPO+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 if test -n "$LIPO"; then
11359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11360 else
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11368 ac_cv_prog_LIPO="${ncn_progname}"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 break 2
11372 done
11373 done
11374 IFS=$as_save_IFS
11378 LIPO=$ac_cv_prog_LIPO
11379 if test -n "$LIPO"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11381 $as_echo "$LIPO" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11388 done
11391 for ncn_progname in lipo; do
11392 if test -n "$ncn_tool_prefix"; then
11393 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11394 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_prog_LIPO+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if test -n "$LIPO"; then
11401 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11402 else
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11410 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11414 done
11415 done
11416 IFS=$as_save_IFS
11420 LIPO=$ac_cv_prog_LIPO
11421 if test -n "$LIPO"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11423 $as_echo "$LIPO" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11431 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11433 set dummy ${ncn_progname}; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if ${ac_cv_prog_LIPO+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 if test -n "$LIPO"; then
11440 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11441 else
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11449 ac_cv_prog_LIPO="${ncn_progname}"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11453 done
11454 done
11455 IFS=$as_save_IFS
11459 LIPO=$ac_cv_prog_LIPO
11460 if test -n "$LIPO"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11462 $as_echo "$LIPO" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11470 test -n "$ac_cv_prog_LIPO" && break
11471 done
11473 if test -z "$ac_cv_prog_LIPO" ; then
11474 set dummy lipo
11475 if test $build = $host ; then
11476 LIPO="$2"
11477 else
11478 LIPO="${ncn_tool_prefix}$2"
11484 if test -n "$NM"; then
11485 ac_cv_prog_NM=$NM
11486 elif test -n "$ac_cv_prog_NM"; then
11487 NM=$ac_cv_prog_NM
11490 if test -n "$ac_cv_prog_NM"; then
11491 for ncn_progname in nm; do
11492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493 set dummy ${ncn_progname}; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495 $as_echo_n "checking for $ac_word... " >&6; }
11496 if ${ac_cv_prog_NM+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 if test -n "$NM"; then
11500 ac_cv_prog_NM="$NM" # Let the user override the test.
11501 else
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509 ac_cv_prog_NM="${ncn_progname}"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511 break 2
11513 done
11514 done
11515 IFS=$as_save_IFS
11519 NM=$ac_cv_prog_NM
11520 if test -n "$NM"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11522 $as_echo "$NM" >&6; }
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11529 done
11532 for ncn_progname in nm; do
11533 if test -n "$ncn_tool_prefix"; then
11534 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11535 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537 $as_echo_n "checking for $ac_word... " >&6; }
11538 if ${ac_cv_prog_NM+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 if test -n "$NM"; then
11542 ac_cv_prog_NM="$NM" # Let the user override the test.
11543 else
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 break 2
11555 done
11556 done
11557 IFS=$as_save_IFS
11561 NM=$ac_cv_prog_NM
11562 if test -n "$NM"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11564 $as_echo "$NM" >&6; }
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11572 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11574 set dummy ${ncn_progname}; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if ${ac_cv_prog_NM+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 if test -n "$NM"; then
11581 ac_cv_prog_NM="$NM" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590 ac_cv_prog_NM="${ncn_progname}"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11594 done
11595 done
11596 IFS=$as_save_IFS
11600 NM=$ac_cv_prog_NM
11601 if test -n "$NM"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11603 $as_echo "$NM" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11611 test -n "$ac_cv_prog_NM" && break
11612 done
11614 if test -z "$ac_cv_prog_NM" ; then
11615 set dummy nm
11616 if test $build = $host ; then
11617 NM="$2"
11618 else
11619 NM="${ncn_tool_prefix}$2"
11625 if test -n "$RANLIB"; then
11626 ac_cv_prog_RANLIB=$RANLIB
11627 elif test -n "$ac_cv_prog_RANLIB"; then
11628 RANLIB=$ac_cv_prog_RANLIB
11631 if test -n "$ac_cv_prog_RANLIB"; then
11632 for ncn_progname in ranlib; do
11633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11634 set dummy ${ncn_progname}; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 $as_echo_n "checking for $ac_word... " >&6; }
11637 if ${ac_cv_prog_RANLIB+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 if test -n "$RANLIB"; then
11641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11642 else
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_prog_RANLIB="${ncn_progname}"
11651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11654 done
11655 done
11656 IFS=$as_save_IFS
11660 RANLIB=$ac_cv_prog_RANLIB
11661 if test -n "$RANLIB"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11663 $as_echo "$RANLIB" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11670 done
11673 for ncn_progname in ranlib; do
11674 if test -n "$ncn_tool_prefix"; then
11675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11676 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_prog_RANLIB+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test -n "$RANLIB"; then
11683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11696 done
11697 done
11698 IFS=$as_save_IFS
11702 RANLIB=$ac_cv_prog_RANLIB
11703 if test -n "$RANLIB"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11705 $as_echo "$RANLIB" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11713 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11715 set dummy ${ncn_progname}; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_prog_RANLIB+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 if test -n "$RANLIB"; then
11722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11723 else
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_prog_RANLIB="${ncn_progname}"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11735 done
11736 done
11737 IFS=$as_save_IFS
11741 RANLIB=$ac_cv_prog_RANLIB
11742 if test -n "$RANLIB"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11744 $as_echo "$RANLIB" >&6; }
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11752 test -n "$ac_cv_prog_RANLIB" && break
11753 done
11755 if test -z "$ac_cv_prog_RANLIB" ; then
11756 RANLIB="true"
11761 if test -n "$STRIP"; then
11762 ac_cv_prog_STRIP=$STRIP
11763 elif test -n "$ac_cv_prog_STRIP"; then
11764 STRIP=$ac_cv_prog_STRIP
11767 if test -n "$ac_cv_prog_STRIP"; then
11768 for ncn_progname in strip; do
11769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11770 set dummy ${ncn_progname}; ac_word=$2
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772 $as_echo_n "checking for $ac_word... " >&6; }
11773 if ${ac_cv_prog_STRIP+:} false; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 if test -n "$STRIP"; then
11777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11778 else
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786 ac_cv_prog_STRIP="${ncn_progname}"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 break 2
11790 done
11791 done
11792 IFS=$as_save_IFS
11796 STRIP=$ac_cv_prog_STRIP
11797 if test -n "$STRIP"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11799 $as_echo "$STRIP" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11806 done
11809 for ncn_progname in strip; do
11810 if test -n "$ncn_tool_prefix"; then
11811 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11812 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if ${ac_cv_prog_STRIP+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 if test -n "$STRIP"; then
11819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11828 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11832 done
11833 done
11834 IFS=$as_save_IFS
11838 STRIP=$ac_cv_prog_STRIP
11839 if test -n "$STRIP"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11841 $as_echo "$STRIP" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11849 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11851 set dummy ${ncn_progname}; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if ${ac_cv_prog_STRIP+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 if test -n "$STRIP"; then
11858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11859 else
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_prog_STRIP="${ncn_progname}"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11871 done
11872 done
11873 IFS=$as_save_IFS
11877 STRIP=$ac_cv_prog_STRIP
11878 if test -n "$STRIP"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11880 $as_echo "$STRIP" >&6; }
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11888 test -n "$ac_cv_prog_STRIP" && break
11889 done
11891 if test -z "$ac_cv_prog_STRIP" ; then
11892 STRIP="true"
11897 if test -n "$WINDRES"; then
11898 ac_cv_prog_WINDRES=$WINDRES
11899 elif test -n "$ac_cv_prog_WINDRES"; then
11900 WINDRES=$ac_cv_prog_WINDRES
11903 if test -n "$ac_cv_prog_WINDRES"; then
11904 for ncn_progname in windres; do
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906 set dummy ${ncn_progname}; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_prog_WINDRES+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test -n "$WINDRES"; then
11913 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922 ac_cv_prog_WINDRES="${ncn_progname}"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11926 done
11927 done
11928 IFS=$as_save_IFS
11932 WINDRES=$ac_cv_prog_WINDRES
11933 if test -n "$WINDRES"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11935 $as_echo "$WINDRES" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11942 done
11945 for ncn_progname in windres; do
11946 if test -n "$ncn_tool_prefix"; then
11947 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11948 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_prog_WINDRES+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 if test -n "$WINDRES"; then
11955 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11956 else
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11964 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 break 2
11968 done
11969 done
11970 IFS=$as_save_IFS
11974 WINDRES=$ac_cv_prog_WINDRES
11975 if test -n "$WINDRES"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11977 $as_echo "$WINDRES" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11985 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11987 set dummy ${ncn_progname}; ac_word=$2
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if ${ac_cv_prog_WINDRES+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 if test -n "$WINDRES"; then
11994 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003 ac_cv_prog_WINDRES="${ncn_progname}"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12007 done
12008 done
12009 IFS=$as_save_IFS
12013 WINDRES=$ac_cv_prog_WINDRES
12014 if test -n "$WINDRES"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12016 $as_echo "$WINDRES" >&6; }
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12024 test -n "$ac_cv_prog_WINDRES" && break
12025 done
12027 if test -z "$ac_cv_prog_WINDRES" ; then
12028 set dummy windres
12029 if test $build = $host ; then
12030 WINDRES="$2"
12031 else
12032 WINDRES="${ncn_tool_prefix}$2"
12038 if test -n "$WINDMC"; then
12039 ac_cv_prog_WINDMC=$WINDMC
12040 elif test -n "$ac_cv_prog_WINDMC"; then
12041 WINDMC=$ac_cv_prog_WINDMC
12044 if test -n "$ac_cv_prog_WINDMC"; then
12045 for ncn_progname in windmc; do
12046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12047 set dummy ${ncn_progname}; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if ${ac_cv_prog_WINDMC+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test -n "$WINDMC"; then
12054 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12055 else
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12063 ac_cv_prog_WINDMC="${ncn_progname}"
12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 break 2
12067 done
12068 done
12069 IFS=$as_save_IFS
12073 WINDMC=$ac_cv_prog_WINDMC
12074 if test -n "$WINDMC"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12076 $as_echo "$WINDMC" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12083 done
12086 for ncn_progname in windmc; do
12087 if test -n "$ncn_tool_prefix"; then
12088 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12089 set dummy ${ncn_tool_prefix}${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_WINDMC+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 if test -n "$WINDMC"; then
12096 ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${ncn_tool_prefix}${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 WINDMC=$ac_cv_prog_WINDMC
12116 if test -n "$WINDMC"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12118 $as_echo "$WINDMC" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12126 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12128 set dummy ${ncn_progname}; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_prog_WINDMC+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 if test -n "$WINDMC"; then
12135 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_WINDMC="${ncn_progname}"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12148 done
12149 done
12150 IFS=$as_save_IFS
12154 WINDMC=$ac_cv_prog_WINDMC
12155 if test -n "$WINDMC"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12157 $as_echo "$WINDMC" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12165 test -n "$ac_cv_prog_WINDMC" && break
12166 done
12168 if test -z "$ac_cv_prog_WINDMC" ; then
12169 set dummy windmc
12170 if test $build = $host ; then
12171 WINDMC="$2"
12172 else
12173 WINDMC="${ncn_tool_prefix}$2"
12179 if test -n "$OBJCOPY"; then
12180 ac_cv_prog_OBJCOPY=$OBJCOPY
12181 elif test -n "$ac_cv_prog_OBJCOPY"; then
12182 OBJCOPY=$ac_cv_prog_OBJCOPY
12185 if test -n "$ac_cv_prog_OBJCOPY"; then
12186 for ncn_progname in objcopy; do
12187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12188 set dummy ${ncn_progname}; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_prog_OBJCOPY+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if test -n "$OBJCOPY"; then
12195 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204 ac_cv_prog_OBJCOPY="${ncn_progname}"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12208 done
12209 done
12210 IFS=$as_save_IFS
12214 OBJCOPY=$ac_cv_prog_OBJCOPY
12215 if test -n "$OBJCOPY"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12217 $as_echo "$OBJCOPY" >&6; }
12218 else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12224 done
12227 for ncn_progname in objcopy; do
12228 if test -n "$ncn_tool_prefix"; then
12229 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12230 set dummy ${ncn_tool_prefix}${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_OBJCOPY+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 if test -n "$OBJCOPY"; then
12237 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${ncn_tool_prefix}${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 OBJCOPY=$ac_cv_prog_OBJCOPY
12257 if test -n "$OBJCOPY"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12259 $as_echo "$OBJCOPY" >&6; }
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12267 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12269 set dummy ${ncn_progname}; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_prog_OBJCOPY+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 if test -n "$OBJCOPY"; then
12276 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12277 else
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_prog_OBJCOPY="${ncn_progname}"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12289 done
12290 done
12291 IFS=$as_save_IFS
12295 OBJCOPY=$ac_cv_prog_OBJCOPY
12296 if test -n "$OBJCOPY"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12298 $as_echo "$OBJCOPY" >&6; }
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12306 test -n "$ac_cv_prog_OBJCOPY" && break
12307 done
12309 if test -z "$ac_cv_prog_OBJCOPY" ; then
12310 set dummy objcopy
12311 if test $build = $host ; then
12312 OBJCOPY="$2"
12313 else
12314 OBJCOPY="${ncn_tool_prefix}$2"
12320 if test -n "$OBJDUMP"; then
12321 ac_cv_prog_OBJDUMP=$OBJDUMP
12322 elif test -n "$ac_cv_prog_OBJDUMP"; then
12323 OBJDUMP=$ac_cv_prog_OBJDUMP
12326 if test -n "$ac_cv_prog_OBJDUMP"; then
12327 for ncn_progname in objdump; do
12328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12329 set dummy ${ncn_progname}; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if ${ac_cv_prog_OBJDUMP+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 if test -n "$OBJDUMP"; then
12336 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12337 else
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12341 IFS=$as_save_IFS
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12345 ac_cv_prog_OBJDUMP="${ncn_progname}"
12346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12347 break 2
12349 done
12350 done
12351 IFS=$as_save_IFS
12355 OBJDUMP=$ac_cv_prog_OBJDUMP
12356 if test -n "$OBJDUMP"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12358 $as_echo "$OBJDUMP" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12365 done
12368 for ncn_progname in objdump; do
12369 if test -n "$ncn_tool_prefix"; then
12370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12371 set dummy ${ncn_tool_prefix}${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_OBJDUMP+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 if test -n "$OBJDUMP"; then
12378 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ncn_tool_prefix}${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 OBJDUMP=$ac_cv_prog_OBJDUMP
12398 if test -n "$OBJDUMP"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12400 $as_echo "$OBJDUMP" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12408 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12410 set dummy ${ncn_progname}; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if ${ac_cv_prog_OBJDUMP+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 if test -n "$OBJDUMP"; then
12417 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_prog_OBJDUMP="${ncn_progname}"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12430 done
12431 done
12432 IFS=$as_save_IFS
12436 OBJDUMP=$ac_cv_prog_OBJDUMP
12437 if test -n "$OBJDUMP"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12439 $as_echo "$OBJDUMP" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12447 test -n "$ac_cv_prog_OBJDUMP" && break
12448 done
12450 if test -z "$ac_cv_prog_OBJDUMP" ; then
12451 set dummy objdump
12452 if test $build = $host ; then
12453 OBJDUMP="$2"
12454 else
12455 OBJDUMP="${ncn_tool_prefix}$2"
12461 if test -n "$OTOOL"; then
12462 ac_cv_prog_OTOOL=$OTOOL
12463 elif test -n "$ac_cv_prog_OTOOL"; then
12464 OTOOL=$ac_cv_prog_OTOOL
12467 if test -n "$ac_cv_prog_OTOOL"; then
12468 for ncn_progname in otool; do
12469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12470 set dummy ${ncn_progname}; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_prog_OTOOL+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 if test -n "$OTOOL"; then
12477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12478 else
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486 ac_cv_prog_OTOOL="${ncn_progname}"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12490 done
12491 done
12492 IFS=$as_save_IFS
12496 OTOOL=$ac_cv_prog_OTOOL
12497 if test -n "$OTOOL"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12499 $as_echo "$OTOOL" >&6; }
12500 else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12506 done
12509 for ncn_progname in otool; do
12510 if test -n "$ncn_tool_prefix"; then
12511 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12512 set dummy ${ncn_tool_prefix}${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_OTOOL+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 if test -n "$OTOOL"; then
12519 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ncn_tool_prefix}${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 OTOOL=$ac_cv_prog_OTOOL
12539 if test -n "$OTOOL"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12541 $as_echo "$OTOOL" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12549 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12551 set dummy ${ncn_progname}; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if ${ac_cv_prog_OTOOL+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 if test -n "$OTOOL"; then
12558 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12559 else
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 for as_dir in $PATH
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12567 ac_cv_prog_OTOOL="${ncn_progname}"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12571 done
12572 done
12573 IFS=$as_save_IFS
12577 OTOOL=$ac_cv_prog_OTOOL
12578 if test -n "$OTOOL"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12580 $as_echo "$OTOOL" >&6; }
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12588 test -n "$ac_cv_prog_OTOOL" && break
12589 done
12591 if test -z "$ac_cv_prog_OTOOL" ; then
12592 set dummy otool
12593 if test $build = $host ; then
12594 OTOOL="$2"
12595 else
12596 OTOOL="${ncn_tool_prefix}$2"
12602 if test -n "$READELF"; then
12603 ac_cv_prog_READELF=$READELF
12604 elif test -n "$ac_cv_prog_READELF"; then
12605 READELF=$ac_cv_prog_READELF
12608 if test -n "$ac_cv_prog_READELF"; then
12609 for ncn_progname in readelf; do
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12611 set dummy ${ncn_progname}; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if ${ac_cv_prog_READELF+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 if test -n "$READELF"; then
12618 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12619 else
12620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621 for as_dir in $PATH
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12627 ac_cv_prog_READELF="${ncn_progname}"
12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12629 break 2
12631 done
12632 done
12633 IFS=$as_save_IFS
12637 READELF=$ac_cv_prog_READELF
12638 if test -n "$READELF"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12640 $as_echo "$READELF" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12647 done
12650 for ncn_progname in readelf; do
12651 if test -n "$ncn_tool_prefix"; then
12652 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12653 set dummy ${ncn_tool_prefix}${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_READELF+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 if test -n "$READELF"; then
12660 ac_cv_prog_READELF="$READELF" # 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_READELF="${ncn_tool_prefix}${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 READELF=$ac_cv_prog_READELF
12680 if test -n "$READELF"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12682 $as_echo "$READELF" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12690 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12692 set dummy ${ncn_progname}; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if ${ac_cv_prog_READELF+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 if test -n "$READELF"; then
12699 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12700 else
12701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
12707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708 ac_cv_prog_READELF="${ncn_progname}"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710 break 2
12712 done
12713 done
12714 IFS=$as_save_IFS
12718 READELF=$ac_cv_prog_READELF
12719 if test -n "$READELF"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12721 $as_echo "$READELF" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12729 test -n "$ac_cv_prog_READELF" && break
12730 done
12732 if test -z "$ac_cv_prog_READELF" ; then
12733 set dummy readelf
12734 if test $build = $host ; then
12735 READELF="$2"
12736 else
12737 READELF="${ncn_tool_prefix}$2"
12748 # Target tools.
12750 # Check whether --with-build-time-tools was given.
12751 if test "${with_build_time_tools+set}" = set; then :
12752 withval=$with_build_time_tools; case x"$withval" in
12753 x/*) ;;
12755 with_build_time_tools=
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12757 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12759 esac
12760 else
12761 with_build_time_tools=
12767 if test -n "$CC_FOR_TARGET"; then
12768 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12769 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12770 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12773 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12774 for ncn_progname in cc gcc; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776 set dummy ${ncn_progname}; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 if test -n "$CC_FOR_TARGET"; then
12783 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12796 done
12797 done
12798 IFS=$as_save_IFS
12802 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12803 if test -n "$CC_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12805 $as_echo "$CC_FOR_TARGET" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12812 done
12815 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12816 for ncn_progname in cc gcc; do
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823 break
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12828 done
12831 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12832 for ncn_progname in cc gcc; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -n "$CC_FOR_TARGET"; then
12842 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12851 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12855 done
12856 done
12857 IFS=$as_save_IFS
12861 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12862 if test -n "$CC_FOR_TARGET"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12864 $as_echo "$CC_FOR_TARGET" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12872 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$CC_FOR_TARGET"; then
12881 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12894 done
12895 done
12896 IFS=$as_save_IFS
12900 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12901 if test -n "$CC_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12903 $as_echo "$CC_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12911 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12912 done
12915 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12916 set dummy cc gcc
12917 if test $build = $target ; then
12918 CC_FOR_TARGET="$2"
12919 else
12920 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12922 else
12923 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12928 if test -n "$CXX_FOR_TARGET"; then
12929 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12930 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12931 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12934 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12935 for ncn_progname in c++ g++ cxx gxx; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937 set dummy ${ncn_progname}; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 if test -n "$CXX_FOR_TARGET"; then
12944 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12945 else
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12963 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12964 if test -n "$CXX_FOR_TARGET"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12966 $as_echo "$CXX_FOR_TARGET" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12973 done
12976 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12977 for ncn_progname in c++ g++ cxx gxx; do
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983 $as_echo "yes" >&6; }
12984 break
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12989 done
12992 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12993 for ncn_progname in c++ g++ cxx gxx; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12996 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 if test -n "$CXX_FOR_TARGET"; then
13003 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13016 done
13017 done
13018 IFS=$as_save_IFS
13022 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13023 if test -n "$CXX_FOR_TARGET"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13025 $as_echo "$CXX_FOR_TARGET" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13033 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13035 set dummy ${ncn_progname}; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 if test -n "$CXX_FOR_TARGET"; then
13042 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13043 else
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13051 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13055 done
13056 done
13057 IFS=$as_save_IFS
13061 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13062 if test -n "$CXX_FOR_TARGET"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13064 $as_echo "$CXX_FOR_TARGET" >&6; }
13065 else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13072 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13073 done
13076 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13077 set dummy c++ g++ cxx gxx
13078 if test $build = $target ; then
13079 CXX_FOR_TARGET="$2"
13080 else
13081 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13083 else
13084 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13089 if test -n "$GCC_FOR_TARGET"; then
13090 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13091 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13092 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13095 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13096 for ncn_progname in gcc; do
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098 set dummy ${ncn_progname}; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 if test -n "$GCC_FOR_TARGET"; then
13105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13106 else
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13118 done
13119 done
13120 IFS=$as_save_IFS
13124 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13125 if test -n "$GCC_FOR_TARGET"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13127 $as_echo "$GCC_FOR_TARGET" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13134 done
13137 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13138 for ncn_progname in gcc; do
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13140 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13141 if test -x $with_build_time_tools/${ncn_progname}; then
13142 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; }
13145 break
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13150 done
13153 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13154 for ncn_progname in gcc; do
13155 if test -n "$ncn_target_tool_prefix"; then
13156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 if test -n "$GCC_FOR_TARGET"; then
13164 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13177 done
13178 done
13179 IFS=$as_save_IFS
13183 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13184 if test -n "$GCC_FOR_TARGET"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13186 $as_echo "$GCC_FOR_TARGET" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13194 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13196 set dummy ${ncn_progname}; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$GCC_FOR_TARGET"; then
13203 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13216 done
13217 done
13218 IFS=$as_save_IFS
13222 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13223 if test -n "$GCC_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13225 $as_echo "$GCC_FOR_TARGET" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13234 done
13237 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13238 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13239 else
13240 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13245 if test -n "$GFORTRAN_FOR_TARGET"; then
13246 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13247 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13248 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13251 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13252 for ncn_progname in gfortran; do
13253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13254 set dummy ${ncn_progname}; ac_word=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 if test -n "$GFORTRAN_FOR_TARGET"; then
13261 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13270 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 break 2
13274 done
13275 done
13276 IFS=$as_save_IFS
13280 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13281 if test -n "$GFORTRAN_FOR_TARGET"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13283 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13290 done
13293 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13294 for ncn_progname in gfortran; do
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13296 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13297 if test -x $with_build_time_tools/${ncn_progname}; then
13298 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13300 $as_echo "yes" >&6; }
13301 break
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13306 done
13309 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13310 for ncn_progname in gfortran; do
13311 if test -n "$ncn_target_tool_prefix"; then
13312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13313 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315 $as_echo_n "checking for $ac_word... " >&6; }
13316 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 if test -n "$GFORTRAN_FOR_TARGET"; then
13320 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13321 else
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13329 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13333 done
13334 done
13335 IFS=$as_save_IFS
13339 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13340 if test -n "$GFORTRAN_FOR_TARGET"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13342 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13343 else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 $as_echo "no" >&6; }
13350 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13352 set dummy ${ncn_progname}; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 if test -n "$GFORTRAN_FOR_TARGET"; then
13359 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13360 else
13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362 for as_dir in $PATH
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13368 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 break 2
13372 done
13373 done
13374 IFS=$as_save_IFS
13378 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13379 if test -n "$GFORTRAN_FOR_TARGET"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13381 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13382 else
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13389 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13390 done
13393 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13394 set dummy gfortran
13395 if test $build = $target ; then
13396 GFORTRAN_FOR_TARGET="$2"
13397 else
13398 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13400 else
13401 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13406 if test -n "$GOC_FOR_TARGET"; then
13407 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13408 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13409 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13412 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13413 for ncn_progname in gccgo; do
13414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13415 set dummy ${ncn_progname}; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 if test -n "$GOC_FOR_TARGET"; then
13422 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13423 else
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13431 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13435 done
13436 done
13437 IFS=$as_save_IFS
13441 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13442 if test -n "$GOC_FOR_TARGET"; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13444 $as_echo "$GOC_FOR_TARGET" >&6; }
13445 else
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447 $as_echo "no" >&6; }
13451 done
13454 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13455 for ncn_progname in gccgo; do
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13457 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13458 if test -x $with_build_time_tools/${ncn_progname}; then
13459 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461 $as_echo "yes" >&6; }
13462 break
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13467 done
13470 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13471 for ncn_progname in gccgo; do
13472 if test -n "$ncn_target_tool_prefix"; then
13473 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13474 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 if test -n "$GOC_FOR_TARGET"; then
13481 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13482 else
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
13489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13490 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 break 2
13494 done
13495 done
13496 IFS=$as_save_IFS
13500 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13501 if test -n "$GOC_FOR_TARGET"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13503 $as_echo "$GOC_FOR_TARGET" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13511 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13513 set dummy ${ncn_progname}; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 if test -n "$GOC_FOR_TARGET"; then
13520 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13521 else
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13525 IFS=$as_save_IFS
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531 break 2
13533 done
13534 done
13535 IFS=$as_save_IFS
13539 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13540 if test -n "$GOC_FOR_TARGET"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13542 $as_echo "$GOC_FOR_TARGET" >&6; }
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13550 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13551 done
13554 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13555 set dummy gccgo
13556 if test $build = $target ; then
13557 GOC_FOR_TARGET="$2"
13558 else
13559 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13561 else
13562 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13567 if test -n "$GDC_FOR_TARGET"; then
13568 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13569 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13570 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13573 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13574 for ncn_progname in gdc; do
13575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13576 set dummy ${ncn_progname}; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 if test -n "$GDC_FOR_TARGET"; then
13583 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
13591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 break 2
13596 done
13597 done
13598 IFS=$as_save_IFS
13602 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13603 if test -n "$GDC_FOR_TARGET"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13605 $as_echo "$GDC_FOR_TARGET" >&6; }
13606 else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13612 done
13615 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13616 for ncn_progname in gdc; do
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13618 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13619 if test -x $with_build_time_tools/${ncn_progname}; then
13620 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622 $as_echo "yes" >&6; }
13623 break
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13628 done
13631 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13632 for ncn_progname in gdc; do
13633 if test -n "$ncn_target_tool_prefix"; then
13634 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13635 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637 $as_echo_n "checking for $ac_word... " >&6; }
13638 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 if test -n "$GDC_FOR_TARGET"; then
13642 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13643 else
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13651 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13655 done
13656 done
13657 IFS=$as_save_IFS
13661 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13662 if test -n "$GDC_FOR_TARGET"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13664 $as_echo "$GDC_FOR_TARGET" >&6; }
13665 else
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13672 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13674 set dummy ${ncn_progname}; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 if test -n "$GDC_FOR_TARGET"; then
13681 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13682 else
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13686 IFS=$as_save_IFS
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 break 2
13694 done
13695 done
13696 IFS=$as_save_IFS
13700 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13701 if test -n "$GDC_FOR_TARGET"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13703 $as_echo "$GDC_FOR_TARGET" >&6; }
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13711 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13712 done
13715 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13716 set dummy gdc
13717 if test $build = $target ; then
13718 GDC_FOR_TARGET="$2"
13719 else
13720 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13722 else
13723 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13728 cat > conftest.c << \EOF
13729 #ifdef __GNUC__
13730 gcc_yay;
13731 #endif
13733 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13734 have_gcc_for_target=yes
13735 else
13736 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13737 have_gcc_for_target=no
13739 rm conftest.c
13744 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13745 if test -n "$with_build_time_tools"; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13747 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13748 if test -x $with_build_time_tools/ar; then
13749 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13750 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13752 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13757 elif test $build != $host && test $have_gcc_for_target = yes; then
13758 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13759 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13760 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13763 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13764 # Extract the first word of "ar", so it can be a program name with args.
13765 set dummy ar; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 case $AR_FOR_TARGET in
13772 [\\/]* | ?:[\\/]*)
13773 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777 for as_dir in $gcc_cv_tool_dirs
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13783 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 break 2
13787 done
13788 done
13789 IFS=$as_save_IFS
13792 esac
13794 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13795 if test -n "$AR_FOR_TARGET"; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13797 $as_echo "$AR_FOR_TARGET" >&6; }
13798 else
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800 $as_echo "no" >&6; }
13805 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13808 if test -n "$AR_FOR_TARGET"; then
13809 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13810 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13811 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13814 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13815 for ncn_progname in ar; do
13816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13817 set dummy ${ncn_progname}; ac_word=$2
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13819 $as_echo_n "checking for $ac_word... " >&6; }
13820 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13823 if test -n "$AR_FOR_TARGET"; then
13824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13825 else
13826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13827 for as_dir in $PATH
13829 IFS=$as_save_IFS
13830 test -z "$as_dir" && as_dir=.
13831 for ac_exec_ext in '' $ac_executable_extensions; do
13832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13833 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13835 break 2
13837 done
13838 done
13839 IFS=$as_save_IFS
13843 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13844 if test -n "$AR_FOR_TARGET"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13846 $as_echo "$AR_FOR_TARGET" >&6; }
13847 else
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13853 done
13856 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13857 for ncn_progname in ar; do
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13859 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13860 if test -x $with_build_time_tools/${ncn_progname}; then
13861 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13863 $as_echo "yes" >&6; }
13864 break
13865 else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13869 done
13872 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13873 for ncn_progname in ar; do
13874 if test -n "$ncn_target_tool_prefix"; then
13875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13876 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878 $as_echo_n "checking for $ac_word... " >&6; }
13879 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 if test -n "$AR_FOR_TARGET"; then
13883 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13884 else
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13896 done
13897 done
13898 IFS=$as_save_IFS
13902 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13903 if test -n "$AR_FOR_TARGET"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13905 $as_echo "$AR_FOR_TARGET" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13913 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13915 set dummy ${ncn_progname}; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test -n "$AR_FOR_TARGET"; then
13922 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13935 done
13936 done
13937 IFS=$as_save_IFS
13941 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13942 if test -n "$AR_FOR_TARGET"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13944 $as_echo "$AR_FOR_TARGET" >&6; }
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13952 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13953 done
13956 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13957 set dummy ar
13958 if test $build = $target ; then
13959 AR_FOR_TARGET="$2"
13960 else
13961 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13963 else
13964 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13967 else
13968 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13974 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13975 if test -n "$with_build_time_tools"; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13977 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13978 if test -x $with_build_time_tools/as; then
13979 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13980 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13982 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13987 elif test $build != $host && test $have_gcc_for_target = yes; then
13988 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13989 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13990 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13993 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13994 # Extract the first word of "as", so it can be a program name with args.
13995 set dummy as; ac_word=$2
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997 $as_echo_n "checking for $ac_word... " >&6; }
13998 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 case $AS_FOR_TARGET in
14002 [\\/]* | ?:[\\/]*)
14003 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $gcc_cv_tool_dirs
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14013 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14017 done
14018 done
14019 IFS=$as_save_IFS
14022 esac
14024 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14025 if test -n "$AS_FOR_TARGET"; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14027 $as_echo "$AS_FOR_TARGET" >&6; }
14028 else
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030 $as_echo "no" >&6; }
14035 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14038 if test -n "$AS_FOR_TARGET"; then
14039 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14040 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14041 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14044 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14045 for ncn_progname in as; do
14046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14047 set dummy ${ncn_progname}; ac_word=$2
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14049 $as_echo_n "checking for $ac_word... " >&6; }
14050 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 if test -n "$AS_FOR_TARGET"; then
14054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14055 else
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $PATH
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14063 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14065 break 2
14067 done
14068 done
14069 IFS=$as_save_IFS
14073 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14074 if test -n "$AS_FOR_TARGET"; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14076 $as_echo "$AS_FOR_TARGET" >&6; }
14077 else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14083 done
14086 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14087 for ncn_progname in as; do
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14089 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14090 if test -x $with_build_time_tools/${ncn_progname}; then
14091 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14093 $as_echo "yes" >&6; }
14094 break
14095 else
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097 $as_echo "no" >&6; }
14099 done
14102 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14103 for ncn_progname in as; do
14104 if test -n "$ncn_target_tool_prefix"; then
14105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14106 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 if test -n "$AS_FOR_TARGET"; then
14113 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14114 else
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14122 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14126 done
14127 done
14128 IFS=$as_save_IFS
14132 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14133 if test -n "$AS_FOR_TARGET"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14135 $as_echo "$AS_FOR_TARGET" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14143 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14145 set dummy ${ncn_progname}; ac_word=$2
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147 $as_echo_n "checking for $ac_word... " >&6; }
14148 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 if test -n "$AS_FOR_TARGET"; then
14152 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14153 else
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
14159 for ac_exec_ext in '' $ac_executable_extensions; do
14160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 break 2
14165 done
14166 done
14167 IFS=$as_save_IFS
14171 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14172 if test -n "$AS_FOR_TARGET"; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14174 $as_echo "$AS_FOR_TARGET" >&6; }
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14182 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14183 done
14186 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14187 set dummy as
14188 if test $build = $target ; then
14189 AS_FOR_TARGET="$2"
14190 else
14191 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14193 else
14194 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14197 else
14198 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14204 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14205 if test -n "$with_build_time_tools"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14207 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14208 if test -x $with_build_time_tools/dlltool; then
14209 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14210 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14212 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14213 else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14217 elif test $build != $host && test $have_gcc_for_target = yes; then
14218 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14219 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14220 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14223 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14224 # Extract the first word of "dlltool", so it can be a program name with args.
14225 set dummy dlltool; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 case $DLLTOOL_FOR_TARGET in
14232 [\\/]* | ?:[\\/]*)
14233 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $gcc_cv_tool_dirs
14239 IFS=$as_save_IFS
14240 test -z "$as_dir" && as_dir=.
14241 for ac_exec_ext in '' $ac_executable_extensions; do
14242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14243 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14245 break 2
14247 done
14248 done
14249 IFS=$as_save_IFS
14252 esac
14254 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14255 if test -n "$DLLTOOL_FOR_TARGET"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14257 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14258 else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 $as_echo "no" >&6; }
14265 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14268 if test -n "$DLLTOOL_FOR_TARGET"; then
14269 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14270 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14271 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14274 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14275 for ncn_progname in dlltool; do
14276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14277 set dummy ${ncn_progname}; ac_word=$2
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279 $as_echo_n "checking for $ac_word... " >&6; }
14280 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 if test -n "$DLLTOOL_FOR_TARGET"; then
14284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14285 else
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14297 done
14298 done
14299 IFS=$as_save_IFS
14303 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14304 if test -n "$DLLTOOL_FOR_TARGET"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14306 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14313 done
14316 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14317 for ncn_progname in dlltool; do
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14319 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14320 if test -x $with_build_time_tools/${ncn_progname}; then
14321 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14323 $as_echo "yes" >&6; }
14324 break
14325 else
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14329 done
14332 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14333 for ncn_progname in dlltool; do
14334 if test -n "$ncn_target_tool_prefix"; then
14335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14336 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14338 $as_echo_n "checking for $ac_word... " >&6; }
14339 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 if test -n "$DLLTOOL_FOR_TARGET"; then
14343 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14344 else
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14348 IFS=$as_save_IFS
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14352 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14354 break 2
14356 done
14357 done
14358 IFS=$as_save_IFS
14362 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14363 if test -n "$DLLTOOL_FOR_TARGET"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14365 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14366 else
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14373 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14375 set dummy ${ncn_progname}; ac_word=$2
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377 $as_echo_n "checking for $ac_word... " >&6; }
14378 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 if test -n "$DLLTOOL_FOR_TARGET"; then
14382 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14383 else
14384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385 for as_dir in $PATH
14387 IFS=$as_save_IFS
14388 test -z "$as_dir" && as_dir=.
14389 for ac_exec_ext in '' $ac_executable_extensions; do
14390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14391 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14393 break 2
14395 done
14396 done
14397 IFS=$as_save_IFS
14401 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14402 if test -n "$DLLTOOL_FOR_TARGET"; then
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14404 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14405 else
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14412 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14413 done
14416 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14417 set dummy dlltool
14418 if test $build = $target ; then
14419 DLLTOOL_FOR_TARGET="$2"
14420 else
14421 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14423 else
14424 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14427 else
14428 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14434 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14435 if test -n "$with_build_time_tools"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14437 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14438 if test -x $with_build_time_tools/dsymutil; then
14439 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14440 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14442 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14445 $as_echo "no" >&6; }
14447 elif test $build != $host && test $have_gcc_for_target = yes; then
14448 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14449 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14450 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14453 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14454 # Extract the first word of "dsymutil", so it can be a program name with args.
14455 set dummy dsymutil; ac_word=$2
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14457 $as_echo_n "checking for $ac_word... " >&6; }
14458 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 case $DSYMUTIL_FOR_TARGET in
14462 [\\/]* | ?:[\\/]*)
14463 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $gcc_cv_tool_dirs
14469 IFS=$as_save_IFS
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14473 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14475 break 2
14477 done
14478 done
14479 IFS=$as_save_IFS
14482 esac
14484 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14485 if test -n "$DSYMUTIL_FOR_TARGET"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14487 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14495 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14498 if test -n "$DSYMUTIL_FOR_TARGET"; then
14499 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14500 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14501 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14504 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14505 for ncn_progname in dsymutil; do
14506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14507 set dummy ${ncn_progname}; ac_word=$2
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14509 $as_echo_n "checking for $ac_word... " >&6; }
14510 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512 else
14513 if test -n "$DSYMUTIL_FOR_TARGET"; then
14514 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14515 else
14516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14517 for as_dir in $PATH
14519 IFS=$as_save_IFS
14520 test -z "$as_dir" && as_dir=.
14521 for ac_exec_ext in '' $ac_executable_extensions; do
14522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14523 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14525 break 2
14527 done
14528 done
14529 IFS=$as_save_IFS
14533 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14534 if test -n "$DSYMUTIL_FOR_TARGET"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14536 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14537 else
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539 $as_echo "no" >&6; }
14543 done
14546 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14547 for ncn_progname in dsymutil; do
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14549 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14550 if test -x $with_build_time_tools/${ncn_progname}; then
14551 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14554 break
14555 else
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557 $as_echo "no" >&6; }
14559 done
14562 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14563 for ncn_progname in dsymutil; do
14564 if test -n "$ncn_target_tool_prefix"; then
14565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14566 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14568 $as_echo_n "checking for $ac_word... " >&6; }
14569 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 if test -n "$DSYMUTIL_FOR_TARGET"; then
14573 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14574 else
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14578 IFS=$as_save_IFS
14579 test -z "$as_dir" && as_dir=.
14580 for ac_exec_ext in '' $ac_executable_extensions; do
14581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14582 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14584 break 2
14586 done
14587 done
14588 IFS=$as_save_IFS
14592 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14593 if test -n "$DSYMUTIL_FOR_TARGET"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14595 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14596 else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14603 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14605 set dummy ${ncn_progname}; ac_word=$2
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607 $as_echo_n "checking for $ac_word... " >&6; }
14608 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 if test -n "$DSYMUTIL_FOR_TARGET"; then
14612 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14613 else
14614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14615 for as_dir in $PATH
14617 IFS=$as_save_IFS
14618 test -z "$as_dir" && as_dir=.
14619 for ac_exec_ext in '' $ac_executable_extensions; do
14620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14621 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14623 break 2
14625 done
14626 done
14627 IFS=$as_save_IFS
14631 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14632 if test -n "$DSYMUTIL_FOR_TARGET"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14634 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14635 else
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14642 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14643 done
14646 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14647 set dummy dsymutil
14648 if test $build = $target ; then
14649 DSYMUTIL_FOR_TARGET="$2"
14650 else
14651 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14653 else
14654 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14657 else
14658 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14664 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14665 if test -n "$with_build_time_tools"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14667 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14668 if test -x $with_build_time_tools/ld; then
14669 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14670 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14672 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14673 else
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 $as_echo "no" >&6; }
14677 elif test $build != $host && test $have_gcc_for_target = yes; then
14678 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14679 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14680 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14683 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14684 # Extract the first word of "ld", so it can be a program name with args.
14685 set dummy ld; ac_word=$2
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14687 $as_echo_n "checking for $ac_word... " >&6; }
14688 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14689 $as_echo_n "(cached) " >&6
14690 else
14691 case $LD_FOR_TARGET in
14692 [\\/]* | ?:[\\/]*)
14693 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697 for as_dir in $gcc_cv_tool_dirs
14699 IFS=$as_save_IFS
14700 test -z "$as_dir" && as_dir=.
14701 for ac_exec_ext in '' $ac_executable_extensions; do
14702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14703 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14705 break 2
14707 done
14708 done
14709 IFS=$as_save_IFS
14712 esac
14714 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14715 if test -n "$LD_FOR_TARGET"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14717 $as_echo "$LD_FOR_TARGET" >&6; }
14718 else
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 $as_echo "no" >&6; }
14725 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14728 if test -n "$LD_FOR_TARGET"; then
14729 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14730 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14731 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14734 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14735 for ncn_progname in ld; do
14736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14737 set dummy ${ncn_progname}; ac_word=$2
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14739 $as_echo_n "checking for $ac_word... " >&6; }
14740 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 if test -n "$LD_FOR_TARGET"; then
14744 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14745 else
14746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14747 for as_dir in $PATH
14749 IFS=$as_save_IFS
14750 test -z "$as_dir" && as_dir=.
14751 for ac_exec_ext in '' $ac_executable_extensions; do
14752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14753 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14755 break 2
14757 done
14758 done
14759 IFS=$as_save_IFS
14763 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14764 if test -n "$LD_FOR_TARGET"; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14766 $as_echo "$LD_FOR_TARGET" >&6; }
14767 else
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769 $as_echo "no" >&6; }
14773 done
14776 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14777 for ncn_progname in ld; do
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14779 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14780 if test -x $with_build_time_tools/${ncn_progname}; then
14781 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14783 $as_echo "yes" >&6; }
14784 break
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14789 done
14792 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14793 for ncn_progname in ld; do
14794 if test -n "$ncn_target_tool_prefix"; then
14795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14796 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14798 $as_echo_n "checking for $ac_word... " >&6; }
14799 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 if test -n "$LD_FOR_TARGET"; then
14803 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14804 else
14805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14808 IFS=$as_save_IFS
14809 test -z "$as_dir" && as_dir=.
14810 for ac_exec_ext in '' $ac_executable_extensions; do
14811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14812 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14814 break 2
14816 done
14817 done
14818 IFS=$as_save_IFS
14822 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14823 if test -n "$LD_FOR_TARGET"; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14825 $as_echo "$LD_FOR_TARGET" >&6; }
14826 else
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828 $as_echo "no" >&6; }
14833 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14835 set dummy ${ncn_progname}; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837 $as_echo_n "checking for $ac_word... " >&6; }
14838 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14839 $as_echo_n "(cached) " >&6
14840 else
14841 if test -n "$LD_FOR_TARGET"; then
14842 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14843 else
14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14847 IFS=$as_save_IFS
14848 test -z "$as_dir" && as_dir=.
14849 for ac_exec_ext in '' $ac_executable_extensions; do
14850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14851 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14853 break 2
14855 done
14856 done
14857 IFS=$as_save_IFS
14861 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14862 if test -n "$LD_FOR_TARGET"; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14864 $as_echo "$LD_FOR_TARGET" >&6; }
14865 else
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867 $as_echo "no" >&6; }
14872 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14873 done
14876 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14877 set dummy ld
14878 if test $build = $target ; then
14879 LD_FOR_TARGET="$2"
14880 else
14881 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14883 else
14884 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14887 else
14888 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14894 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14895 if test -n "$with_build_time_tools"; then
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14897 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14898 if test -x $with_build_time_tools/lipo; then
14899 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14900 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14902 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14903 else
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905 $as_echo "no" >&6; }
14907 elif test $build != $host && test $have_gcc_for_target = yes; then
14908 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14909 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14910 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14913 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14914 # Extract the first word of "lipo", so it can be a program name with args.
14915 set dummy lipo; ac_word=$2
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14917 $as_echo_n "checking for $ac_word... " >&6; }
14918 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 case $LIPO_FOR_TARGET in
14922 [\\/]* | ?:[\\/]*)
14923 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 for as_dir in $gcc_cv_tool_dirs
14929 IFS=$as_save_IFS
14930 test -z "$as_dir" && as_dir=.
14931 for ac_exec_ext in '' $ac_executable_extensions; do
14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14935 break 2
14937 done
14938 done
14939 IFS=$as_save_IFS
14942 esac
14944 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14945 if test -n "$LIPO_FOR_TARGET"; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14947 $as_echo "$LIPO_FOR_TARGET" >&6; }
14948 else
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950 $as_echo "no" >&6; }
14955 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14958 if test -n "$LIPO_FOR_TARGET"; then
14959 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14960 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14961 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14964 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14965 for ncn_progname in lipo; do
14966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14967 set dummy ${ncn_progname}; ac_word=$2
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14969 $as_echo_n "checking for $ac_word... " >&6; }
14970 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 if test -n "$LIPO_FOR_TARGET"; then
14974 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14975 else
14976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 for as_dir in $PATH
14979 IFS=$as_save_IFS
14980 test -z "$as_dir" && as_dir=.
14981 for ac_exec_ext in '' $ac_executable_extensions; do
14982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14983 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14985 break 2
14987 done
14988 done
14989 IFS=$as_save_IFS
14993 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14994 if test -n "$LIPO_FOR_TARGET"; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14996 $as_echo "$LIPO_FOR_TARGET" >&6; }
14997 else
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15003 done
15006 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15007 for ncn_progname in lipo; do
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15009 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15010 if test -x $with_build_time_tools/${ncn_progname}; then
15011 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15013 $as_echo "yes" >&6; }
15014 break
15015 else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017 $as_echo "no" >&6; }
15019 done
15022 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15023 for ncn_progname in lipo; do
15024 if test -n "$ncn_target_tool_prefix"; then
15025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15026 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15028 $as_echo_n "checking for $ac_word... " >&6; }
15029 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 if test -n "$LIPO_FOR_TARGET"; then
15033 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15034 else
15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $PATH
15038 IFS=$as_save_IFS
15039 test -z "$as_dir" && as_dir=.
15040 for ac_exec_ext in '' $ac_executable_extensions; do
15041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15042 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15044 break 2
15046 done
15047 done
15048 IFS=$as_save_IFS
15052 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15053 if test -n "$LIPO_FOR_TARGET"; then
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15055 $as_echo "$LIPO_FOR_TARGET" >&6; }
15056 else
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15063 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15065 set dummy ${ncn_progname}; ac_word=$2
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067 $as_echo_n "checking for $ac_word... " >&6; }
15068 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 if test -n "$LIPO_FOR_TARGET"; then
15072 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15073 else
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15077 IFS=$as_save_IFS
15078 test -z "$as_dir" && as_dir=.
15079 for ac_exec_ext in '' $ac_executable_extensions; do
15080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15081 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15083 break 2
15085 done
15086 done
15087 IFS=$as_save_IFS
15091 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15092 if test -n "$LIPO_FOR_TARGET"; then
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15094 $as_echo "$LIPO_FOR_TARGET" >&6; }
15095 else
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097 $as_echo "no" >&6; }
15102 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15103 done
15106 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15107 set dummy lipo
15108 if test $build = $target ; then
15109 LIPO_FOR_TARGET="$2"
15110 else
15111 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15113 else
15114 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15117 else
15118 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15124 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15125 if test -n "$with_build_time_tools"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15127 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15128 if test -x $with_build_time_tools/nm; then
15129 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15130 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15132 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15133 else
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135 $as_echo "no" >&6; }
15137 elif test $build != $host && test $have_gcc_for_target = yes; then
15138 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15139 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15140 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15143 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15144 # Extract the first word of "nm", so it can be a program name with args.
15145 set dummy nm; ac_word=$2
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15147 $as_echo_n "checking for $ac_word... " >&6; }
15148 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 case $NM_FOR_TARGET in
15152 [\\/]* | ?:[\\/]*)
15153 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157 for as_dir in $gcc_cv_tool_dirs
15159 IFS=$as_save_IFS
15160 test -z "$as_dir" && as_dir=.
15161 for ac_exec_ext in '' $ac_executable_extensions; do
15162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15163 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15165 break 2
15167 done
15168 done
15169 IFS=$as_save_IFS
15172 esac
15174 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15175 if test -n "$NM_FOR_TARGET"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15177 $as_echo "$NM_FOR_TARGET" >&6; }
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180 $as_echo "no" >&6; }
15185 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15188 if test -n "$NM_FOR_TARGET"; then
15189 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15190 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15191 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15194 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15195 for ncn_progname in nm; do
15196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15197 set dummy ${ncn_progname}; ac_word=$2
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199 $as_echo_n "checking for $ac_word... " >&6; }
15200 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203 if test -n "$NM_FOR_TARGET"; then
15204 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15205 else
15206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15207 for as_dir in $PATH
15209 IFS=$as_save_IFS
15210 test -z "$as_dir" && as_dir=.
15211 for ac_exec_ext in '' $ac_executable_extensions; do
15212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15213 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15215 break 2
15217 done
15218 done
15219 IFS=$as_save_IFS
15223 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15224 if test -n "$NM_FOR_TARGET"; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15226 $as_echo "$NM_FOR_TARGET" >&6; }
15227 else
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229 $as_echo "no" >&6; }
15233 done
15236 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15237 for ncn_progname in nm; do
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15239 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15240 if test -x $with_build_time_tools/${ncn_progname}; then
15241 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15243 $as_echo "yes" >&6; }
15244 break
15245 else
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15249 done
15252 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15253 for ncn_progname in nm; do
15254 if test -n "$ncn_target_tool_prefix"; then
15255 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15256 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15258 $as_echo_n "checking for $ac_word... " >&6; }
15259 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15260 $as_echo_n "(cached) " >&6
15261 else
15262 if test -n "$NM_FOR_TARGET"; then
15263 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15264 else
15265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15266 for as_dir in $PATH
15268 IFS=$as_save_IFS
15269 test -z "$as_dir" && as_dir=.
15270 for ac_exec_ext in '' $ac_executable_extensions; do
15271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15272 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15274 break 2
15276 done
15277 done
15278 IFS=$as_save_IFS
15282 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15283 if test -n "$NM_FOR_TARGET"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15285 $as_echo "$NM_FOR_TARGET" >&6; }
15286 else
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15288 $as_echo "no" >&6; }
15293 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15295 set dummy ${ncn_progname}; ac_word=$2
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15297 $as_echo_n "checking for $ac_word... " >&6; }
15298 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15299 $as_echo_n "(cached) " >&6
15300 else
15301 if test -n "$NM_FOR_TARGET"; then
15302 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15303 else
15304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15305 for as_dir in $PATH
15307 IFS=$as_save_IFS
15308 test -z "$as_dir" && as_dir=.
15309 for ac_exec_ext in '' $ac_executable_extensions; do
15310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15311 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15313 break 2
15315 done
15316 done
15317 IFS=$as_save_IFS
15321 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15322 if test -n "$NM_FOR_TARGET"; then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15324 $as_echo "$NM_FOR_TARGET" >&6; }
15325 else
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15332 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15333 done
15336 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15337 set dummy nm
15338 if test $build = $target ; then
15339 NM_FOR_TARGET="$2"
15340 else
15341 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15343 else
15344 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15347 else
15348 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15354 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15355 if test -n "$with_build_time_tools"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15357 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15358 if test -x $with_build_time_tools/objcopy; then
15359 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15360 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15362 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15363 else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15367 elif test $build != $host && test $have_gcc_for_target = yes; then
15368 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15369 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15370 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15373 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15374 # Extract the first word of "objcopy", so it can be a program name with args.
15375 set dummy objcopy; ac_word=$2
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15377 $as_echo_n "checking for $ac_word... " >&6; }
15378 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15379 $as_echo_n "(cached) " >&6
15380 else
15381 case $OBJCOPY_FOR_TARGET in
15382 [\\/]* | ?:[\\/]*)
15383 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15387 for as_dir in $gcc_cv_tool_dirs
15389 IFS=$as_save_IFS
15390 test -z "$as_dir" && as_dir=.
15391 for ac_exec_ext in '' $ac_executable_extensions; do
15392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15393 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15395 break 2
15397 done
15398 done
15399 IFS=$as_save_IFS
15402 esac
15404 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15405 if test -n "$OBJCOPY_FOR_TARGET"; then
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15407 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15408 else
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 $as_echo "no" >&6; }
15415 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15418 if test -n "$OBJCOPY_FOR_TARGET"; then
15419 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15420 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15421 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15424 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15425 for ncn_progname in objcopy; do
15426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15427 set dummy ${ncn_progname}; ac_word=$2
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15429 $as_echo_n "checking for $ac_word... " >&6; }
15430 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 if test -n "$OBJCOPY_FOR_TARGET"; then
15434 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15435 else
15436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437 for as_dir in $PATH
15439 IFS=$as_save_IFS
15440 test -z "$as_dir" && as_dir=.
15441 for ac_exec_ext in '' $ac_executable_extensions; do
15442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15443 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15445 break 2
15447 done
15448 done
15449 IFS=$as_save_IFS
15453 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15454 if test -n "$OBJCOPY_FOR_TARGET"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15456 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15457 else
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15463 done
15466 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15467 for ncn_progname in objcopy; do
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15469 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15470 if test -x $with_build_time_tools/${ncn_progname}; then
15471 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15473 $as_echo "yes" >&6; }
15474 break
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 $as_echo "no" >&6; }
15479 done
15482 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15483 for ncn_progname in objcopy; do
15484 if test -n "$ncn_target_tool_prefix"; then
15485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488 $as_echo_n "checking for $ac_word... " >&6; }
15489 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 if test -n "$OBJCOPY_FOR_TARGET"; then
15493 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15494 else
15495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496 for as_dir in $PATH
15498 IFS=$as_save_IFS
15499 test -z "$as_dir" && as_dir=.
15500 for ac_exec_ext in '' $ac_executable_extensions; do
15501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15502 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15504 break 2
15506 done
15507 done
15508 IFS=$as_save_IFS
15512 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15513 if test -n "$OBJCOPY_FOR_TARGET"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15515 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15516 else
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518 $as_echo "no" >&6; }
15523 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15525 set dummy ${ncn_progname}; ac_word=$2
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15527 $as_echo_n "checking for $ac_word... " >&6; }
15528 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15529 $as_echo_n "(cached) " >&6
15530 else
15531 if test -n "$OBJCOPY_FOR_TARGET"; then
15532 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15533 else
15534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535 for as_dir in $PATH
15537 IFS=$as_save_IFS
15538 test -z "$as_dir" && as_dir=.
15539 for ac_exec_ext in '' $ac_executable_extensions; do
15540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15541 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15543 break 2
15545 done
15546 done
15547 IFS=$as_save_IFS
15551 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15552 if test -n "$OBJCOPY_FOR_TARGET"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15554 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15562 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15563 done
15566 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15567 set dummy objcopy
15568 if test $build = $target ; then
15569 OBJCOPY_FOR_TARGET="$2"
15570 else
15571 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15573 else
15574 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15577 else
15578 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15584 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15585 if test -n "$with_build_time_tools"; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15587 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15588 if test -x $with_build_time_tools/objdump; then
15589 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15590 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15592 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15593 else
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15595 $as_echo "no" >&6; }
15597 elif test $build != $host && test $have_gcc_for_target = yes; then
15598 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15599 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15600 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15603 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15604 # Extract the first word of "objdump", so it can be a program name with args.
15605 set dummy objdump; ac_word=$2
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15607 $as_echo_n "checking for $ac_word... " >&6; }
15608 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15609 $as_echo_n "(cached) " >&6
15610 else
15611 case $OBJDUMP_FOR_TARGET in
15612 [\\/]* | ?:[\\/]*)
15613 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15617 for as_dir in $gcc_cv_tool_dirs
15619 IFS=$as_save_IFS
15620 test -z "$as_dir" && as_dir=.
15621 for ac_exec_ext in '' $ac_executable_extensions; do
15622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15623 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15625 break 2
15627 done
15628 done
15629 IFS=$as_save_IFS
15632 esac
15634 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15635 if test -n "$OBJDUMP_FOR_TARGET"; then
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15637 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15638 else
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15640 $as_echo "no" >&6; }
15645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15648 if test -n "$OBJDUMP_FOR_TARGET"; then
15649 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15650 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15651 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15654 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15655 for ncn_progname in objdump; do
15656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15657 set dummy ${ncn_progname}; ac_word=$2
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15659 $as_echo_n "checking for $ac_word... " >&6; }
15660 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15661 $as_echo_n "(cached) " >&6
15662 else
15663 if test -n "$OBJDUMP_FOR_TARGET"; then
15664 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15665 else
15666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667 for as_dir in $PATH
15669 IFS=$as_save_IFS
15670 test -z "$as_dir" && as_dir=.
15671 for ac_exec_ext in '' $ac_executable_extensions; do
15672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15673 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15675 break 2
15677 done
15678 done
15679 IFS=$as_save_IFS
15683 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15684 if test -n "$OBJDUMP_FOR_TARGET"; then
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15686 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15687 else
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 $as_echo "no" >&6; }
15693 done
15696 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15697 for ncn_progname in objdump; do
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15699 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15700 if test -x $with_build_time_tools/${ncn_progname}; then
15701 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15703 $as_echo "yes" >&6; }
15704 break
15705 else
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707 $as_echo "no" >&6; }
15709 done
15712 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15713 for ncn_progname in objdump; do
15714 if test -n "$ncn_target_tool_prefix"; then
15715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15718 $as_echo_n "checking for $ac_word... " >&6; }
15719 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 if test -n "$OBJDUMP_FOR_TARGET"; then
15723 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15724 else
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
15730 for ac_exec_ext in '' $ac_executable_extensions; do
15731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15732 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15734 break 2
15736 done
15737 done
15738 IFS=$as_save_IFS
15742 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15743 if test -n "$OBJDUMP_FOR_TARGET"; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15745 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15746 else
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15753 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15755 set dummy ${ncn_progname}; ac_word=$2
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15757 $as_echo_n "checking for $ac_word... " >&6; }
15758 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 if test -n "$OBJDUMP_FOR_TARGET"; then
15762 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15763 else
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15767 IFS=$as_save_IFS
15768 test -z "$as_dir" && as_dir=.
15769 for ac_exec_ext in '' $ac_executable_extensions; do
15770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15771 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15773 break 2
15775 done
15776 done
15777 IFS=$as_save_IFS
15781 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15782 if test -n "$OBJDUMP_FOR_TARGET"; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15784 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15785 else
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15792 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15793 done
15796 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15797 set dummy objdump
15798 if test $build = $target ; then
15799 OBJDUMP_FOR_TARGET="$2"
15800 else
15801 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15803 else
15804 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15807 else
15808 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15814 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15815 if test -n "$with_build_time_tools"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15817 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15818 if test -x $with_build_time_tools/otool; then
15819 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15820 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15822 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15823 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 $as_echo "no" >&6; }
15827 elif test $build != $host && test $have_gcc_for_target = yes; then
15828 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15829 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15830 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15833 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15834 # Extract the first word of "otool", so it can be a program name with args.
15835 set dummy otool; ac_word=$2
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837 $as_echo_n "checking for $ac_word... " >&6; }
15838 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15839 $as_echo_n "(cached) " >&6
15840 else
15841 case $OTOOL_FOR_TARGET in
15842 [\\/]* | ?:[\\/]*)
15843 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847 for as_dir in $gcc_cv_tool_dirs
15849 IFS=$as_save_IFS
15850 test -z "$as_dir" && as_dir=.
15851 for ac_exec_ext in '' $ac_executable_extensions; do
15852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15853 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855 break 2
15857 done
15858 done
15859 IFS=$as_save_IFS
15862 esac
15864 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15865 if test -n "$OTOOL_FOR_TARGET"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15867 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15868 else
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870 $as_echo "no" >&6; }
15875 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15878 if test -n "$OTOOL_FOR_TARGET"; then
15879 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15880 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15881 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15884 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15885 for ncn_progname in otool; do
15886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15887 set dummy ${ncn_progname}; ac_word=$2
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889 $as_echo_n "checking for $ac_word... " >&6; }
15890 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 if test -n "$OTOOL_FOR_TARGET"; then
15894 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15895 else
15896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in $PATH
15899 IFS=$as_save_IFS
15900 test -z "$as_dir" && as_dir=.
15901 for ac_exec_ext in '' $ac_executable_extensions; do
15902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15903 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15905 break 2
15907 done
15908 done
15909 IFS=$as_save_IFS
15913 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15914 if test -n "$OTOOL_FOR_TARGET"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15916 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15917 else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15923 done
15926 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15927 for ncn_progname in otool; do
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15929 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15930 if test -x $with_build_time_tools/${ncn_progname}; then
15931 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15933 $as_echo "yes" >&6; }
15934 break
15935 else
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15939 done
15942 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15943 for ncn_progname in otool; do
15944 if test -n "$ncn_target_tool_prefix"; then
15945 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15946 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948 $as_echo_n "checking for $ac_word... " >&6; }
15949 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 if test -n "$OTOOL_FOR_TARGET"; then
15953 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15954 else
15955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15956 for as_dir in $PATH
15958 IFS=$as_save_IFS
15959 test -z "$as_dir" && as_dir=.
15960 for ac_exec_ext in '' $ac_executable_extensions; do
15961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15962 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15964 break 2
15966 done
15967 done
15968 IFS=$as_save_IFS
15972 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15973 if test -n "$OTOOL_FOR_TARGET"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15975 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15976 else
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15983 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15985 set dummy ${ncn_progname}; ac_word=$2
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987 $as_echo_n "checking for $ac_word... " >&6; }
15988 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 if test -n "$OTOOL_FOR_TARGET"; then
15992 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15993 else
15994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15995 for as_dir in $PATH
15997 IFS=$as_save_IFS
15998 test -z "$as_dir" && as_dir=.
15999 for ac_exec_ext in '' $ac_executable_extensions; do
16000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16001 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16003 break 2
16005 done
16006 done
16007 IFS=$as_save_IFS
16011 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16012 if test -n "$OTOOL_FOR_TARGET"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16014 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16015 else
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017 $as_echo "no" >&6; }
16022 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16023 done
16026 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16027 set dummy otool
16028 if test $build = $target ; then
16029 OTOOL_FOR_TARGET="$2"
16030 else
16031 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16033 else
16034 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16037 else
16038 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16044 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16045 if test -n "$with_build_time_tools"; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16047 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16048 if test -x $with_build_time_tools/ranlib; then
16049 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16050 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16052 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16053 else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055 $as_echo "no" >&6; }
16057 elif test $build != $host && test $have_gcc_for_target = yes; then
16058 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16059 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16060 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16063 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16064 # Extract the first word of "ranlib", so it can be a program name with args.
16065 set dummy ranlib; ac_word=$2
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16067 $as_echo_n "checking for $ac_word... " >&6; }
16068 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 case $RANLIB_FOR_TARGET in
16072 [\\/]* | ?:[\\/]*)
16073 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16077 for as_dir in $gcc_cv_tool_dirs
16079 IFS=$as_save_IFS
16080 test -z "$as_dir" && as_dir=.
16081 for ac_exec_ext in '' $ac_executable_extensions; do
16082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16083 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16085 break 2
16087 done
16088 done
16089 IFS=$as_save_IFS
16092 esac
16094 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16095 if test -n "$RANLIB_FOR_TARGET"; then
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16097 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16098 else
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 $as_echo "no" >&6; }
16105 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16108 if test -n "$RANLIB_FOR_TARGET"; then
16109 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16110 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16111 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16114 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16115 for ncn_progname in ranlib; do
16116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16117 set dummy ${ncn_progname}; ac_word=$2
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16119 $as_echo_n "checking for $ac_word... " >&6; }
16120 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122 else
16123 if test -n "$RANLIB_FOR_TARGET"; then
16124 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16125 else
16126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16127 for as_dir in $PATH
16129 IFS=$as_save_IFS
16130 test -z "$as_dir" && as_dir=.
16131 for ac_exec_ext in '' $ac_executable_extensions; do
16132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16133 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16135 break 2
16137 done
16138 done
16139 IFS=$as_save_IFS
16143 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16144 if test -n "$RANLIB_FOR_TARGET"; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16146 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16147 else
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16153 done
16156 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16157 for ncn_progname in ranlib; do
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16159 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16160 if test -x $with_build_time_tools/${ncn_progname}; then
16161 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16163 $as_echo "yes" >&6; }
16164 break
16165 else
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167 $as_echo "no" >&6; }
16169 done
16172 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16173 for ncn_progname in ranlib; do
16174 if test -n "$ncn_target_tool_prefix"; then
16175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16176 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16178 $as_echo_n "checking for $ac_word... " >&6; }
16179 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 if test -n "$RANLIB_FOR_TARGET"; then
16183 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16184 else
16185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16186 for as_dir in $PATH
16188 IFS=$as_save_IFS
16189 test -z "$as_dir" && as_dir=.
16190 for ac_exec_ext in '' $ac_executable_extensions; do
16191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16192 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16194 break 2
16196 done
16197 done
16198 IFS=$as_save_IFS
16202 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16203 if test -n "$RANLIB_FOR_TARGET"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16205 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16206 else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208 $as_echo "no" >&6; }
16213 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16215 set dummy ${ncn_progname}; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 if test -n "$RANLIB_FOR_TARGET"; then
16222 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16223 else
16224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225 for as_dir in $PATH
16227 IFS=$as_save_IFS
16228 test -z "$as_dir" && as_dir=.
16229 for ac_exec_ext in '' $ac_executable_extensions; do
16230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16231 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16233 break 2
16235 done
16236 done
16237 IFS=$as_save_IFS
16241 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16242 if test -n "$RANLIB_FOR_TARGET"; then
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16244 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16245 else
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247 $as_echo "no" >&6; }
16252 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16253 done
16256 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16257 set dummy ranlib
16258 if test $build = $target ; then
16259 RANLIB_FOR_TARGET="$2"
16260 else
16261 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16263 else
16264 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16267 else
16268 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16274 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16275 if test -n "$with_build_time_tools"; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16277 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16278 if test -x $with_build_time_tools/readelf; then
16279 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16280 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16282 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16283 else
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285 $as_echo "no" >&6; }
16287 elif test $build != $host && test $have_gcc_for_target = yes; then
16288 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16289 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16290 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16293 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16294 # Extract the first word of "readelf", so it can be a program name with args.
16295 set dummy readelf; ac_word=$2
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16297 $as_echo_n "checking for $ac_word... " >&6; }
16298 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16299 $as_echo_n "(cached) " >&6
16300 else
16301 case $READELF_FOR_TARGET in
16302 [\\/]* | ?:[\\/]*)
16303 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16307 for as_dir in $gcc_cv_tool_dirs
16309 IFS=$as_save_IFS
16310 test -z "$as_dir" && as_dir=.
16311 for ac_exec_ext in '' $ac_executable_extensions; do
16312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16313 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16315 break 2
16317 done
16318 done
16319 IFS=$as_save_IFS
16322 esac
16324 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16325 if test -n "$READELF_FOR_TARGET"; then
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16327 $as_echo "$READELF_FOR_TARGET" >&6; }
16328 else
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330 $as_echo "no" >&6; }
16335 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16338 if test -n "$READELF_FOR_TARGET"; then
16339 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16340 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16341 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16344 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16345 for ncn_progname in readelf; do
16346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16347 set dummy ${ncn_progname}; ac_word=$2
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16349 $as_echo_n "checking for $ac_word... " >&6; }
16350 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16351 $as_echo_n "(cached) " >&6
16352 else
16353 if test -n "$READELF_FOR_TARGET"; then
16354 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16355 else
16356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16357 for as_dir in $PATH
16359 IFS=$as_save_IFS
16360 test -z "$as_dir" && as_dir=.
16361 for ac_exec_ext in '' $ac_executable_extensions; do
16362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16363 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16365 break 2
16367 done
16368 done
16369 IFS=$as_save_IFS
16373 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16374 if test -n "$READELF_FOR_TARGET"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16376 $as_echo "$READELF_FOR_TARGET" >&6; }
16377 else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16383 done
16386 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16387 for ncn_progname in readelf; do
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16389 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16390 if test -x $with_build_time_tools/${ncn_progname}; then
16391 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16393 $as_echo "yes" >&6; }
16394 break
16395 else
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397 $as_echo "no" >&6; }
16399 done
16402 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16403 for ncn_progname in readelf; do
16404 if test -n "$ncn_target_tool_prefix"; then
16405 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16406 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16408 $as_echo_n "checking for $ac_word... " >&6; }
16409 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 if test -n "$READELF_FOR_TARGET"; then
16413 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16414 else
16415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16416 for as_dir in $PATH
16418 IFS=$as_save_IFS
16419 test -z "$as_dir" && as_dir=.
16420 for ac_exec_ext in '' $ac_executable_extensions; do
16421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16422 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16424 break 2
16426 done
16427 done
16428 IFS=$as_save_IFS
16432 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16433 if test -n "$READELF_FOR_TARGET"; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16435 $as_echo "$READELF_FOR_TARGET" >&6; }
16436 else
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16443 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16445 set dummy ${ncn_progname}; ac_word=$2
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16447 $as_echo_n "checking for $ac_word... " >&6; }
16448 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16449 $as_echo_n "(cached) " >&6
16450 else
16451 if test -n "$READELF_FOR_TARGET"; then
16452 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16453 else
16454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455 for as_dir in $PATH
16457 IFS=$as_save_IFS
16458 test -z "$as_dir" && as_dir=.
16459 for ac_exec_ext in '' $ac_executable_extensions; do
16460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16461 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16463 break 2
16465 done
16466 done
16467 IFS=$as_save_IFS
16471 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16472 if test -n "$READELF_FOR_TARGET"; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16474 $as_echo "$READELF_FOR_TARGET" >&6; }
16475 else
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16482 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16483 done
16486 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16487 set dummy readelf
16488 if test $build = $target ; then
16489 READELF_FOR_TARGET="$2"
16490 else
16491 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16493 else
16494 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16497 else
16498 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16504 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16505 if test -n "$with_build_time_tools"; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16507 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16508 if test -x $with_build_time_tools/strip; then
16509 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16510 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16512 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16513 else
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16515 $as_echo "no" >&6; }
16517 elif test $build != $host && test $have_gcc_for_target = yes; then
16518 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16519 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16520 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16523 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16524 # Extract the first word of "strip", so it can be a program name with args.
16525 set dummy strip; ac_word=$2
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16527 $as_echo_n "checking for $ac_word... " >&6; }
16528 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16529 $as_echo_n "(cached) " >&6
16530 else
16531 case $STRIP_FOR_TARGET in
16532 [\\/]* | ?:[\\/]*)
16533 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 for as_dir in $gcc_cv_tool_dirs
16539 IFS=$as_save_IFS
16540 test -z "$as_dir" && as_dir=.
16541 for ac_exec_ext in '' $ac_executable_extensions; do
16542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16543 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16545 break 2
16547 done
16548 done
16549 IFS=$as_save_IFS
16552 esac
16554 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16555 if test -n "$STRIP_FOR_TARGET"; then
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16557 $as_echo "$STRIP_FOR_TARGET" >&6; }
16558 else
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16560 $as_echo "no" >&6; }
16565 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16568 if test -n "$STRIP_FOR_TARGET"; then
16569 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16570 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16571 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16574 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16575 for ncn_progname in strip; do
16576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16577 set dummy ${ncn_progname}; ac_word=$2
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16579 $as_echo_n "checking for $ac_word... " >&6; }
16580 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 if test -n "$STRIP_FOR_TARGET"; then
16584 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16585 else
16586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16587 for as_dir in $PATH
16589 IFS=$as_save_IFS
16590 test -z "$as_dir" && as_dir=.
16591 for ac_exec_ext in '' $ac_executable_extensions; do
16592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16593 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16595 break 2
16597 done
16598 done
16599 IFS=$as_save_IFS
16603 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16604 if test -n "$STRIP_FOR_TARGET"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16606 $as_echo "$STRIP_FOR_TARGET" >&6; }
16607 else
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609 $as_echo "no" >&6; }
16613 done
16616 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16617 for ncn_progname in strip; do
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16619 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16620 if test -x $with_build_time_tools/${ncn_progname}; then
16621 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16623 $as_echo "yes" >&6; }
16624 break
16625 else
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16627 $as_echo "no" >&6; }
16629 done
16632 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16633 for ncn_progname in strip; do
16634 if test -n "$ncn_target_tool_prefix"; then
16635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16636 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638 $as_echo_n "checking for $ac_word... " >&6; }
16639 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16640 $as_echo_n "(cached) " >&6
16641 else
16642 if test -n "$STRIP_FOR_TARGET"; then
16643 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16644 else
16645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16646 for as_dir in $PATH
16648 IFS=$as_save_IFS
16649 test -z "$as_dir" && as_dir=.
16650 for ac_exec_ext in '' $ac_executable_extensions; do
16651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16652 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16654 break 2
16656 done
16657 done
16658 IFS=$as_save_IFS
16662 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16663 if test -n "$STRIP_FOR_TARGET"; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16665 $as_echo "$STRIP_FOR_TARGET" >&6; }
16666 else
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16668 $as_echo "no" >&6; }
16673 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16675 set dummy ${ncn_progname}; ac_word=$2
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677 $as_echo_n "checking for $ac_word... " >&6; }
16678 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16679 $as_echo_n "(cached) " >&6
16680 else
16681 if test -n "$STRIP_FOR_TARGET"; then
16682 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16683 else
16684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685 for as_dir in $PATH
16687 IFS=$as_save_IFS
16688 test -z "$as_dir" && as_dir=.
16689 for ac_exec_ext in '' $ac_executable_extensions; do
16690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16693 break 2
16695 done
16696 done
16697 IFS=$as_save_IFS
16701 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16702 if test -n "$STRIP_FOR_TARGET"; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16704 $as_echo "$STRIP_FOR_TARGET" >&6; }
16705 else
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16712 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16713 done
16716 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16717 set dummy strip
16718 if test $build = $target ; then
16719 STRIP_FOR_TARGET="$2"
16720 else
16721 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16723 else
16724 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16727 else
16728 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16734 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16735 if test -n "$with_build_time_tools"; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16737 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16738 if test -x $with_build_time_tools/windres; then
16739 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16740 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16742 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16743 else
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 $as_echo "no" >&6; }
16747 elif test $build != $host && test $have_gcc_for_target = yes; then
16748 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16749 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16750 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16753 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16754 # Extract the first word of "windres", so it can be a program name with args.
16755 set dummy windres; ac_word=$2
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16757 $as_echo_n "checking for $ac_word... " >&6; }
16758 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16759 $as_echo_n "(cached) " >&6
16760 else
16761 case $WINDRES_FOR_TARGET in
16762 [\\/]* | ?:[\\/]*)
16763 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16767 for as_dir in $gcc_cv_tool_dirs
16769 IFS=$as_save_IFS
16770 test -z "$as_dir" && as_dir=.
16771 for ac_exec_ext in '' $ac_executable_extensions; do
16772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16773 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16775 break 2
16777 done
16778 done
16779 IFS=$as_save_IFS
16782 esac
16784 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16785 if test -n "$WINDRES_FOR_TARGET"; then
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16787 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16788 else
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16790 $as_echo "no" >&6; }
16795 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16798 if test -n "$WINDRES_FOR_TARGET"; then
16799 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16800 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16801 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16804 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16805 for ncn_progname in windres; do
16806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16807 set dummy ${ncn_progname}; ac_word=$2
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809 $as_echo_n "checking for $ac_word... " >&6; }
16810 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16811 $as_echo_n "(cached) " >&6
16812 else
16813 if test -n "$WINDRES_FOR_TARGET"; then
16814 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16815 else
16816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817 for as_dir in $PATH
16819 IFS=$as_save_IFS
16820 test -z "$as_dir" && as_dir=.
16821 for ac_exec_ext in '' $ac_executable_extensions; do
16822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16823 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16825 break 2
16827 done
16828 done
16829 IFS=$as_save_IFS
16833 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16834 if test -n "$WINDRES_FOR_TARGET"; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16836 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16837 else
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839 $as_echo "no" >&6; }
16843 done
16846 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16847 for ncn_progname in windres; do
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16849 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16850 if test -x $with_build_time_tools/${ncn_progname}; then
16851 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 $as_echo "yes" >&6; }
16854 break
16855 else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857 $as_echo "no" >&6; }
16859 done
16862 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16863 for ncn_progname in windres; do
16864 if test -n "$ncn_target_tool_prefix"; then
16865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16868 $as_echo_n "checking for $ac_word... " >&6; }
16869 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16870 $as_echo_n "(cached) " >&6
16871 else
16872 if test -n "$WINDRES_FOR_TARGET"; then
16873 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16874 else
16875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16876 for as_dir in $PATH
16878 IFS=$as_save_IFS
16879 test -z "$as_dir" && as_dir=.
16880 for ac_exec_ext in '' $ac_executable_extensions; do
16881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16882 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16884 break 2
16886 done
16887 done
16888 IFS=$as_save_IFS
16892 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16893 if test -n "$WINDRES_FOR_TARGET"; then
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16895 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16896 else
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898 $as_echo "no" >&6; }
16903 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16905 set dummy ${ncn_progname}; ac_word=$2
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16907 $as_echo_n "checking for $ac_word... " >&6; }
16908 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16909 $as_echo_n "(cached) " >&6
16910 else
16911 if test -n "$WINDRES_FOR_TARGET"; then
16912 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16913 else
16914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915 for as_dir in $PATH
16917 IFS=$as_save_IFS
16918 test -z "$as_dir" && as_dir=.
16919 for ac_exec_ext in '' $ac_executable_extensions; do
16920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16921 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16923 break 2
16925 done
16926 done
16927 IFS=$as_save_IFS
16931 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16932 if test -n "$WINDRES_FOR_TARGET"; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16934 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16935 else
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937 $as_echo "no" >&6; }
16942 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16943 done
16946 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16947 set dummy windres
16948 if test $build = $target ; then
16949 WINDRES_FOR_TARGET="$2"
16950 else
16951 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16953 else
16954 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16957 else
16958 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16964 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16965 if test -n "$with_build_time_tools"; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16967 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16968 if test -x $with_build_time_tools/windmc; then
16969 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16970 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16972 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16973 else
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975 $as_echo "no" >&6; }
16977 elif test $build != $host && test $have_gcc_for_target = yes; then
16978 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16979 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16980 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16983 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16984 # Extract the first word of "windmc", so it can be a program name with args.
16985 set dummy windmc; ac_word=$2
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16987 $as_echo_n "checking for $ac_word... " >&6; }
16988 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 case $WINDMC_FOR_TARGET in
16992 [\\/]* | ?:[\\/]*)
16993 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16997 for as_dir in $gcc_cv_tool_dirs
16999 IFS=$as_save_IFS
17000 test -z "$as_dir" && as_dir=.
17001 for ac_exec_ext in '' $ac_executable_extensions; do
17002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17003 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17005 break 2
17007 done
17008 done
17009 IFS=$as_save_IFS
17012 esac
17014 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17015 if test -n "$WINDMC_FOR_TARGET"; then
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17017 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17018 else
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17020 $as_echo "no" >&6; }
17025 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17028 if test -n "$WINDMC_FOR_TARGET"; then
17029 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17030 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17031 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17034 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17035 for ncn_progname in windmc; do
17036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17037 set dummy ${ncn_progname}; ac_word=$2
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17039 $as_echo_n "checking for $ac_word... " >&6; }
17040 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17041 $as_echo_n "(cached) " >&6
17042 else
17043 if test -n "$WINDMC_FOR_TARGET"; then
17044 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17045 else
17046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17047 for as_dir in $PATH
17049 IFS=$as_save_IFS
17050 test -z "$as_dir" && as_dir=.
17051 for ac_exec_ext in '' $ac_executable_extensions; do
17052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17053 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17055 break 2
17057 done
17058 done
17059 IFS=$as_save_IFS
17063 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17064 if test -n "$WINDMC_FOR_TARGET"; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17066 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17067 else
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17073 done
17076 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17077 for ncn_progname in windmc; do
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17079 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17080 if test -x $with_build_time_tools/${ncn_progname}; then
17081 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17083 $as_echo "yes" >&6; }
17084 break
17085 else
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 $as_echo "no" >&6; }
17089 done
17092 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17093 for ncn_progname in windmc; do
17094 if test -n "$ncn_target_tool_prefix"; then
17095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17096 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098 $as_echo_n "checking for $ac_word... " >&6; }
17099 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17100 $as_echo_n "(cached) " >&6
17101 else
17102 if test -n "$WINDMC_FOR_TARGET"; then
17103 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17104 else
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17108 IFS=$as_save_IFS
17109 test -z "$as_dir" && as_dir=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
17111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17114 break 2
17116 done
17117 done
17118 IFS=$as_save_IFS
17122 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17123 if test -n "$WINDMC_FOR_TARGET"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17125 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17126 else
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17133 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17135 set dummy ${ncn_progname}; ac_word=$2
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137 $as_echo_n "checking for $ac_word... " >&6; }
17138 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17139 $as_echo_n "(cached) " >&6
17140 else
17141 if test -n "$WINDMC_FOR_TARGET"; then
17142 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17143 else
17144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145 for as_dir in $PATH
17147 IFS=$as_save_IFS
17148 test -z "$as_dir" && as_dir=.
17149 for ac_exec_ext in '' $ac_executable_extensions; do
17150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17151 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17153 break 2
17155 done
17156 done
17157 IFS=$as_save_IFS
17161 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17162 if test -n "$WINDMC_FOR_TARGET"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17164 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17165 else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 $as_echo "no" >&6; }
17172 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17173 done
17176 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17177 set dummy windmc
17178 if test $build = $target ; then
17179 WINDMC_FOR_TARGET="$2"
17180 else
17181 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17183 else
17184 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17187 else
17188 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17192 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17195 $as_echo_n "checking where to find the target ar... " >&6; }
17196 if test "x${build}" != "x${host}" ; then
17197 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17198 # We already found the complete path
17199 ac_dir=`dirname $AR_FOR_TARGET`
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17201 $as_echo "pre-installed in $ac_dir" >&6; }
17202 else
17203 # Canadian cross, just use what we found
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17205 $as_echo "pre-installed" >&6; }
17207 else
17208 ok=yes
17209 case " ${configdirs} " in
17210 *" binutils "*) ;;
17211 *) ok=no ;;
17212 esac
17214 if test $ok = yes; then
17215 # An in-tree tool is available and we can use it
17216 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17218 $as_echo "just compiled" >&6; }
17219 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17220 # We already found the complete path
17221 ac_dir=`dirname $AR_FOR_TARGET`
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17223 $as_echo "pre-installed in $ac_dir" >&6; }
17224 elif test "x$target" = "x$host"; then
17225 # We can use an host tool
17226 AR_FOR_TARGET='$(AR)'
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17228 $as_echo "host tool" >&6; }
17229 else
17230 # We need a cross tool
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17232 $as_echo "pre-installed" >&6; }
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17237 $as_echo_n "checking where to find the target as... " >&6; }
17238 if test "x${build}" != "x${host}" ; then
17239 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17240 # We already found the complete path
17241 ac_dir=`dirname $AS_FOR_TARGET`
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17243 $as_echo "pre-installed in $ac_dir" >&6; }
17244 else
17245 # Canadian cross, just use what we found
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17247 $as_echo "pre-installed" >&6; }
17249 else
17250 ok=yes
17251 case " ${configdirs} " in
17252 *" gas "*) ;;
17253 *) ok=no ;;
17254 esac
17256 if test $ok = yes; then
17257 # An in-tree tool is available and we can use it
17258 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17260 $as_echo "just compiled" >&6; }
17261 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17262 # We already found the complete path
17263 ac_dir=`dirname $AS_FOR_TARGET`
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17265 $as_echo "pre-installed in $ac_dir" >&6; }
17266 elif test "x$target" = "x$host"; then
17267 # We can use an host tool
17268 AS_FOR_TARGET='$(AS)'
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17270 $as_echo "host tool" >&6; }
17271 else
17272 # We need a cross tool
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17274 $as_echo "pre-installed" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17279 $as_echo_n "checking where to find the target cc... " >&6; }
17280 if test "x${build}" != "x${host}" ; then
17281 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17282 # We already found the complete path
17283 ac_dir=`dirname $CC_FOR_TARGET`
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17285 $as_echo "pre-installed in $ac_dir" >&6; }
17286 else
17287 # Canadian cross, just use what we found
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17289 $as_echo "pre-installed" >&6; }
17291 else
17292 ok=yes
17293 case " ${configdirs} " in
17294 *" gcc "*) ;;
17295 *) ok=no ;;
17296 esac
17298 if test $ok = yes; then
17299 # An in-tree tool is available and we can use it
17300 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17302 $as_echo "just compiled" >&6; }
17303 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17304 # We already found the complete path
17305 ac_dir=`dirname $CC_FOR_TARGET`
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17307 $as_echo "pre-installed in $ac_dir" >&6; }
17308 elif test "x$target" = "x$host"; then
17309 # We can use an host tool
17310 CC_FOR_TARGET='$(CC)'
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17312 $as_echo "host tool" >&6; }
17313 else
17314 # We need a cross tool
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17316 $as_echo "pre-installed" >&6; }
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17321 $as_echo_n "checking where to find the target c++... " >&6; }
17322 if test "x${build}" != "x${host}" ; then
17323 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17324 # We already found the complete path
17325 ac_dir=`dirname $CXX_FOR_TARGET`
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17327 $as_echo "pre-installed in $ac_dir" >&6; }
17328 else
17329 # Canadian cross, just use what we found
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17331 $as_echo "pre-installed" >&6; }
17333 else
17334 ok=yes
17335 case " ${configdirs} " in
17336 *" gcc "*) ;;
17337 *) ok=no ;;
17338 esac
17339 case ,${enable_languages}, in
17340 *,c++,*) ;;
17341 *) ok=no ;;
17342 esac
17343 if test $ok = yes; then
17344 # An in-tree tool is available and we can use it
17345 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'
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17347 $as_echo "just compiled" >&6; }
17348 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17349 # We already found the complete path
17350 ac_dir=`dirname $CXX_FOR_TARGET`
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17352 $as_echo "pre-installed in $ac_dir" >&6; }
17353 elif test "x$target" = "x$host"; then
17354 # We can use an host tool
17355 CXX_FOR_TARGET='$(CXX)'
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17357 $as_echo "host tool" >&6; }
17358 else
17359 # We need a cross tool
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17361 $as_echo "pre-installed" >&6; }
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17366 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17367 if test "x${build}" != "x${host}" ; then
17368 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17369 # We already found the complete path
17370 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17372 $as_echo "pre-installed in $ac_dir" >&6; }
17373 else
17374 # Canadian cross, just use what we found
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17376 $as_echo "pre-installed" >&6; }
17378 else
17379 ok=yes
17380 case " ${configdirs} " in
17381 *" gcc "*) ;;
17382 *) ok=no ;;
17383 esac
17384 case ,${enable_languages}, in
17385 *,c++,*) ;;
17386 *) ok=no ;;
17387 esac
17388 if test $ok = yes; then
17389 # An in-tree tool is available and we can use it
17390 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'
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17392 $as_echo "just compiled" >&6; }
17393 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17394 # We already found the complete path
17395 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17397 $as_echo "pre-installed in $ac_dir" >&6; }
17398 elif test "x$target" = "x$host"; then
17399 # We can use an host tool
17400 RAW_CXX_FOR_TARGET='$(CXX)'
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17402 $as_echo "host tool" >&6; }
17403 else
17404 # We need a cross tool
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17406 $as_echo "pre-installed" >&6; }
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17411 $as_echo_n "checking where to find the target dlltool... " >&6; }
17412 if test "x${build}" != "x${host}" ; then
17413 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17414 # We already found the complete path
17415 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17417 $as_echo "pre-installed in $ac_dir" >&6; }
17418 else
17419 # Canadian cross, just use what we found
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17421 $as_echo "pre-installed" >&6; }
17423 else
17424 ok=yes
17425 case " ${configdirs} " in
17426 *" binutils "*) ;;
17427 *) ok=no ;;
17428 esac
17430 if test $ok = yes; then
17431 # An in-tree tool is available and we can use it
17432 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17434 $as_echo "just compiled" >&6; }
17435 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17436 # We already found the complete path
17437 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17439 $as_echo "pre-installed in $ac_dir" >&6; }
17440 elif test "x$target" = "x$host"; then
17441 # We can use an host tool
17442 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17444 $as_echo "host tool" >&6; }
17445 else
17446 # We need a cross tool
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17448 $as_echo "pre-installed" >&6; }
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17453 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17454 if test "x${build}" != "x${host}" ; then
17455 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17456 # We already found the complete path
17457 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17459 $as_echo "pre-installed in $ac_dir" >&6; }
17460 else
17461 # Canadian cross, just use what we found
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17463 $as_echo "pre-installed" >&6; }
17465 else
17466 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17467 # We already found the complete path
17468 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17470 $as_echo "pre-installed in $ac_dir" >&6; }
17471 elif test "x$target" = "x$host"; then
17472 # We can use an host tool
17473 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17475 $as_echo "host tool" >&6; }
17476 else
17477 # We need a cross tool
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17479 $as_echo "pre-installed" >&6; }
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17484 $as_echo_n "checking where to find the target gcc... " >&6; }
17485 if test "x${build}" != "x${host}" ; then
17486 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17487 # We already found the complete path
17488 ac_dir=`dirname $GCC_FOR_TARGET`
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17490 $as_echo "pre-installed in $ac_dir" >&6; }
17491 else
17492 # Canadian cross, just use what we found
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17494 $as_echo "pre-installed" >&6; }
17496 else
17497 ok=yes
17498 case " ${configdirs} " in
17499 *" gcc "*) ;;
17500 *) ok=no ;;
17501 esac
17503 if test $ok = yes; then
17504 # An in-tree tool is available and we can use it
17505 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17507 $as_echo "just compiled" >&6; }
17508 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $GCC_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512 $as_echo "pre-installed in $ac_dir" >&6; }
17513 elif test "x$target" = "x$host"; then
17514 # We can use an host tool
17515 GCC_FOR_TARGET='$()'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17517 $as_echo "host tool" >&6; }
17518 else
17519 # We need a cross tool
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17521 $as_echo "pre-installed" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17526 $as_echo_n "checking where to find the target gfortran... " >&6; }
17527 if test "x${build}" != "x${host}" ; then
17528 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532 $as_echo "pre-installed in $ac_dir" >&6; }
17533 else
17534 # Canadian cross, just use what we found
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17536 $as_echo "pre-installed" >&6; }
17538 else
17539 ok=yes
17540 case " ${configdirs} " in
17541 *" gcc "*) ;;
17542 *) ok=no ;;
17543 esac
17544 case ,${enable_languages}, in
17545 *,fortran,*) ;;
17546 *) ok=no ;;
17547 esac
17548 if test $ok = yes; then
17549 # An in-tree tool is available and we can use it
17550 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17552 $as_echo "just compiled" >&6; }
17553 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17554 # We already found the complete path
17555 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17557 $as_echo "pre-installed in $ac_dir" >&6; }
17558 elif test "x$target" = "x$host"; then
17559 # We can use an host tool
17560 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17562 $as_echo "host tool" >&6; }
17563 else
17564 # We need a cross tool
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17566 $as_echo "pre-installed" >&6; }
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17571 $as_echo_n "checking where to find the target gccgo... " >&6; }
17572 if test "x${build}" != "x${host}" ; then
17573 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17574 # We already found the complete path
17575 ac_dir=`dirname $GOC_FOR_TARGET`
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17577 $as_echo "pre-installed in $ac_dir" >&6; }
17578 else
17579 # Canadian cross, just use what we found
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17581 $as_echo "pre-installed" >&6; }
17583 else
17584 ok=yes
17585 case " ${configdirs} " in
17586 *" gcc "*) ;;
17587 *) ok=no ;;
17588 esac
17589 case ,${enable_languages}, in
17590 *,go,*) ;;
17591 *) ok=no ;;
17592 esac
17593 if test $ok = yes; then
17594 # An in-tree tool is available and we can use it
17595 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17597 $as_echo "just compiled" >&6; }
17598 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17599 # We already found the complete path
17600 ac_dir=`dirname $GOC_FOR_TARGET`
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17602 $as_echo "pre-installed in $ac_dir" >&6; }
17603 elif test "x$target" = "x$host"; then
17604 # We can use an host tool
17605 GOC_FOR_TARGET='$(GOC)'
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17607 $as_echo "host tool" >&6; }
17608 else
17609 # We need a cross tool
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17611 $as_echo "pre-installed" >&6; }
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17616 $as_echo_n "checking where to find the target gdc... " >&6; }
17617 if test "x${build}" != "x${host}" ; then
17618 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17619 # We already found the complete path
17620 ac_dir=`dirname $GDC_FOR_TARGET`
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17622 $as_echo "pre-installed in $ac_dir" >&6; }
17623 else
17624 # Canadian cross, just use what we found
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17626 $as_echo "pre-installed" >&6; }
17628 else
17629 ok=yes
17630 case " ${configdirs} " in
17631 *" gcc "*) ;;
17632 *) ok=no ;;
17633 esac
17634 case ,${enable_languages}, in
17635 *,d,*) ;;
17636 *) ok=no ;;
17637 esac
17638 if test $ok = yes; then
17639 # An in-tree tool is available and we can use it
17640 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17642 $as_echo "just compiled" >&6; }
17643 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $GDC_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647 $as_echo "pre-installed in $ac_dir" >&6; }
17648 elif test "x$target" = "x$host"; then
17649 # We can use an host tool
17650 GDC_FOR_TARGET='$(GDC)'
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17652 $as_echo "host tool" >&6; }
17653 else
17654 # We need a cross tool
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17656 $as_echo "pre-installed" >&6; }
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17661 $as_echo_n "checking where to find the target ld... " >&6; }
17662 if test "x${build}" != "x${host}" ; then
17663 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17664 # We already found the complete path
17665 ac_dir=`dirname $LD_FOR_TARGET`
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17667 $as_echo "pre-installed in $ac_dir" >&6; }
17668 else
17669 # Canadian cross, just use what we found
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671 $as_echo "pre-installed" >&6; }
17673 else
17674 ok=yes
17675 case " ${configdirs} " in
17676 *" ld "*) ;;
17677 *) ok=no ;;
17678 esac
17680 if test $ok = yes; then
17681 # An in-tree tool is available and we can use it
17682 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17684 $as_echo "just compiled" >&6; }
17685 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17686 # We already found the complete path
17687 ac_dir=`dirname $LD_FOR_TARGET`
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17689 $as_echo "pre-installed in $ac_dir" >&6; }
17690 elif test "x$target" = "x$host"; then
17691 # We can use an host tool
17692 LD_FOR_TARGET='$(LD)'
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17694 $as_echo "host tool" >&6; }
17695 else
17696 # We need a cross tool
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17698 $as_echo "pre-installed" >&6; }
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17703 $as_echo_n "checking where to find the target lipo... " >&6; }
17704 if test "x${build}" != "x${host}" ; then
17705 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17706 # We already found the complete path
17707 ac_dir=`dirname $LIPO_FOR_TARGET`
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17709 $as_echo "pre-installed in $ac_dir" >&6; }
17710 else
17711 # Canadian cross, just use what we found
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17713 $as_echo "pre-installed" >&6; }
17715 else
17716 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17717 # We already found the complete path
17718 ac_dir=`dirname $LIPO_FOR_TARGET`
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17720 $as_echo "pre-installed in $ac_dir" >&6; }
17721 elif test "x$target" = "x$host"; then
17722 # We can use an host tool
17723 LIPO_FOR_TARGET='$(LIPO)'
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17725 $as_echo "host tool" >&6; }
17726 else
17727 # We need a cross tool
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17729 $as_echo "pre-installed" >&6; }
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17734 $as_echo_n "checking where to find the target nm... " >&6; }
17735 if test "x${build}" != "x${host}" ; then
17736 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17737 # We already found the complete path
17738 ac_dir=`dirname $NM_FOR_TARGET`
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17740 $as_echo "pre-installed in $ac_dir" >&6; }
17741 else
17742 # Canadian cross, just use what we found
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17744 $as_echo "pre-installed" >&6; }
17746 else
17747 ok=yes
17748 case " ${configdirs} " in
17749 *" binutils "*) ;;
17750 *) ok=no ;;
17751 esac
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17757 $as_echo "just compiled" >&6; }
17758 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $NM_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762 $as_echo "pre-installed in $ac_dir" >&6; }
17763 elif test "x$target" = "x$host"; then
17764 # We can use an host tool
17765 NM_FOR_TARGET='$(NM)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17767 $as_echo "host tool" >&6; }
17768 else
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17771 $as_echo "pre-installed" >&6; }
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17776 $as_echo_n "checking where to find the target objcopy... " >&6; }
17777 if test "x${build}" != "x${host}" ; then
17778 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782 $as_echo "pre-installed in $ac_dir" >&6; }
17783 else
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17786 $as_echo "pre-installed" >&6; }
17788 else
17789 ok=yes
17790 case " ${configdirs} " in
17791 *" binutils "*) ;;
17792 *) ok=no ;;
17793 esac
17795 if test $ok = yes; then
17796 # An in-tree tool is available and we can use it
17797 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17799 $as_echo "just compiled" >&6; }
17800 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17801 # We already found the complete path
17802 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17804 $as_echo "pre-installed in $ac_dir" >&6; }
17805 elif test "x$target" = "x$host"; then
17806 # We can use an host tool
17807 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17809 $as_echo "host tool" >&6; }
17810 else
17811 # We need a cross tool
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17813 $as_echo "pre-installed" >&6; }
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17818 $as_echo_n "checking where to find the target objdump... " >&6; }
17819 if test "x${build}" != "x${host}" ; then
17820 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824 $as_echo "pre-installed in $ac_dir" >&6; }
17825 else
17826 # Canadian cross, just use what we found
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17828 $as_echo "pre-installed" >&6; }
17830 else
17831 ok=yes
17832 case " ${configdirs} " in
17833 *" binutils "*) ;;
17834 *) ok=no ;;
17835 esac
17837 if test $ok = yes; then
17838 # An in-tree tool is available and we can use it
17839 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17841 $as_echo "just compiled" >&6; }
17842 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17843 # We already found the complete path
17844 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17846 $as_echo "pre-installed in $ac_dir" >&6; }
17847 elif test "x$target" = "x$host"; then
17848 # We can use an host tool
17849 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17851 $as_echo "host tool" >&6; }
17852 else
17853 # We need a cross tool
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17855 $as_echo "pre-installed" >&6; }
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17860 $as_echo_n "checking where to find the target otool... " >&6; }
17861 if test "x${build}" != "x${host}" ; then
17862 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17863 # We already found the complete path
17864 ac_dir=`dirname $OTOOL_FOR_TARGET`
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17866 $as_echo "pre-installed in $ac_dir" >&6; }
17867 else
17868 # Canadian cross, just use what we found
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17870 $as_echo "pre-installed" >&6; }
17872 else
17873 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17874 # We already found the complete path
17875 ac_dir=`dirname $OTOOL_FOR_TARGET`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17877 $as_echo "pre-installed in $ac_dir" >&6; }
17878 elif test "x$target" = "x$host"; then
17879 # We can use an host tool
17880 OTOOL_FOR_TARGET='$(OTOOL)'
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17882 $as_echo "host tool" >&6; }
17883 else
17884 # We need a cross tool
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886 $as_echo "pre-installed" >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17891 $as_echo_n "checking where to find the target ranlib... " >&6; }
17892 if test "x${build}" != "x${host}" ; then
17893 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $RANLIB_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897 $as_echo "pre-installed in $ac_dir" >&6; }
17898 else
17899 # Canadian cross, just use what we found
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17901 $as_echo "pre-installed" >&6; }
17903 else
17904 ok=yes
17905 case " ${configdirs} " in
17906 *" binutils "*) ;;
17907 *) ok=no ;;
17908 esac
17910 if test $ok = yes; then
17911 # An in-tree tool is available and we can use it
17912 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17914 $as_echo "just compiled" >&6; }
17915 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17916 # We already found the complete path
17917 ac_dir=`dirname $RANLIB_FOR_TARGET`
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17919 $as_echo "pre-installed in $ac_dir" >&6; }
17920 elif test "x$target" = "x$host"; then
17921 # We can use an host tool
17922 RANLIB_FOR_TARGET='$(RANLIB)'
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17924 $as_echo "host tool" >&6; }
17925 else
17926 # We need a cross tool
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17928 $as_echo "pre-installed" >&6; }
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17933 $as_echo_n "checking where to find the target readelf... " >&6; }
17934 if test "x${build}" != "x${host}" ; then
17935 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17936 # We already found the complete path
17937 ac_dir=`dirname $READELF_FOR_TARGET`
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17939 $as_echo "pre-installed in $ac_dir" >&6; }
17940 else
17941 # Canadian cross, just use what we found
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17943 $as_echo "pre-installed" >&6; }
17945 else
17946 ok=yes
17947 case " ${configdirs} " in
17948 *" binutils "*) ;;
17949 *) ok=no ;;
17950 esac
17952 if test $ok = yes; then
17953 # An in-tree tool is available and we can use it
17954 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17956 $as_echo "just compiled" >&6; }
17957 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17958 # We already found the complete path
17959 ac_dir=`dirname $READELF_FOR_TARGET`
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17961 $as_echo "pre-installed in $ac_dir" >&6; }
17962 elif test "x$target" = "x$host"; then
17963 # We can use an host tool
17964 READELF_FOR_TARGET='$(READELF)'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17966 $as_echo "host tool" >&6; }
17967 else
17968 # We need a cross tool
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17970 $as_echo "pre-installed" >&6; }
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17975 $as_echo_n "checking where to find the target strip... " >&6; }
17976 if test "x${build}" != "x${host}" ; then
17977 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17978 # We already found the complete path
17979 ac_dir=`dirname $STRIP_FOR_TARGET`
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17981 $as_echo "pre-installed in $ac_dir" >&6; }
17982 else
17983 # Canadian cross, just use what we found
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17985 $as_echo "pre-installed" >&6; }
17987 else
17988 ok=yes
17989 case " ${configdirs} " in
17990 *" binutils "*) ;;
17991 *) ok=no ;;
17992 esac
17994 if test $ok = yes; then
17995 # An in-tree tool is available and we can use it
17996 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17998 $as_echo "just compiled" >&6; }
17999 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18000 # We already found the complete path
18001 ac_dir=`dirname $STRIP_FOR_TARGET`
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18003 $as_echo "pre-installed in $ac_dir" >&6; }
18004 elif test "x$target" = "x$host"; then
18005 # We can use an host tool
18006 STRIP_FOR_TARGET='$(STRIP)'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18008 $as_echo "host tool" >&6; }
18009 else
18010 # We need a cross tool
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18012 $as_echo "pre-installed" >&6; }
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18017 $as_echo_n "checking where to find the target windres... " >&6; }
18018 if test "x${build}" != "x${host}" ; then
18019 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18020 # We already found the complete path
18021 ac_dir=`dirname $WINDRES_FOR_TARGET`
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18023 $as_echo "pre-installed in $ac_dir" >&6; }
18024 else
18025 # Canadian cross, just use what we found
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18027 $as_echo "pre-installed" >&6; }
18029 else
18030 ok=yes
18031 case " ${configdirs} " in
18032 *" binutils "*) ;;
18033 *) ok=no ;;
18034 esac
18036 if test $ok = yes; then
18037 # An in-tree tool is available and we can use it
18038 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18040 $as_echo "just compiled" >&6; }
18041 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18042 # We already found the complete path
18043 ac_dir=`dirname $WINDRES_FOR_TARGET`
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18045 $as_echo "pre-installed in $ac_dir" >&6; }
18046 elif test "x$target" = "x$host"; then
18047 # We can use an host tool
18048 WINDRES_FOR_TARGET='$(WINDRES)'
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18050 $as_echo "host tool" >&6; }
18051 else
18052 # We need a cross tool
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18054 $as_echo "pre-installed" >&6; }
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18059 $as_echo_n "checking where to find the target windmc... " >&6; }
18060 if test "x${build}" != "x${host}" ; then
18061 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18062 # We already found the complete path
18063 ac_dir=`dirname $WINDMC_FOR_TARGET`
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18065 $as_echo "pre-installed in $ac_dir" >&6; }
18066 else
18067 # Canadian cross, just use what we found
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18069 $as_echo "pre-installed" >&6; }
18071 else
18072 ok=yes
18073 case " ${configdirs} " in
18074 *" binutils "*) ;;
18075 *) ok=no ;;
18076 esac
18078 if test $ok = yes; then
18079 # An in-tree tool is available and we can use it
18080 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18082 $as_echo "just compiled" >&6; }
18083 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18084 # We already found the complete path
18085 ac_dir=`dirname $WINDMC_FOR_TARGET`
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18087 $as_echo "pre-installed in $ac_dir" >&6; }
18088 elif test "x$target" = "x$host"; then
18089 # We can use an host tool
18090 WINDMC_FOR_TARGET='$(WINDMC)'
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18092 $as_echo "host tool" >&6; }
18093 else
18094 # We need a cross tool
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18096 $as_echo "pre-installed" >&6; }
18104 # Certain tools may need extra flags.
18105 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18106 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18107 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18109 # When building target libraries, except in a Canadian cross, we use
18110 # the same toolchain as the compiler we just built.
18111 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18112 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18113 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18114 if test $host = $build; then
18115 case " $configdirs " in
18116 *" gcc "*)
18117 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18118 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18119 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18121 esac
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18129 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18130 # Check whether --enable-maintainer-mode was given.
18131 if test "${enable_maintainer_mode+set}" = set; then :
18132 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18133 else
18134 USE_MAINTAINER_MODE=no
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18138 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18141 if test "$USE_MAINTAINER_MODE" = yes; then
18142 MAINTAINER_MODE_TRUE=
18143 MAINTAINER_MODE_FALSE='#'
18144 else
18145 MAINTAINER_MODE_TRUE='#'
18146 MAINTAINER_MODE_FALSE=
18148 MAINT=$MAINTAINER_MODE_TRUE
18150 # ---------------------
18151 # GCC bootstrap support
18152 # ---------------------
18154 # Stage specific cflags for build.
18155 stage1_cflags="-g"
18156 case $build in
18157 vax-*-*)
18158 case ${GCC} in
18159 yes) stage1_cflags="-g -Wa,-J" ;;
18160 *) stage1_cflags="-g -J" ;;
18161 esac ;;
18162 esac
18166 # Enable --enable-checking in stage1 of the compiler.
18167 # Check whether --enable-stage1-checking was given.
18168 if test "${enable_stage1_checking+set}" = set; then :
18169 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18170 else
18171 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18172 # For --disable-checking or implicit --enable-checking=release, avoid
18173 # setting --enable-checking=gc in the default stage1 checking for LTO
18174 # bootstraps. See PR62077.
18175 case $BUILD_CONFIG in
18176 *lto*)
18177 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18179 stage1_checking=--enable-checking=yes,types;;
18180 esac
18181 if test "x$enable_checking" = x && \
18182 test -d ${srcdir}/gcc && \
18183 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18184 stage1_checking=--enable-checking=yes,types,extra
18186 else
18187 stage1_checking=--enable-checking=$enable_checking,types
18193 # Enable -Werror in bootstrap stage2 and later.
18194 # Check whether --enable-werror was given.
18195 if test "${enable_werror+set}" = set; then :
18196 enableval=$enable_werror;
18197 case ${enable_werror} in
18198 yes) stage2_werror_flag="--enable-werror-always" ;;
18199 *) stage2_werror_flag="" ;;
18200 esac
18202 else
18204 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18205 case $BUILD_CONFIG in
18206 bootstrap-debug)
18207 stage2_werror_flag="--enable-werror-always" ;;
18209 stage2_werror_flag="--enable-werror-always" ;;
18210 esac
18218 # Specify what files to not compare during bootstrap.
18220 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18221 case "$target" in
18222 hppa*64*-*-hpux*) ;;
18223 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18224 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18225 esac
18228 ac_config_files="$ac_config_files Makefile"
18230 cat >confcache <<\_ACEOF
18231 # This file is a shell script that caches the results of configure
18232 # tests run on this system so they can be shared between configure
18233 # scripts and configure runs, see configure's option --config-cache.
18234 # It is not useful on other systems. If it contains results you don't
18235 # want to keep, you may remove or edit it.
18237 # config.status only pays attention to the cache file if you give it
18238 # the --recheck option to rerun configure.
18240 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18241 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18242 # following values.
18244 _ACEOF
18246 # The following way of writing the cache mishandles newlines in values,
18247 # but we know of no workaround that is simple, portable, and efficient.
18248 # So, we kill variables containing newlines.
18249 # Ultrix sh set writes to stderr and can't be redirected directly,
18250 # and sets the high bit in the cache file unless we assign to the vars.
18252 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18253 eval ac_val=\$$ac_var
18254 case $ac_val in #(
18255 *${as_nl}*)
18256 case $ac_var in #(
18257 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18258 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18259 esac
18260 case $ac_var in #(
18261 _ | IFS | as_nl) ;; #(
18262 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18263 *) { eval $ac_var=; unset $ac_var;} ;;
18264 esac ;;
18265 esac
18266 done
18268 (set) 2>&1 |
18269 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18270 *${as_nl}ac_space=\ *)
18271 # `set' does not quote correctly, so add quotes: double-quote
18272 # substitution turns \\\\ into \\, and sed turns \\ into \.
18273 sed -n \
18274 "s/'/'\\\\''/g;
18275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18276 ;; #(
18278 # `set' quotes correctly as required by POSIX, so do not add quotes.
18279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18281 esac |
18282 sort
18284 sed '
18285 /^ac_cv_env_/b end
18286 t clear
18287 :clear
18288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18289 t end
18290 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18291 :end' >>confcache
18292 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18293 if test -w "$cache_file"; then
18294 if test "x$cache_file" != "x/dev/null"; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18296 $as_echo "$as_me: updating cache $cache_file" >&6;}
18297 if test ! -f "$cache_file" || test -h "$cache_file"; then
18298 cat confcache >"$cache_file"
18299 else
18300 case $cache_file in #(
18301 */* | ?:*)
18302 mv -f confcache "$cache_file"$$ &&
18303 mv -f "$cache_file"$$ "$cache_file" ;; #(
18305 mv -f confcache "$cache_file" ;;
18306 esac
18309 else
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18311 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18314 rm -f confcache
18316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18317 # Let make expand exec_prefix.
18318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18320 # Transform confdefs.h into DEFS.
18321 # Protect against shell expansion while executing Makefile rules.
18322 # Protect against Makefile macro expansion.
18324 # If the first sed substitution is executed (which looks for macros that
18325 # take arguments), then branch to the quote section. Otherwise,
18326 # look for a macro that doesn't take arguments.
18327 ac_script='
18328 :mline
18329 /\\$/{
18331 s,\\\n,,
18332 b mline
18334 t clear
18335 :clear
18336 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18337 t quote
18338 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18339 t quote
18340 b any
18341 :quote
18342 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18343 s/\[/\\&/g
18344 s/\]/\\&/g
18345 s/\$/$$/g
18347 :any
18350 s/^\n//
18351 s/\n/ /g
18355 DEFS=`sed -n "$ac_script" confdefs.h`
18358 ac_libobjs=
18359 ac_ltlibobjs=
18361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18362 # 1. Remove the extension, and $U if already installed.
18363 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18364 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18366 # will be set to the directory where LIBOBJS objects are built.
18367 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18368 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18369 done
18370 LIBOBJS=$ac_libobjs
18372 LTLIBOBJS=$ac_ltlibobjs
18376 : "${CONFIG_STATUS=./config.status}"
18377 ac_write_fail=0
18378 ac_clean_files_save=$ac_clean_files
18379 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18381 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18382 as_write_fail=0
18383 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18384 #! $SHELL
18385 # Generated by $as_me.
18386 # Run this file to recreate the current configuration.
18387 # Compiler output produced by configure, useful for debugging
18388 # configure, is in config.log if it exists.
18390 debug=false
18391 ac_cs_recheck=false
18392 ac_cs_silent=false
18394 SHELL=\${CONFIG_SHELL-$SHELL}
18395 export SHELL
18396 _ASEOF
18397 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18398 ## -------------------- ##
18399 ## M4sh Initialization. ##
18400 ## -------------------- ##
18402 # Be more Bourne compatible
18403 DUALCASE=1; export DUALCASE # for MKS sh
18404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18405 emulate sh
18406 NULLCMD=:
18407 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18408 # is contrary to our usage. Disable this feature.
18409 alias -g '${1+"$@"}'='"$@"'
18410 setopt NO_GLOB_SUBST
18411 else
18412 case `(set -o) 2>/dev/null` in #(
18413 *posix*) :
18414 set -o posix ;; #(
18415 *) :
18417 esac
18421 as_nl='
18423 export as_nl
18424 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18425 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18428 # Prefer a ksh shell builtin over an external printf program on Solaris,
18429 # but without wasting forks for bash or zsh.
18430 if test -z "$BASH_VERSION$ZSH_VERSION" \
18431 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18432 as_echo='print -r --'
18433 as_echo_n='print -rn --'
18434 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18435 as_echo='printf %s\n'
18436 as_echo_n='printf %s'
18437 else
18438 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18439 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18440 as_echo_n='/usr/ucb/echo -n'
18441 else
18442 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18443 as_echo_n_body='eval
18444 arg=$1;
18445 case $arg in #(
18446 *"$as_nl"*)
18447 expr "X$arg" : "X\\(.*\\)$as_nl";
18448 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18449 esac;
18450 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18452 export as_echo_n_body
18453 as_echo_n='sh -c $as_echo_n_body as_echo'
18455 export as_echo_body
18456 as_echo='sh -c $as_echo_body as_echo'
18459 # The user is always right.
18460 if test "${PATH_SEPARATOR+set}" != set; then
18461 PATH_SEPARATOR=:
18462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18464 PATH_SEPARATOR=';'
18469 # IFS
18470 # We need space, tab and new line, in precisely that order. Quoting is
18471 # there to prevent editors from complaining about space-tab.
18472 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18473 # splitting by setting IFS to empty value.)
18474 IFS=" "" $as_nl"
18476 # Find who we are. Look in the path if we contain no directory separator.
18477 as_myself=
18478 case $0 in #((
18479 *[\\/]* ) as_myself=$0 ;;
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 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18486 done
18487 IFS=$as_save_IFS
18490 esac
18491 # We did not find ourselves, most probably we were run as `sh COMMAND'
18492 # in which case we are not to be found in the path.
18493 if test "x$as_myself" = x; then
18494 as_myself=$0
18496 if test ! -f "$as_myself"; then
18497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18498 exit 1
18501 # Unset variables that we do not need and which cause bugs (e.g. in
18502 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18503 # suppresses any "Segmentation fault" message there. '((' could
18504 # trigger a bug in pdksh 5.2.14.
18505 for as_var in BASH_ENV ENV MAIL MAILPATH
18506 do eval test x\${$as_var+set} = xset \
18507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18508 done
18509 PS1='$ '
18510 PS2='> '
18511 PS4='+ '
18513 # NLS nuisances.
18514 LC_ALL=C
18515 export LC_ALL
18516 LANGUAGE=C
18517 export LANGUAGE
18519 # CDPATH.
18520 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18523 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18524 # ----------------------------------------
18525 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18526 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18527 # script with STATUS, using 1 if that was 0.
18528 as_fn_error ()
18530 as_status=$1; test $as_status -eq 0 && as_status=1
18531 if test "$4"; then
18532 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18535 $as_echo "$as_me: error: $2" >&2
18536 as_fn_exit $as_status
18537 } # as_fn_error
18540 # as_fn_set_status STATUS
18541 # -----------------------
18542 # Set $? to STATUS, without forking.
18543 as_fn_set_status ()
18545 return $1
18546 } # as_fn_set_status
18548 # as_fn_exit STATUS
18549 # -----------------
18550 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18551 as_fn_exit ()
18553 set +e
18554 as_fn_set_status $1
18555 exit $1
18556 } # as_fn_exit
18558 # as_fn_unset VAR
18559 # ---------------
18560 # Portably unset VAR.
18561 as_fn_unset ()
18563 { eval $1=; unset $1;}
18565 as_unset=as_fn_unset
18566 # as_fn_append VAR VALUE
18567 # ----------------------
18568 # Append the text in VALUE to the end of the definition contained in VAR. Take
18569 # advantage of any shell optimizations that allow amortized linear growth over
18570 # repeated appends, instead of the typical quadratic growth present in naive
18571 # implementations.
18572 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18573 eval 'as_fn_append ()
18575 eval $1+=\$2
18577 else
18578 as_fn_append ()
18580 eval $1=\$$1\$2
18582 fi # as_fn_append
18584 # as_fn_arith ARG...
18585 # ------------------
18586 # Perform arithmetic evaluation on the ARGs, and store the result in the
18587 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18588 # must be portable across $(()) and expr.
18589 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18590 eval 'as_fn_arith ()
18592 as_val=$(( $* ))
18594 else
18595 as_fn_arith ()
18597 as_val=`expr "$@" || test $? -eq 1`
18599 fi # as_fn_arith
18602 if expr a : '\(a\)' >/dev/null 2>&1 &&
18603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18604 as_expr=expr
18605 else
18606 as_expr=false
18609 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18610 as_basename=basename
18611 else
18612 as_basename=false
18615 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18616 as_dirname=dirname
18617 else
18618 as_dirname=false
18621 as_me=`$as_basename -- "$0" ||
18622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18623 X"$0" : 'X\(//\)$' \| \
18624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18625 $as_echo X/"$0" |
18626 sed '/^.*\/\([^/][^/]*\)\/*$/{
18627 s//\1/
18630 /^X\/\(\/\/\)$/{
18631 s//\1/
18634 /^X\/\(\/\).*/{
18635 s//\1/
18638 s/.*/./; q'`
18640 # Avoid depending upon Character Ranges.
18641 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18642 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18643 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18644 as_cr_digits='0123456789'
18645 as_cr_alnum=$as_cr_Letters$as_cr_digits
18647 ECHO_C= ECHO_N= ECHO_T=
18648 case `echo -n x` in #(((((
18649 -n*)
18650 case `echo 'xy\c'` in
18651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18652 xy) ECHO_C='\c';;
18653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18654 ECHO_T=' ';;
18655 esac;;
18657 ECHO_N='-n';;
18658 esac
18660 rm -f conf$$ conf$$.exe conf$$.file
18661 if test -d conf$$.dir; then
18662 rm -f conf$$.dir/conf$$.file
18663 else
18664 rm -f conf$$.dir
18665 mkdir conf$$.dir 2>/dev/null
18667 if (echo >conf$$.file) 2>/dev/null; then
18668 if ln -s conf$$.file conf$$ 2>/dev/null; then
18669 as_ln_s='ln -s'
18670 # ... but there are two gotchas:
18671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18673 # In both cases, we have to default to `cp -pR'.
18674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18675 as_ln_s='cp -pR'
18676 elif ln conf$$.file conf$$ 2>/dev/null; then
18677 as_ln_s=ln
18678 else
18679 as_ln_s='cp -pR'
18681 else
18682 as_ln_s='cp -pR'
18684 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18685 rmdir conf$$.dir 2>/dev/null
18688 # as_fn_mkdir_p
18689 # -------------
18690 # Create "$as_dir" as a directory, including parents if necessary.
18691 as_fn_mkdir_p ()
18694 case $as_dir in #(
18695 -*) as_dir=./$as_dir;;
18696 esac
18697 test -d "$as_dir" || eval $as_mkdir_p || {
18698 as_dirs=
18699 while :; do
18700 case $as_dir in #(
18701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18702 *) as_qdir=$as_dir;;
18703 esac
18704 as_dirs="'$as_qdir' $as_dirs"
18705 as_dir=`$as_dirname -- "$as_dir" ||
18706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18707 X"$as_dir" : 'X\(//\)[^/]' \| \
18708 X"$as_dir" : 'X\(//\)$' \| \
18709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18710 $as_echo X"$as_dir" |
18711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18712 s//\1/
18715 /^X\(\/\/\)[^/].*/{
18716 s//\1/
18719 /^X\(\/\/\)$/{
18720 s//\1/
18723 /^X\(\/\).*/{
18724 s//\1/
18727 s/.*/./; q'`
18728 test -d "$as_dir" && break
18729 done
18730 test -z "$as_dirs" || eval "mkdir $as_dirs"
18731 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18734 } # as_fn_mkdir_p
18735 if mkdir -p . 2>/dev/null; then
18736 as_mkdir_p='mkdir -p "$as_dir"'
18737 else
18738 test -d ./-p && rmdir ./-p
18739 as_mkdir_p=false
18743 # as_fn_executable_p FILE
18744 # -----------------------
18745 # Test if FILE is an executable regular file.
18746 as_fn_executable_p ()
18748 test -f "$1" && test -x "$1"
18749 } # as_fn_executable_p
18750 as_test_x='test -x'
18751 as_executable_p=as_fn_executable_p
18753 # Sed expression to map a string onto a valid CPP name.
18754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18756 # Sed expression to map a string onto a valid variable name.
18757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18760 exec 6>&1
18761 ## ----------------------------------- ##
18762 ## Main body of $CONFIG_STATUS script. ##
18763 ## ----------------------------------- ##
18764 _ASEOF
18765 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18768 # Save the log message, to keep $0 and so on meaningful, and to
18769 # report actual input values of CONFIG_FILES etc. instead of their
18770 # values after options handling.
18771 ac_log="
18772 This file was extended by $as_me, which was
18773 generated by GNU Autoconf 2.69. Invocation command line was
18775 CONFIG_FILES = $CONFIG_FILES
18776 CONFIG_HEADERS = $CONFIG_HEADERS
18777 CONFIG_LINKS = $CONFIG_LINKS
18778 CONFIG_COMMANDS = $CONFIG_COMMANDS
18779 $ $0 $@
18781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18784 _ACEOF
18786 case $ac_config_files in *"
18787 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18788 esac
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793 # Files that config.status was made for.
18794 config_files="$ac_config_files"
18796 _ACEOF
18798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18799 ac_cs_usage="\
18800 \`$as_me' instantiates files and other configuration actions
18801 from templates according to the current configuration. Unless the files
18802 and actions are specified as TAGs, all are instantiated by default.
18804 Usage: $0 [OPTION]... [TAG]...
18806 -h, --help print this help, then exit
18807 -V, --version print version number and configuration settings, then exit
18808 --config print configuration, then exit
18809 -q, --quiet, --silent
18810 do not print progress messages
18811 -d, --debug don't remove temporary files
18812 --recheck update $as_me by reconfiguring in the same conditions
18813 --file=FILE[:TEMPLATE]
18814 instantiate the configuration file FILE
18816 Configuration files:
18817 $config_files
18819 Report bugs to the package provider."
18821 _ACEOF
18822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18823 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18824 ac_cs_version="\\
18825 config.status
18826 configured by $0, generated by GNU Autoconf 2.69,
18827 with options \\"\$ac_cs_config\\"
18829 Copyright (C) 2012 Free Software Foundation, Inc.
18830 This config.status script is free software; the Free Software Foundation
18831 gives unlimited permission to copy, distribute and modify it."
18833 ac_pwd='$ac_pwd'
18834 srcdir='$srcdir'
18835 INSTALL='$INSTALL'
18836 AWK='$AWK'
18837 test -n "\$AWK" || AWK=awk
18838 _ACEOF
18840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18841 # The default lists apply if the user does not specify any file.
18842 ac_need_defaults=:
18843 while test $# != 0
18845 case $1 in
18846 --*=?*)
18847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18849 ac_shift=:
18851 --*=)
18852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18853 ac_optarg=
18854 ac_shift=:
18857 ac_option=$1
18858 ac_optarg=$2
18859 ac_shift=shift
18861 esac
18863 case $ac_option in
18864 # Handling of the options.
18865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18866 ac_cs_recheck=: ;;
18867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18868 $as_echo "$ac_cs_version"; exit ;;
18869 --config | --confi | --conf | --con | --co | --c )
18870 $as_echo "$ac_cs_config"; exit ;;
18871 --debug | --debu | --deb | --de | --d | -d )
18872 debug=: ;;
18873 --file | --fil | --fi | --f )
18874 $ac_shift
18875 case $ac_optarg in
18876 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18877 '') as_fn_error $? "missing file argument" ;;
18878 esac
18879 as_fn_append CONFIG_FILES " '$ac_optarg'"
18880 ac_need_defaults=false;;
18881 --he | --h | --help | --hel | -h )
18882 $as_echo "$ac_cs_usage"; exit ;;
18883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18885 ac_cs_silent=: ;;
18887 # This is an error.
18888 -*) as_fn_error $? "unrecognized option: \`$1'
18889 Try \`$0 --help' for more information." ;;
18891 *) as_fn_append ac_config_targets " $1"
18892 ac_need_defaults=false ;;
18894 esac
18895 shift
18896 done
18898 ac_configure_extra_args=
18900 if $ac_cs_silent; then
18901 exec 6>/dev/null
18902 ac_configure_extra_args="$ac_configure_extra_args --silent"
18905 _ACEOF
18906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18907 if \$ac_cs_recheck; then
18908 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18909 shift
18910 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18911 CONFIG_SHELL='$SHELL'
18912 export CONFIG_SHELL
18913 exec "\$@"
18916 _ACEOF
18917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918 exec 5>>config.log
18920 echo
18921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18922 ## Running $as_me. ##
18923 _ASBOX
18924 $as_echo "$ac_log"
18925 } >&5
18927 _ACEOF
18928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18930 # INIT-COMMANDS
18932 extrasub_build="$extrasub_build"
18933 extrasub_host="$extrasub_host"
18934 extrasub_target="$extrasub_target"
18936 _ACEOF
18938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18940 # Handling of arguments.
18941 for ac_config_target in $ac_config_targets
18943 case $ac_config_target in
18944 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18947 esac
18948 done
18951 # If the user did not use the arguments to specify the items to instantiate,
18952 # then the envvar interface is used. Set only those that are not.
18953 # We use the long form for the default assignment because of an extremely
18954 # bizarre bug on SunOS 4.1.3.
18955 if $ac_need_defaults; then
18956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18959 # Have a temporary directory for convenience. Make it in the build tree
18960 # simply because there is no reason against having it here, and in addition,
18961 # creating and moving files from /tmp can sometimes cause problems.
18962 # Hook for its removal unless debugging.
18963 # Note that there is a small window in which the directory will not be cleaned:
18964 # after its creation but before its name has been assigned to `$tmp'.
18965 $debug ||
18967 tmp= ac_tmp=
18968 trap 'exit_status=$?
18969 : "${ac_tmp:=$tmp}"
18970 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18972 trap 'as_fn_exit 1' 1 2 13 15
18974 # Create a (secure) tmp directory for tmp files.
18977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18978 test -d "$tmp"
18979 } ||
18981 tmp=./conf$$-$RANDOM
18982 (umask 077 && mkdir "$tmp")
18983 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18984 ac_tmp=$tmp
18986 # Set up the scripts for CONFIG_FILES section.
18987 # No need to generate them if there are no CONFIG_FILES.
18988 # This happens for instance with `./config.status config.h'.
18989 if test -n "$CONFIG_FILES"; then
18991 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18992 ac_cs_awk_getline=:
18993 ac_cs_awk_pipe_init=
18994 ac_cs_awk_read_file='
18995 while ((getline aline < (F[key])) > 0)
18996 print(aline)
18997 close(F[key])'
18998 ac_cs_awk_pipe_fini=
18999 else
19000 ac_cs_awk_getline=false
19001 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19002 ac_cs_awk_read_file='
19003 print "|#_!!_#|"
19004 print "cat " F[key] " &&"
19005 '$ac_cs_awk_pipe_init
19006 # The final `:' finishes the AND list.
19007 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19009 ac_cr=`echo X | tr X '\015'`
19010 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19011 # But we know of no other shell where ac_cr would be empty at this
19012 # point, so we can use a bashism as a fallback.
19013 if test "x$ac_cr" = x; then
19014 eval ac_cr=\$\'\\r\'
19016 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19017 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19018 ac_cs_awk_cr='\\r'
19019 else
19020 ac_cs_awk_cr=$ac_cr
19023 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19024 _ACEOF
19026 # Create commands to substitute file output variables.
19028 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19029 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19030 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19031 echo "_ACAWK" &&
19032 echo "_ACEOF"
19033 } >conf$$files.sh &&
19034 . ./conf$$files.sh ||
19035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19036 rm -f conf$$files.sh
19039 echo "cat >conf$$subs.awk <<_ACEOF" &&
19040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19041 echo "_ACEOF"
19042 } >conf$$subs.sh ||
19043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19045 ac_delim='%!_!# '
19046 for ac_last_try in false false false false false :; do
19047 . ./conf$$subs.sh ||
19048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19051 if test $ac_delim_n = $ac_delim_num; then
19052 break
19053 elif $ac_last_try; then
19054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19055 else
19056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19058 done
19059 rm -f conf$$subs.sh
19061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19063 _ACEOF
19064 sed -n '
19066 s/^/S["/; s/!.*/"]=/
19069 s/^[^!]*!//
19070 :repl
19071 t repl
19072 s/'"$ac_delim"'$//
19073 t delim
19076 s/\(.\{148\}\)..*/\1/
19077 t more1
19078 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19081 b repl
19082 :more1
19083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19086 s/.\{148\}//
19087 t nl
19088 :delim
19090 s/\(.\{148\}\)..*/\1/
19091 t more2
19092 s/["\\]/\\&/g; s/^/"/; s/$/"/
19095 :more2
19096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19099 s/.\{148\}//
19100 t delim
19101 ' <conf$$subs.awk | sed '
19102 /^[^""]/{
19104 s/\n//
19106 ' >>$CONFIG_STATUS || ac_write_fail=1
19107 rm -f conf$$subs.awk
19108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19109 _ACAWK
19110 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19111 for (key in S) S_is_set[key] = 1
19112 FS = "\a"
19113 \$ac_cs_awk_pipe_init
19116 line = $ 0
19117 nfields = split(line, field, "@")
19118 substed = 0
19119 len = length(field[1])
19120 for (i = 2; i < nfields; i++) {
19121 key = field[i]
19122 keylen = length(key)
19123 if (S_is_set[key]) {
19124 value = S[key]
19125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19126 len += length(value) + length(field[++i])
19127 substed = 1
19128 } else
19129 len += 1 + keylen
19131 if (nfields == 3 && !substed) {
19132 key = field[2]
19133 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19134 \$ac_cs_awk_read_file
19135 next
19138 print line
19140 \$ac_cs_awk_pipe_fini
19141 _ACAWK
19142 _ACEOF
19143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19144 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19146 else
19148 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19149 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19150 _ACEOF
19152 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19153 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19154 # trailing colons and then remove the whole line if VPATH becomes empty
19155 # (actually we leave an empty line to preserve line numbers).
19156 if test "x$srcdir" = x.; then
19157 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19159 s///
19160 s/^/:/
19161 s/[ ]*$/:/
19162 s/:\$(srcdir):/:/g
19163 s/:\${srcdir}:/:/g
19164 s/:@srcdir@:/:/g
19165 s/^:*//
19166 s/:*$//
19168 s/\(=[ ]*\).*/\1/
19170 s/\n//
19171 s/^[^=]*=[ ]*$//
19175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19176 fi # test -n "$CONFIG_FILES"
19179 eval set X " :F $CONFIG_FILES "
19180 shift
19181 for ac_tag
19183 case $ac_tag in
19184 :[FHLC]) ac_mode=$ac_tag; continue;;
19185 esac
19186 case $ac_mode$ac_tag in
19187 :[FHL]*:*);;
19188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19189 :[FH]-) ac_tag=-:-;;
19190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19191 esac
19192 ac_save_IFS=$IFS
19193 IFS=:
19194 set x $ac_tag
19195 IFS=$ac_save_IFS
19196 shift
19197 ac_file=$1
19198 shift
19200 case $ac_mode in
19201 :L) ac_source=$1;;
19202 :[FH])
19203 ac_file_inputs=
19204 for ac_f
19206 case $ac_f in
19207 -) ac_f="$ac_tmp/stdin";;
19208 *) # Look for the file first in the build tree, then in the source tree
19209 # (if the path is not absolute). The absolute path cannot be DOS-style,
19210 # because $ac_f cannot contain `:'.
19211 test -f "$ac_f" ||
19212 case $ac_f in
19213 [\\/$]*) false;;
19214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19215 esac ||
19216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19217 esac
19218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19219 as_fn_append ac_file_inputs " '$ac_f'"
19220 done
19222 # Let's still pretend it is `configure' which instantiates (i.e., don't
19223 # use $as_me), people would be surprised to read:
19224 # /* config.h. Generated by config.status. */
19225 configure_input='Generated from '`
19226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19227 `' by configure.'
19228 if test x"$ac_file" != x-; then
19229 configure_input="$ac_file. $configure_input"
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19231 $as_echo "$as_me: creating $ac_file" >&6;}
19233 # Neutralize special characters interpreted by sed in replacement strings.
19234 case $configure_input in #(
19235 *\&* | *\|* | *\\* )
19236 ac_sed_conf_input=`$as_echo "$configure_input" |
19237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19238 *) ac_sed_conf_input=$configure_input;;
19239 esac
19241 case $ac_tag in
19242 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19244 esac
19246 esac
19248 ac_dir=`$as_dirname -- "$ac_file" ||
19249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19250 X"$ac_file" : 'X\(//\)[^/]' \| \
19251 X"$ac_file" : 'X\(//\)$' \| \
19252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19253 $as_echo X"$ac_file" |
19254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19255 s//\1/
19258 /^X\(\/\/\)[^/].*/{
19259 s//\1/
19262 /^X\(\/\/\)$/{
19263 s//\1/
19266 /^X\(\/\).*/{
19267 s//\1/
19270 s/.*/./; q'`
19271 as_dir="$ac_dir"; as_fn_mkdir_p
19272 ac_builddir=.
19274 case "$ac_dir" in
19275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19278 # A ".." for each directory in $ac_dir_suffix.
19279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19280 case $ac_top_builddir_sub in
19281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19283 esac ;;
19284 esac
19285 ac_abs_top_builddir=$ac_pwd
19286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19287 # for backward compatibility:
19288 ac_top_builddir=$ac_top_build_prefix
19290 case $srcdir in
19291 .) # We are building in place.
19292 ac_srcdir=.
19293 ac_top_srcdir=$ac_top_builddir_sub
19294 ac_abs_top_srcdir=$ac_pwd ;;
19295 [\\/]* | ?:[\\/]* ) # Absolute name.
19296 ac_srcdir=$srcdir$ac_dir_suffix;
19297 ac_top_srcdir=$srcdir
19298 ac_abs_top_srcdir=$srcdir ;;
19299 *) # Relative name.
19300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19301 ac_top_srcdir=$ac_top_build_prefix$srcdir
19302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19303 esac
19304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19307 case $ac_mode in
19310 # CONFIG_FILE
19313 case $INSTALL in
19314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19316 esac
19317 _ACEOF
19319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19320 # If the template does not know about datarootdir, expand it.
19321 # FIXME: This hack should be removed a few years after 2.60.
19322 ac_datarootdir_hack=; ac_datarootdir_seen=
19323 ac_sed_dataroot='
19324 /datarootdir/ {
19328 /@datadir@/p
19329 /@docdir@/p
19330 /@infodir@/p
19331 /@localedir@/p
19332 /@mandir@/p'
19333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19334 *datarootdir*) ac_datarootdir_seen=yes;;
19335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19337 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19338 _ACEOF
19339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340 ac_datarootdir_hack='
19341 s&@datadir@&$datadir&g
19342 s&@docdir@&$docdir&g
19343 s&@infodir@&$infodir&g
19344 s&@localedir@&$localedir&g
19345 s&@mandir@&$mandir&g
19346 s&\\\${datarootdir}&$datarootdir&g' ;;
19347 esac
19348 _ACEOF
19350 # Neutralize VPATH when `$srcdir' = `.'.
19351 # Shell code in configure.ac might set extrasub.
19352 # FIXME: do we really want to maintain this feature?
19353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19354 ac_sed_extra="$ac_vpsub
19355 $extrasub
19356 _ACEOF
19357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19360 s|@configure_input@|$ac_sed_conf_input|;t t
19361 s&@top_builddir@&$ac_top_builddir_sub&;t t
19362 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19363 s&@srcdir@&$ac_srcdir&;t t
19364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19365 s&@top_srcdir@&$ac_top_srcdir&;t t
19366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19367 s&@builddir@&$ac_builddir&;t t
19368 s&@abs_builddir@&$ac_abs_builddir&;t t
19369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19370 s&@INSTALL@&$ac_INSTALL&;t t
19371 $ac_datarootdir_hack
19373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19374 if $ac_cs_awk_getline; then
19375 $AWK -f "$ac_tmp/subs.awk"
19376 else
19377 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19378 fi \
19379 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19382 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19384 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19386 which seems to be undefined. Please make sure it is defined" >&5
19387 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19388 which seems to be undefined. Please make sure it is defined" >&2;}
19390 rm -f "$ac_tmp/stdin"
19391 case $ac_file in
19392 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19393 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19394 esac \
19395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19400 esac
19403 case $ac_file$ac_mode in
19404 "Makefile":F) sed "$extrasub_build" Makefile |
19405 sed "$extrasub_host" |
19406 sed "$extrasub_target" > mf$$
19407 mv -f mf$$ Makefile ;;
19409 esac
19410 done # for ac_tag
19413 as_fn_exit 0
19414 _ACEOF
19415 ac_clean_files=$ac_clean_files_save
19417 test $ac_write_fail = 0 ||
19418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19421 # configure is writing to config.log, and then calls config.status.
19422 # config.status does its own redirection, appending to config.log.
19423 # Unfortunately, on DOS this fails, as config.log is still kept open
19424 # by configure, so config.status won't be able to write to it; its
19425 # output is simply discarded. So we exec the FD to /dev/null,
19426 # effectively closing config.log, so it can be properly (re)opened and
19427 # appended to by config.status. When coming back to configure, we
19428 # need to make the FD available again.
19429 if test "$no_create" != yes; then
19430 ac_cs_success=:
19431 ac_config_status_args=
19432 test "$silent" = yes &&
19433 ac_config_status_args="$ac_config_status_args --quiet"
19434 exec 5>/dev/null
19435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19436 exec 5>>config.log
19437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19438 # would make configure fail if this is the last instruction.
19439 $ac_cs_success || as_fn_exit 1
19441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}