[Ada] Fix interaction of 128-bit integer types and -gnato2 mode
[official-gcc.git] / configure
blob7dd1fd5bb6914d7626c086bf507593a14331bd9c
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 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
630 LIPO
632 DLLTOOL
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 HAVE_CXX11_FOR_BUILD
698 HAVE_CXX11
699 do_compare
700 GNATMAKE
701 GNATBIND
702 ac_ct_CXX
703 CXXFLAGS
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
712 extra_liboffloadmic_configure_flags
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
719 LN_S
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 target_noncanonical
733 host_noncanonical
734 build_noncanonical
735 build_os
736 build_vendor
737 build_cpu
738 build
739 TOPLEVEL_CONFIGURE_ARGUMENTS
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_offload_defaulted
790 enable_gold
791 enable_ld
792 enable_compressed_debug_sections
793 enable_libquadmath
794 enable_libquadmath_support
795 enable_libada
796 enable_libssp
797 enable_libstdcxx
798 enable_liboffloadmic
799 enable_bootstrap
800 with_mpc
801 with_mpc_include
802 with_mpc_lib
803 with_mpfr_dir
804 with_mpfr
805 with_mpfr_include
806 with_mpfr_lib
807 with_gmp_dir
808 with_gmp
809 with_gmp_include
810 with_gmp_lib
811 with_stage1_libs
812 with_static_standard_libraries
813 with_stage1_ldflags
814 with_boot_libs
815 with_boot_ldflags
816 with_isl
817 with_isl_include
818 with_isl_lib
819 enable_isl_version_check
820 enable_lto
821 enable_linker_plugin_configure_flags
822 enable_linker_plugin_flags
823 enable_host_shared
824 enable_stage1_languages
825 enable_objc_gc
826 with_target_bdw_gc
827 with_target_bdw_gc_include
828 with_target_bdw_gc_lib
829 with_gcc_major_version_only
830 with_build_sysroot
831 with_debug_prefix_map
832 with_build_config
833 enable_vtable_verify
834 enable_serial_configure
835 with_build_time_tools
836 enable_maintainer_mode
837 enable_stage1_checking
838 enable_werror
840 ac_precious_vars='build_alias
841 host_alias
842 target_alias
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
849 CXXFLAGS
851 build_configargs
852 host_configargs
853 target_configargs
856 DLLTOOL
858 LIPO
860 RANLIB
861 STRIP
862 WINDRES
863 WINDMC
864 OBJCOPY
865 OBJDUMP
866 OTOOL
867 READELF
868 CC_FOR_TARGET
869 CXX_FOR_TARGET
870 GCC_FOR_TARGET
871 GFORTRAN_FOR_TARGET
872 GOC_FOR_TARGET
873 GDC_FOR_TARGET
874 AR_FOR_TARGET
875 AS_FOR_TARGET
876 DLLTOOL_FOR_TARGET
877 LD_FOR_TARGET
878 LIPO_FOR_TARGET
879 NM_FOR_TARGET
880 OBJCOPY_FOR_TARGET
881 OBJDUMP_FOR_TARGET
882 OTOOL_FOR_TARGET
883 RANLIB_FOR_TARGET
884 READELF_FOR_TARGET
885 STRIP_FOR_TARGET
886 WINDRES_FOR_TARGET
887 WINDMC_FOR_TARGET'
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
938 ac_prev=
939 ac_dashdash=
940 for ac_option
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
949 case $ac_option in
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
953 esac
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
959 ac_dashdash=yes ;;
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
978 --config-cache | -C)
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
1198 site=$ac_optarg ;;
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1223 -with-* | --with-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283 esac
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 esac
1296 done
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 as_fn_error $? "missing argument to $ac_option"
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 esac
1311 # Check all directory arguments for consistency.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1317 eval ac_val=\$$ac_var
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
1325 case $ac_val in
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 esac
1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error $? "pwd does not report name of working directory"
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1380 /^X\(\/\/\)$/{
1381 s//\1/
1384 /^X\(\/\).*/{
1385 s//\1/
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1393 else
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 case $srcdir in
1415 *" "*)
1416 as_fn_error $? "path to source, $srcdir, contains spaces"
1418 esac
1419 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures this package to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1490 cat <<\_ACEOF
1492 Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 --target=TARGET configure for building compilers for TARGET [HOST]
1501 _ACEOF
1504 if test -n "$ac_init_help"; then
1506 cat <<\_ACEOF
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-as-accelerator-for=ARG
1513 build as offload target compiler. Specify offload
1514 host triple by ARG
1515 --enable-offload-targets=LIST
1516 enable offloading to devices from comma-separated
1517 LIST of TARGET[=DIR]. Use optional path to find
1518 offload target compiler during the build
1519 --enable-offload-defaulted
1520 If enabled, configured but not installed offload compilers and
1521 libgomp plugins are silently ignored. Useful for distribution
1522 compilers where those are in separate optional packages.
1524 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1525 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1526 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1527 Enable compressed debug sections for gas, gold or ld
1528 by default
1529 --disable-libquadmath do not build libquadmath directory
1530 --disable-libquadmath-support
1531 disable libquadmath support for Fortran
1532 --enable-libada build libada directory
1533 --enable-libssp build libssp directory
1534 --disable-libstdcxx do not build libstdc++-v3 directory
1535 --enable-liboffloadmic=ARG
1536 build liboffloadmic [ARG={no,host,target}]
1537 --enable-bootstrap enable bootstrapping [yes if native build]
1538 --disable-isl-version-check
1539 disable check for isl version
1540 --enable-lto enable link time optimization support
1541 --enable-linker-plugin-configure-flags=FLAGS
1542 additional flags for configuring linker plugins
1543 [none]
1544 --enable-linker-plugin-flags=FLAGS
1545 additional flags for configuring and building linker
1546 plugins [none]
1547 --enable-host-shared build host code as shared libraries
1548 --enable-stage1-languages[=all]
1549 choose additional languages to build during stage1.
1550 Mostly useful for compiler development
1551 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1552 Objective-C runtime
1553 --enable-vtable-verify Enable vtable verification feature
1554 --enable-serial-[{host,target,build}-]configure
1555 force sequential configuration of sub-packages for
1556 the host, target or build machine, or all
1557 sub-packages
1558 --enable-maintainer-mode
1559 enable make rules and dependencies not useful (and
1560 sometimes confusing) to the casual installer
1561 --enable-stage1-checking[=all]
1562 choose additional checking for stage1 of the
1563 compiler
1564 --enable-werror enable -Werror in bootstrap stage2 and later
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-build-libsubdir=DIR Directory where to find libraries for build system
1570 --with-system-zlib use installed libz
1571 --with-mpc=PATH specify prefix directory for installed MPC package.
1572 Equivalent to --with-mpc-include=PATH/include plus
1573 --with-mpc-lib=PATH/lib
1574 --with-mpc-include=PATH specify directory for installed MPC include files
1575 --with-mpc-lib=PATH specify directory for the installed MPC library
1576 --with-mpfr-dir=PATH this option has been REMOVED
1577 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1578 Equivalent to --with-mpfr-include=PATH/include plus
1579 --with-mpfr-lib=PATH/lib
1580 --with-mpfr-include=PATH
1581 specify directory for installed MPFR include files
1582 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1583 --with-gmp-dir=PATH this option has been REMOVED
1584 --with-gmp=PATH specify prefix directory for the installed GMP
1585 package. Equivalent to
1586 --with-gmp-include=PATH/include plus
1587 --with-gmp-lib=PATH/lib
1588 --with-gmp-include=PATH specify directory for installed GMP include files
1589 --with-gmp-lib=PATH specify directory for the installed GMP library
1590 --with-stage1-libs=LIBS libraries for stage1
1591 --with-static-standard-libraries
1592 use -static-libstdc++ and -static-libgcc
1593 (default=auto)
1594 --with-stage1-ldflags=FLAGS
1595 linker flags for stage1
1596 --with-boot-libs=LIBS libraries for stage2 and later
1597 --with-boot-ldflags=FLAGS
1598 linker flags for stage2 and later
1599 --with-isl=PATH Specify prefix directory for the installed isl
1600 package. Equivalent to
1601 --with-isl-include=PATH/include plus
1602 --with-isl-lib=PATH/lib
1603 --with-isl-include=PATH Specify directory for installed isl include files
1604 --with-isl-lib=PATH Specify the directory for the installed isl library
1605 --with-target-bdw-gc=PATHLIST
1606 specify prefix directory for installed bdw-gc
1607 package. Equivalent to
1608 --with-target-bdw-gc-include=PATH/include plus
1609 --with-target-bdw-gc-lib=PATH/lib
1610 --with-target-bdw-gc-include=PATHLIST
1611 specify directories for installed bdw-gc include
1612 files
1613 --with-target-bdw-gc-lib=PATHLIST
1614 specify directories for installed bdw-gc library
1615 --with-gcc-major-version-only
1616 use only GCC major number in filesystem paths
1617 --with-build-sysroot=SYSROOT
1618 use sysroot as the system root during the build
1619 --with-debug-prefix-map='A=B C=D ...'
1620 map A to B, C to D ... in debug information
1621 --with-build-config='NAME NAME2...'
1622 use config/NAME.mk build configuration
1623 --with-build-time-tools=PATH
1624 use given path to find target tools during the build
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1636 build_configargs
1637 additional configure arguments for build directories
1638 host_configargs
1639 additional configure arguments for host directories
1640 target_configargs
1641 additional configure arguments for target directories
1642 AR AR for the host
1643 AS AS for the host
1644 DLLTOOL DLLTOOL for the host
1645 LD LD for the host
1646 LIPO LIPO for the host
1647 NM NM for the host
1648 RANLIB RANLIB for the host
1649 STRIP STRIP for the host
1650 WINDRES WINDRES for the host
1651 WINDMC WINDMC for the host
1652 OBJCOPY OBJCOPY for the host
1653 OBJDUMP OBJDUMP for the host
1654 OTOOL OTOOL for the host
1655 READELF READELF for the host
1656 CC_FOR_TARGET
1657 CC for the target
1658 CXX_FOR_TARGET
1659 CXX for the target
1660 GCC_FOR_TARGET
1661 GCC for the target
1662 GFORTRAN_FOR_TARGET
1663 GFORTRAN for the target
1664 GOC_FOR_TARGET
1665 GOC for the target
1666 GDC_FOR_TARGET
1667 GDC for the target
1668 AR_FOR_TARGET
1669 AR for the target
1670 AS_FOR_TARGET
1671 AS for the target
1672 DLLTOOL_FOR_TARGET
1673 DLLTOOL for the target
1674 LD_FOR_TARGET
1675 LD for the target
1676 LIPO_FOR_TARGET
1677 LIPO for the target
1678 NM_FOR_TARGET
1679 NM for the target
1680 OBJCOPY_FOR_TARGET
1681 OBJCOPY for the target
1682 OBJDUMP_FOR_TARGET
1683 OBJDUMP for the target
1684 OTOOL_FOR_TARGET
1685 OTOOL for the target
1686 RANLIB_FOR_TARGET
1687 RANLIB for the target
1688 READELF_FOR_TARGET
1689 READELF for the target
1690 STRIP_FOR_TARGET
1691 STRIP for the target
1692 WINDRES_FOR_TARGET
1693 WINDRES for the target
1694 WINDMC_FOR_TARGET
1695 WINDMC for the target
1697 Use these variables to override the choices made by `configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1700 Report bugs to the package provider.
1701 _ACEOF
1702 ac_status=$?
1705 if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1707 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 continue
1711 ac_builddir=.
1713 case "$ac_dir" in
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 esac ;;
1723 esac
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1729 case $srcdir in
1730 .) # We are building in place.
1731 ac_srcdir=.
1732 ac_top_srcdir=$ac_top_builddir_sub
1733 ac_abs_top_srcdir=$ac_pwd ;;
1734 [\\/]* | ?:[\\/]* ) # Absolute name.
1735 ac_srcdir=$srcdir$ac_dir_suffix;
1736 ac_top_srcdir=$srcdir
1737 ac_abs_top_srcdir=$srcdir ;;
1738 *) # Relative name.
1739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 esac
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745 cd "$ac_dir" || { ac_status=$?; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1753 else
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 fi || ac_status=$?
1756 cd "$ac_pwd" || { ac_status=$?; break; }
1757 done
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1762 cat <<\_ACEOF
1763 configure
1764 generated by GNU Autoconf 2.69
1766 Copyright (C) 2012 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770 exit
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext
1784 if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=1
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1813 } # ac_fn_c_try_compile
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_cxx_try_compile
1853 # ac_fn_cxx_try_link LINENO
1854 # -------------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_link ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
1880 test -x conftest$ac_exeext
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1897 } # ac_fn_cxx_try_link
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_link ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 test -x conftest$ac_exeext
1927 }; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 ac_retval=1
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_c_try_link
1944 cat >config.log <<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1948 It was created by $as_me, which was
1949 generated by GNU Autoconf 2.69. Invocation command line was
1951 $ $0 $@
1953 _ACEOF
1954 exec 5>>config.log
1956 cat <<_ASUNAME
1957 ## --------- ##
1958 ## Platform. ##
1959 ## --------- ##
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1978 _ASUNAME
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 $as_echo "PATH: $as_dir"
1986 done
1987 IFS=$as_save_IFS
1989 } >&5
1991 cat >&5 <<_ACEOF
1994 ## ----------- ##
1995 ## Core tests. ##
1996 ## ----------- ##
1998 _ACEOF
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2006 ac_configure_args=
2007 ac_configure_args0=
2008 ac_configure_args1=
2009 ac_must_keep_next=false
2010 for ac_pass in 1 2
2012 for ac_arg
2014 case $ac_arg in
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2018 continue ;;
2019 *\'*)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 esac
2022 case $ac_pass in
2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025 as_fn_append ac_configure_args1 " '$ac_arg'"
2026 if test $ac_must_keep_next = true; then
2027 ac_must_keep_next=false # Got value, back to normal.
2028 else
2029 case $ac_arg in
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 esac
2038 -* ) ac_must_keep_next=true ;;
2039 esac
2041 as_fn_append ac_configure_args " '$ac_arg'"
2043 esac
2044 done
2045 done
2046 { ac_configure_args0=; unset ac_configure_args0;}
2047 { ac_configure_args1=; unset ac_configure_args1;}
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log. We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2057 echo
2059 $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2062 echo
2063 # The following way of writing the cache mishandles newlines in values,
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
2080 (set) 2>&1 |
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2083 sed -n \
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090 esac |
2091 sort
2093 echo
2095 $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2098 echo
2099 for ac_var in $ac_subst_vars
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2109 if test -n "$ac_subst_files"; then
2110 $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2113 echo
2114 for ac_var in $ac_subst_files
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2125 if test -s confdefs.h; then
2126 $as_echo "## ----------- ##
2127 ## confdefs.h. ##
2128 ## ----------- ##"
2129 echo
2130 cat confdefs.h
2131 echo
2133 test "$ac_signal" != 0 &&
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
2136 } >&5
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 exit $exit_status
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 done
2144 ac_signal=0
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2149 $as_echo "/* confdefs.h */" > confdefs.h
2151 # Predefined preprocessor variables.
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2155 _ACEOF
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159 _ACEOF
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2163 _ACEOF
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2167 _ACEOF
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171 _ACEOF
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2175 _ACEOF
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 ac_site_file1=NONE
2181 ac_site_file2=NONE
2182 if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2188 esac
2189 elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2192 else
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
2196 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2198 test "x$ac_site_file" = xNONE && continue
2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 sed 's/^/| /' "$ac_site_file" >&5
2203 . "$ac_site_file" \
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $? "failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2209 done
2211 if test -r "$cache_file"; then
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2217 case $cache_file in
2218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
2220 esac
2222 else
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2225 >$cache_file
2228 # Check that the precious variables saved in the cache have kept the same
2229 # value.
2230 ac_cache_corrupted=false
2231 for ac_var in $ac_precious_vars; do
2232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233 eval ac_new_set=\$ac_env_${ac_var}_set
2234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235 eval ac_new_val=\$ac_env_${ac_var}_value
2236 case $ac_old_set,$ac_new_set in
2237 set,)
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240 ac_cache_corrupted=: ;;
2241 ,set)
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244 ac_cache_corrupted=: ;;
2245 ,);;
2247 if test "x$ac_old_val" != "x$ac_new_val"; then
2248 # differences in whitespace do not lead to failure.
2249 ac_old_val_w=`echo x $ac_old_val`
2250 ac_new_val_w=`echo x $ac_new_val`
2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 ac_cache_corrupted=:
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 eval $ac_var=\$ac_old_val
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2264 fi;;
2265 esac
2266 # Pass precious variables to config.status.
2267 if test "$ac_new_set" = set; then
2268 case $ac_new_val in
2269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 *) ac_arg=$ac_var=$ac_new_val ;;
2271 esac
2272 case " $ac_configure_args " in
2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275 esac
2277 done
2278 if $ac_cache_corrupted; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2285 ## -------------------- ##
2286 ## Main body of script. ##
2287 ## -------------------- ##
2289 ac_ext=c
2290 ac_cpp='$CPP $CPPFLAGS'
2291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302 progname=$0
2303 # if PWD already has a value, it is probably wrong.
2304 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2306 # Export original configure arguments for use by sub-configures.
2307 # Quote arguments with shell meta charatcers.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS=
2309 set -- "$progname" "$@"
2310 for ac_arg
2312 case "$ac_arg" in
2313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2314 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2315 # if the argument is of the form -foo=baz, quote the baz part only
2316 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2317 *) ;;
2318 esac
2319 # Add the quoted argument to the list.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2321 done
2322 if test "$silent" = yes; then
2323 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2325 # Remove the initial space we just introduced and, as these will be
2326 # expanded by make, quote '$'.
2327 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2330 # Find the build, host, and target systems.
2331 ac_aux_dir=
2332 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2333 if test -f "$ac_dir/install-sh"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/install-sh -c"
2336 break
2337 elif test -f "$ac_dir/install.sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install.sh -c"
2340 break
2341 elif test -f "$ac_dir/shtool"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/shtool install -c"
2344 break
2346 done
2347 if test -z "$ac_aux_dir"; then
2348 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360 # Make sure we can run config.sub.
2361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2362 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 $as_echo_n "checking build system type... " >&6; }
2366 if ${ac_cv_build+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 ac_build_alias=$build_alias
2370 test "x$ac_build_alias" = x &&
2371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372 test "x$ac_build_alias" = x &&
2373 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2374 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2381 *-*-*) ;;
2382 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2383 esac
2384 build=$ac_cv_build
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_build
2387 shift
2388 build_cpu=$1
2389 build_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 build_os=$*
2394 IFS=$ac_save_IFS
2395 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2398 case ${build_alias} in
2399 "") build_noncanonical=${build} ;;
2400 *) build_noncanonical=${build_alias} ;;
2401 esac
2405 case ${host_alias} in
2406 "") host_noncanonical=${build_noncanonical} ;;
2407 *) host_noncanonical=${host_alias} ;;
2408 esac
2412 case ${target_alias} in
2413 "") target_noncanonical=${host_noncanonical} ;;
2414 *) target_noncanonical=${target_alias} ;;
2415 esac
2420 test "$host_noncanonical" = "$target_noncanonical" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_transform_name=s,y,y,
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426 $as_echo_n "checking host system type... " >&6; }
2427 if ${ac_cv_host+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test "x$host_alias" = x; then
2431 ac_cv_host=$ac_cv_build
2432 else
2433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439 $as_echo "$ac_cv_host" >&6; }
2440 case $ac_cv_host in
2441 *-*-*) ;;
2442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2443 esac
2444 host=$ac_cv_host
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_host
2447 shift
2448 host_cpu=$1
2449 host_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 host_os=$*
2454 IFS=$ac_save_IFS
2455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459 $as_echo_n "checking target system type... " >&6; }
2460 if ${ac_cv_target+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test "x$target_alias" = x; then
2464 ac_cv_target=$ac_cv_host
2465 else
2466 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472 $as_echo "$ac_cv_target" >&6; }
2473 case $ac_cv_target in
2474 *-*-*) ;;
2475 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2476 esac
2477 target=$ac_cv_target
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_target
2480 shift
2481 target_cpu=$1
2482 target_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 target_os=$*
2487 IFS=$ac_save_IFS
2488 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2491 # The aliases save the names the user supplied, while $host etc.
2492 # will get canonicalized.
2493 test -n "$target_alias" &&
2494 test "$program_prefix$program_suffix$program_transform_name" = \
2495 NONENONEs,x,x, &&
2496 program_prefix=${target_alias}-
2498 test "$program_prefix" != NONE &&
2499 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2500 # Use a double $ so make ignores it.
2501 test "$program_suffix" != NONE &&
2502 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2503 # Double any \ or $.
2504 # By default was `s,x,x', remove it if useless.
2505 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2506 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2510 # Get 'install' or 'install-sh' and its variants.
2511 # Find a good install program. We prefer a C program (faster),
2512 # so one script is as good as another. But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2517 # AIX /bin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if ${ac_cv_path_install+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538 ./ | .// | /[cC]/* | \
2539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2541 /usr/ucb/* ) ;;
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2545 # by default.
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549 if test $ac_prog = install &&
2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2557 else
2558 rm -rf conftest.one conftest.two conftest.dir
2559 echo one > conftest.one
2560 echo two > conftest.two
2561 mkdir conftest.dir
2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563 test -s conftest.one && test -s conftest.two &&
2564 test -s conftest.dir/conftest.one &&
2565 test -s conftest.dir/conftest.two
2566 then
2567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568 break 3
2572 done
2573 done
2575 esac
2577 done
2578 IFS=$as_save_IFS
2580 rm -rf conftest.one conftest.two conftest.dir
2583 if test "${ac_cv_path_install+set}" = set; then
2584 INSTALL=$ac_cv_path_install
2585 else
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for INSTALL within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 INSTALL=$ac_install_sh
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2605 $as_echo_n "checking whether ln works... " >&6; }
2606 if ${acx_cv_prog_LN+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 rm -f conftestdata_t
2610 echo >conftestdata_f
2611 if ln conftestdata_f conftestdata_t 2>/dev/null
2612 then
2613 acx_cv_prog_LN=ln
2614 else
2615 acx_cv_prog_LN=no
2617 rm -f conftestdata_f conftestdata_t
2620 if test $acx_cv_prog_LN = no; then
2621 LN="cp"
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2623 $as_echo "no, using $LN" >&6; }
2624 else
2625 LN="$acx_cv_prog_LN"
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2631 $as_echo_n "checking whether ln -s works... " >&6; }
2632 LN_S=$as_ln_s
2633 if test "$LN_S" = "ln -s"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2638 $as_echo "no, using $LN_S" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2642 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2643 if ${ac_cv_path_SED+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2647 for ac_i in 1 2 3 4 5 6 7; do
2648 ac_script="$ac_script$as_nl$ac_script"
2649 done
2650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2651 { ac_script=; unset ac_script;}
2652 if test -z "$SED"; then
2653 ac_path_SED_found=false
2654 # Loop through the user's path and test for each of PROGNAME-LIST
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_prog in sed gsed; do
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2663 as_fn_executable_p "$ac_path_SED" || continue
2664 # Check for GNU ac_path_SED and select it if it is found.
2665 # Check for GNU $ac_path_SED
2666 case `"$ac_path_SED" --version 2>&1` in
2667 *GNU*)
2668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2670 ac_count=0
2671 $as_echo_n 0123456789 >"conftest.in"
2672 while :
2674 cat "conftest.in" "conftest.in" >"conftest.tmp"
2675 mv "conftest.tmp" "conftest.in"
2676 cp "conftest.in" "conftest.nl"
2677 $as_echo '' >> "conftest.nl"
2678 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2680 as_fn_arith $ac_count + 1 && ac_count=$as_val
2681 if test $ac_count -gt ${ac_path_SED_max-0}; then
2682 # Best one so far, save it but keep looking for a better one
2683 ac_cv_path_SED="$ac_path_SED"
2684 ac_path_SED_max=$ac_count
2686 # 10*(2^10) chars as input seems more than enough
2687 test $ac_count -gt 10 && break
2688 done
2689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2690 esac
2692 $ac_path_SED_found && break 3
2693 done
2694 done
2695 done
2696 IFS=$as_save_IFS
2697 if test -z "$ac_cv_path_SED"; then
2698 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2700 else
2701 ac_cv_path_SED=$SED
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2706 $as_echo "$ac_cv_path_SED" >&6; }
2707 SED="$ac_cv_path_SED"
2708 rm -f conftest.sed
2710 for ac_prog in gawk mawk nawk awk
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_AWK+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_AWK="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2733 done
2734 done
2735 IFS=$as_save_IFS
2739 AWK=$ac_cv_prog_AWK
2740 if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 $as_echo "$AWK" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2749 test -n "$AWK" && break
2750 done
2753 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2755 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2756 # a relative path.
2757 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2758 INSTALL="${srcpwd}/install-sh -c"
2761 # Set srcdir to "." if that's what it is.
2762 # This is important for multilib support.
2763 pwd=`${PWDCMD-pwd}`
2764 if test "${pwd}" = "${srcpwd}" ; then
2765 srcdir=.
2768 topsrcdir=$srcpwd
2770 extra_host_args=
2772 ### To add a new directory to the tree, first choose whether it is a target
2773 ### or a host dependent tool. Then put it into the appropriate list
2774 ### (library or tools, host or target), doing a dependency sort.
2776 # Subdirs will be configured in the order listed in build_configdirs,
2777 # configdirs, or target_configdirs; see the serialization section below.
2779 # Dependency sorting is only needed when *configuration* must be done in
2780 # a particular order. In all cases a dependency should be specified in
2781 # the Makefile, whether or not it's implicitly specified here.
2783 # Double entries in build_configdirs, configdirs, or target_configdirs may
2784 # cause circular dependencies and break everything horribly.
2786 # these library is used by various programs built for the build
2787 # environment
2789 build_libs="build-libiberty build-libcpp"
2791 # these tools are built for the build environment
2792 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2794 # these libraries are used by various programs built for the host environment
2796 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2798 # these tools are built for the host environment
2799 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2800 # know that we are building the simulator.
2801 # binutils, gas and ld appear in that order because it makes sense to run
2802 # "make check" in that particular order.
2803 # If --enable-gold is used, "gold" may replace "ld".
2804 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"
2806 # these libraries are built for the target environment, and are built after
2807 # the host libraries and the host tools (which may be a cross compiler)
2808 # Note that libiberty is not a target library.
2809 target_libraries="target-libgcc \
2810 target-libbacktrace \
2811 target-libgloss \
2812 target-newlib \
2813 target-libgomp \
2814 target-liboffloadmic \
2815 target-libhsail-rt \
2816 target-libatomic \
2817 target-libitm \
2818 target-libstdc++-v3 \
2819 target-libsanitizer \
2820 target-libvtv \
2821 target-libssp \
2822 target-libquadmath \
2823 target-libgfortran \
2824 target-libffi \
2825 target-libobjc \
2826 target-libada \
2827 target-libgo \
2828 target-libphobos \
2829 target-zlib"
2831 # these tools are built using the target libraries, and are intended to
2832 # run only in the target environment
2834 # note: any program that *uses* libraries that are in the "target_libraries"
2835 # list belongs in this list.
2837 target_tools="target-rda"
2839 ################################################################################
2841 ## All tools belong in one of the four categories, and are assigned above
2842 ## We assign ${configdirs} this way to remove all embedded newlines. This
2843 ## is important because configure will choke if they ever get through.
2844 ## ${configdirs} is directories we build using the host tools.
2845 ## ${target_configdirs} is directories we build using the target tools.
2846 configdirs=`echo ${host_libs} ${host_tools}`
2847 target_configdirs=`echo ${target_libraries} ${target_tools}`
2848 build_configdirs=`echo ${build_libs} ${build_tools}`
2852 ################################################################################
2854 srcname="gnu development package"
2856 # This gets set non-empty for some net releases of packages.
2857 appdirs=""
2859 # Define is_cross_compiler to save on calls to 'test'.
2860 is_cross_compiler=
2861 if test x"${host}" = x"${target}" ; then
2862 is_cross_compiler=no
2863 else
2864 is_cross_compiler=yes
2867 # Find the build and target subdir names.
2869 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2870 # have matching libraries, they should use host libraries: Makefile.tpl
2871 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2872 # However, they still use the build modules, because the corresponding
2873 # host modules (e.g. bison) are only built for the host when bootstrap
2874 # finishes. So:
2875 # - build_subdir is where we find build modules, and never changes.
2876 # - build_libsubdir is where we find build libraries, and can be overridden.
2878 # Prefix 'build-' so this never conflicts with target_subdir.
2879 build_subdir="build-${build_noncanonical}"
2881 # Check whether --with-build-libsubdir was given.
2882 if test "${with_build_libsubdir+set}" = set; then :
2883 withval=$with_build_libsubdir; build_libsubdir="$withval"
2884 else
2885 build_libsubdir="$build_subdir"
2888 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2889 if ( test $srcdir = . && test -d gcc ) \
2890 || test -d $srcdir/../host-${host_noncanonical}; then
2891 host_subdir="host-${host_noncanonical}"
2892 else
2893 host_subdir=.
2895 # No prefix.
2896 target_subdir=${target_noncanonical}
2898 # Be sure to cover against remnants of an in-tree build.
2899 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2900 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2901 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2904 # Skipdirs are removed silently.
2905 skipdirs=
2906 # Noconfigdirs are removed loudly.
2907 noconfigdirs=""
2909 use_gnu_ld=
2910 # Make sure we don't let GNU ld be added if we didn't want it.
2911 if test x$with_gnu_ld = xno ; then
2912 use_gnu_ld=no
2913 noconfigdirs="$noconfigdirs ld gold"
2916 use_gnu_as=
2917 # Make sure we don't let GNU as be added if we didn't want it.
2918 if test x$with_gnu_as = xno ; then
2919 use_gnu_as=no
2920 noconfigdirs="$noconfigdirs gas"
2923 use_included_zlib=
2925 # Check whether --with-system-zlib was given.
2926 if test "${with_system_zlib+set}" = set; then :
2927 withval=$with_system_zlib;
2930 # Make sure we don't let ZLIB be added if we didn't want it.
2931 if test x$with_system_zlib = xyes ; then
2932 use_included_zlib=no
2933 noconfigdirs="$noconfigdirs zlib"
2936 # some tools are so dependent upon X11 that if we're not building with X,
2937 # it's not even worth trying to configure, much less build, that tool.
2939 case ${with_x} in
2940 yes | "") ;; # the default value for this tree is that X11 is available
2942 skipdirs="${skipdirs} tk itcl libgui"
2943 # We won't be able to build gdbtk without X.
2944 enable_gdbtk=no
2946 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2947 esac
2949 # Some are only suitable for cross toolchains.
2950 # Remove these if host=target.
2951 cross_only="target-libgloss target-newlib target-opcodes"
2953 case $is_cross_compiler in
2954 no) skipdirs="${skipdirs} ${cross_only}" ;;
2955 esac
2957 # If both --with-headers and --with-libs are specified, default to
2958 # --without-newlib.
2959 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2960 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2961 if test x"${with_newlib}" = x ; then
2962 with_newlib=no
2966 # Recognize --with-newlib/--without-newlib.
2967 case ${with_newlib} in
2968 no) skipdirs="${skipdirs} target-newlib" ;;
2969 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2970 esac
2972 # Check whether --enable-as-accelerator-for was given.
2973 if test "${enable_as_accelerator_for+set}" = set; then :
2974 enableval=$enable_as_accelerator_for;
2978 # Check whether --enable-offload-targets was given.
2979 if test "${enable_offload_targets+set}" = set; then :
2980 enableval=$enable_offload_targets;
2981 if test x"$enable_offload_targets" = x; then
2982 as_fn_error $? "no offload targets specified" "$LINENO" 5
2985 else
2986 enable_offload_targets=
2990 # Check whether --enable-offload-defaulted was given.
2991 if test "${enable_offload_defaulted+set}" = set; then :
2992 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
2993 else
2994 enable_offload_defaulted=
2998 # Handle --enable-gold, --enable-ld.
2999 # --disable-gold [--enable-ld]
3000 # Build only ld. Default option.
3001 # --enable-gold [--enable-ld]
3002 # Build both gold and ld. Install gold as "ld.gold", install ld
3003 # as "ld.bfd" and "ld".
3004 # --enable-gold=default [--enable-ld]
3005 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3006 # install ld as "ld.bfd".
3007 # --enable-gold[=default] --disable-ld
3008 # Build only gold, which is then installed as both "ld.gold" and "ld".
3009 # --enable-gold --enable-ld=default
3010 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3011 # and ld.bfd).
3012 # In other words, ld is default
3013 # --enable-gold=default --enable-ld=default
3014 # Error.
3016 default_ld=
3017 # Check whether --enable-gold was given.
3018 if test "${enable_gold+set}" = set; then :
3019 enableval=$enable_gold; ENABLE_GOLD=$enableval
3020 else
3021 ENABLE_GOLD=no
3024 case "${ENABLE_GOLD}" in
3025 yes|default)
3026 # Check for ELF target.
3027 is_elf=no
3028 case "${target}" in
3029 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3030 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3031 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3032 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3033 case "${target}" in
3034 *-*-linux*aout* | *-*-linux*oldld*)
3037 is_elf=yes
3039 esac
3040 esac
3042 if test "$is_elf" = "yes"; then
3043 # Check for target supported by gold.
3044 case "${target}" in
3045 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3046 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3047 configdirs="$configdirs gold"
3048 if test x${ENABLE_GOLD} = xdefault; then
3049 default_ld=gold
3051 ENABLE_GOLD=yes
3053 esac
3059 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3061 esac
3063 # Check whether --enable-ld was given.
3064 if test "${enable_ld+set}" = set; then :
3065 enableval=$enable_ld; ENABLE_LD=$enableval
3066 else
3067 ENABLE_LD=yes
3071 case "${ENABLE_LD}" in
3072 default)
3073 if test x${default_ld} != x; then
3074 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3077 yes)
3080 if test x${ENABLE_GOLD} != xyes; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3082 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3084 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3087 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3089 esac
3091 # PR gas/19109
3092 # Decide the default method for compressing debug sections.
3093 # Provide a configure time option to override our default.
3094 # Check whether --enable-compressed_debug_sections was given.
3095 if test "${enable_compressed_debug_sections+set}" = set; then :
3096 enableval=$enable_compressed_debug_sections;
3097 if test x"$enable_compressed_debug_sections" = xyes; then
3098 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3101 else
3102 enable_compressed_debug_sections=
3106 # Configure extra directories which are host specific
3108 case "${host}" in
3109 *-cygwin*)
3110 configdirs="$configdirs libtermcap" ;;
3111 esac
3113 # A target can indicate whether a language isn't supported for some reason.
3114 # Only spaces may be used in this macro; not newlines or tabs.
3115 unsupported_languages=
3117 # Remove more programs from consideration, based on the host or
3118 # target this usually means that a port of the program doesn't
3119 # exist yet.
3121 case "${host}" in
3122 i[3456789]86-*-msdosdjgpp*)
3123 noconfigdirs="$noconfigdirs tcl tk itcl"
3125 esac
3128 # Check whether --enable-libquadmath was given.
3129 if test "${enable_libquadmath+set}" = set; then :
3130 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3131 else
3132 ENABLE_LIBQUADMATH=yes
3135 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3136 noconfigdirs="$noconfigdirs target-libquadmath"
3140 # Check whether --enable-libquadmath-support was given.
3141 if test "${enable_libquadmath_support+set}" = set; then :
3142 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3143 else
3144 ENABLE_LIBQUADMATH_SUPPORT=yes
3147 enable_libquadmath_support=
3148 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3149 enable_libquadmath_support=no
3153 # Check whether --enable-libada was given.
3154 if test "${enable_libada+set}" = set; then :
3155 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3156 else
3157 ENABLE_LIBADA=yes
3160 if test "${ENABLE_LIBADA}" != "yes" ; then
3161 noconfigdirs="$noconfigdirs gnattools"
3164 # Check whether --enable-libssp was given.
3165 if test "${enable_libssp+set}" = set; then :
3166 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3167 else
3168 ENABLE_LIBSSP=yes
3172 # Check whether --enable-libstdcxx was given.
3173 if test "${enable_libstdcxx+set}" = set; then :
3174 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3175 else
3176 ENABLE_LIBSTDCXX=default
3179 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3180 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3183 # If this is accelerator compiler and its target is intelmic we enable
3184 # target liboffloadmic by default. If this is compiler with offloading
3185 # for intelmic we enable host liboffloadmic by default. Otherwise
3186 # liboffloadmic is disabled by default.
3187 # Check whether --enable-liboffloadmic was given.
3188 if test "${enable_liboffloadmic+set}" = set; then :
3189 enableval=$enable_liboffloadmic; case "$enableval" in
3190 no | host | target)
3191 enable_liboffloadmic=$enableval ;;
3193 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3194 esac
3195 else
3196 if test x"$enable_as_accelerator_for" != x; then
3197 case "${target}" in
3198 *-intelmic-* | *-intelmicemul-*)
3199 enable_liboffloadmic=target
3200 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3203 enable_liboffloadmic=no
3205 esac
3206 else
3207 case "${enable_offload_targets}" in
3208 *-intelmic-* | *-intelmicemul-*)
3209 enable_liboffloadmic=host
3210 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3213 enable_liboffloadmic=no
3215 esac
3221 # Enable libgomp by default on hosted POSIX systems, and a few others.
3222 if test x$enable_libgomp = x ; then
3223 case "${target}" in
3224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3226 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3228 *-*-solaris2* | *-*-hpux11*)
3230 *-*-darwin* | *-*-aix*)
3232 nvptx*-*-* | amdgcn*-*-*)
3235 noconfigdirs="$noconfigdirs target-libgomp"
3237 esac
3240 # Disable libatomic on unsupported systems.
3241 if test -d ${srcdir}/libatomic; then
3242 if test x$enable_libatomic = x; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3244 $as_echo_n "checking for libatomic support... " >&6; }
3245 if (srcdir=${srcdir}/libatomic; \
3246 . ${srcdir}/configure.tgt; \
3247 test -n "$UNSUPPORTED")
3248 then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 noconfigdirs="$noconfigdirs target-libatomic"
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3259 # Disable liboffloadmic on unsupported systems.
3260 if test -d ${srcdir}/liboffloadmic; then
3261 if test x$enable_liboffloadmic != xno; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3263 $as_echo_n "checking for liboffloadmic support... " >&6; }
3264 if (srcdir=${srcdir}/liboffloadmic; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-liboffloadmic"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable libitm on unsupported systems.
3279 if test -d ${srcdir}/libitm; then
3280 if test x$enable_libitm = x; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3282 $as_echo_n "checking for libitm support... " >&6; }
3283 if (srcdir=${srcdir}/libitm; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-libitm"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable libsanitizer on unsupported systems.
3298 if test -d ${srcdir}/libsanitizer; then
3299 if test x$enable_libsanitizer = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3301 $as_echo_n "checking for libsanitizer support... " >&6; }
3302 if (srcdir=${srcdir}/libsanitizer; \
3303 . ${srcdir}/configure.tgt; \
3304 test -n "$UNSUPPORTED")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-libsanitizer"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libvtv on unsupported systems.
3317 if test -d ${srcdir}/libvtv; then
3318 if test x$enable_libvtv = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3320 $as_echo_n "checking for libvtv support... " >&6; }
3321 if (srcdir=${srcdir}/libvtv; \
3322 . ${srcdir}/configure.tgt; \
3323 test "$VTV_SUPPORTED" != "yes")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 noconfigdirs="$noconfigdirs target-libvtv"
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3336 # Disable libhsail-rt on unsupported systems.
3337 if test -d ${srcdir}/libhsail-rt; then
3338 if test x$enable_libhsail_rt = x; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3340 $as_echo_n "checking for libhsail-rt support... " >&6; }
3341 if (srcdir=${srcdir}/libhsail-rt; \
3342 . ${srcdir}/configure.tgt; \
3343 test -n "$UNSUPPORTED")
3344 then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 unsupported_languages="$unsupported_languages brig"
3348 # This implicitly disables also target-libhsail-rt as it won't
3349 # get added to the build without BRIG FE.
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3358 # Disable libquadmath for some systems.
3359 case "${target}" in
3360 avr-*-*)
3361 noconfigdirs="$noconfigdirs target-libquadmath"
3363 # libquadmath is unused on AIX and libquadmath build process use of
3364 # LD_LIBRARY_PATH can break AIX bootstrap.
3365 powerpc-*-aix* | rs6000-*-aix*)
3366 noconfigdirs="$noconfigdirs target-libquadmath"
3368 esac
3370 # Disable libssp for some systems.
3371 case "${target}" in
3372 avr-*-*)
3373 # No hosted I/O support.
3374 noconfigdirs="$noconfigdirs target-libssp"
3376 bpf-*-*)
3377 noconfigdirs="$noconfigdirs target-libssp"
3379 powerpc-*-aix* | rs6000-*-aix*)
3380 noconfigdirs="$noconfigdirs target-libssp"
3382 pru-*-*)
3383 # No hosted I/O support.
3384 noconfigdirs="$noconfigdirs target-libssp"
3386 rl78-*-*)
3387 # libssp uses a misaligned load to trigger a fault, but the RL78
3388 # doesn't fault for those - instead, it gives a build-time error
3389 # for explicit misaligned loads.
3390 noconfigdirs="$noconfigdirs target-libssp"
3392 visium-*-*)
3393 # No hosted I/O support.
3394 noconfigdirs="$noconfigdirs target-libssp"
3396 esac
3398 # Disable libstdc++-v3 for some systems.
3399 # Allow user to override this if they pass --enable-libstdc++-v3
3400 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3401 case "${target}" in
3402 *-*-vxworks*)
3403 # VxWorks uses the Dinkumware C++ library.
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 amdgcn*-*-*)
3407 # Not ported/fails to build when using newlib.
3408 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 arm*-wince-pe*)
3411 # the C++ libraries don't build on top of CE's C libraries
3412 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3414 avr-*-*)
3415 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3417 bpf-*-*)
3418 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3420 ft32-*-*)
3421 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3423 esac
3426 # Disable C++ on systems where it is known to not work.
3427 # For testing, you can override this with --enable-languages=c++.
3428 case ,${enable_languages}, in
3429 *,c++,*)
3432 case "${target}" in
3433 bpf-*-*)
3434 unsupported_languages="$unsupported_languages c++"
3436 esac
3438 esac
3440 # Disable Objc on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=objc.
3442 case ,${enable_languages}, in
3443 *,objc,*)
3446 case "${target}" in
3447 bpf-*-*)
3448 unsupported_languages="$unsupported_languages objc"
3450 esac
3452 esac
3454 # Disable D on systems where it is known to not work.
3455 # For testing, you can override this with --enable-languages=d.
3456 case ,${enable_languages}, in
3457 *,d,*)
3460 case "${target}" in
3461 bpf-*-*)
3462 unsupported_languages="$unsupported_languages d"
3464 esac
3466 esac
3468 # Disable libphobos on unsupported systems.
3469 # For testing, you can override this with --enable-libphobos.
3470 if test -d ${srcdir}/libphobos; then
3471 if test x$enable_libphobos = x; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3473 $as_echo_n "checking for libphobos support... " >&6; }
3474 if (srcdir=${srcdir}/libphobos; \
3475 . ${srcdir}/configure.tgt; \
3476 test "$LIBPHOBOS_SUPPORTED" != "yes")
3477 then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 noconfigdirs="$noconfigdirs target-libphobos"
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483 $as_echo "yes" >&6; }
3488 # Disable Fortran for some systems.
3489 case "${target}" in
3490 mmix-*-*)
3491 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3492 unsupported_languages="$unsupported_languages fortran"
3494 bpf-*-*)
3495 unsupported_languages="$unsupported_languages fortran"
3497 esac
3499 # Disable libffi for some systems.
3500 case "${target}" in
3501 powerpc-*-darwin*)
3503 i[3456789]86-*-darwin*)
3505 x86_64-*-darwin[912]*)
3507 *-*-darwin*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3510 *-*-netware*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3513 *-*-phoenix*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3516 *-*-rtems*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3519 *-*-tpf*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3522 *-*-uclinux*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3525 *-*-vxworks*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3528 aarch64*-*-freebsd*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 alpha*-*-*vms*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 arm*-*-freebsd*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 arm-wince-pe)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 arm*-*-symbianelf*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3543 bpf-*-*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 cris-*-* | crisv32-*-*)
3547 case "${target}" in
3548 *-*-linux*)
3550 *) # See PR46792 regarding target-libffi.
3551 noconfigdirs="$noconfigdirs target-libffi";;
3552 esac
3554 hppa*64*-*-hpux*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3557 hppa*-hp-hpux11*)
3559 hppa*-*-hpux*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3562 ia64*-*-*vms*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3565 i[3456789]86-w64-mingw*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3568 i[3456789]86-*-mingw*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3571 x86_64-*-mingw*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3574 mmix-*-*)
3575 noconfigdirs="$noconfigdirs target-libffi"
3577 powerpc-*-aix*)
3579 rs6000-*-aix*)
3581 ft32-*-*)
3582 noconfigdirs="$noconfigdirs target-libffi"
3584 *-*-lynxos*)
3585 noconfigdirs="$noconfigdirs target-libffi"
3587 esac
3589 # Disable the go frontend on systems where it is known to not work. Please keep
3590 # this in sync with contrib/config-list.mk.
3591 case "${target}" in
3592 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3593 unsupported_languages="$unsupported_languages go"
3595 esac
3597 # Only allow gdbserver on some systems.
3598 if test -d ${srcdir}/gdbserver; then
3599 if test x$enable_gdbserver = x; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3601 $as_echo_n "checking for gdbserver support... " >&6; }
3602 if (srcdir=${srcdir}/gdbserver; \
3603 . ${srcdir}/configure.srv; \
3604 test -n "$UNSUPPORTED")
3605 then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 noconfigdirs="$noconfigdirs gdbserver"
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 $as_echo "yes" >&6; }
3616 # Disable libgo for some systems where it is known to not work.
3617 # For testing, you can easily override this with --enable-libgo.
3618 if test x$enable_libgo = x; then
3619 case "${target}" in
3620 *-*-darwin*)
3621 # PR 46986
3622 noconfigdirs="$noconfigdirs target-libgo"
3624 *-*-cygwin* | *-*-mingw*)
3625 noconfigdirs="$noconfigdirs target-libgo"
3627 bpf-*-*)
3628 noconfigdirs="$noconfigdirs target-libgo"
3630 esac
3633 # Default libgloss CPU subdirectory.
3634 libgloss_dir="$target_cpu"
3636 case "${target}" in
3637 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3638 libgloss_dir=wince
3640 aarch64*-*-* )
3641 libgloss_dir=aarch64
3643 arm*-*-*)
3644 libgloss_dir=arm
3646 cris-*-* | crisv32-*-*)
3647 libgloss_dir=cris
3649 hppa*-*-*)
3650 libgloss_dir=pa
3652 i[3456789]86-*-*)
3653 libgloss_dir=i386
3655 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3656 libgloss_dir=m68hc11
3658 m68*-*-* | fido-*-*)
3659 libgloss_dir=m68k
3661 mips*-*-*)
3662 libgloss_dir=mips
3664 powerpc*-*-*)
3665 libgloss_dir=rs6000
3667 pru-*-*)
3668 libgloss_dir=pru
3670 sparc*-*-*)
3671 libgloss_dir=sparc
3673 esac
3675 # Disable newlib and libgloss for various target OSes.
3676 case "${target}" in
3677 alpha*-dec-osf*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 i[3456789]86-*-linux*)
3681 # This section makes it possible to build newlib natively on linux.
3682 # If we are using a cross compiler then don't configure newlib.
3683 if test x${is_cross_compiler} != xno ; then
3684 noconfigdirs="$noconfigdirs target-newlib"
3686 noconfigdirs="$noconfigdirs target-libgloss"
3687 # If we are not using a cross compiler, do configure newlib.
3688 # Note however, that newlib will only be configured in this situation
3689 # if the --with-newlib option has been given, because otherwise
3690 # 'target-newlib' will appear in skipdirs.
3692 i[3456789]86-*-rdos*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 sparc-*-sunos4*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 bpf-*-*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 *-*-aix*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 *-*-beos*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 *-*-chorusos)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 *-*-dragonfly*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 *-*-freebsd*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 *-*-lynxos*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 *-*-mingw*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-netbsd*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 *-*-netware*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 *-*-tpf*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 *-*-uclinux*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 *-*-vxworks*)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 esac
3745 case "${target}" in
3746 *-*-chorusos)
3748 aarch64-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3752 amdgcn*-*-*)
3754 arm-*-darwin*)
3755 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3758 powerpc-*-darwin*)
3759 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs="$noconfigdirs sim target-rda"
3762 i[3456789]86-*-darwin*)
3763 noconfigdirs="$noconfigdirs ld gprof"
3764 noconfigdirs="$noconfigdirs sim target-rda"
3766 x86_64-*-darwin[912]*)
3767 noconfigdirs="$noconfigdirs ld gas gprof"
3768 noconfigdirs="$noconfigdirs sim target-rda"
3770 *-*-darwin*)
3771 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3772 noconfigdirs="$noconfigdirs sim target-rda"
3774 *-*-dragonfly*)
3776 *-*-freebsd*)
3777 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3778 && ! test -d ${srcdir}/gmp \
3779 && test -f /usr/local/include/gmp.h; then
3780 with_gmp=/usr/local
3783 *-*-kaos*)
3784 # Remove unsupported stuff on all kaOS configurations.
3785 noconfigdirs="$noconfigdirs target-libgloss"
3787 *-*-netbsd*)
3789 *-*-netware*)
3791 *-*-phoenix*)
3792 noconfigdirs="$noconfigdirs target-libgloss"
3794 *-*-rtems*)
3795 noconfigdirs="$noconfigdirs target-libgloss"
3797 # The tpf target doesn't support gdb yet.
3798 *-*-tpf*)
3799 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3801 *-*-uclinux*)
3802 noconfigdirs="$noconfigdirs target-rda"
3804 *-*-vxworks*)
3806 alpha*-dec-osf*)
3807 # ld works, but does not support shared libraries.
3808 # gas doesn't generate exception information.
3809 noconfigdirs="$noconfigdirs gas ld"
3811 alpha*-*-*vms*)
3812 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3814 alpha*-*-*)
3815 # newlib is not 64 bit ready
3816 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3818 bpf-*-*)
3819 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3821 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3822 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3824 arc*-*-*)
3825 noconfigdirs="$noconfigdirs sim"
3827 arm-*-pe*)
3828 noconfigdirs="$noconfigdirs target-libgloss"
3830 arm-*-riscix*)
3831 noconfigdirs="$noconfigdirs ld target-libgloss"
3833 avr-*-*)
3834 if test x${with_avrlibc} != xno; then
3835 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3838 c4x-*-* | tic4x-*-*)
3839 noconfigdirs="$noconfigdirs target-libgloss"
3841 tic54x-*-*)
3842 noconfigdirs="$noconfigdirs target-libgloss gdb"
3844 d10v-*-*)
3845 noconfigdirs="$noconfigdirs target-libgloss"
3847 d30v-*-*)
3848 noconfigdirs="$noconfigdirs gdb"
3850 fr30-*-elf*)
3851 noconfigdirs="$noconfigdirs gdb"
3853 ft32-*-*)
3854 noconfigdirs="$noconfigdirs target-rda gprof"
3856 moxie-*-*)
3857 noconfigdirs="$noconfigdirs"
3859 h8300*-*-*)
3860 noconfigdirs="$noconfigdirs target-libgloss"
3862 h8500-*-*)
3863 noconfigdirs="$noconfigdirs target-libgloss"
3865 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3867 hppa*64*-*-hpux*)
3868 noconfigdirs="$noconfigdirs gdb"
3870 hppa*-*-hpux11*)
3871 noconfigdirs="$noconfigdirs gdb ld"
3873 hppa*64*-*-linux*)
3875 hppa*-*-linux*)
3877 hppa*-*-*elf* | \
3878 hppa*-*-lites* | \
3879 hppa*-*-openbsd* | \
3880 hppa*64*-*-*)
3882 hppa*-*-pro*)
3884 hppa*-*-*)
3885 noconfigdirs="$noconfigdirs ld"
3887 i960-*-*)
3888 noconfigdirs="$noconfigdirs gdb"
3890 ia64*-*-elf*)
3891 # No gdb support yet.
3892 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3894 ia64*-**-hpux*)
3895 # No ld support yet.
3896 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3898 ia64*-*-*vms*)
3899 # No ld support yet.
3900 noconfigdirs="$noconfigdirs libgui itcl ld"
3902 i[3456789]86-w64-mingw*)
3904 i[3456789]86-*-mingw*)
3905 target_configdirs="$target_configdirs target-winsup"
3907 *-*-cygwin*)
3908 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3909 noconfigdirs="$noconfigdirs target-libgloss"
3910 # always build newlib if winsup directory is present.
3911 if test -d "$srcdir/winsup/cygwin"; then
3912 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3913 elif test -d "$srcdir/newlib"; then
3914 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3917 i[3456789]86-*-pe)
3918 noconfigdirs="$noconfigdirs target-libgloss"
3920 i[3456789]86-*-sco3.2v5*)
3921 # The linker does not yet know about weak symbols in COFF,
3922 # and is not configured to handle mixed ELF and COFF.
3923 noconfigdirs="$noconfigdirs ld target-libgloss"
3925 i[3456789]86-*-sco*)
3926 noconfigdirs="$noconfigdirs gprof target-libgloss"
3928 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3929 noconfigdirs="$noconfigdirs target-libgloss"
3931 i[3456789]86-*-sysv4*)
3932 noconfigdirs="$noconfigdirs target-libgloss"
3934 i[3456789]86-*-beos*)
3935 noconfigdirs="$noconfigdirs gdb"
3937 i[3456789]86-*-rdos*)
3938 noconfigdirs="$noconfigdirs gdb"
3940 mmix-*-*)
3941 noconfigdirs="$noconfigdirs gdb"
3943 mt-*-*)
3944 noconfigdirs="$noconfigdirs sim"
3946 nfp-*-*)
3947 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3948 noconfigdirs="$noconfigdirs $target_libraries"
3950 pdp11-*-*)
3951 noconfigdirs="$noconfigdirs gdb gprof"
3953 powerpc-*-aix*)
3954 # copied from rs6000-*-* entry
3955 noconfigdirs="$noconfigdirs gprof"
3957 powerpc*-*-winnt* | powerpc*-*-pe*)
3958 target_configdirs="$target_configdirs target-winsup"
3959 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3960 # always build newlib.
3961 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3963 # This is temporary until we can link against shared libraries
3964 powerpcle-*-solaris*)
3965 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3967 powerpc-*-beos*)
3968 noconfigdirs="$noconfigdirs gdb"
3970 rs6000-*-lynxos*)
3971 noconfigdirs="$noconfigdirs gprof"
3973 rs6000-*-aix*)
3974 noconfigdirs="$noconfigdirs gprof"
3976 rs6000-*-*)
3977 noconfigdirs="$noconfigdirs gprof"
3979 m68k-apollo-*)
3980 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3982 microblaze*)
3983 noconfigdirs="$noconfigdirs gprof"
3985 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3986 if test x$with_newlib = xyes; then
3987 noconfigdirs="$noconfigdirs gprof"
3990 mips*-*-irix5*)
3991 noconfigdirs="$noconfigdirs gprof target-libgloss"
3993 mips*-*-irix6*)
3994 noconfigdirs="$noconfigdirs gprof target-libgloss"
3996 mips*-*-bsd*)
3997 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3999 mips*-*-linux*)
4001 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4002 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4003 noconfigdirs="$noconfigdirs ld gas gprof"
4005 mips*-*-*)
4006 noconfigdirs="$noconfigdirs gprof"
4008 nvptx*-*-*)
4009 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4011 sh-*-*)
4012 case "${target}" in
4013 sh*-*-elf)
4016 noconfigdirs="$noconfigdirs target-libgloss" ;;
4017 esac
4019 sparc-*-sunos4*)
4020 if test x${is_cross_compiler} = xno ; then
4021 use_gnu_ld=no
4024 tic6x-*-*)
4025 noconfigdirs="$noconfigdirs sim"
4027 tilepro*-*-* | tilegx*-*-*)
4028 noconfigdirs="$noconfigdirs sim"
4030 v810-*-*)
4031 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4033 vax-*-*)
4034 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4036 wasm32-*-*)
4037 noconfigdirs="$noconfigdirs ld"
4039 esac
4041 # If we aren't building newlib, then don't build libgloss, since libgloss
4042 # depends upon some newlib header files.
4043 case "${noconfigdirs}" in
4044 *target-libgloss*) ;;
4045 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4046 esac
4048 # Work in distributions that contain no compiler tools, like Autoconf.
4049 host_makefile_frag=/dev/null
4050 if test -d ${srcdir}/config ; then
4051 case "${host}" in
4052 i[3456789]86-*-msdosdjgpp*)
4053 host_makefile_frag="config/mh-djgpp"
4055 *-cygwin*)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4058 $as_echo_n "checking to see if cat works as expected... " >&6; }
4059 echo a >cygwin-cat-check
4060 if test `cat cygwin-cat-check` = a ; then
4061 rm cygwin-cat-check
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4064 else
4065 rm cygwin-cat-check
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4068 as_fn_error $? "The cat command does not ignore carriage return characters.
4069 Please either mount the build directory in binary mode or run the following
4070 commands before running any configure script:
4071 set -o igncr
4072 export SHELLOPTS
4073 " "$LINENO" 5
4076 host_makefile_frag="config/mh-cygwin"
4078 *-mingw*)
4079 host_makefile_frag="config/mh-mingw"
4081 alpha*-linux*)
4082 host_makefile_frag="config/mh-alpha-linux"
4084 hppa*-hp-hpux10*)
4085 host_makefile_frag="config/mh-pa-hpux10"
4087 hppa*-hp-hpux*)
4088 host_makefile_frag="config/mh-pa"
4090 hppa*-*)
4091 host_makefile_frag="config/mh-pa"
4093 *-*-darwin*)
4094 host_makefile_frag="config/mh-darwin"
4096 powerpc-*-aix*)
4097 host_makefile_frag="config/mh-ppc-aix"
4099 rs6000-*-aix*)
4100 host_makefile_frag="config/mh-ppc-aix"
4102 esac
4105 if test "${build}" != "${host}" ; then
4106 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4107 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4108 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4109 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4110 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4111 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4112 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4113 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4114 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4115 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4116 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4117 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4118 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4119 else
4120 AR_FOR_BUILD="\$(AR)"
4121 AS_FOR_BUILD="\$(AS)"
4122 CC_FOR_BUILD="\$(CC)"
4123 CXX_FOR_BUILD="\$(CXX)"
4124 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4125 GOC_FOR_BUILD="\$(GOC)"
4126 GDC_FOR_BUILD="\$(GDC)"
4127 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4128 LD_FOR_BUILD="\$(LD)"
4129 NM_FOR_BUILD="\$(NM)"
4130 RANLIB_FOR_BUILD="\$(RANLIB)"
4131 WINDRES_FOR_BUILD="\$(WINDRES)"
4132 WINDMC_FOR_BUILD="\$(WINDMC)"
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4164 IFS=$as_save_IFS
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4179 if test -z "$ac_cv_prog_CC"; then
4180 ac_ct_CC=$CC
4181 # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_CC="gcc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4202 done
4203 done
4204 IFS=$as_save_IFS
4208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4217 if test "x$ac_ct_CC" = x; then
4218 CC=""
4219 else
4220 case $cross_compiling:$ac_tool_warned in
4221 yes:)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226 CC=$ac_ct_CC
4228 else
4229 CC="$ac_cv_prog_CC"
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}cc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4273 if test -z "$CC"; then
4274 # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC="$CC" # Let the user override the test.
4283 else
4284 ac_prog_rejected=no
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293 ac_prog_rejected=yes
4294 continue
4296 ac_cv_prog_CC="cc"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4300 done
4301 done
4302 IFS=$as_save_IFS
4304 if test $ac_prog_rejected = yes; then
4305 # We found a bogon in the path, so make sure we never use it.
4306 set dummy $ac_cv_prog_CC
4307 shift
4308 if test $# != 0; then
4309 # We chose a different compiler from the bogus one.
4310 # However, it has the same basename, so the bogon will be chosen
4311 # first if we set CC to just the basename; use the full file name.
4312 shift
4313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4318 CC=$ac_cv_prog_CC
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4329 if test -z "$CC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog in cl.exe
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4356 IFS=$as_save_IFS
4360 CC=$ac_cv_prog_CC
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$CC" && break
4371 done
4373 if test -z "$CC"; then
4374 ac_ct_CC=$CC
4375 for ac_prog in cl.exe
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$ac_ct_CC" && break
4415 done
4417 if test "x$ac_ct_CC" = x; then
4418 CC=""
4419 else
4420 case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426 CC=$ac_ct_CC
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5; }
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440 set X $ac_compile
4441 ac_compiler=$2
4442 for ac_option in --version -v -V -qversion; do
4443 { { ac_try="$ac_compiler $ac_option >&5"
4444 case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451 ac_status=$?
4452 if test -s conftest.err; then
4453 sed '10a\
4454 ... rest of stderr output deleted ...
4455 10q' conftest.err >conftest.er1
4456 cat conftest.er1 >&5
4458 rm -f conftest.er1 conftest.err
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }
4461 done
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4467 main ()
4471 return 0;
4473 _ACEOF
4474 ac_clean_files_save=$ac_clean_files
4475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4476 # Try to create an executable without -o first, disregard a.out.
4477 # It will help us diagnose broken compilers, and finding out an intuition
4478 # of exeext.
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4480 $as_echo_n "checking whether the C compiler works... " >&6; }
4481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4483 # The possible output files:
4484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4486 ac_rmfiles=
4487 for ac_file in $ac_files
4489 case $ac_file in
4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4492 esac
4493 done
4494 rm -f $ac_rmfiles
4496 if { { ac_try="$ac_link_default"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link_default") 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4510 # so that the user can short-circuit this test for compilers unknown to
4511 # Autoconf.
4512 for ac_file in $ac_files ''
4514 test -f "$ac_file" || continue
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4518 [ab].out )
4519 # We found the default executable, but exeext='' is most
4520 # certainly right.
4521 break;;
4522 *.* )
4523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4524 then :; else
4525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 # We set ac_cv_exeext here because the later test for it is not
4528 # safe: cross compilers may not add the suffix if given an `-o'
4529 # argument, so we may need to know it at that point already.
4530 # Even if this section looks crufty: it has the advantage of
4531 # actually working.
4532 break;;
4534 break;;
4535 esac
4536 done
4537 test "$ac_cv_exeext" = no && ac_cv_exeext=
4539 else
4540 ac_file=''
4542 if test -z "$ac_file"; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error 77 "C compiler cannot create executables
4551 See \`config.log' for more details" "$LINENO" 5; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4557 $as_echo_n "checking for C compiler default output file name... " >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4559 $as_echo "$ac_file" >&6; }
4560 ac_exeext=$ac_cv_exeext
4562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4563 ac_clean_files=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4565 $as_echo_n "checking for suffix of executables... " >&6; }
4566 if { { ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4579 # work properly (i.e., refer to `conftest.exe'), while it won't with
4580 # `rm'.
4581 for ac_file in conftest.exe conftest conftest.*; do
4582 test -f "$ac_file" || continue
4583 case $ac_file in
4584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4586 break;;
4587 * ) break;;
4588 esac
4589 done
4590 else
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4594 See \`config.log' for more details" "$LINENO" 5; }
4596 rm -f conftest conftest$ac_cv_exeext
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4598 $as_echo "$ac_cv_exeext" >&6; }
4600 rm -f conftest.$ac_ext
4601 EXEEXT=$ac_cv_exeext
4602 ac_exeext=$EXEEXT
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <stdio.h>
4607 main ()
4609 FILE *f = fopen ("conftest.out", "w");
4610 return ferror (f) || fclose (f) != 0;
4613 return 0;
4615 _ACEOF
4616 ac_clean_files="$ac_clean_files conftest.out"
4617 # Check that the compiler produces executables we can run. If not, either
4618 # the compiler is broken, or we cross compile.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4620 $as_echo_n "checking whether we are cross compiling... " >&6; }
4621 if test "$cross_compiling" != yes; then
4622 { { ac_try="$ac_link"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_link") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 if { ac_try='./conftest$ac_cv_exeext'
4634 { { case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_try") 2>&5
4641 ac_status=$?
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; }; then
4644 cross_compiling=no
4645 else
4646 if test "$cross_compiling" = maybe; then
4647 cross_compiling=yes
4648 else
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error $? "cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details" "$LINENO" 5; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4658 $as_echo "$cross_compiling" >&6; }
4660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4661 ac_clean_files=$ac_clean_files_save
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4663 $as_echo_n "checking for suffix of object files... " >&6; }
4664 if ${ac_cv_objext+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 main ()
4675 return 0;
4677 _ACEOF
4678 rm -f conftest.o conftest.obj
4679 if { { ac_try="$ac_compile"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_compile") 2>&5
4687 ac_status=$?
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; }; then :
4690 for ac_file in conftest.o conftest.obj conftest.*; do
4691 test -f "$ac_file" || continue;
4692 case $ac_file in
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4695 break;;
4696 esac
4697 done
4698 else
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot compute suffix of object files: cannot compile
4705 See \`config.log' for more details" "$LINENO" 5; }
4707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4710 $as_echo "$ac_cv_objext" >&6; }
4711 OBJEXT=$ac_cv_objext
4712 ac_objext=$OBJEXT
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715 if ${ac_cv_c_compiler_gnu+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4722 main ()
4724 #ifndef __GNUC__
4725 choke me
4726 #endif
4729 return 0;
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733 ac_compiler_gnu=yes
4734 else
4735 ac_compiler_gnu=no
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743 if test $ac_compiler_gnu = yes; then
4744 GCC=yes
4745 else
4746 GCC=
4748 ac_test_CFLAGS=${CFLAGS+set}
4749 ac_save_CFLAGS=$CFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4752 if ${ac_cv_prog_cc_g+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_save_c_werror_flag=$ac_c_werror_flag
4756 ac_c_werror_flag=yes
4757 ac_cv_prog_cc_g=no
4758 CFLAGS="-g"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4763 main ()
4767 return 0;
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_g=yes
4772 else
4773 CFLAGS=""
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4778 main ()
4782 return 0;
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4787 else
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4789 CFLAGS="-g"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4794 main ()
4798 return 0;
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_g=yes
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_c_werror_flag=$ac_save_c_werror_flag
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812 $as_echo "$ac_cv_prog_cc_g" >&6; }
4813 if test "$ac_test_CFLAGS" = set; then
4814 CFLAGS=$ac_save_CFLAGS
4815 elif test $ac_cv_prog_cc_g = yes; then
4816 if test "$GCC" = yes; then
4817 CFLAGS="-g -O2"
4818 else
4819 CFLAGS="-g"
4821 else
4822 if test "$GCC" = yes; then
4823 CFLAGS="-O2"
4824 else
4825 CFLAGS=
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830 if ${ac_cv_prog_cc_c89+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 ac_cv_prog_cc_c89=no
4834 ac_save_CC=$CC
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 #include <stdarg.h>
4838 #include <stdio.h>
4839 struct stat;
4840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4841 struct buf { int x; };
4842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4843 static char *e (p, i)
4844 char **p;
4845 int i;
4847 return p[i];
4849 static char *f (char * (*g) (char **, int), char **p, ...)
4851 char *s;
4852 va_list v;
4853 va_start (v,p);
4854 s = g (p, va_arg (v,int));
4855 va_end (v);
4856 return s;
4859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4860 function prototypes and stuff, but not '\xHH' hex character constants.
4861 These don't provoke an error unfortunately, instead are silently treated
4862 as 'x'. The following induces an error, until -std is added to get
4863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4864 array size at least. It's necessary to write '\x00'==0 to get something
4865 that's true only with -std. */
4866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4869 inside strings and character constants. */
4870 #define FOO(x) 'x'
4871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4873 int test (int i, double x);
4874 struct s1 {int (*f) (int a);};
4875 struct s2 {int (*f) (double a);};
4876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4877 int argc;
4878 char **argv;
4880 main ()
4882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4884 return 0;
4886 _ACEOF
4887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4890 CC="$ac_save_CC $ac_arg"
4891 if ac_fn_c_try_compile "$LINENO"; then :
4892 ac_cv_prog_cc_c89=$ac_arg
4894 rm -f core conftest.err conftest.$ac_objext
4895 test "x$ac_cv_prog_cc_c89" != "xno" && break
4896 done
4897 rm -f conftest.$ac_ext
4898 CC=$ac_save_CC
4901 # AC_CACHE_VAL
4902 case "x$ac_cv_prog_cc_c89" in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4905 $as_echo "none needed" >&6; } ;;
4906 xno)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4908 $as_echo "unsupported" >&6; } ;;
4910 CC="$CC $ac_cv_prog_cc_c89"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913 esac
4914 if test "x$ac_cv_prog_cc_c89" != xno; then :
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 ac_ext=cpp
4925 ac_cpp='$CXXCPP $CPPFLAGS'
4926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929 if test -z "$CXX"; then
4930 if test -n "$CCC"; then
4931 CXX=$CCC
4932 else
4933 if test -n "$ac_tool_prefix"; then
4934 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_CXX+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$CXX"; then
4944 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 CXX=$ac_cv_prog_CXX
4964 if test -n "$CXX"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4966 $as_echo "$CXX" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 test -n "$CXX" && break
4974 done
4976 if test -z "$CXX"; then
4977 ac_ct_CXX=$CXX
4978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981 set dummy $ac_prog; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$ac_ct_CXX"; then
4988 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_ac_ct_CXX="$ac_prog"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5008 if test -n "$ac_ct_CXX"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5010 $as_echo "$ac_ct_CXX" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 test -n "$ac_ct_CXX" && break
5018 done
5020 if test "x$ac_ct_CXX" = x; then
5021 CXX="g++"
5022 else
5023 case $cross_compiling:$ac_tool_warned in
5024 yes:)
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5027 ac_tool_warned=yes ;;
5028 esac
5029 CXX=$ac_ct_CXX
5035 # Provide some information about the compiler.
5036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5037 set X $ac_compile
5038 ac_compiler=$2
5039 for ac_option in --version -v -V -qversion; do
5040 { { ac_try="$ac_compiler $ac_option >&5"
5041 case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5046 $as_echo "$ac_try_echo"; } >&5
5047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5048 ac_status=$?
5049 if test -s conftest.err; then
5050 sed '10a\
5051 ... rest of stderr output deleted ...
5052 10q' conftest.err >conftest.er1
5053 cat conftest.er1 >&5
5055 rm -f conftest.er1 conftest.err
5056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5057 test $ac_status = 0; }
5058 done
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5061 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5062 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5069 main ()
5071 #ifndef __GNUC__
5072 choke me
5073 #endif
5076 return 0;
5078 _ACEOF
5079 if ac_fn_cxx_try_compile "$LINENO"; then :
5080 ac_compiler_gnu=yes
5081 else
5082 ac_compiler_gnu=no
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5089 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5090 if test $ac_compiler_gnu = yes; then
5091 GXX=yes
5092 else
5093 GXX=
5095 ac_test_CXXFLAGS=${CXXFLAGS+set}
5096 ac_save_CXXFLAGS=$CXXFLAGS
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5098 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5099 if ${ac_cv_prog_cxx_g+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5103 ac_cxx_werror_flag=yes
5104 ac_cv_prog_cxx_g=no
5105 CXXFLAGS="-g"
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5110 main ()
5114 return 0;
5116 _ACEOF
5117 if ac_fn_cxx_try_compile "$LINENO"; then :
5118 ac_cv_prog_cxx_g=yes
5119 else
5120 CXXFLAGS=""
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5125 main ()
5129 return 0;
5131 _ACEOF
5132 if ac_fn_cxx_try_compile "$LINENO"; then :
5134 else
5135 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5136 CXXFLAGS="-g"
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5141 main ()
5145 return 0;
5147 _ACEOF
5148 if ac_fn_cxx_try_compile "$LINENO"; then :
5149 ac_cv_prog_cxx_g=yes
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5159 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5160 if test "$ac_test_CXXFLAGS" = set; then
5161 CXXFLAGS=$ac_save_CXXFLAGS
5162 elif test $ac_cv_prog_cxx_g = yes; then
5163 if test "$GXX" = yes; then
5164 CXXFLAGS="-g -O2"
5165 else
5166 CXXFLAGS="-g"
5168 else
5169 if test "$GXX" = yes; then
5170 CXXFLAGS="-O2"
5171 else
5172 CXXFLAGS=
5175 ac_ext=c
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182 # We must set the default linker to the linker used by gcc for the correct
5183 # operation of libtool. If LD is not defined and we are using gcc, try to
5184 # set the LD default to the ld used by gcc.
5185 if test -z "$LD"; then
5186 if test "$GCC" = yes; then
5187 case $build in
5188 *-*-mingw*)
5189 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5191 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5192 esac
5193 case $gcc_prog_ld in
5194 # Accept absolute paths.
5195 [\\/]* | [A-Za-z]:[\\/]*)
5196 LD="$gcc_prog_ld" ;;
5197 esac
5201 # Check whether -static-libstdc++ -static-libgcc is supported.
5202 have_static_libs=no
5203 if test "$GCC" = yes; then
5204 saved_LDFLAGS="$LDFLAGS"
5206 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5208 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5209 ac_ext=cpp
5210 ac_cpp='$CXXCPP $CPPFLAGS'
5211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5219 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5220 #error -static-libstdc++ not implemented
5221 #endif
5222 int main() {}
5223 _ACEOF
5224 if ac_fn_cxx_try_link "$LINENO"; then :
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }; have_static_libs=yes
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5231 rm -f core conftest.err conftest.$ac_objext \
5232 conftest$ac_exeext conftest.$ac_ext
5233 ac_ext=c
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5240 LDFLAGS="$saved_LDFLAGS"
5246 if test -n "$ac_tool_prefix"; then
5247 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5248 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_prog_GNATBIND+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if test -n "$GNATBIND"; then
5255 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5268 done
5269 done
5270 IFS=$as_save_IFS
5274 GNATBIND=$ac_cv_prog_GNATBIND
5275 if test -n "$GNATBIND"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5277 $as_echo "$GNATBIND" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5285 if test -z "$ac_cv_prog_GNATBIND"; then
5286 ac_ct_GNATBIND=$GNATBIND
5287 # Extract the first word of "gnatbind", so it can be a program name with args.
5288 set dummy gnatbind; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$ac_ct_GNATBIND"; then
5295 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5315 if test -n "$ac_ct_GNATBIND"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5317 $as_echo "$ac_ct_GNATBIND" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5323 if test "x$ac_ct_GNATBIND" = x; then
5324 GNATBIND="no"
5325 else
5326 case $cross_compiling:$ac_tool_warned in
5327 yes:)
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5330 ac_tool_warned=yes ;;
5331 esac
5332 GNATBIND=$ac_ct_GNATBIND
5334 else
5335 GNATBIND="$ac_cv_prog_GNATBIND"
5338 if test -n "$ac_tool_prefix"; then
5339 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5340 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_GNATMAKE+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$GNATMAKE"; then
5347 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5362 IFS=$as_save_IFS
5366 GNATMAKE=$ac_cv_prog_GNATMAKE
5367 if test -n "$GNATMAKE"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5369 $as_echo "$GNATMAKE" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5377 if test -z "$ac_cv_prog_GNATMAKE"; then
5378 ac_ct_GNATMAKE=$GNATMAKE
5379 # Extract the first word of "gnatmake", so it can be a program name with args.
5380 set dummy gnatmake; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$ac_ct_GNATMAKE"; then
5387 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5406 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5407 if test -n "$ac_ct_GNATMAKE"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5409 $as_echo "$ac_ct_GNATMAKE" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5415 if test "x$ac_ct_GNATMAKE" = x; then
5416 GNATMAKE="no"
5417 else
5418 case $cross_compiling:$ac_tool_warned in
5419 yes:)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5422 ac_tool_warned=yes ;;
5423 esac
5424 GNATMAKE=$ac_ct_GNATMAKE
5426 else
5427 GNATMAKE="$ac_cv_prog_GNATMAKE"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5431 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5432 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 cat >conftest.adb <<EOF
5436 procedure conftest is begin null; end conftest;
5438 acx_cv_cc_gcc_supports_ada=no
5439 # There is a bug in old released versions of GCC which causes the
5440 # driver to exit successfully when the appropriate language module
5441 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5442 # Therefore we must check for the error message as well as an
5443 # unsuccessful exit.
5444 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5445 # given a .adb file, but produce no object file. So we must check
5446 # if an object file was really produced to guard against this.
5447 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5448 if test x"$errors" = x && test -f conftest.$ac_objext; then
5449 acx_cv_cc_gcc_supports_ada=yes
5451 rm -f conftest.*
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5454 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5456 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5457 have_gnat=yes
5458 else
5459 have_gnat=no
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5463 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5464 if ${gcc_cv_prog_cmp_skip+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 echo abfoo >t1
5468 echo cdfoo >t2
5469 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5470 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5471 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5473 else
5474 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5477 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5478 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5480 else
5481 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5484 rm t1 t2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5488 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5489 do_compare="$gcc_cv_prog_cmp_skip"
5493 # Check whether --enable-bootstrap was given.
5494 if test "${enable_bootstrap+set}" = set; then :
5495 enableval=$enable_bootstrap;
5496 else
5497 enable_bootstrap=default
5501 # Issue errors and warnings for invalid/strange bootstrap combinations.
5502 if test -r $srcdir/gcc/configure; then
5503 have_compiler=yes
5504 else
5505 have_compiler=no
5508 case "$have_compiler:$host:$target:$enable_bootstrap" in
5509 *:*:*:no) ;;
5511 # Default behavior. Enable bootstrap if we have a compiler
5512 # and we are in a native configuration.
5513 yes:$build:$build:default)
5514 enable_bootstrap=yes ;;
5516 *:*:*:default)
5517 enable_bootstrap=no ;;
5519 # We have a compiler and we are in a native configuration, bootstrap is ok
5520 yes:$build:$build:yes)
5523 # Other configurations, but we have a compiler. Assume the user knows
5524 # what he's doing.
5525 yes:*:*:yes)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5527 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5530 # No compiler: if they passed --enable-bootstrap explicitly, fail
5531 no:*:*:yes)
5532 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5534 # Fail if wrong command line
5536 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5538 esac
5540 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5541 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5542 # require C++11 (or higher).
5543 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5544 CXX="$CXX -std=c++11"
5545 elif test "$have_compiler" = yes; then
5546 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5547 ac_ext=cpp
5548 ac_cpp='$CXXCPP $CPPFLAGS'
5549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5552 ac_success=no
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5555 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5556 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5563 // If the compiler admits that it is not ready for C++11, why torture it?
5564 // Hopefully, this will speed up the test.
5566 #ifndef __cplusplus
5568 #error "This is not a C++ compiler"
5570 #elif __cplusplus < 201103L
5572 #error "This is not a C++11 compiler"
5574 #else
5576 namespace cxx11
5579 namespace test_static_assert
5582 template <typename T>
5583 struct check
5585 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5590 namespace test_final_override
5593 struct Base
5595 virtual ~Base() {}
5596 virtual void f() {}
5599 struct Derived : public Base
5601 virtual ~Derived() override {}
5602 virtual void f() override {}
5607 namespace test_double_right_angle_brackets
5610 template < typename T >
5611 struct check {};
5613 typedef check<void> single_type;
5614 typedef check<check<void>> double_type;
5615 typedef check<check<check<void>>> triple_type;
5616 typedef check<check<check<check<void>>>> quadruple_type;
5620 namespace test_decltype
5626 int a = 1;
5627 decltype(a) b = 2;
5628 return a + b;
5633 namespace test_type_deduction
5636 template < typename T1, typename T2 >
5637 struct is_same
5639 static const bool value = false;
5642 template < typename T >
5643 struct is_same<T, T>
5645 static const bool value = true;
5648 template < typename T1, typename T2 >
5649 auto
5650 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5652 return a1 + a2;
5656 test(const int c, volatile int v)
5658 static_assert(is_same<int, decltype(0)>::value == true, "");
5659 static_assert(is_same<int, decltype(c)>::value == false, "");
5660 static_assert(is_same<int, decltype(v)>::value == false, "");
5661 auto ac = c;
5662 auto av = v;
5663 auto sumi = ac + av + 'x';
5664 auto sumf = ac + av + 1.0;
5665 static_assert(is_same<int, decltype(ac)>::value == true, "");
5666 static_assert(is_same<int, decltype(av)>::value == true, "");
5667 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5668 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5669 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5670 return (sumf > 0.0) ? sumi : add(c, v);
5675 namespace test_noexcept
5678 int f() { return 0; }
5679 int g() noexcept { return 0; }
5681 static_assert(noexcept(f()) == false, "");
5682 static_assert(noexcept(g()) == true, "");
5686 namespace test_constexpr
5689 template < typename CharT >
5690 unsigned long constexpr
5691 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5693 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5696 template < typename CharT >
5697 unsigned long constexpr
5698 strlen_c(const CharT *const s) noexcept
5700 return strlen_c_r(s, 0UL);
5703 static_assert(strlen_c("") == 0UL, "");
5704 static_assert(strlen_c("1") == 1UL, "");
5705 static_assert(strlen_c("example") == 7UL, "");
5706 static_assert(strlen_c("another\0example") == 7UL, "");
5710 namespace test_rvalue_references
5713 template < int N >
5714 struct answer
5716 static constexpr int value = N;
5719 answer<1> f(int&) { return answer<1>(); }
5720 answer<2> f(const int&) { return answer<2>(); }
5721 answer<3> f(int&&) { return answer<3>(); }
5723 void
5724 test()
5726 int i = 0;
5727 const int c = 0;
5728 static_assert(decltype(f(i))::value == 1, "");
5729 static_assert(decltype(f(c))::value == 2, "");
5730 static_assert(decltype(f(0))::value == 3, "");
5735 namespace test_uniform_initialization
5738 struct test
5740 static const int zero {};
5741 static const int one {1};
5744 static_assert(test::zero == 0, "");
5745 static_assert(test::one == 1, "");
5749 namespace test_lambdas
5752 void
5753 test1()
5755 auto lambda1 = [](){};
5756 auto lambda2 = lambda1;
5757 lambda1();
5758 lambda2();
5762 test2()
5764 auto a = [](int i, int j){ return i + j; }(1, 2);
5765 auto b = []() -> int { return '0'; }();
5766 auto c = [=](){ return a + b; }();
5767 auto d = [&](){ return c; }();
5768 auto e = [a, &b](int x) mutable {
5769 const auto identity = [](int y){ return y; };
5770 for (auto i = 0; i < a; ++i)
5771 a += b--;
5772 return x + identity(a + b);
5773 }(0);
5774 return a + b + c + d + e;
5778 test3()
5780 const auto nullary = [](){ return 0; };
5781 const auto unary = [](int x){ return x; };
5782 using nullary_t = decltype(nullary);
5783 using unary_t = decltype(unary);
5784 const auto higher1st = [](nullary_t f){ return f(); };
5785 const auto higher2nd = [unary](nullary_t f1){
5786 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5788 return higher1st(nullary) + higher2nd(nullary)(unary);
5793 namespace test_variadic_templates
5796 template <int...>
5797 struct sum;
5799 template <int N0, int... N1toN>
5800 struct sum<N0, N1toN...>
5802 static constexpr auto value = N0 + sum<N1toN...>::value;
5805 template <>
5806 struct sum<>
5808 static constexpr auto value = 0;
5811 static_assert(sum<>::value == 0, "");
5812 static_assert(sum<1>::value == 1, "");
5813 static_assert(sum<23>::value == 23, "");
5814 static_assert(sum<1, 2>::value == 3, "");
5815 static_assert(sum<5, 5, 11>::value == 21, "");
5816 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5820 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5821 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5822 // because of this.
5823 namespace test_template_alias_sfinae
5826 struct foo {};
5828 template<typename T>
5829 using member = typename T::member_type;
5831 template<typename T>
5832 void func(...) {}
5834 template<typename T>
5835 void func(member<T>*) {}
5837 void test();
5839 void test() { func<foo>(0); }
5843 } // namespace cxx11
5845 #endif // __cplusplus >= 201103L
5849 _ACEOF
5850 if ac_fn_cxx_try_compile "$LINENO"; then :
5851 ax_cv_cxx_compile_cxx11=yes
5852 else
5853 ax_cv_cxx_compile_cxx11=no
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5858 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5859 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5860 ac_success=yes
5863 if test x$ac_success = xno; then
5864 for alternative in ${ax_cxx_compile_alternatives}; do
5865 switch="-std=gnu++${alternative}"
5866 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5868 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5869 if eval \${$cachevar+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 ac_save_CXX="$CXX"
5873 CXX="$CXX $switch"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5878 // If the compiler admits that it is not ready for C++11, why torture it?
5879 // Hopefully, this will speed up the test.
5881 #ifndef __cplusplus
5883 #error "This is not a C++ compiler"
5885 #elif __cplusplus < 201103L
5887 #error "This is not a C++11 compiler"
5889 #else
5891 namespace cxx11
5894 namespace test_static_assert
5897 template <typename T>
5898 struct check
5900 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5905 namespace test_final_override
5908 struct Base
5910 virtual ~Base() {}
5911 virtual void f() {}
5914 struct Derived : public Base
5916 virtual ~Derived() override {}
5917 virtual void f() override {}
5922 namespace test_double_right_angle_brackets
5925 template < typename T >
5926 struct check {};
5928 typedef check<void> single_type;
5929 typedef check<check<void>> double_type;
5930 typedef check<check<check<void>>> triple_type;
5931 typedef check<check<check<check<void>>>> quadruple_type;
5935 namespace test_decltype
5941 int a = 1;
5942 decltype(a) b = 2;
5943 return a + b;
5948 namespace test_type_deduction
5951 template < typename T1, typename T2 >
5952 struct is_same
5954 static const bool value = false;
5957 template < typename T >
5958 struct is_same<T, T>
5960 static const bool value = true;
5963 template < typename T1, typename T2 >
5964 auto
5965 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5967 return a1 + a2;
5971 test(const int c, volatile int v)
5973 static_assert(is_same<int, decltype(0)>::value == true, "");
5974 static_assert(is_same<int, decltype(c)>::value == false, "");
5975 static_assert(is_same<int, decltype(v)>::value == false, "");
5976 auto ac = c;
5977 auto av = v;
5978 auto sumi = ac + av + 'x';
5979 auto sumf = ac + av + 1.0;
5980 static_assert(is_same<int, decltype(ac)>::value == true, "");
5981 static_assert(is_same<int, decltype(av)>::value == true, "");
5982 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5983 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5984 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5985 return (sumf > 0.0) ? sumi : add(c, v);
5990 namespace test_noexcept
5993 int f() { return 0; }
5994 int g() noexcept { return 0; }
5996 static_assert(noexcept(f()) == false, "");
5997 static_assert(noexcept(g()) == true, "");
6001 namespace test_constexpr
6004 template < typename CharT >
6005 unsigned long constexpr
6006 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6008 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6011 template < typename CharT >
6012 unsigned long constexpr
6013 strlen_c(const CharT *const s) noexcept
6015 return strlen_c_r(s, 0UL);
6018 static_assert(strlen_c("") == 0UL, "");
6019 static_assert(strlen_c("1") == 1UL, "");
6020 static_assert(strlen_c("example") == 7UL, "");
6021 static_assert(strlen_c("another\0example") == 7UL, "");
6025 namespace test_rvalue_references
6028 template < int N >
6029 struct answer
6031 static constexpr int value = N;
6034 answer<1> f(int&) { return answer<1>(); }
6035 answer<2> f(const int&) { return answer<2>(); }
6036 answer<3> f(int&&) { return answer<3>(); }
6038 void
6039 test()
6041 int i = 0;
6042 const int c = 0;
6043 static_assert(decltype(f(i))::value == 1, "");
6044 static_assert(decltype(f(c))::value == 2, "");
6045 static_assert(decltype(f(0))::value == 3, "");
6050 namespace test_uniform_initialization
6053 struct test
6055 static const int zero {};
6056 static const int one {1};
6059 static_assert(test::zero == 0, "");
6060 static_assert(test::one == 1, "");
6064 namespace test_lambdas
6067 void
6068 test1()
6070 auto lambda1 = [](){};
6071 auto lambda2 = lambda1;
6072 lambda1();
6073 lambda2();
6077 test2()
6079 auto a = [](int i, int j){ return i + j; }(1, 2);
6080 auto b = []() -> int { return '0'; }();
6081 auto c = [=](){ return a + b; }();
6082 auto d = [&](){ return c; }();
6083 auto e = [a, &b](int x) mutable {
6084 const auto identity = [](int y){ return y; };
6085 for (auto i = 0; i < a; ++i)
6086 a += b--;
6087 return x + identity(a + b);
6088 }(0);
6089 return a + b + c + d + e;
6093 test3()
6095 const auto nullary = [](){ return 0; };
6096 const auto unary = [](int x){ return x; };
6097 using nullary_t = decltype(nullary);
6098 using unary_t = decltype(unary);
6099 const auto higher1st = [](nullary_t f){ return f(); };
6100 const auto higher2nd = [unary](nullary_t f1){
6101 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6103 return higher1st(nullary) + higher2nd(nullary)(unary);
6108 namespace test_variadic_templates
6111 template <int...>
6112 struct sum;
6114 template <int N0, int... N1toN>
6115 struct sum<N0, N1toN...>
6117 static constexpr auto value = N0 + sum<N1toN...>::value;
6120 template <>
6121 struct sum<>
6123 static constexpr auto value = 0;
6126 static_assert(sum<>::value == 0, "");
6127 static_assert(sum<1>::value == 1, "");
6128 static_assert(sum<23>::value == 23, "");
6129 static_assert(sum<1, 2>::value == 3, "");
6130 static_assert(sum<5, 5, 11>::value == 21, "");
6131 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6135 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6136 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6137 // because of this.
6138 namespace test_template_alias_sfinae
6141 struct foo {};
6143 template<typename T>
6144 using member = typename T::member_type;
6146 template<typename T>
6147 void func(...) {}
6149 template<typename T>
6150 void func(member<T>*) {}
6152 void test();
6154 void test() { func<foo>(0); }
6158 } // namespace cxx11
6160 #endif // __cplusplus >= 201103L
6164 _ACEOF
6165 if ac_fn_cxx_try_compile "$LINENO"; then :
6166 eval $cachevar=yes
6167 else
6168 eval $cachevar=no
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 CXX="$ac_save_CXX"
6173 eval ac_res=\$$cachevar
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6175 $as_echo "$ac_res" >&6; }
6176 if eval test x\$$cachevar = xyes; then
6177 CXX="$CXX $switch"
6178 if test -n "$CXXCPP" ; then
6179 CXXCPP="$CXXCPP $switch"
6181 ac_success=yes
6182 break
6184 done
6187 if test x$ac_success = xno; then
6188 for alternative in ${ax_cxx_compile_alternatives}; do
6189 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6190 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6192 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6193 if eval \${$cachevar+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 ac_save_CXX="$CXX"
6197 CXX="$CXX $switch"
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6202 // If the compiler admits that it is not ready for C++11, why torture it?
6203 // Hopefully, this will speed up the test.
6205 #ifndef __cplusplus
6207 #error "This is not a C++ compiler"
6209 #elif __cplusplus < 201103L
6211 #error "This is not a C++11 compiler"
6213 #else
6215 namespace cxx11
6218 namespace test_static_assert
6221 template <typename T>
6222 struct check
6224 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6229 namespace test_final_override
6232 struct Base
6234 virtual ~Base() {}
6235 virtual void f() {}
6238 struct Derived : public Base
6240 virtual ~Derived() override {}
6241 virtual void f() override {}
6246 namespace test_double_right_angle_brackets
6249 template < typename T >
6250 struct check {};
6252 typedef check<void> single_type;
6253 typedef check<check<void>> double_type;
6254 typedef check<check<check<void>>> triple_type;
6255 typedef check<check<check<check<void>>>> quadruple_type;
6259 namespace test_decltype
6265 int a = 1;
6266 decltype(a) b = 2;
6267 return a + b;
6272 namespace test_type_deduction
6275 template < typename T1, typename T2 >
6276 struct is_same
6278 static const bool value = false;
6281 template < typename T >
6282 struct is_same<T, T>
6284 static const bool value = true;
6287 template < typename T1, typename T2 >
6288 auto
6289 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6291 return a1 + a2;
6295 test(const int c, volatile int v)
6297 static_assert(is_same<int, decltype(0)>::value == true, "");
6298 static_assert(is_same<int, decltype(c)>::value == false, "");
6299 static_assert(is_same<int, decltype(v)>::value == false, "");
6300 auto ac = c;
6301 auto av = v;
6302 auto sumi = ac + av + 'x';
6303 auto sumf = ac + av + 1.0;
6304 static_assert(is_same<int, decltype(ac)>::value == true, "");
6305 static_assert(is_same<int, decltype(av)>::value == true, "");
6306 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6307 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6308 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6309 return (sumf > 0.0) ? sumi : add(c, v);
6314 namespace test_noexcept
6317 int f() { return 0; }
6318 int g() noexcept { return 0; }
6320 static_assert(noexcept(f()) == false, "");
6321 static_assert(noexcept(g()) == true, "");
6325 namespace test_constexpr
6328 template < typename CharT >
6329 unsigned long constexpr
6330 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6332 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6335 template < typename CharT >
6336 unsigned long constexpr
6337 strlen_c(const CharT *const s) noexcept
6339 return strlen_c_r(s, 0UL);
6342 static_assert(strlen_c("") == 0UL, "");
6343 static_assert(strlen_c("1") == 1UL, "");
6344 static_assert(strlen_c("example") == 7UL, "");
6345 static_assert(strlen_c("another\0example") == 7UL, "");
6349 namespace test_rvalue_references
6352 template < int N >
6353 struct answer
6355 static constexpr int value = N;
6358 answer<1> f(int&) { return answer<1>(); }
6359 answer<2> f(const int&) { return answer<2>(); }
6360 answer<3> f(int&&) { return answer<3>(); }
6362 void
6363 test()
6365 int i = 0;
6366 const int c = 0;
6367 static_assert(decltype(f(i))::value == 1, "");
6368 static_assert(decltype(f(c))::value == 2, "");
6369 static_assert(decltype(f(0))::value == 3, "");
6374 namespace test_uniform_initialization
6377 struct test
6379 static const int zero {};
6380 static const int one {1};
6383 static_assert(test::zero == 0, "");
6384 static_assert(test::one == 1, "");
6388 namespace test_lambdas
6391 void
6392 test1()
6394 auto lambda1 = [](){};
6395 auto lambda2 = lambda1;
6396 lambda1();
6397 lambda2();
6401 test2()
6403 auto a = [](int i, int j){ return i + j; }(1, 2);
6404 auto b = []() -> int { return '0'; }();
6405 auto c = [=](){ return a + b; }();
6406 auto d = [&](){ return c; }();
6407 auto e = [a, &b](int x) mutable {
6408 const auto identity = [](int y){ return y; };
6409 for (auto i = 0; i < a; ++i)
6410 a += b--;
6411 return x + identity(a + b);
6412 }(0);
6413 return a + b + c + d + e;
6417 test3()
6419 const auto nullary = [](){ return 0; };
6420 const auto unary = [](int x){ return x; };
6421 using nullary_t = decltype(nullary);
6422 using unary_t = decltype(unary);
6423 const auto higher1st = [](nullary_t f){ return f(); };
6424 const auto higher2nd = [unary](nullary_t f1){
6425 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6427 return higher1st(nullary) + higher2nd(nullary)(unary);
6432 namespace test_variadic_templates
6435 template <int...>
6436 struct sum;
6438 template <int N0, int... N1toN>
6439 struct sum<N0, N1toN...>
6441 static constexpr auto value = N0 + sum<N1toN...>::value;
6444 template <>
6445 struct sum<>
6447 static constexpr auto value = 0;
6450 static_assert(sum<>::value == 0, "");
6451 static_assert(sum<1>::value == 1, "");
6452 static_assert(sum<23>::value == 23, "");
6453 static_assert(sum<1, 2>::value == 3, "");
6454 static_assert(sum<5, 5, 11>::value == 21, "");
6455 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6459 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6460 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6461 // because of this.
6462 namespace test_template_alias_sfinae
6465 struct foo {};
6467 template<typename T>
6468 using member = typename T::member_type;
6470 template<typename T>
6471 void func(...) {}
6473 template<typename T>
6474 void func(member<T>*) {}
6476 void test();
6478 void test() { func<foo>(0); }
6482 } // namespace cxx11
6484 #endif // __cplusplus >= 201103L
6488 _ACEOF
6489 if ac_fn_cxx_try_compile "$LINENO"; then :
6490 eval $cachevar=yes
6491 else
6492 eval $cachevar=no
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 CXX="$ac_save_CXX"
6497 eval ac_res=\$$cachevar
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6499 $as_echo "$ac_res" >&6; }
6500 if eval test x\$$cachevar = xyes; then
6501 CXX="$CXX $switch"
6502 if test -n "$CXXCPP" ; then
6503 CXXCPP="$CXXCPP $switch"
6505 ac_success=yes
6506 break
6508 done
6509 if test x$ac_success = xyes; then
6510 break
6512 done
6515 ac_ext=c
6516 ac_cpp='$CPP $CPPFLAGS'
6517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6522 if test x$ac_success = xno; then
6523 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6526 if test x$ac_success = xno; then
6527 HAVE_CXX11=0
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6529 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6530 else
6531 HAVE_CXX11=1
6533 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6539 if test "${build}" != "${host}"; then
6540 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6541 ac_ext=cpp
6542 ac_cpp='$CXXCPP $CPPFLAGS'
6543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6546 ac_success=no
6547 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6548 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6549 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6550 CXX="$CXX_FOR_BUILD"
6551 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6552 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6554 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6555 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6562 // If the compiler admits that it is not ready for C++11, why torture it?
6563 // Hopefully, this will speed up the test.
6565 #ifndef __cplusplus
6567 #error "This is not a C++ compiler"
6569 #elif __cplusplus < 201103L
6571 #error "This is not a C++11 compiler"
6573 #else
6575 namespace cxx11
6578 namespace test_static_assert
6581 template <typename T>
6582 struct check
6584 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6589 namespace test_final_override
6592 struct Base
6594 virtual ~Base() {}
6595 virtual void f() {}
6598 struct Derived : public Base
6600 virtual ~Derived() override {}
6601 virtual void f() override {}
6606 namespace test_double_right_angle_brackets
6609 template < typename T >
6610 struct check {};
6612 typedef check<void> single_type;
6613 typedef check<check<void>> double_type;
6614 typedef check<check<check<void>>> triple_type;
6615 typedef check<check<check<check<void>>>> quadruple_type;
6619 namespace test_decltype
6625 int a = 1;
6626 decltype(a) b = 2;
6627 return a + b;
6632 namespace test_type_deduction
6635 template < typename T1, typename T2 >
6636 struct is_same
6638 static const bool value = false;
6641 template < typename T >
6642 struct is_same<T, T>
6644 static const bool value = true;
6647 template < typename T1, typename T2 >
6648 auto
6649 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6651 return a1 + a2;
6655 test(const int c, volatile int v)
6657 static_assert(is_same<int, decltype(0)>::value == true, "");
6658 static_assert(is_same<int, decltype(c)>::value == false, "");
6659 static_assert(is_same<int, decltype(v)>::value == false, "");
6660 auto ac = c;
6661 auto av = v;
6662 auto sumi = ac + av + 'x';
6663 auto sumf = ac + av + 1.0;
6664 static_assert(is_same<int, decltype(ac)>::value == true, "");
6665 static_assert(is_same<int, decltype(av)>::value == true, "");
6666 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6667 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6668 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6669 return (sumf > 0.0) ? sumi : add(c, v);
6674 namespace test_noexcept
6677 int f() { return 0; }
6678 int g() noexcept { return 0; }
6680 static_assert(noexcept(f()) == false, "");
6681 static_assert(noexcept(g()) == true, "");
6685 namespace test_constexpr
6688 template < typename CharT >
6689 unsigned long constexpr
6690 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6692 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6695 template < typename CharT >
6696 unsigned long constexpr
6697 strlen_c(const CharT *const s) noexcept
6699 return strlen_c_r(s, 0UL);
6702 static_assert(strlen_c("") == 0UL, "");
6703 static_assert(strlen_c("1") == 1UL, "");
6704 static_assert(strlen_c("example") == 7UL, "");
6705 static_assert(strlen_c("another\0example") == 7UL, "");
6709 namespace test_rvalue_references
6712 template < int N >
6713 struct answer
6715 static constexpr int value = N;
6718 answer<1> f(int&) { return answer<1>(); }
6719 answer<2> f(const int&) { return answer<2>(); }
6720 answer<3> f(int&&) { return answer<3>(); }
6722 void
6723 test()
6725 int i = 0;
6726 const int c = 0;
6727 static_assert(decltype(f(i))::value == 1, "");
6728 static_assert(decltype(f(c))::value == 2, "");
6729 static_assert(decltype(f(0))::value == 3, "");
6734 namespace test_uniform_initialization
6737 struct test
6739 static const int zero {};
6740 static const int one {1};
6743 static_assert(test::zero == 0, "");
6744 static_assert(test::one == 1, "");
6748 namespace test_lambdas
6751 void
6752 test1()
6754 auto lambda1 = [](){};
6755 auto lambda2 = lambda1;
6756 lambda1();
6757 lambda2();
6761 test2()
6763 auto a = [](int i, int j){ return i + j; }(1, 2);
6764 auto b = []() -> int { return '0'; }();
6765 auto c = [=](){ return a + b; }();
6766 auto d = [&](){ return c; }();
6767 auto e = [a, &b](int x) mutable {
6768 const auto identity = [](int y){ return y; };
6769 for (auto i = 0; i < a; ++i)
6770 a += b--;
6771 return x + identity(a + b);
6772 }(0);
6773 return a + b + c + d + e;
6777 test3()
6779 const auto nullary = [](){ return 0; };
6780 const auto unary = [](int x){ return x; };
6781 using nullary_t = decltype(nullary);
6782 using unary_t = decltype(unary);
6783 const auto higher1st = [](nullary_t f){ return f(); };
6784 const auto higher2nd = [unary](nullary_t f1){
6785 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6787 return higher1st(nullary) + higher2nd(nullary)(unary);
6792 namespace test_variadic_templates
6795 template <int...>
6796 struct sum;
6798 template <int N0, int... N1toN>
6799 struct sum<N0, N1toN...>
6801 static constexpr auto value = N0 + sum<N1toN...>::value;
6804 template <>
6805 struct sum<>
6807 static constexpr auto value = 0;
6810 static_assert(sum<>::value == 0, "");
6811 static_assert(sum<1>::value == 1, "");
6812 static_assert(sum<23>::value == 23, "");
6813 static_assert(sum<1, 2>::value == 3, "");
6814 static_assert(sum<5, 5, 11>::value == 21, "");
6815 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6819 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6820 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6821 // because of this.
6822 namespace test_template_alias_sfinae
6825 struct foo {};
6827 template<typename T>
6828 using member = typename T::member_type;
6830 template<typename T>
6831 void func(...) {}
6833 template<typename T>
6834 void func(member<T>*) {}
6836 void test();
6838 void test() { func<foo>(0); }
6842 } // namespace cxx11
6844 #endif // __cplusplus >= 201103L
6848 _ACEOF
6849 if ac_fn_cxx_try_compile "$LINENO"; then :
6850 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
6851 else
6852 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
6857 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
6858 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
6859 ac_success=yes
6862 if test x$ac_success = xno; then
6863 for alternative in ${ax_cxx_compile_alternatives}; do
6864 switch="-std=gnu++${alternative}"
6865 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6867 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6868 if eval \${$cachevar+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 ac_save_CXX="$CXX"
6872 CXX="$CXX $switch"
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6877 // If the compiler admits that it is not ready for C++11, why torture it?
6878 // Hopefully, this will speed up the test.
6880 #ifndef __cplusplus
6882 #error "This is not a C++ compiler"
6884 #elif __cplusplus < 201103L
6886 #error "This is not a C++11 compiler"
6888 #else
6890 namespace cxx11
6893 namespace test_static_assert
6896 template <typename T>
6897 struct check
6899 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6904 namespace test_final_override
6907 struct Base
6909 virtual ~Base() {}
6910 virtual void f() {}
6913 struct Derived : public Base
6915 virtual ~Derived() override {}
6916 virtual void f() override {}
6921 namespace test_double_right_angle_brackets
6924 template < typename T >
6925 struct check {};
6927 typedef check<void> single_type;
6928 typedef check<check<void>> double_type;
6929 typedef check<check<check<void>>> triple_type;
6930 typedef check<check<check<check<void>>>> quadruple_type;
6934 namespace test_decltype
6940 int a = 1;
6941 decltype(a) b = 2;
6942 return a + b;
6947 namespace test_type_deduction
6950 template < typename T1, typename T2 >
6951 struct is_same
6953 static const bool value = false;
6956 template < typename T >
6957 struct is_same<T, T>
6959 static const bool value = true;
6962 template < typename T1, typename T2 >
6963 auto
6964 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6966 return a1 + a2;
6970 test(const int c, volatile int v)
6972 static_assert(is_same<int, decltype(0)>::value == true, "");
6973 static_assert(is_same<int, decltype(c)>::value == false, "");
6974 static_assert(is_same<int, decltype(v)>::value == false, "");
6975 auto ac = c;
6976 auto av = v;
6977 auto sumi = ac + av + 'x';
6978 auto sumf = ac + av + 1.0;
6979 static_assert(is_same<int, decltype(ac)>::value == true, "");
6980 static_assert(is_same<int, decltype(av)>::value == true, "");
6981 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6982 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6983 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6984 return (sumf > 0.0) ? sumi : add(c, v);
6989 namespace test_noexcept
6992 int f() { return 0; }
6993 int g() noexcept { return 0; }
6995 static_assert(noexcept(f()) == false, "");
6996 static_assert(noexcept(g()) == true, "");
7000 namespace test_constexpr
7003 template < typename CharT >
7004 unsigned long constexpr
7005 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7007 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7010 template < typename CharT >
7011 unsigned long constexpr
7012 strlen_c(const CharT *const s) noexcept
7014 return strlen_c_r(s, 0UL);
7017 static_assert(strlen_c("") == 0UL, "");
7018 static_assert(strlen_c("1") == 1UL, "");
7019 static_assert(strlen_c("example") == 7UL, "");
7020 static_assert(strlen_c("another\0example") == 7UL, "");
7024 namespace test_rvalue_references
7027 template < int N >
7028 struct answer
7030 static constexpr int value = N;
7033 answer<1> f(int&) { return answer<1>(); }
7034 answer<2> f(const int&) { return answer<2>(); }
7035 answer<3> f(int&&) { return answer<3>(); }
7037 void
7038 test()
7040 int i = 0;
7041 const int c = 0;
7042 static_assert(decltype(f(i))::value == 1, "");
7043 static_assert(decltype(f(c))::value == 2, "");
7044 static_assert(decltype(f(0))::value == 3, "");
7049 namespace test_uniform_initialization
7052 struct test
7054 static const int zero {};
7055 static const int one {1};
7058 static_assert(test::zero == 0, "");
7059 static_assert(test::one == 1, "");
7063 namespace test_lambdas
7066 void
7067 test1()
7069 auto lambda1 = [](){};
7070 auto lambda2 = lambda1;
7071 lambda1();
7072 lambda2();
7076 test2()
7078 auto a = [](int i, int j){ return i + j; }(1, 2);
7079 auto b = []() -> int { return '0'; }();
7080 auto c = [=](){ return a + b; }();
7081 auto d = [&](){ return c; }();
7082 auto e = [a, &b](int x) mutable {
7083 const auto identity = [](int y){ return y; };
7084 for (auto i = 0; i < a; ++i)
7085 a += b--;
7086 return x + identity(a + b);
7087 }(0);
7088 return a + b + c + d + e;
7092 test3()
7094 const auto nullary = [](){ return 0; };
7095 const auto unary = [](int x){ return x; };
7096 using nullary_t = decltype(nullary);
7097 using unary_t = decltype(unary);
7098 const auto higher1st = [](nullary_t f){ return f(); };
7099 const auto higher2nd = [unary](nullary_t f1){
7100 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7102 return higher1st(nullary) + higher2nd(nullary)(unary);
7107 namespace test_variadic_templates
7110 template <int...>
7111 struct sum;
7113 template <int N0, int... N1toN>
7114 struct sum<N0, N1toN...>
7116 static constexpr auto value = N0 + sum<N1toN...>::value;
7119 template <>
7120 struct sum<>
7122 static constexpr auto value = 0;
7125 static_assert(sum<>::value == 0, "");
7126 static_assert(sum<1>::value == 1, "");
7127 static_assert(sum<23>::value == 23, "");
7128 static_assert(sum<1, 2>::value == 3, "");
7129 static_assert(sum<5, 5, 11>::value == 21, "");
7130 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7134 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7135 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7136 // because of this.
7137 namespace test_template_alias_sfinae
7140 struct foo {};
7142 template<typename T>
7143 using member = typename T::member_type;
7145 template<typename T>
7146 void func(...) {}
7148 template<typename T>
7149 void func(member<T>*) {}
7151 void test();
7153 void test() { func<foo>(0); }
7157 } // namespace cxx11
7159 #endif // __cplusplus >= 201103L
7163 _ACEOF
7164 if ac_fn_cxx_try_compile "$LINENO"; then :
7165 eval $cachevar=yes
7166 else
7167 eval $cachevar=no
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 CXX="$ac_save_CXX"
7172 eval ac_res=\$$cachevar
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7174 $as_echo "$ac_res" >&6; }
7175 if eval test x\$$cachevar = xyes; then
7176 CXX="$CXX $switch"
7177 if test -n "$CXXCPP" ; then
7178 CXXCPP="$CXXCPP $switch"
7180 ac_success=yes
7181 break
7183 done
7186 if test x$ac_success = xno; then
7187 for alternative in ${ax_cxx_compile_alternatives}; do
7188 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7189 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7191 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7192 if eval \${$cachevar+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 ac_save_CXX="$CXX"
7196 CXX="$CXX $switch"
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7201 // If the compiler admits that it is not ready for C++11, why torture it?
7202 // Hopefully, this will speed up the test.
7204 #ifndef __cplusplus
7206 #error "This is not a C++ compiler"
7208 #elif __cplusplus < 201103L
7210 #error "This is not a C++11 compiler"
7212 #else
7214 namespace cxx11
7217 namespace test_static_assert
7220 template <typename T>
7221 struct check
7223 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7228 namespace test_final_override
7231 struct Base
7233 virtual ~Base() {}
7234 virtual void f() {}
7237 struct Derived : public Base
7239 virtual ~Derived() override {}
7240 virtual void f() override {}
7245 namespace test_double_right_angle_brackets
7248 template < typename T >
7249 struct check {};
7251 typedef check<void> single_type;
7252 typedef check<check<void>> double_type;
7253 typedef check<check<check<void>>> triple_type;
7254 typedef check<check<check<check<void>>>> quadruple_type;
7258 namespace test_decltype
7264 int a = 1;
7265 decltype(a) b = 2;
7266 return a + b;
7271 namespace test_type_deduction
7274 template < typename T1, typename T2 >
7275 struct is_same
7277 static const bool value = false;
7280 template < typename T >
7281 struct is_same<T, T>
7283 static const bool value = true;
7286 template < typename T1, typename T2 >
7287 auto
7288 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7290 return a1 + a2;
7294 test(const int c, volatile int v)
7296 static_assert(is_same<int, decltype(0)>::value == true, "");
7297 static_assert(is_same<int, decltype(c)>::value == false, "");
7298 static_assert(is_same<int, decltype(v)>::value == false, "");
7299 auto ac = c;
7300 auto av = v;
7301 auto sumi = ac + av + 'x';
7302 auto sumf = ac + av + 1.0;
7303 static_assert(is_same<int, decltype(ac)>::value == true, "");
7304 static_assert(is_same<int, decltype(av)>::value == true, "");
7305 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7306 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7307 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7308 return (sumf > 0.0) ? sumi : add(c, v);
7313 namespace test_noexcept
7316 int f() { return 0; }
7317 int g() noexcept { return 0; }
7319 static_assert(noexcept(f()) == false, "");
7320 static_assert(noexcept(g()) == true, "");
7324 namespace test_constexpr
7327 template < typename CharT >
7328 unsigned long constexpr
7329 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7331 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7334 template < typename CharT >
7335 unsigned long constexpr
7336 strlen_c(const CharT *const s) noexcept
7338 return strlen_c_r(s, 0UL);
7341 static_assert(strlen_c("") == 0UL, "");
7342 static_assert(strlen_c("1") == 1UL, "");
7343 static_assert(strlen_c("example") == 7UL, "");
7344 static_assert(strlen_c("another\0example") == 7UL, "");
7348 namespace test_rvalue_references
7351 template < int N >
7352 struct answer
7354 static constexpr int value = N;
7357 answer<1> f(int&) { return answer<1>(); }
7358 answer<2> f(const int&) { return answer<2>(); }
7359 answer<3> f(int&&) { return answer<3>(); }
7361 void
7362 test()
7364 int i = 0;
7365 const int c = 0;
7366 static_assert(decltype(f(i))::value == 1, "");
7367 static_assert(decltype(f(c))::value == 2, "");
7368 static_assert(decltype(f(0))::value == 3, "");
7373 namespace test_uniform_initialization
7376 struct test
7378 static const int zero {};
7379 static const int one {1};
7382 static_assert(test::zero == 0, "");
7383 static_assert(test::one == 1, "");
7387 namespace test_lambdas
7390 void
7391 test1()
7393 auto lambda1 = [](){};
7394 auto lambda2 = lambda1;
7395 lambda1();
7396 lambda2();
7400 test2()
7402 auto a = [](int i, int j){ return i + j; }(1, 2);
7403 auto b = []() -> int { return '0'; }();
7404 auto c = [=](){ return a + b; }();
7405 auto d = [&](){ return c; }();
7406 auto e = [a, &b](int x) mutable {
7407 const auto identity = [](int y){ return y; };
7408 for (auto i = 0; i < a; ++i)
7409 a += b--;
7410 return x + identity(a + b);
7411 }(0);
7412 return a + b + c + d + e;
7416 test3()
7418 const auto nullary = [](){ return 0; };
7419 const auto unary = [](int x){ return x; };
7420 using nullary_t = decltype(nullary);
7421 using unary_t = decltype(unary);
7422 const auto higher1st = [](nullary_t f){ return f(); };
7423 const auto higher2nd = [unary](nullary_t f1){
7424 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7426 return higher1st(nullary) + higher2nd(nullary)(unary);
7431 namespace test_variadic_templates
7434 template <int...>
7435 struct sum;
7437 template <int N0, int... N1toN>
7438 struct sum<N0, N1toN...>
7440 static constexpr auto value = N0 + sum<N1toN...>::value;
7443 template <>
7444 struct sum<>
7446 static constexpr auto value = 0;
7449 static_assert(sum<>::value == 0, "");
7450 static_assert(sum<1>::value == 1, "");
7451 static_assert(sum<23>::value == 23, "");
7452 static_assert(sum<1, 2>::value == 3, "");
7453 static_assert(sum<5, 5, 11>::value == 21, "");
7454 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7458 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7459 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7460 // because of this.
7461 namespace test_template_alias_sfinae
7464 struct foo {};
7466 template<typename T>
7467 using member = typename T::member_type;
7469 template<typename T>
7470 void func(...) {}
7472 template<typename T>
7473 void func(member<T>*) {}
7475 void test();
7477 void test() { func<foo>(0); }
7481 } // namespace cxx11
7483 #endif // __cplusplus >= 201103L
7487 _ACEOF
7488 if ac_fn_cxx_try_compile "$LINENO"; then :
7489 eval $cachevar=yes
7490 else
7491 eval $cachevar=no
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 CXX="$ac_save_CXX"
7496 eval ac_res=\$$cachevar
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7498 $as_echo "$ac_res" >&6; }
7499 if eval test x\$$cachevar = xyes; then
7500 CXX="$CXX $switch"
7501 if test -n "$CXXCPP" ; then
7502 CXXCPP="$CXXCPP $switch"
7504 ac_success=yes
7505 break
7507 done
7508 if test x$ac_success = xyes; then
7509 break
7511 done
7513 CXX_FOR_BUILD="$CXX"
7514 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7515 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7516 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7517 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7518 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7519 ac_ext=c
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7526 if test x$ac_success = xno; then
7527 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7530 if test x$ac_success = xno; then
7531 HAVE_CXX11_FOR_BUILD=0
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7533 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7534 else
7535 HAVE_CXX11_FOR_BUILD=1
7537 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7545 # Used for setting $lt_cv_objdir
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7547 $as_echo_n "checking for objdir... " >&6; }
7548 if ${lt_cv_objdir+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 rm -f .libs 2>/dev/null
7552 mkdir .libs 2>/dev/null
7553 if test -d .libs; then
7554 lt_cv_objdir=.libs
7555 else
7556 # MS-DOS does not allow filenames that begin with a dot.
7557 lt_cv_objdir=_libs
7559 rmdir .libs 2>/dev/null
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7562 $as_echo "$lt_cv_objdir" >&6; }
7563 objdir=$lt_cv_objdir
7569 cat >>confdefs.h <<_ACEOF
7570 #define LT_OBJDIR "$lt_cv_objdir/"
7571 _ACEOF
7575 # Check for GMP, MPFR and MPC
7576 gmplibs="-lmpc -lmpfr -lgmp"
7577 gmpinc=
7578 have_gmp=no
7580 # Specify a location for mpc
7581 # check for this first so it ends up on the link line before mpfr.
7583 # Check whether --with-mpc was given.
7584 if test "${with_mpc+set}" = set; then :
7585 withval=$with_mpc;
7589 # Check whether --with-mpc-include was given.
7590 if test "${with_mpc_include+set}" = set; then :
7591 withval=$with_mpc_include;
7595 # Check whether --with-mpc-lib was given.
7596 if test "${with_mpc_lib+set}" = set; then :
7597 withval=$with_mpc_lib;
7601 if test "x$with_mpc" != x; then
7602 gmplibs="-L$with_mpc/lib $gmplibs"
7603 gmpinc="-I$with_mpc/include $gmpinc"
7605 if test "x$with_mpc_include" != x; then
7606 gmpinc="-I$with_mpc_include $gmpinc"
7608 if test "x$with_mpc_lib" != x; then
7609 gmplibs="-L$with_mpc_lib $gmplibs"
7611 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7612 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7613 gmpinc='-I$$s/mpc/src '"$gmpinc"
7614 # Do not test the mpc version. Assume that it is sufficient, since
7615 # it is in the source tree, and the library has not been built yet
7616 # but it would be included on the link line in the version check below
7617 # hence making the test fail.
7618 have_gmp=yes
7621 # Specify a location for mpfr
7622 # check for this first so it ends up on the link line before gmp.
7624 # Check whether --with-mpfr-dir was given.
7625 if test "${with_mpfr_dir+set}" = set; then :
7626 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7627 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7632 # Check whether --with-mpfr was given.
7633 if test "${with_mpfr+set}" = set; then :
7634 withval=$with_mpfr;
7638 # Check whether --with-mpfr-include was given.
7639 if test "${with_mpfr_include+set}" = set; then :
7640 withval=$with_mpfr_include;
7644 # Check whether --with-mpfr-lib was given.
7645 if test "${with_mpfr_lib+set}" = set; then :
7646 withval=$with_mpfr_lib;
7650 if test "x$with_mpfr" != x; then
7651 gmplibs="-L$with_mpfr/lib $gmplibs"
7652 gmpinc="-I$with_mpfr/include $gmpinc"
7654 if test "x$with_mpfr_include" != x; then
7655 gmpinc="-I$with_mpfr_include $gmpinc"
7657 if test "x$with_mpfr_lib" != x; then
7658 gmplibs="-L$with_mpfr_lib $gmplibs"
7660 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7661 # MPFR v3.1.0 moved the sources into a src sub-directory.
7662 if ! test -d ${srcdir}/mpfr/src; then
7663 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7665 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7666 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7667 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7668 # Do not test the mpfr version. Assume that it is sufficient, since
7669 # it is in the source tree, and the library has not been built yet
7670 # but it would be included on the link line in the version check below
7671 # hence making the test fail.
7672 have_gmp=yes
7675 # Specify a location for gmp
7677 # Check whether --with-gmp-dir was given.
7678 if test "${with_gmp_dir+set}" = set; then :
7679 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7680 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7685 # Check whether --with-gmp was given.
7686 if test "${with_gmp+set}" = set; then :
7687 withval=$with_gmp;
7691 # Check whether --with-gmp-include was given.
7692 if test "${with_gmp_include+set}" = set; then :
7693 withval=$with_gmp_include;
7697 # Check whether --with-gmp-lib was given.
7698 if test "${with_gmp_lib+set}" = set; then :
7699 withval=$with_gmp_lib;
7704 if test "x$with_gmp" != x; then
7705 gmplibs="-L$with_gmp/lib $gmplibs"
7706 gmpinc="-I$with_gmp/include $gmpinc"
7708 if test "x$with_gmp_include" != x; then
7709 gmpinc="-I$with_gmp_include $gmpinc"
7711 if test "x$with_gmp_lib" != x; then
7712 gmplibs="-L$with_gmp_lib $gmplibs"
7714 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7715 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7716 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7717 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7718 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7719 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7720 # Do not test the gmp version. Assume that it is sufficient, since
7721 # it is in the source tree, and the library has not been built yet
7722 # but it would be included on the link line in the version check below
7723 # hence making the test fail.
7724 have_gmp=yes
7727 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7728 have_gmp=yes
7729 saved_CFLAGS="$CFLAGS"
7730 CFLAGS="$CFLAGS $gmpinc"
7731 # Check for the recommended and required versions of GMP.
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7733 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include "gmp.h"
7739 main ()
7742 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7743 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7744 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7745 choke me
7746 #endif
7749 return 0;
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #include <gmp.h>
7757 main ()
7760 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7761 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7762 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7763 choke me
7764 #endif
7767 return 0;
7769 _ACEOF
7770 if ac_fn_c_try_compile "$LINENO"; then :
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7772 $as_echo "yes" >&6; }
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7775 $as_echo "buggy but acceptable" >&6; }
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }; have_gmp=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 # If we have GMP, check the MPFR version.
7785 if test x"$have_gmp" = xyes; then
7786 # Check for the recommended and required versions of MPFR.
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7788 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #include <gmp.h>
7792 #include <mpfr.h>
7794 main ()
7797 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7798 choke me
7799 #endif
7802 return 0;
7804 _ACEOF
7805 if ac_fn_c_try_compile "$LINENO"; then :
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <gmp.h>
7809 #include <mpfr.h>
7811 main ()
7814 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7815 choke me
7816 #endif
7819 return 0;
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7824 $as_echo "yes" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7827 $as_echo "buggy but acceptable" >&6; }
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }; have_gmp=no
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 # Check for the MPC header version.
7838 if test x"$have_gmp" = xyes ; then
7839 # Check for the recommended and required versions of MPC.
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
7841 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 #include <mpc.h>
7846 main ()
7849 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
7850 choke me
7851 #endif
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 #include <mpc.h>
7862 main ()
7865 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7866 choke me
7867 #endif
7870 return 0;
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875 $as_echo "yes" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7878 $as_echo "buggy but acceptable" >&6; }
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }; have_gmp=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 # Now check the MPFR library.
7889 if test x"$have_gmp" = xyes; then
7890 saved_LIBS="$LIBS"
7891 LIBS="$LIBS $gmplibs"
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
7893 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 #include <mpc.h>
7898 main ()
7901 mpfr_t n;
7902 mpfr_t x;
7903 mpc_t c;
7904 int t;
7905 mpfr_init (n);
7906 mpfr_init (x);
7907 mpfr_atan2 (n, n, x, MPFR_RNDN);
7908 mpfr_erfc (n, x, MPFR_RNDN);
7909 mpfr_subnormalize (x, t, MPFR_RNDN);
7910 mpfr_clear(n);
7911 mpfr_clear(x);
7912 mpc_init2 (c, 53);
7913 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
7914 mpc_cosh (c, c, MPC_RNDNN);
7915 mpc_pow (c, c, c, MPC_RNDNN);
7916 mpc_acosh (c, c, MPC_RNDNN);
7917 mpc_clear (c);
7920 return 0;
7922 _ACEOF
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7925 $as_echo "yes" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }; have_gmp=no
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LIBS="$saved_LIBS"
7935 CFLAGS="$saved_CFLAGS"
7937 # The library versions listed in the error message below should match
7938 # the HARD-minimums enforced above.
7939 if test x$have_gmp != xyes; then
7940 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
7941 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
7942 their locations. Source code for these libraries can be found at
7943 their respective hosting sites as well as at
7944 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
7945 http://gcc.gnu.org/install/prerequisites.html for additional info. If
7946 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
7947 make sure that you have installed both the libraries and the header
7948 files. They may be located in separate packages." "$LINENO" 5
7952 # Flags needed for both GMP, MPFR and/or MPC.
7960 # Libraries to use for stage1 or when not bootstrapping.
7962 # Check whether --with-stage1-libs was given.
7963 if test "${with_stage1_libs+set}" = set; then :
7964 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7965 stage1_libs=
7966 else
7967 stage1_libs=$withval
7969 else
7970 stage1_libs=
7975 # Whether or not to use -static-libstdc++ and -static-libgcc. The
7976 # default is yes if gcc is being built; no otherwise. The reason for
7977 # this default is that gdb is sometimes linked against GNU Source
7978 # Highlight, which is a shared library that uses C++ exceptions. In
7979 # this case, -static-libstdc++ will cause crashes.
7981 # Check whether --with-static-standard-libraries was given.
7982 if test "${with_static_standard_libraries+set}" = set; then :
7983 withval=$with_static_standard_libraries;
7984 else
7985 with_static_standard_libraries=auto
7988 if test "$with_static_standard_libraries" = auto; then
7989 with_static_standard_libraries=$have_compiler
7992 # Linker flags to use for stage1 or when not bootstrapping.
7994 # Check whether --with-stage1-ldflags was given.
7995 if test "${with_stage1_ldflags+set}" = set; then :
7996 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7997 stage1_ldflags=
7998 else
7999 stage1_ldflags=$withval
8001 else
8002 stage1_ldflags=
8003 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8004 # if supported. But if the user explicitly specified the libraries to use,
8005 # trust that they are doing what they want.
8006 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8007 -a "$have_static_libs" = yes; then
8008 stage1_ldflags="-static-libstdc++ -static-libgcc"
8014 # Libraries to use for stage2 and later builds.
8016 # Check whether --with-boot-libs was given.
8017 if test "${with_boot_libs+set}" = set; then :
8018 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8019 poststage1_libs=
8020 else
8021 poststage1_libs=$withval
8023 else
8024 poststage1_libs=
8029 # Linker flags to use for stage2 and later builds.
8031 # Check whether --with-boot-ldflags was given.
8032 if test "${with_boot_ldflags+set}" = set; then :
8033 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8034 poststage1_ldflags=
8035 else
8036 poststage1_ldflags=$withval
8038 else
8039 poststage1_ldflags=
8040 # In stages 2 and 3, default to linking libstdc++ and libgcc
8041 # statically. But if the user explicitly specified the libraries to
8042 # use, trust that they are doing what they want.
8043 if test "$poststage1_libs" = ""; then
8044 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8050 # GCC GRAPHITE dependency isl.
8051 # Basic setup is inlined here, actual checks are in config/isl.m4
8054 # Check whether --with-isl was given.
8055 if test "${with_isl+set}" = set; then :
8056 withval=$with_isl;
8060 # Treat --without-isl as a request to disable
8061 # GRAPHITE support and skip all following checks.
8062 if test "x$with_isl" != "xno"; then
8063 # Check for isl
8066 # Check whether --with-isl-include was given.
8067 if test "${with_isl_include+set}" = set; then :
8068 withval=$with_isl_include;
8072 # Check whether --with-isl-lib was given.
8073 if test "${with_isl_lib+set}" = set; then :
8074 withval=$with_isl_lib;
8078 # Check whether --enable-isl-version-check was given.
8079 if test "${enable_isl_version_check+set}" = set; then :
8080 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8081 else
8082 ENABLE_ISL_CHECK=yes
8086 # Initialize isllibs and islinc.
8087 case $with_isl in
8089 isllibs=
8090 islinc=
8092 "" | yes)
8095 isllibs="-L$with_isl/lib"
8096 islinc="-I$with_isl/include"
8098 esac
8099 if test "x${with_isl_include}" != x ; then
8100 islinc="-I$with_isl_include"
8102 if test "x${with_isl_lib}" != x; then
8103 isllibs="-L$with_isl_lib"
8105 if test "x${islinc}" = x && test "x${isllibs}" = x \
8106 && test -d ${srcdir}/isl; then
8107 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8108 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8109 ENABLE_ISL_CHECK=no
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8111 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8114 isllibs="${isllibs} -lisl"
8118 if test "${ENABLE_ISL_CHECK}" = yes ; then
8119 _isl_saved_CFLAGS=$CFLAGS
8120 _isl_saved_LDFLAGS=$LDFLAGS
8121 _isl_saved_LIBS=$LIBS
8123 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8124 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8125 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8128 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 #include <isl/schedule.h>
8133 main ()
8135 isl_options_set_schedule_serialize_sccs (NULL, 0);
8137 return 0;
8139 _ACEOF
8140 if ac_fn_c_try_link "$LINENO"; then :
8141 gcc_cv_isl=yes
8142 else
8143 gcc_cv_isl=no
8145 rm -f core conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8148 $as_echo "$gcc_cv_isl" >&6; }
8150 if test "${gcc_cv_isl}" = no ; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8152 $as_echo "required isl version is 0.15 or later" >&6; }
8155 CFLAGS=$_isl_saved_CFLAGS
8156 LDFLAGS=$_isl_saved_LDFLAGS
8157 LIBS=$_isl_saved_LIBS
8165 if test "x${with_isl}" = xno; then
8166 graphite_requested=no
8167 elif test "x${with_isl}" != x \
8168 || test "x${with_isl_include}" != x \
8169 || test "x${with_isl_lib}" != x ; then
8170 graphite_requested=yes
8171 else
8172 graphite_requested=no
8177 if test "${gcc_cv_isl}" = no ; then
8178 isllibs=
8179 islinc=
8182 if test "${graphite_requested}" = yes \
8183 && test "x${isllibs}" = x \
8184 && test "x${islinc}" = x ; then
8186 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8192 # If the isl check failed, disable builds of in-tree variant of isl
8193 if test "x$with_isl" = xno ||
8194 test "x$gcc_cv_isl" = xno; then
8195 noconfigdirs="$noconfigdirs isl"
8196 islinc=
8202 # Check for LTO support.
8203 # Check whether --enable-lto was given.
8204 if test "${enable_lto+set}" = set; then :
8205 enableval=$enable_lto; enable_lto=$enableval
8206 else
8207 enable_lto=yes; default_enable_lto=yes
8214 target_elf=no
8215 case $target in
8216 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8217 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8218 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8219 nvptx-*-none)
8220 target_elf=no
8223 target_elf=yes
8225 esac
8227 if test $target_elf = yes; then :
8228 # ELF platforms build the lto-plugin always.
8229 build_lto_plugin=yes
8231 else
8232 if test x"$default_enable_lto" = x"yes" ; then
8233 case $target in
8234 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8235 # On other non-ELF platforms, LTO has yet to be validated.
8236 *) enable_lto=no ;;
8237 esac
8238 else
8239 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8240 # It would also be nice to check the binutils support, but we don't
8241 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8242 # warn during gcc/ subconfigure; unless you're bootstrapping with
8243 # -flto it won't be needed until after installation anyway.
8244 case $target in
8245 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8246 *) if test x"$enable_lto" = x"yes"; then
8247 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8250 esac
8252 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8253 # Build it unless LTO was explicitly disabled.
8254 case $target in
8255 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8256 *) ;;
8257 esac
8262 # Check whether --enable-linker-plugin-configure-flags was given.
8263 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8264 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8265 else
8266 extra_linker_plugin_configure_flags=
8270 # Check whether --enable-linker-plugin-flags was given.
8271 if test "${enable_linker_plugin_flags+set}" = set; then :
8272 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8273 else
8274 extra_linker_plugin_flags=
8279 # Enable --enable-host-shared.
8280 # Checked early to determine whether jit is an 'all' language
8281 # Check whether --enable-host-shared was given.
8282 if test "${enable_host_shared+set}" = set; then :
8283 enableval=$enable_host_shared; host_shared=$enableval
8284 else
8285 host_shared=no
8290 # By default, C and C++ are the only stage 1 languages.
8291 stage1_languages=,c,
8293 # Target libraries that we bootstrap.
8294 bootstrap_target_libs=,target-libgcc,
8296 # Figure out what language subdirectories are present.
8297 # Look if the user specified --enable-languages="..."; if not, use
8298 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8299 # go away some day.
8300 # NB: embedded tabs in this IF block -- do not untabify
8301 if test -d ${srcdir}/gcc; then
8302 if test x"${enable_languages+set}" != xset; then
8303 if test x"${LANGUAGES+set}" = xset; then
8304 enable_languages="${LANGUAGES}"
8305 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8306 else
8307 enable_languages=default
8309 else
8310 if test x"${enable_languages}" = x ||
8311 test x"${enable_languages}" = xyes;
8312 then
8313 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8314 exit 1
8317 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8319 # 'f95' is the old name for the 'fortran' language. We issue a warning
8320 # and make the substitution.
8321 case ,${enable_languages}, in
8322 *,f95,*)
8323 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8324 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8326 esac
8328 # If bootstrapping, C++ must be enabled.
8329 case ",$enable_languages,:$enable_bootstrap" in
8330 *,c++,*:*) ;;
8331 *:yes)
8332 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8333 enable_languages="${enable_languages},c++"
8334 else
8335 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8338 esac
8340 # First scan to see if an enabled language requires some other language.
8341 # We assume that a given config-lang.in will list all the language
8342 # front ends it requires, even if some are required indirectly.
8343 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8344 case ${lang_frag} in
8345 ..) ;;
8346 # The odd quoting in the next line works around
8347 # an apparent bug in bash 1.12 on linux.
8348 ${srcdir}/gcc/[*]/config-lang.in) ;;
8350 # From the config-lang.in, get $language, $lang_requires, and
8351 # $lang_requires_boot_languages.
8352 language=
8353 lang_requires=
8354 lang_requires_boot_languages=
8355 # set srcdir during sourcing lang_frag to the gcc dir.
8356 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8357 # polutes this shell
8358 saved_srcdir=${srcdir}
8359 srcdir=${srcdir}/gcc . ${lang_frag}
8360 srcdir=${saved_srcdir}
8361 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8362 case ,${enable_languages}, in
8363 *,$other,*) ;;
8364 *,default,*) ;;
8365 *,all,*) ;;
8366 *,$language,*)
8367 echo " \`$other' language required by \`$language'; enabling" 1>&2
8368 enable_languages="${enable_languages},${other}"
8370 esac
8371 done
8372 for other in ${lang_requires_boot_languages} ; do
8373 if test "$other" != "c"; then
8374 case ,${enable_stage1_languages}, in
8375 *,$other,*) ;;
8376 *,default,*) ;;
8377 *,all,*) ;;
8379 case ,${enable_languages}, in
8380 *,$language,*)
8381 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8382 enable_stage1_languages="$enable_stage1_languages,${other}"
8384 esac
8386 esac
8388 done
8390 esac
8391 done
8393 new_enable_languages=,c,
8395 # If LTO is enabled, add the LTO front end.
8396 if test "$enable_lto" = "yes" ; then
8397 case ,${enable_languages}, in
8398 *,lto,*) ;;
8399 *) enable_languages="${enable_languages},lto" ;;
8400 esac
8401 if test "${build_lto_plugin}" = "yes" ; then
8402 configdirs="$configdirs lto-plugin"
8406 # If we're building an offloading compiler, add the LTO front end.
8407 if test x"$enable_as_accelerator_for" != x ; then
8408 case ,${enable_languages}, in
8409 *,lto,*) ;;
8410 *) enable_languages="${enable_languages},lto" ;;
8411 esac
8414 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8415 potential_languages=,c,
8417 enabled_target_libs=
8418 disabled_target_libs=
8420 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8421 case ${lang_frag} in
8422 ..) ;;
8423 # The odd quoting in the next line works around
8424 # an apparent bug in bash 1.12 on linux.
8425 ${srcdir}/gcc/[*]/config-lang.in) ;;
8427 # From the config-lang.in, get $language, $target_libs,
8428 # $lang_dirs, $boot_language, and $build_by_default
8429 language=
8430 target_libs=
8431 lang_dirs=
8432 subdir_requires=
8433 boot_language=no
8434 build_by_default=yes
8435 # set srcdir during sourcing. See above about save & restore
8436 saved_srcdir=${srcdir}
8437 srcdir=${srcdir}/gcc . ${lang_frag}
8438 srcdir=${saved_srcdir}
8439 if test x${language} = x; then
8440 echo "${lang_frag} doesn't set \$language." 1>&2
8441 exit 1
8444 if test "$language" = "c++"; then
8445 boot_language=yes
8448 add_this_lang=no
8449 # C is always enabled, so no need to add it again
8450 if test "$language" != "c"; then
8451 case ,${enable_languages}, in
8452 *,${language},*)
8453 # Language was explicitly selected; include it
8454 add_this_lang=yes
8456 *,all,*)
8457 # All languages are enabled
8458 add_this_lang=all
8460 *,default,*)
8461 # 'default' was selected, select it if it is a default language
8462 add_this_lang=${build_by_default}
8464 esac
8467 # Disable languages that need other directories if these aren't available.
8468 for i in $subdir_requires; do
8469 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8470 case ${add_this_lang} in
8471 yes)
8472 # Specifically requested language; tell them.
8473 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8475 all)
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8477 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8478 add_this_lang=unsupported
8481 # Silently disable.
8482 add_this_lang=unsupported
8484 esac
8485 done
8487 # Disable Ada if no preexisting GNAT is available.
8488 case ${add_this_lang}:${language}:${have_gnat} in
8489 yes:ada:no)
8490 # Specifically requested language; tell them.
8491 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8493 all:ada:no)
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8495 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8496 add_this_lang=unsupported
8498 *:ada:no)
8499 # Silently disable.
8500 add_this_lang=unsupported
8502 esac
8504 # Disable jit if -enable-host-shared not specified
8505 # but not if building for Mingw. All code in Windows
8506 # is position independent code (PIC).
8507 case $target in
8508 *mingw*) ;;
8510 case ${add_this_lang}:${language}:${host_shared} in
8511 yes:jit:no)
8512 # PR jit/64780: explicitly specify --enable-host-shared
8513 as_fn_error $? "
8514 Enabling language \"jit\" requires --enable-host-shared.
8516 --enable-host-shared typically slows the rest of the compiler down by
8517 a few %, so you must explicitly enable it.
8519 If you want to build both the jit and the regular compiler, it is often
8520 best to do this via two separate configure/builds, in separate
8521 directories, to avoid imposing the performance cost of
8522 --enable-host-shared on the regular compiler." "$LINENO" 5
8524 all:jit:no)
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8526 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8527 add_this_lang=unsupported
8529 *:jit:no)
8530 # Silently disable.
8531 add_this_lang=unsupported
8533 esac
8535 esac
8537 # Disable a language that is unsupported by the target.
8538 case "${add_this_lang}: $unsupported_languages " in
8539 no:*) ;;
8540 unsupported:*) ;;
8541 *:*" $language "*)
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8543 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8544 add_this_lang=unsupported
8546 esac
8548 case $add_this_lang in
8549 unsupported)
8550 # Remove language-dependent dirs.
8551 disabled_target_libs="$disabled_target_libs $target_libs"
8552 noconfigdirs="$noconfigdirs $lang_dirs"
8555 # Remove language-dependent dirs; still show language as supported.
8556 disabled_target_libs="$disabled_target_libs $target_libs"
8557 noconfigdirs="$noconfigdirs $lang_dirs"
8558 potential_languages="${potential_languages}${language},"
8560 all|yes)
8561 new_enable_languages="${new_enable_languages}${language},"
8562 potential_languages="${potential_languages}${language},"
8563 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8564 enabled_target_libs="$enabled_target_libs $target_libs"
8565 case "${boot_language}:,$enable_stage1_languages," in
8566 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8567 # Add to (comma-separated) list of stage 1 languages.
8568 case ",$stage1_languages," in
8569 *,$language,* | ,yes, | ,all,) ;;
8570 *) stage1_languages="${stage1_languages}${language}," ;;
8571 esac
8572 # We need to bootstrap any supporting libraries.
8573 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8575 esac
8577 esac
8579 esac
8580 done
8582 # Add target libraries which are only needed for disabled languages
8583 # to noconfigdirs.
8584 if test -n "$disabled_target_libs"; then
8585 for dir in $disabled_target_libs; do
8586 case " $enabled_target_libs " in
8587 *" ${dir} "*) ;;
8588 *) noconfigdirs="$noconfigdirs $dir" ;;
8589 esac
8590 done
8593 # Check whether --enable-stage1-languages was given.
8594 if test "${enable_stage1_languages+set}" = set; then :
8595 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8596 ,no,|,,)
8597 # Set it to something that will have no effect in the loop below
8598 enable_stage1_languages=c ;;
8599 ,yes,)
8600 enable_stage1_languages=`echo $new_enable_languages | \
8601 sed -e "s/^,//" -e "s/,$//" ` ;;
8602 *,all,*)
8603 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8604 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8605 esac
8607 # Add "good" languages from enable_stage1_languages to stage1_languages,
8608 # while "bad" languages go in missing_languages. Leave no duplicates.
8609 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8610 case $potential_languages in
8611 *,$i,*)
8612 case $stage1_languages in
8613 *,$i,*) ;;
8614 *) stage1_languages="$stage1_languages$i," ;;
8615 esac ;;
8617 case $missing_languages in
8618 *,$i,*) ;;
8619 *) missing_languages="$missing_languages$i," ;;
8620 esac ;;
8621 esac
8622 done
8626 # Remove leading/trailing commas that were added for simplicity
8627 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8628 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8629 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8630 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8632 if test "x$missing_languages" != x; then
8633 as_fn_error $? "
8634 The following requested languages could not be built: ${missing_languages}
8635 Supported languages are: ${potential_languages}" "$LINENO" 5
8637 if test "x$new_enable_languages" != "x$enable_languages"; then
8638 echo The following languages will be built: ${new_enable_languages}
8639 enable_languages="$new_enable_languages"
8643 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8646 # Handle --disable-<component> generically.
8647 for dir in $configdirs $build_configdirs $target_configdirs ; do
8648 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8649 varname=`echo $dirname | sed -e s/+/_/g`
8650 if eval test x\${enable_${varname}} "=" xno ; then
8651 noconfigdirs="$noconfigdirs $dir"
8653 done
8655 # Check for Boehm's garbage collector
8656 # Check whether --enable-objc-gc was given.
8657 if test "${enable_objc_gc+set}" = set; then :
8658 enableval=$enable_objc_gc;
8662 # Check whether --with-target-bdw-gc was given.
8663 if test "${with_target_bdw_gc+set}" = set; then :
8664 withval=$with_target_bdw_gc;
8668 # Check whether --with-target-bdw-gc-include was given.
8669 if test "${with_target_bdw_gc_include+set}" = set; then :
8670 withval=$with_target_bdw_gc_include;
8674 # Check whether --with-target-bdw-gc-lib was given.
8675 if test "${with_target_bdw_gc_lib+set}" = set; then :
8676 withval=$with_target_bdw_gc_lib;
8680 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8682 $as_echo_n "checking for bdw garbage collector... " >&6; }
8683 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8685 $as_echo "using bdw-gc in default locations" >&6; }
8686 else
8687 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8688 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8689 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8690 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8693 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8696 esac
8698 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8699 case ,${enable_languages}, in
8700 *,c++,*)
8701 # Disable libitm, libsanitizer if we're not building libstdc++
8702 case "${noconfigdirs}" in
8703 *target-libstdc++-v3*)
8704 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8706 *) ;;
8707 esac
8710 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8712 esac
8714 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8715 # $build_configdirs and $target_configdirs.
8716 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8718 notsupp=""
8719 for dir in . $skipdirs $noconfigdirs ; do
8720 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8721 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8722 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8723 if test -r $srcdir/$dirname/configure ; then
8724 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8725 true
8726 else
8727 notsupp="$notsupp $dir"
8731 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8732 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8733 if test -r $srcdir/$dirname/configure ; then
8734 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8735 true
8736 else
8737 notsupp="$notsupp $dir"
8741 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8742 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8743 if test -r $srcdir/$dirname/configure ; then
8744 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8745 true
8746 else
8747 notsupp="$notsupp $dir"
8751 done
8753 # Quietly strip out all directories which aren't configurable in this tree.
8754 # This relies on all configurable subdirectories being autoconfiscated, which
8755 # is now the case.
8756 build_configdirs_all="$build_configdirs"
8757 build_configdirs=
8758 for i in ${build_configdirs_all} ; do
8759 j=`echo $i | sed -e s/build-//g`
8760 if test -f ${srcdir}/$j/configure ; then
8761 build_configdirs="${build_configdirs} $i"
8763 done
8765 configdirs_all="$configdirs"
8766 configdirs=
8767 for i in ${configdirs_all} ; do
8768 if test -f ${srcdir}/$i/configure ; then
8769 configdirs="${configdirs} $i"
8771 done
8773 target_configdirs_all="$target_configdirs"
8774 target_configdirs=
8775 for i in ${target_configdirs_all} ; do
8776 j=`echo $i | sed -e s/target-//g`
8777 if test -f ${srcdir}/$j/configure ; then
8778 target_configdirs="${target_configdirs} $i"
8780 done
8782 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8783 # so we have to add it after the preceding checks.
8784 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8785 then
8786 case " $configdirs " in
8787 *" libiberty "*)
8788 # If we can build libiberty, we can also build libiberty-linker-plugin.
8789 configdirs="$configdirs libiberty-linker-plugin"
8790 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8791 --with-libiberty=../libiberty-linker-plugin";;
8793 as_fn_error $? "libiberty missing" "$LINENO" 5;;
8794 esac
8797 # Sometimes we have special requirements for the host libiberty.
8798 extra_host_libiberty_configure_flags=
8799 extra_host_zlib_configure_flags=
8800 case " $configdirs " in
8801 *" lto-plugin "* | *" libcc1 "*)
8802 # When these are to be built as shared libraries, the same applies to
8803 # libiberty.
8804 extra_host_libiberty_configure_flags=--enable-shared
8806 *" bfd "*)
8807 # When bfd is to be built as a shared library, the same applies to
8808 # zlib.
8809 if test "$enable_shared" = "yes"; then
8810 extra_host_zlib_configure_flags=--enable-host-shared
8813 esac
8817 # Produce a warning message for the subdirs we can't configure.
8818 # This isn't especially interesting in the Cygnus tree, but in the individual
8819 # FSF releases, it's important to let people know when their machine isn't
8820 # supported by the one or two programs in a package.
8822 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8823 # If $appdirs is non-empty, at least one of those directories must still
8824 # be configured, or we error out. (E.g., if the gas release supports a
8825 # specified target in some subdirs but not the gas subdir, we shouldn't
8826 # pretend that all is well.)
8827 if test -n "$appdirs" ; then
8828 for dir in $appdirs ; do
8829 if test -r $dir/Makefile.in ; then
8830 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8831 appdirs=""
8832 break
8834 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8835 appdirs=""
8836 break
8839 done
8840 if test -n "$appdirs" ; then
8841 echo "*** This configuration is not supported by this package." 1>&2
8842 exit 1
8845 # Okay, some application will build, or we don't care to check. Still
8846 # notify of subdirs not getting built.
8847 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
8848 echo " ${notsupp}" 1>&2
8849 echo " (Any other directories should still work fine.)" 1>&2
8852 case "$host" in
8853 *msdosdjgpp*)
8854 enable_gdbtk=no ;;
8855 esac
8857 # To find our prefix, in gcc_cv_tool_prefix.
8859 # The user is always right.
8860 if test "${PATH_SEPARATOR+set}" != set; then
8861 echo "#! /bin/sh" >conf$$.sh
8862 echo "exit 0" >>conf$$.sh
8863 chmod +x conf$$.sh
8864 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8865 PATH_SEPARATOR=';'
8866 else
8867 PATH_SEPARATOR=:
8869 rm -f conf$$.sh
8873 get_gcc_base_ver="cat"
8875 # Check whether --with-gcc-major-version-only was given.
8876 if test "${with_gcc_major_version_only+set}" = set; then :
8877 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
8878 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
8888 if test "x$exec_prefix" = xNONE; then
8889 if test "x$prefix" = xNONE; then
8890 gcc_cv_tool_prefix=$ac_default_prefix
8891 else
8892 gcc_cv_tool_prefix=$prefix
8894 else
8895 gcc_cv_tool_prefix=$exec_prefix
8898 # If there is no compiler in the tree, use the PATH only. In any
8899 # case, if there is no compiler in the tree nobody should use
8900 # AS_FOR_TARGET and LD_FOR_TARGET.
8901 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
8902 if test x$with_gcc_major_version_only = xyes ; then
8903 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
8904 else
8905 gcc_version=`cat $srcdir/gcc/BASE-VER`
8907 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8908 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
8909 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8910 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
8911 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8912 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
8913 else
8914 gcc_cv_tool_dirs=
8917 if test x$build = x$target && test -n "$md_exec_prefix"; then
8918 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
8923 copy_dirs=
8926 # Check whether --with-build-sysroot was given.
8927 if test "${with_build_sysroot+set}" = set; then :
8928 withval=$with_build_sysroot; if test x"$withval" != x ; then
8929 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
8931 else
8932 SYSROOT_CFLAGS_FOR_TARGET=
8938 # Check whether --with-debug-prefix-map was given.
8939 if test "${with_debug_prefix_map+set}" = set; then :
8940 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8941 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8942 for debug_map in $withval; do
8943 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
8944 done
8946 else
8947 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8952 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8953 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
8954 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8955 # We want to ensure that TARGET libraries (which we know are built with
8956 # gcc) are built with "-O2 -g", so include those options when setting
8957 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8958 if test "x$CFLAGS_FOR_TARGET" = x; then
8959 if test "x${is_cross_compiler}" = xyes; then
8960 CFLAGS_FOR_TARGET="-g -O2"
8961 else
8962 CFLAGS_FOR_TARGET=$CFLAGS
8963 case " $CFLAGS " in
8964 *" -O2 "*) ;;
8965 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
8966 esac
8967 case " $CFLAGS " in
8968 *" -g "* | *" -g3 "*) ;;
8969 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
8970 esac
8975 if test "x$CXXFLAGS_FOR_TARGET" = x; then
8976 if test "x${is_cross_compiler}" = xyes; then
8977 CXXFLAGS_FOR_TARGET="-g -O2"
8978 else
8979 CXXFLAGS_FOR_TARGET=$CXXFLAGS
8980 case " $CXXFLAGS " in
8981 *" -O2 "*) ;;
8982 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
8983 esac
8984 case " $CXXFLAGS " in
8985 *" -g "* | *" -g3 "*) ;;
8986 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
8987 esac
8994 # Handle --with-headers=XXX. If the value is not "yes", the contents of
8995 # the named directory are copied to $(tooldir)/sys-include.
8996 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
8997 if test x${is_cross_compiler} = xno ; then
8998 echo 1>&2 '***' --with-headers is only supported when cross compiling
8999 exit 1
9001 if test x"${with_headers}" != xyes ; then
9002 x=${gcc_cv_tool_prefix}
9003 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9007 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9008 # the name directories are copied to $(tooldir)/lib. Multiple directories
9009 # are permitted.
9010 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9011 if test x${is_cross_compiler} = xno ; then
9012 echo 1>&2 '***' --with-libs is only supported when cross compiling
9013 exit 1
9015 if test x"${with_libs}" != xyes ; then
9016 # Copy the libraries in reverse order, so that files in the first named
9017 # library override files in subsequent libraries.
9018 x=${gcc_cv_tool_prefix}
9019 for l in ${with_libs}; do
9020 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9021 done
9025 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9027 # This is done by determining whether or not the appropriate directory
9028 # is available, and by checking whether or not specific configurations
9029 # have requested that this magic not happen.
9031 # The command line options always override the explicit settings in
9032 # configure.ac, and the settings in configure.ac override this magic.
9034 # If the default for a toolchain is to use GNU as and ld, and you don't
9035 # want to do that, then you should use the --without-gnu-as and
9036 # --without-gnu-ld options for the configure script. Similarly, if
9037 # the default is to use the included zlib and you don't want to do that,
9038 # you should use the --with-system-zlib option for the configure script.
9040 if test x${use_gnu_as} = x &&
9041 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9042 with_gnu_as=yes
9043 extra_host_args="$extra_host_args --with-gnu-as"
9046 if test x${use_gnu_ld} = x &&
9047 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9048 with_gnu_ld=yes
9049 extra_host_args="$extra_host_args --with-gnu-ld"
9052 if test x${use_included_zlib} = x &&
9053 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9055 else
9056 with_system_zlib=yes
9057 extra_host_args="$extra_host_args --with-system-zlib"
9060 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9061 # can detect this case.
9063 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9064 with_newlib=yes
9065 extra_host_args="$extra_host_args --with-newlib"
9068 # Handle ${copy_dirs}
9069 set fnord ${copy_dirs}
9070 shift
9071 while test $# != 0 ; do
9072 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9074 else
9075 echo Copying $1 to $2
9077 # Use the install script to create the directory and all required
9078 # parent directories.
9079 if test -d $2 ; then
9081 else
9082 echo >config.temp
9083 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9086 # Copy the directory, assuming we have tar.
9087 # FIXME: Should we use B in the second tar? Not all systems support it.
9088 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9090 # It is the responsibility of the user to correctly adjust all
9091 # symlinks. If somebody can figure out how to handle them correctly
9092 # here, feel free to add the code.
9094 echo $1 > $2/COPIED
9096 shift; shift
9097 done
9099 # Determine a target-dependent exec_prefix that the installed
9100 # gcc will search in. Keep this list sorted by triplet, with
9101 # the *-*-osname triplets last.
9102 md_exec_prefix=
9103 case "${target}" in
9104 i[34567]86-pc-msdosdjgpp*)
9105 md_exec_prefix=/dev/env/DJDIR/bin
9107 *-*-hpux* | \
9108 *-*-nto-qnx* | \
9109 *-*-solaris2*)
9110 md_exec_prefix=/usr/ccs/bin
9112 esac
9114 extra_arflags_for_target=
9115 extra_nmflags_for_target=
9116 extra_ranlibflags_for_target=
9117 target_makefile_frag=/dev/null
9118 case "${target}" in
9119 spu-*-*)
9120 target_makefile_frag="config/mt-spu"
9122 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9123 target_makefile_frag="config/mt-sde"
9125 mipsisa*-*-elfoabi*)
9126 target_makefile_frag="config/mt-mips-elfoabi"
9128 mips*-*-*linux* | mips*-*-gnu*)
9129 target_makefile_frag="config/mt-mips-gnu"
9131 nios2-*-elf*)
9132 target_makefile_frag="config/mt-nios2-elf"
9134 *-*-linux-android*)
9135 target_makefile_frag="config/mt-android"
9137 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9138 target_makefile_frag="config/mt-gnu"
9140 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9141 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9142 # commands to handle both 32-bit and 64-bit objects. These flags are
9143 # harmless if we're using GNU nm or ar.
9144 extra_arflags_for_target=" -X32_64"
9145 extra_nmflags_for_target=" -B -X32_64"
9147 esac
9149 alphaieee_frag=/dev/null
9150 case $target in
9151 alpha*-*-*)
9152 # This just makes sure to use the -mieee option to build target libs.
9153 # This should probably be set individually by each library.
9154 alphaieee_frag="config/mt-alphaieee"
9156 esac
9158 # If --enable-target-optspace always use -Os instead of -O2 to build
9159 # the target libraries, similarly if it is not specified, use -Os
9160 # on selected platforms.
9161 ospace_frag=/dev/null
9162 case "${enable_target_optspace}:${target}" in
9163 yes:*)
9164 ospace_frag="config/mt-ospace"
9166 :d30v-*)
9167 ospace_frag="config/mt-d30v"
9169 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9170 ospace_frag="config/mt-ospace"
9172 no:* | :*)
9175 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9177 esac
9179 # Some systems (e.g., one of the i386-aix systems the gas testers are
9180 # using) don't handle "\$" correctly, so don't use it here.
9181 tooldir='${exec_prefix}'/${target_noncanonical}
9182 build_tooldir=${tooldir}
9184 # Create a .gdbinit file which runs the one in srcdir
9185 # and tells GDB to look there for source files.
9187 if test -r ${srcdir}/.gdbinit ; then
9188 case ${srcdir} in
9189 .) ;;
9190 *) cat > ./.gdbinit <<EOF
9191 # ${NO_EDIT}
9192 dir ${srcdir}
9193 dir .
9194 source ${srcdir}/.gdbinit
9197 esac
9200 # Make sure that the compiler is able to generate an executable. If it
9201 # can't, we are probably in trouble. We don't care whether we can run the
9202 # executable--we might be using a cross compiler--we only care whether it
9203 # can be created. At this point the main configure script has set CC.
9204 we_are_ok=no
9205 echo "int main () { return 0; }" > conftest.c
9206 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9207 if test $? = 0 ; then
9208 if test -s conftest || test -s conftest.exe ; then
9209 we_are_ok=yes
9212 case $we_are_ok in
9214 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9215 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9216 rm -f conftest*
9217 exit 1
9219 esac
9220 rm -f conftest*
9222 # Decide which environment variable is used to find dynamic libraries.
9223 case "${host}" in
9224 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9225 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9226 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9227 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9228 esac
9230 # On systems where the dynamic library environment variable is PATH,
9231 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9232 # built executables to PATH.
9233 if test "$RPATH_ENVVAR" = PATH; then
9234 GCC_SHLIB_SUBDIR=/shlib
9235 else
9236 GCC_SHLIB_SUBDIR=
9239 # Adjust the toplevel makefile according to whether bootstrap was selected.
9240 case $enable_bootstrap in
9241 yes)
9242 bootstrap_suffix=bootstrap
9243 BUILD_CONFIG=bootstrap-debug
9246 bootstrap_suffix=no-bootstrap
9247 BUILD_CONFIG=
9249 esac
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9252 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9255 # Check whether --with-build-config was given.
9256 if test "${with_build_config+set}" = set; then :
9257 withval=$with_build_config; case $with_build_config in
9258 yes) with_build_config= ;;
9259 no) with_build_config= BUILD_CONFIG= ;;
9260 esac
9264 if test "x${with_build_config}" != x; then
9265 BUILD_CONFIG=$with_build_config
9266 else
9267 case $BUILD_CONFIG in
9268 bootstrap-debug)
9269 if echo "int f (void) { return 0; }" > conftest.c &&
9270 ${CC} -c conftest.c &&
9271 mv conftest.o conftest.o.g0 &&
9272 ${CC} -c -g conftest.c &&
9273 mv conftest.o conftest.o.g &&
9274 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9276 else
9277 BUILD_CONFIG=
9279 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9281 esac
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9284 $as_echo "$BUILD_CONFIG" >&6; }
9287 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9289 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9290 # Check whether --enable-vtable-verify was given.
9291 if test "${enable_vtable_verify+set}" = set; then :
9292 enableval=$enable_vtable_verify; case "$enableval" in
9293 yes) enable_vtable_verify=yes ;;
9294 no) enable_vtable_verify=no ;;
9295 *) enable_vtable_verify=no;;
9296 esac
9297 else
9298 enable_vtable_verify=no
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9302 $as_echo "$enable_vtable_verify" >&6; }
9304 # Record target_configdirs and the configure arguments for target and
9305 # build configuration in Makefile.
9306 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9307 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9308 bootstrap_fixincludes=no
9310 # If we are building libgomp, bootstrap it.
9311 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9312 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9315 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9316 # or bootstrap-ubsan, bootstrap it.
9317 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9318 case "$BUILD_CONFIG" in
9319 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9320 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9321 bootstrap_fixincludes=yes
9323 esac
9326 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9327 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9328 test "$enable_vtable_verify" != no; then
9329 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9332 # Determine whether gdb needs tk/tcl or not.
9333 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9334 # and in that case we want gdb to be built without tk. Ugh!
9335 # In fact I believe gdb is the *only* package directly dependent on tk,
9336 # so we should be able to put the 'maybe's in unconditionally and
9337 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9338 # 100% sure that that's safe though.
9340 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9341 case "$enable_gdbtk" in
9343 GDB_TK="" ;;
9344 yes)
9345 GDB_TK="${gdb_tk}" ;;
9347 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9348 # distro. Eventually someone will fix this and move Insight, nee
9349 # gdbtk to a separate directory.
9350 if test -d ${srcdir}/gdb/gdbtk ; then
9351 GDB_TK="${gdb_tk}"
9352 else
9353 GDB_TK=""
9356 esac
9357 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9358 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9360 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9361 # else does, only include them if one of these is built. The Makefile
9362 # provides the ordering, so it's enough here to add to the list.
9363 case " ${configdirs} " in
9364 *\ gdb\ *)
9365 configdirs="${configdirs} gnulib gdbsupport"
9367 *\ gdbserver\ *)
9368 configdirs="${configdirs} gnulib gdbsupport"
9370 esac
9372 # Strip out unwanted targets.
9374 # While at that, we remove Makefiles if we were started for recursive
9375 # configuration, so that the top-level Makefile reconfigures them,
9376 # like we used to do when configure itself was recursive.
9378 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9379 # but now we're fixing up the Makefile ourselves with the additional
9380 # commands passed to AC_CONFIG_FILES. Use separate variables
9381 # extrasub-{build,host,target} not because there is any reason to split
9382 # the substitutions up that way, but only to remain below the limit of
9383 # 99 commands in a script, for HP-UX sed.
9385 # Do not nest @if/@endif or @unless/@endunless pairs, because
9386 # configure will not warn you at all.
9388 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9389 yes:yes:*\ gold\ *:*,c++,*) ;;
9390 yes:yes:*\ gold\ *:*)
9391 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9393 esac
9395 extrasub_build=
9396 for module in ${build_configdirs} ; do
9397 if test -z "${no_recursion}" \
9398 && test -f ${build_subdir}/${module}/Makefile; then
9399 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9400 rm -f ${build_subdir}/${module}/Makefile
9402 extrasub_build="$extrasub_build
9403 /^@if build-$module\$/d
9404 /^@endif build-$module\$/d
9405 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9406 /^@if build-$module-$bootstrap_suffix\$/d
9407 /^@endif build-$module-$bootstrap_suffix\$/d
9408 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9409 done
9410 extrasub_host=
9411 for module in ${configdirs} ; do
9412 if test -z "${no_recursion}"; then
9413 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9414 if test -f ${file}; then
9415 echo 1>&2 "*** removing ${file} to force reconfigure"
9416 rm -f ${file}
9418 done
9420 case ${module},${bootstrap_fixincludes} in
9421 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9422 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9423 esac
9424 extrasub_host="$extrasub_host
9425 /^@if $module\$/d
9426 /^@endif $module\$/d
9427 /^@unless $module\$/,/^@endunless $module\$/d
9428 /^@if $module-$host_bootstrap_suffix\$/d
9429 /^@endif $module-$host_bootstrap_suffix\$/d
9430 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9431 done
9432 extrasub_target=
9433 for module in ${target_configdirs} ; do
9434 if test -z "${no_recursion}" \
9435 && test -f ${target_subdir}/${module}/Makefile; then
9436 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9437 rm -f ${target_subdir}/${module}/Makefile
9440 # We only bootstrap target libraries listed in bootstrap_target_libs.
9441 case $bootstrap_target_libs in
9442 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9443 *) target_bootstrap_suffix=no-bootstrap ;;
9444 esac
9446 extrasub_target="$extrasub_target
9447 /^@if target-$module\$/d
9448 /^@endif target-$module\$/d
9449 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9450 /^@if target-$module-$target_bootstrap_suffix\$/d
9451 /^@endif target-$module-$target_bootstrap_suffix\$/d
9452 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9453 done
9455 # Do the final fixup along with target modules.
9456 extrasub_target="$extrasub_target
9457 /^@if /,/^@endif /d
9458 /^@unless /d
9459 /^@endunless /d"
9461 # Create the serialization dependencies. This uses a temporary file.
9463 # Check whether --enable-serial-configure was given.
9464 if test "${enable_serial_configure+set}" = set; then :
9465 enableval=$enable_serial_configure;
9469 case ${enable_serial_configure} in
9470 yes)
9471 enable_serial_build_configure=yes
9472 enable_serial_host_configure=yes
9473 enable_serial_target_configure=yes
9475 esac
9477 # These force 'configure's to be done one at a time, to avoid problems
9478 # with contention over a shared config.cache.
9479 rm -f serdep.tmp
9480 echo '# serdep.tmp' > serdep.tmp
9481 olditem=
9482 test "x${enable_serial_build_configure}" = xyes &&
9483 for item in ${build_configdirs} ; do
9484 case ${olditem} in
9485 "") ;;
9486 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9487 esac
9488 olditem=${item}
9489 done
9490 olditem=
9491 test "x${enable_serial_host_configure}" = xyes &&
9492 for item in ${configdirs} ; do
9493 case ${olditem} in
9494 "") ;;
9495 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9496 esac
9497 olditem=${item}
9498 done
9499 olditem=
9500 test "x${enable_serial_target_configure}" = xyes &&
9501 for item in ${target_configdirs} ; do
9502 case ${olditem} in
9503 "") ;;
9504 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9505 esac
9506 olditem=${item}
9507 done
9508 serialization_dependencies=serdep.tmp
9511 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9512 # target, nonopt, and variable assignments. These are the ones we
9513 # might not want to pass down to subconfigures. The exception being
9514 # --cache-file=/dev/null, which is used to turn off the use of cache
9515 # files altogether, and which should be passed on to subconfigures.
9516 # Also strip program-prefix, program-suffix, and program-transform-name,
9517 # so that we can pass down a consistent program-transform-name.
9518 baseargs=
9519 tbaseargs=
9520 keep_next=no
9521 skip_next=no
9522 eval "set -- $ac_configure_args"
9523 for ac_arg
9525 if test X"$skip_next" = X"yes"; then
9526 skip_next=no
9527 continue
9529 if test X"$keep_next" = X"yes"; then
9530 case $ac_arg in
9531 *\'*)
9532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9533 esac
9534 baseargs="$baseargs '$ac_arg'"
9535 tbaseargs="$tbaseargs '$ac_arg'"
9536 keep_next=no
9537 continue
9540 # Handle separated arguments. Based on the logic generated by
9541 # autoconf 2.59.
9542 case $ac_arg in
9543 *=* | --config-cache | -C | -disable-* | --disable-* \
9544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9546 | -with-* | --with-* | -without-* | --without-* | --x)
9547 separate_arg=no
9550 separate_arg=yes
9553 separate_arg=no
9555 esac
9557 skip_targ=no
9558 case $ac_arg in
9560 --with-* | --without-*)
9561 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9563 case $libopt in
9564 *[-_]include)
9565 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9567 *[-_]lib)
9568 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9571 lib=$libopt
9573 esac
9576 case $lib in
9577 mpc | mpfr | gmp | isl)
9578 # If we're processing --with-$lib, --with-$lib-include or
9579 # --with-$lib-lib, for one of the libs above, and target is
9580 # different from host, don't pass the current argument to any
9581 # target library's configure.
9582 if test x$is_cross_compiler = xyes; then
9583 skip_targ=yes
9586 esac
9588 esac
9590 case "$ac_arg" in
9591 --cache-file=/dev/null | \
9592 -cache-file=/dev/null )
9593 # Handled here to avoid the test to skip args below.
9594 baseargs="$baseargs '$ac_arg'"
9595 tbaseargs="$tbaseargs '$ac_arg'"
9596 # Assert: $separate_arg should always be no.
9597 keep_next=$separate_arg
9599 --no*)
9600 continue
9602 --c* | \
9603 --sr* | \
9604 --ho* | \
9605 --bu* | \
9606 --t* | \
9607 --program-* | \
9608 -cache_file* | \
9609 -srcdir* | \
9610 -host* | \
9611 -build* | \
9612 -target* | \
9613 -program-prefix* | \
9614 -program-suffix* | \
9615 -program-transform-name* )
9616 skip_next=$separate_arg
9617 continue
9620 # An option. Add it.
9621 case $ac_arg in
9622 *\'*)
9623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9624 esac
9625 baseargs="$baseargs '$ac_arg'"
9626 if test X"$skip_targ" = Xno; then
9627 tbaseargs="$tbaseargs '$ac_arg'"
9629 keep_next=$separate_arg
9632 # Either a variable assignment, or a nonopt (triplet). Don't
9633 # pass it down; let the Makefile handle this.
9634 continue
9636 esac
9637 done
9638 # Remove the initial space we just introduced and, as these will be
9639 # expanded by make, quote '$'.
9640 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9642 # Add in --program-transform-name, after --program-prefix and
9643 # --program-suffix have been applied to it. Autoconf has already
9644 # doubled dollar signs and backslashes in program_transform_name; we want
9645 # the backslashes un-doubled, and then the entire thing wrapped in single
9646 # quotes, because this will be expanded first by make and then by the shell.
9647 # Also, because we want to override the logic in subdir configure scripts to
9648 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9649 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9650 ${program_transform_name}
9651 EOF_SED
9652 gcc_transform_name=`cat conftestsed.out`
9653 rm -f conftestsed.out
9654 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9655 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9656 if test "$silent" = yes; then
9657 baseargs="$baseargs --silent"
9658 tbaseargs="$tbaseargs --silent"
9660 baseargs="$baseargs --disable-option-checking"
9661 tbaseargs="$tbaseargs --disable-option-checking"
9663 # Record and document user additions to sub configure arguments.
9668 # For the build-side libraries, we just need to pretend we're native,
9669 # and not use the same cache file. Multilibs are neither needed nor
9670 # desired. We can't even use the same cache file for all build-side
9671 # libraries, as they're compiled differently; some with C, some with
9672 # C++ or with different feature-enabling options.
9673 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9675 # For host modules, accept cache file option, or specification as blank.
9676 case "${cache_file}" in
9677 "") # empty
9678 cache_file_option="" ;;
9679 /* | [A-Za-z]:[\\/]* ) # absolute path
9680 cache_file_option="--cache-file=${cache_file}" ;;
9681 *) # relative path
9682 cache_file_option="--cache-file=../${cache_file}" ;;
9683 esac
9685 # Host dirs don't like to share a cache file either, horribly enough.
9686 # This seems to be due to autoconf 2.5x stupidity.
9687 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9689 target_configargs="$target_configargs ${tbaseargs}"
9691 # Passing a --with-cross-host argument lets the target libraries know
9692 # whether they are being built with a cross-compiler or being built
9693 # native. However, it would be better to use other mechanisms to make the
9694 # sorts of decisions they want to make on this basis. Please consider
9695 # this option to be deprecated. FIXME.
9696 if test x${is_cross_compiler} = xyes ; then
9697 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9700 # Special user-friendly check for native x86_64-linux build, if
9701 # multilib is not explicitly enabled.
9702 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9703 x86_64-*linux*:yes:$build:$build:)
9704 # Make sure we have a development environment that handles 32-bit
9705 dev64=no
9706 echo "int main () { return 0; }" > conftest.c
9707 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9708 if test $? = 0 ; then
9709 if test -s conftest || test -s conftest.exe ; then
9710 dev64=yes
9713 rm -f conftest*
9714 if test x${dev64} != xyes ; then
9715 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
9718 esac
9720 # Default to --enable-multilib.
9721 if test x${enable_multilib} = x ; then
9722 target_configargs="--enable-multilib ${target_configargs}"
9725 # Pass --with-newlib if appropriate. Note that target_configdirs has
9726 # changed from the earlier setting of with_newlib.
9727 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9728 target_configargs="--with-newlib ${target_configargs}"
9731 # Different target subdirs use different values of certain variables
9732 # (notably CXX). Worse, multilibs use *lots* of different values.
9733 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9734 # it doesn't automatically accept command-line overrides of them.
9735 # This means it's not safe for target subdirs to share a cache file,
9736 # which is disgusting, but there you have it. Hopefully this can be
9737 # fixed in future. It's still worthwhile to use a cache file for each
9738 # directory. I think.
9740 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9741 # We need to pass --target, as newer autoconf's requires consistency
9742 # for target_alias and gcc doesn't manage it consistently.
9743 target_configargs="--cache-file=./config.cache ${target_configargs}"
9745 FLAGS_FOR_TARGET=
9746 case " $target_configdirs " in
9747 *" newlib "*)
9748 case " $target_configargs " in
9749 *" --with-newlib "*)
9750 case "$target" in
9751 *-cygwin*)
9752 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9754 esac
9756 # If we're not building GCC, don't discard standard headers.
9757 if test -d ${srcdir}/gcc; then
9758 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9760 if test "${build}" != "${host}"; then
9761 # On Canadian crosses, CC_FOR_TARGET will have already been set
9762 # by `configure', so we won't have an opportunity to add -Bgcc/
9763 # to it. This is right: we don't want to search that directory
9764 # for binaries, but we want the header files in there, so add
9765 # them explicitly.
9766 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9768 # Someone might think of using the pre-installed headers on
9769 # Canadian crosses, in case the installed compiler is not fully
9770 # compatible with the compiler being built. In this case, it
9771 # would be better to flag an error than risking having
9772 # incompatible object files being constructed. We can't
9773 # guarantee that an error will be flagged, but let's hope the
9774 # compiler will do it, when presented with incompatible header
9775 # files.
9779 case "${target}-${is_cross_compiler}" in
9780 i[3456789]86-*-linux*-no)
9781 # Here host == target, so we don't need to build gcc,
9782 # so we don't want to discard standard headers.
9783 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9786 # If we're building newlib, use its generic headers last, but search
9787 # for any libc-related directories first (so make it the last -B
9788 # switch).
9789 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9791 # If we're building libgloss, find the startup file, simulator library
9792 # and linker script.
9793 case " $target_configdirs " in
9794 *" libgloss "*)
9795 # Look for startup file, simulator library and maybe linker script.
9796 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9797 # Look for libnosys.a in case the target needs it.
9798 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9799 # Most targets have the linker script in the source directory.
9800 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9802 esac
9804 esac
9806 esac
9808 esac
9810 case "$target" in
9811 x86_64-*mingw* | *-w64-mingw*)
9812 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9813 # however, use a symlink named 'mingw' in ${prefix} .
9814 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9816 *-mingw*)
9817 # MinGW can't be handled as Cygwin above since it does not use newlib.
9818 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'
9820 esac
9822 # Allow the user to override the flags for
9823 # our build compiler if desired.
9824 if test x"${build}" = x"${host}" ; then
9825 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9826 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9827 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9830 # On Canadian crosses, we'll be searching the right directories for
9831 # the previously-installed cross compiler, so don't bother to add
9832 # flags for directories within the install tree of the compiler
9833 # being built; programs in there won't even run.
9834 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9835 # Search for pre-installed headers if nothing else fits.
9836 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
9839 if test "x${use_gnu_ld}" = x &&
9840 echo " ${configdirs} " | grep " ld " > /dev/null ; then
9841 # Arrange for us to find uninstalled linker scripts.
9842 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
9845 # Search for other target-specific linker scripts and such.
9846 case "${target}" in
9847 mep*)
9848 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9850 esac
9852 # Makefile fragments.
9853 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9855 eval fragval=\$$frag
9856 if test $fragval != /dev/null; then
9857 eval $frag=${srcdir}/$fragval
9859 done
9865 # Miscellanea: directories, flags, etc.
9874 # Build module lists & subconfigure args.
9878 # Host module lists & subconfigure args.
9883 # Target module lists & subconfigure args.
9887 # Build tools.
9905 # Generate default definitions for YACC, M4, LEX and other programs that run
9906 # on the build machine. These are used if the Makefile can't locate these
9907 # programs in objdir.
9908 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9910 for ac_prog in 'bison -y' byacc yacc
9912 # Extract the first word of "$ac_prog", so it can be a program name with args.
9913 set dummy $ac_prog; ac_word=$2
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 $as_echo_n "checking for $ac_word... " >&6; }
9916 if ${ac_cv_prog_YACC+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 if test -n "$YACC"; then
9920 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9921 else
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_prog_YACC="$ac_prog"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9933 done
9934 done
9935 IFS=$as_save_IFS
9939 YACC=$ac_cv_prog_YACC
9940 if test -n "$YACC"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9942 $as_echo "$YACC" >&6; }
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9949 test -n "$YACC" && break
9950 done
9951 test -n "$YACC" || YACC="$MISSING bison -y"
9953 case " $build_configdirs " in
9954 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
9955 esac
9957 for ac_prog in bison
9959 # Extract the first word of "$ac_prog", so it can be a program name with args.
9960 set dummy $ac_prog; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if ${ac_cv_prog_BISON+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 if test -n "$BISON"; then
9967 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9968 else
9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 for as_dir in $PATH
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9976 ac_cv_prog_BISON="$ac_prog"
9977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 break 2
9980 done
9981 done
9982 IFS=$as_save_IFS
9986 BISON=$ac_cv_prog_BISON
9987 if test -n "$BISON"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9989 $as_echo "$BISON" >&6; }
9990 else
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9996 test -n "$BISON" && break
9997 done
9998 test -n "$BISON" || BISON="$MISSING bison"
10000 case " $build_configdirs " in
10001 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10002 esac
10004 for ac_prog in gm4 gnum4 m4
10006 # Extract the first word of "$ac_prog", so it can be a program name with args.
10007 set dummy $ac_prog; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_prog_M4+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 if test -n "$M4"; then
10014 ac_cv_prog_M4="$M4" # Let the user override the test.
10015 else
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10023 ac_cv_prog_M4="$ac_prog"
10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 break 2
10027 done
10028 done
10029 IFS=$as_save_IFS
10033 M4=$ac_cv_prog_M4
10034 if test -n "$M4"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10036 $as_echo "$M4" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10043 test -n "$M4" && break
10044 done
10045 test -n "$M4" || M4="$MISSING m4"
10047 case " $build_configdirs " in
10048 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10049 esac
10051 for ac_prog in flex lex
10053 # Extract the first word of "$ac_prog", so it can be a program name with args.
10054 set dummy $ac_prog; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_prog_LEX+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$LEX"; then
10061 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_prog_LEX="$ac_prog"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10080 LEX=$ac_cv_prog_LEX
10081 if test -n "$LEX"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10083 $as_echo "$LEX" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10090 test -n "$LEX" && break
10091 done
10092 test -n "$LEX" || LEX="$MISSING flex"
10094 case " $build_configdirs " in
10095 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10096 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10097 esac
10099 for ac_prog in flex
10101 # Extract the first word of "$ac_prog", so it can be a program name with args.
10102 set dummy $ac_prog; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_prog_FLEX+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 if test -n "$FLEX"; then
10109 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10110 else
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_prog_FLEX="$ac_prog"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10122 done
10123 done
10124 IFS=$as_save_IFS
10128 FLEX=$ac_cv_prog_FLEX
10129 if test -n "$FLEX"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10131 $as_echo "$FLEX" >&6; }
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10138 test -n "$FLEX" && break
10139 done
10140 test -n "$FLEX" || FLEX="$MISSING flex"
10142 case " $build_configdirs " in
10143 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10144 esac
10146 for ac_prog in makeinfo
10148 # Extract the first word of "$ac_prog", so it can be a program name with args.
10149 set dummy $ac_prog; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if ${ac_cv_prog_MAKEINFO+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 if test -n "$MAKEINFO"; then
10156 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10157 else
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
10164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10165 ac_cv_prog_MAKEINFO="$ac_prog"
10166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 break 2
10169 done
10170 done
10171 IFS=$as_save_IFS
10175 MAKEINFO=$ac_cv_prog_MAKEINFO
10176 if test -n "$MAKEINFO"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10178 $as_echo "$MAKEINFO" >&6; }
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10185 test -n "$MAKEINFO" && break
10186 done
10187 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10189 case " $build_configdirs " in
10190 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10193 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10194 # higher, else we use the "missing" dummy.
10195 if ${MAKEINFO} --version \
10196 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10198 else
10199 MAKEINFO="$MISSING makeinfo"
10203 esac
10205 # FIXME: expect and dejagnu may become build tools?
10207 for ac_prog in expect
10209 # Extract the first word of "$ac_prog", so it can be a program name with args.
10210 set dummy $ac_prog; ac_word=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_prog_EXPECT+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 if test -n "$EXPECT"; then
10217 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10218 else
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10226 ac_cv_prog_EXPECT="$ac_prog"
10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10230 done
10231 done
10232 IFS=$as_save_IFS
10236 EXPECT=$ac_cv_prog_EXPECT
10237 if test -n "$EXPECT"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10239 $as_echo "$EXPECT" >&6; }
10240 else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10246 test -n "$EXPECT" && break
10247 done
10248 test -n "$EXPECT" || EXPECT="expect"
10250 case " $configdirs " in
10251 *" expect "*)
10252 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10254 esac
10256 for ac_prog in runtest
10258 # Extract the first word of "$ac_prog", so it can be a program name with args.
10259 set dummy $ac_prog; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if ${ac_cv_prog_RUNTEST+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 if test -n "$RUNTEST"; then
10266 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10267 else
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_RUNTEST="$ac_prog"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10279 done
10280 done
10281 IFS=$as_save_IFS
10285 RUNTEST=$ac_cv_prog_RUNTEST
10286 if test -n "$RUNTEST"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10288 $as_echo "$RUNTEST" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10295 test -n "$RUNTEST" && break
10296 done
10297 test -n "$RUNTEST" || RUNTEST="runtest"
10299 case " $configdirs " in
10300 *" dejagnu "*)
10301 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10303 esac
10306 # Host tools.
10307 ncn_tool_prefix=
10308 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10309 ncn_target_tool_prefix=
10310 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10314 if test -n "$AR"; then
10315 ac_cv_prog_AR=$AR
10316 elif test -n "$ac_cv_prog_AR"; then
10317 AR=$ac_cv_prog_AR
10320 if test -n "$ac_cv_prog_AR"; then
10321 for ncn_progname in ar; do
10322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10323 set dummy ${ncn_progname}; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if ${ac_cv_prog_AR+:} false; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 if test -n "$AR"; then
10330 ac_cv_prog_AR="$AR" # Let the user override the test.
10331 else
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10339 ac_cv_prog_AR="${ncn_progname}"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10343 done
10344 done
10345 IFS=$as_save_IFS
10349 AR=$ac_cv_prog_AR
10350 if test -n "$AR"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10352 $as_echo "$AR" >&6; }
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10359 done
10362 for ncn_progname in ar; do
10363 if test -n "$ncn_tool_prefix"; then
10364 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10365 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_prog_AR+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 if test -n "$AR"; then
10372 ac_cv_prog_AR="$AR" # Let the user override the test.
10373 else
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10385 done
10386 done
10387 IFS=$as_save_IFS
10391 AR=$ac_cv_prog_AR
10392 if test -n "$AR"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10394 $as_echo "$AR" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10402 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10404 set dummy ${ncn_progname}; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_prog_AR+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 if test -n "$AR"; then
10411 ac_cv_prog_AR="$AR" # Let the user override the test.
10412 else
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10420 ac_cv_prog_AR="${ncn_progname}"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10424 done
10425 done
10426 IFS=$as_save_IFS
10430 AR=$ac_cv_prog_AR
10431 if test -n "$AR"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10433 $as_echo "$AR" >&6; }
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10441 test -n "$ac_cv_prog_AR" && break
10442 done
10444 if test -z "$ac_cv_prog_AR" ; then
10445 set dummy ar
10446 if test $build = $host ; then
10447 AR="$2"
10448 else
10449 AR="${ncn_tool_prefix}$2"
10455 if test -n "$AS"; then
10456 ac_cv_prog_AS=$AS
10457 elif test -n "$ac_cv_prog_AS"; then
10458 AS=$ac_cv_prog_AS
10461 if test -n "$ac_cv_prog_AS"; then
10462 for ncn_progname in as; do
10463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10464 set dummy ${ncn_progname}; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if ${ac_cv_prog_AS+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 if test -n "$AS"; then
10471 ac_cv_prog_AS="$AS" # Let the user override the test.
10472 else
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_AS="${ncn_progname}"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10484 done
10485 done
10486 IFS=$as_save_IFS
10490 AS=$ac_cv_prog_AS
10491 if test -n "$AS"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10493 $as_echo "$AS" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10500 done
10503 for ncn_progname in as; do
10504 if test -n "$ncn_tool_prefix"; then
10505 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10506 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_prog_AS+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 if test -n "$AS"; then
10513 ac_cv_prog_AS="$AS" # Let the user override the test.
10514 else
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10518 IFS=$as_save_IFS
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 break 2
10526 done
10527 done
10528 IFS=$as_save_IFS
10532 AS=$ac_cv_prog_AS
10533 if test -n "$AS"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10535 $as_echo "$AS" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10543 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10545 set dummy ${ncn_progname}; ac_word=$2
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10547 $as_echo_n "checking for $ac_word... " >&6; }
10548 if ${ac_cv_prog_AS+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 if test -n "$AS"; then
10552 ac_cv_prog_AS="$AS" # Let the user override the test.
10553 else
10554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 for as_dir in $PATH
10557 IFS=$as_save_IFS
10558 test -z "$as_dir" && as_dir=.
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 ac_cv_prog_AS="${ncn_progname}"
10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 break 2
10565 done
10566 done
10567 IFS=$as_save_IFS
10571 AS=$ac_cv_prog_AS
10572 if test -n "$AS"; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10574 $as_echo "$AS" >&6; }
10575 else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 $as_echo "no" >&6; }
10582 test -n "$ac_cv_prog_AS" && break
10583 done
10585 if test -z "$ac_cv_prog_AS" ; then
10586 set dummy as
10587 if test $build = $host ; then
10588 AS="$2"
10589 else
10590 AS="${ncn_tool_prefix}$2"
10596 if test -n "$DLLTOOL"; then
10597 ac_cv_prog_DLLTOOL=$DLLTOOL
10598 elif test -n "$ac_cv_prog_DLLTOOL"; then
10599 DLLTOOL=$ac_cv_prog_DLLTOOL
10602 if test -n "$ac_cv_prog_DLLTOOL"; then
10603 for ncn_progname in dlltool; do
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605 set dummy ${ncn_progname}; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if ${ac_cv_prog_DLLTOOL+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 if test -n "$DLLTOOL"; then
10612 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10613 else
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_DLLTOOL="${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10631 DLLTOOL=$ac_cv_prog_DLLTOOL
10632 if test -n "$DLLTOOL"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10634 $as_echo "$DLLTOOL" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10641 done
10644 for ncn_progname in dlltool; do
10645 if test -n "$ncn_tool_prefix"; then
10646 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10647 set dummy ${ncn_tool_prefix}${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_DLLTOOL+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test -n "$DLLTOOL"; then
10654 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ncn_tool_prefix}${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 DLLTOOL=$ac_cv_prog_DLLTOOL
10674 if test -n "$DLLTOOL"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10676 $as_echo "$DLLTOOL" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10684 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10686 set dummy ${ncn_progname}; ac_word=$2
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 $as_echo_n "checking for $ac_word... " >&6; }
10689 if ${ac_cv_prog_DLLTOOL+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 if test -n "$DLLTOOL"; then
10693 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10694 else
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
10700 for ac_exec_ext in '' $ac_executable_extensions; do
10701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10702 ac_cv_prog_DLLTOOL="${ncn_progname}"
10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 break 2
10706 done
10707 done
10708 IFS=$as_save_IFS
10712 DLLTOOL=$ac_cv_prog_DLLTOOL
10713 if test -n "$DLLTOOL"; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10715 $as_echo "$DLLTOOL" >&6; }
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10723 test -n "$ac_cv_prog_DLLTOOL" && break
10724 done
10726 if test -z "$ac_cv_prog_DLLTOOL" ; then
10727 set dummy dlltool
10728 if test $build = $host ; then
10729 DLLTOOL="$2"
10730 else
10731 DLLTOOL="${ncn_tool_prefix}$2"
10737 if test -n "$LD"; then
10738 ac_cv_prog_LD=$LD
10739 elif test -n "$ac_cv_prog_LD"; then
10740 LD=$ac_cv_prog_LD
10743 if test -n "$ac_cv_prog_LD"; then
10744 for ncn_progname in ld; do
10745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10746 set dummy ${ncn_progname}; ac_word=$2
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748 $as_echo_n "checking for $ac_word... " >&6; }
10749 if ${ac_cv_prog_LD+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if test -n "$LD"; then
10753 ac_cv_prog_LD="$LD" # Let the user override the test.
10754 else
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_LD="${ncn_progname}"
10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10766 done
10767 done
10768 IFS=$as_save_IFS
10772 LD=$ac_cv_prog_LD
10773 if test -n "$LD"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10775 $as_echo "$LD" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10782 done
10785 for ncn_progname in ld; do
10786 if test -n "$ncn_tool_prefix"; then
10787 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10788 set dummy ${ncn_tool_prefix}${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_LD+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 if test -n "$LD"; then
10795 ac_cv_prog_LD="$LD" # 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_LD="${ncn_tool_prefix}${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 LD=$ac_cv_prog_LD
10815 if test -n "$LD"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10817 $as_echo "$LD" >&6; }
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10825 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10827 set dummy ${ncn_progname}; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_prog_LD+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 if test -n "$LD"; then
10834 ac_cv_prog_LD="$LD" # Let the user override the test.
10835 else
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_LD="${ncn_progname}"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10847 done
10848 done
10849 IFS=$as_save_IFS
10853 LD=$ac_cv_prog_LD
10854 if test -n "$LD"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10856 $as_echo "$LD" >&6; }
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10864 test -n "$ac_cv_prog_LD" && break
10865 done
10867 if test -z "$ac_cv_prog_LD" ; then
10868 set dummy ld
10869 if test $build = $host ; then
10870 LD="$2"
10871 else
10872 LD="${ncn_tool_prefix}$2"
10878 if test -n "$LIPO"; then
10879 ac_cv_prog_LIPO=$LIPO
10880 elif test -n "$ac_cv_prog_LIPO"; then
10881 LIPO=$ac_cv_prog_LIPO
10884 if test -n "$ac_cv_prog_LIPO"; then
10885 for ncn_progname in lipo; do
10886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10887 set dummy ${ncn_progname}; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_prog_LIPO+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 if test -n "$LIPO"; then
10894 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10895 else
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10903 ac_cv_prog_LIPO="${ncn_progname}"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10907 done
10908 done
10909 IFS=$as_save_IFS
10913 LIPO=$ac_cv_prog_LIPO
10914 if test -n "$LIPO"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10916 $as_echo "$LIPO" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10923 done
10926 for ncn_progname in lipo; do
10927 if test -n "$ncn_tool_prefix"; then
10928 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10929 set dummy ${ncn_tool_prefix}${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_LIPO+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 if test -n "$LIPO"; then
10936 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ncn_tool_prefix}${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 LIPO=$ac_cv_prog_LIPO
10956 if test -n "$LIPO"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10958 $as_echo "$LIPO" >&6; }
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10966 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
10967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10968 set dummy ${ncn_progname}; ac_word=$2
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970 $as_echo_n "checking for $ac_word... " >&6; }
10971 if ${ac_cv_prog_LIPO+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 if test -n "$LIPO"; then
10975 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10976 else
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_prog_LIPO="${ncn_progname}"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10994 LIPO=$ac_cv_prog_LIPO
10995 if test -n "$LIPO"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10997 $as_echo "$LIPO" >&6; }
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11005 test -n "$ac_cv_prog_LIPO" && break
11006 done
11008 if test -z "$ac_cv_prog_LIPO" ; then
11009 set dummy lipo
11010 if test $build = $host ; then
11011 LIPO="$2"
11012 else
11013 LIPO="${ncn_tool_prefix}$2"
11019 if test -n "$NM"; then
11020 ac_cv_prog_NM=$NM
11021 elif test -n "$ac_cv_prog_NM"; then
11022 NM=$ac_cv_prog_NM
11025 if test -n "$ac_cv_prog_NM"; then
11026 for ncn_progname in nm; do
11027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11028 set dummy ${ncn_progname}; ac_word=$2
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030 $as_echo_n "checking for $ac_word... " >&6; }
11031 if ${ac_cv_prog_NM+:} false; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 if test -n "$NM"; then
11035 ac_cv_prog_NM="$NM" # Let the user override the test.
11036 else
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044 ac_cv_prog_NM="${ncn_progname}"
11045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11048 done
11049 done
11050 IFS=$as_save_IFS
11054 NM=$ac_cv_prog_NM
11055 if test -n "$NM"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11057 $as_echo "$NM" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11064 done
11067 for ncn_progname in nm; do
11068 if test -n "$ncn_tool_prefix"; then
11069 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11070 set dummy ${ncn_tool_prefix}${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_NM+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 if test -n "$NM"; then
11077 ac_cv_prog_NM="$NM" # 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_NM="${ncn_tool_prefix}${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 NM=$ac_cv_prog_NM
11097 if test -n "$NM"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11099 $as_echo "$NM" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11107 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11109 set dummy ${ncn_progname}; ac_word=$2
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 $as_echo_n "checking for $ac_word... " >&6; }
11112 if ${ac_cv_prog_NM+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 if test -n "$NM"; then
11116 ac_cv_prog_NM="$NM" # Let the user override the test.
11117 else
11118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11121 IFS=$as_save_IFS
11122 test -z "$as_dir" && as_dir=.
11123 for ac_exec_ext in '' $ac_executable_extensions; do
11124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11125 ac_cv_prog_NM="${ncn_progname}"
11126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11127 break 2
11129 done
11130 done
11131 IFS=$as_save_IFS
11135 NM=$ac_cv_prog_NM
11136 if test -n "$NM"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11138 $as_echo "$NM" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11146 test -n "$ac_cv_prog_NM" && break
11147 done
11149 if test -z "$ac_cv_prog_NM" ; then
11150 set dummy nm
11151 if test $build = $host ; then
11152 NM="$2"
11153 else
11154 NM="${ncn_tool_prefix}$2"
11160 if test -n "$RANLIB"; then
11161 ac_cv_prog_RANLIB=$RANLIB
11162 elif test -n "$ac_cv_prog_RANLIB"; then
11163 RANLIB=$ac_cv_prog_RANLIB
11166 if test -n "$ac_cv_prog_RANLIB"; then
11167 for ncn_progname in ranlib; do
11168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11169 set dummy ${ncn_progname}; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if ${ac_cv_prog_RANLIB+:} false; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 if test -n "$RANLIB"; then
11176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11177 else
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11181 IFS=$as_save_IFS
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11185 ac_cv_prog_RANLIB="${ncn_progname}"
11186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11187 break 2
11189 done
11190 done
11191 IFS=$as_save_IFS
11195 RANLIB=$ac_cv_prog_RANLIB
11196 if test -n "$RANLIB"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11198 $as_echo "$RANLIB" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11205 done
11208 for ncn_progname in ranlib; do
11209 if test -n "$ncn_tool_prefix"; then
11210 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211 set dummy ${ncn_tool_prefix}${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_RANLIB+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 if test -n "$RANLIB"; then
11218 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ncn_tool_prefix}${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 RANLIB=$ac_cv_prog_RANLIB
11238 if test -n "$RANLIB"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11240 $as_echo "$RANLIB" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11248 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11250 set dummy ${ncn_progname}; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_prog_RANLIB+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 if test -n "$RANLIB"; then
11257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_RANLIB="${ncn_progname}"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11270 done
11271 done
11272 IFS=$as_save_IFS
11276 RANLIB=$ac_cv_prog_RANLIB
11277 if test -n "$RANLIB"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11279 $as_echo "$RANLIB" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11287 test -n "$ac_cv_prog_RANLIB" && break
11288 done
11290 if test -z "$ac_cv_prog_RANLIB" ; then
11291 RANLIB="true"
11296 if test -n "$STRIP"; then
11297 ac_cv_prog_STRIP=$STRIP
11298 elif test -n "$ac_cv_prog_STRIP"; then
11299 STRIP=$ac_cv_prog_STRIP
11302 if test -n "$ac_cv_prog_STRIP"; then
11303 for ncn_progname in strip; do
11304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11305 set dummy ${ncn_progname}; ac_word=$2
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307 $as_echo_n "checking for $ac_word... " >&6; }
11308 if ${ac_cv_prog_STRIP+:} false; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 if test -n "$STRIP"; then
11312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11313 else
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11321 ac_cv_prog_STRIP="${ncn_progname}"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 break 2
11325 done
11326 done
11327 IFS=$as_save_IFS
11331 STRIP=$ac_cv_prog_STRIP
11332 if test -n "$STRIP"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11334 $as_echo "$STRIP" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11341 done
11344 for ncn_progname in strip; do
11345 if test -n "$ncn_tool_prefix"; then
11346 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11347 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if ${ac_cv_prog_STRIP+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 if test -n "$STRIP"; then
11354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11355 else
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11367 done
11368 done
11369 IFS=$as_save_IFS
11373 STRIP=$ac_cv_prog_STRIP
11374 if test -n "$STRIP"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11376 $as_echo "$STRIP" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11384 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11386 set dummy ${ncn_progname}; ac_word=$2
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 $as_echo_n "checking for $ac_word... " >&6; }
11389 if ${ac_cv_prog_STRIP+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 if test -n "$STRIP"; then
11393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11394 else
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_STRIP="${ncn_progname}"
11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11406 done
11407 done
11408 IFS=$as_save_IFS
11412 STRIP=$ac_cv_prog_STRIP
11413 if test -n "$STRIP"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11415 $as_echo "$STRIP" >&6; }
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11423 test -n "$ac_cv_prog_STRIP" && break
11424 done
11426 if test -z "$ac_cv_prog_STRIP" ; then
11427 STRIP="true"
11432 if test -n "$WINDRES"; then
11433 ac_cv_prog_WINDRES=$WINDRES
11434 elif test -n "$ac_cv_prog_WINDRES"; then
11435 WINDRES=$ac_cv_prog_WINDRES
11438 if test -n "$ac_cv_prog_WINDRES"; then
11439 for ncn_progname in windres; do
11440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11441 set dummy ${ncn_progname}; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_prog_WINDRES+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 if test -n "$WINDRES"; then
11448 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11449 else
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
11455 for ac_exec_ext in '' $ac_executable_extensions; do
11456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11457 ac_cv_prog_WINDRES="${ncn_progname}"
11458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459 break 2
11461 done
11462 done
11463 IFS=$as_save_IFS
11467 WINDRES=$ac_cv_prog_WINDRES
11468 if test -n "$WINDRES"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11470 $as_echo "$WINDRES" >&6; }
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11477 done
11480 for ncn_progname in windres; do
11481 if test -n "$ncn_tool_prefix"; then
11482 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11483 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if ${ac_cv_prog_WINDRES+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 if test -n "$WINDRES"; then
11490 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11491 else
11492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11499 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11503 done
11504 done
11505 IFS=$as_save_IFS
11509 WINDRES=$ac_cv_prog_WINDRES
11510 if test -n "$WINDRES"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11512 $as_echo "$WINDRES" >&6; }
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11520 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11522 set dummy ${ncn_progname}; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_prog_WINDRES+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 if test -n "$WINDRES"; then
11529 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11530 else
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11538 ac_cv_prog_WINDRES="${ncn_progname}"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11542 done
11543 done
11544 IFS=$as_save_IFS
11548 WINDRES=$ac_cv_prog_WINDRES
11549 if test -n "$WINDRES"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11551 $as_echo "$WINDRES" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11559 test -n "$ac_cv_prog_WINDRES" && break
11560 done
11562 if test -z "$ac_cv_prog_WINDRES" ; then
11563 set dummy windres
11564 if test $build = $host ; then
11565 WINDRES="$2"
11566 else
11567 WINDRES="${ncn_tool_prefix}$2"
11573 if test -n "$WINDMC"; then
11574 ac_cv_prog_WINDMC=$WINDMC
11575 elif test -n "$ac_cv_prog_WINDMC"; then
11576 WINDMC=$ac_cv_prog_WINDMC
11579 if test -n "$ac_cv_prog_WINDMC"; then
11580 for ncn_progname in windmc; do
11581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11582 set dummy ${ncn_progname}; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if ${ac_cv_prog_WINDMC+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 if test -n "$WINDMC"; then
11589 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598 ac_cv_prog_WINDMC="${ncn_progname}"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11602 done
11603 done
11604 IFS=$as_save_IFS
11608 WINDMC=$ac_cv_prog_WINDMC
11609 if test -n "$WINDMC"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11611 $as_echo "$WINDMC" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11618 done
11621 for ncn_progname in windmc; do
11622 if test -n "$ncn_tool_prefix"; then
11623 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11624 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if ${ac_cv_prog_WINDMC+:} false; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 if test -n "$WINDMC"; then
11631 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11632 else
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11644 done
11645 done
11646 IFS=$as_save_IFS
11650 WINDMC=$ac_cv_prog_WINDMC
11651 if test -n "$WINDMC"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11653 $as_echo "$WINDMC" >&6; }
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11661 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11663 set dummy ${ncn_progname}; ac_word=$2
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if ${ac_cv_prog_WINDMC+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 if test -n "$WINDMC"; then
11670 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11671 else
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11679 ac_cv_prog_WINDMC="${ncn_progname}"
11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 break 2
11683 done
11684 done
11685 IFS=$as_save_IFS
11689 WINDMC=$ac_cv_prog_WINDMC
11690 if test -n "$WINDMC"; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11692 $as_echo "$WINDMC" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11700 test -n "$ac_cv_prog_WINDMC" && break
11701 done
11703 if test -z "$ac_cv_prog_WINDMC" ; then
11704 set dummy windmc
11705 if test $build = $host ; then
11706 WINDMC="$2"
11707 else
11708 WINDMC="${ncn_tool_prefix}$2"
11714 if test -n "$OBJCOPY"; then
11715 ac_cv_prog_OBJCOPY=$OBJCOPY
11716 elif test -n "$ac_cv_prog_OBJCOPY"; then
11717 OBJCOPY=$ac_cv_prog_OBJCOPY
11720 if test -n "$ac_cv_prog_OBJCOPY"; then
11721 for ncn_progname in objcopy; do
11722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11723 set dummy ${ncn_progname}; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if ${ac_cv_prog_OBJCOPY+:} false; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 if test -n "$OBJCOPY"; then
11730 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11731 else
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739 ac_cv_prog_OBJCOPY="${ncn_progname}"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 break 2
11743 done
11744 done
11745 IFS=$as_save_IFS
11749 OBJCOPY=$ac_cv_prog_OBJCOPY
11750 if test -n "$OBJCOPY"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11752 $as_echo "$OBJCOPY" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 done
11762 for ncn_progname in objcopy; do
11763 if test -n "$ncn_tool_prefix"; then
11764 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11765 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if ${ac_cv_prog_OBJCOPY+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 if test -n "$OBJCOPY"; then
11772 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11773 else
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11785 done
11786 done
11787 IFS=$as_save_IFS
11791 OBJCOPY=$ac_cv_prog_OBJCOPY
11792 if test -n "$OBJCOPY"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11794 $as_echo "$OBJCOPY" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11802 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11804 set dummy ${ncn_progname}; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if ${ac_cv_prog_OBJCOPY+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 if test -n "$OBJCOPY"; then
11811 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11812 else
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
11818 for ac_exec_ext in '' $ac_executable_extensions; do
11819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11820 ac_cv_prog_OBJCOPY="${ncn_progname}"
11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 break 2
11824 done
11825 done
11826 IFS=$as_save_IFS
11830 OBJCOPY=$ac_cv_prog_OBJCOPY
11831 if test -n "$OBJCOPY"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11833 $as_echo "$OBJCOPY" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 test -n "$ac_cv_prog_OBJCOPY" && break
11842 done
11844 if test -z "$ac_cv_prog_OBJCOPY" ; then
11845 set dummy objcopy
11846 if test $build = $host ; then
11847 OBJCOPY="$2"
11848 else
11849 OBJCOPY="${ncn_tool_prefix}$2"
11855 if test -n "$OBJDUMP"; then
11856 ac_cv_prog_OBJDUMP=$OBJDUMP
11857 elif test -n "$ac_cv_prog_OBJDUMP"; then
11858 OBJDUMP=$ac_cv_prog_OBJDUMP
11861 if test -n "$ac_cv_prog_OBJDUMP"; then
11862 for ncn_progname in objdump; do
11863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11864 set dummy ${ncn_progname}; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866 $as_echo_n "checking for $ac_word... " >&6; }
11867 if ${ac_cv_prog_OBJDUMP+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 if test -n "$OBJDUMP"; then
11871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11872 else
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_prog_OBJDUMP="${ncn_progname}"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11884 done
11885 done
11886 IFS=$as_save_IFS
11890 OBJDUMP=$ac_cv_prog_OBJDUMP
11891 if test -n "$OBJDUMP"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11893 $as_echo "$OBJDUMP" >&6; }
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11900 done
11903 for ncn_progname in objdump; do
11904 if test -n "$ncn_tool_prefix"; then
11905 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11906 set dummy ${ncn_tool_prefix}${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_OBJDUMP+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test -n "$OBJDUMP"; then
11913 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ncn_tool_prefix}${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 OBJDUMP=$ac_cv_prog_OBJDUMP
11933 if test -n "$OBJDUMP"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11935 $as_echo "$OBJDUMP" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11943 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
11944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11945 set dummy ${ncn_progname}; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if ${ac_cv_prog_OBJDUMP+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 if test -n "$OBJDUMP"; then
11952 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11953 else
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11961 ac_cv_prog_OBJDUMP="${ncn_progname}"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11965 done
11966 done
11967 IFS=$as_save_IFS
11971 OBJDUMP=$ac_cv_prog_OBJDUMP
11972 if test -n "$OBJDUMP"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11974 $as_echo "$OBJDUMP" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11982 test -n "$ac_cv_prog_OBJDUMP" && break
11983 done
11985 if test -z "$ac_cv_prog_OBJDUMP" ; then
11986 set dummy objdump
11987 if test $build = $host ; then
11988 OBJDUMP="$2"
11989 else
11990 OBJDUMP="${ncn_tool_prefix}$2"
11996 if test -n "$OTOOL"; then
11997 ac_cv_prog_OTOOL=$OTOOL
11998 elif test -n "$ac_cv_prog_OTOOL"; then
11999 OTOOL=$ac_cv_prog_OTOOL
12002 if test -n "$ac_cv_prog_OTOOL"; then
12003 for ncn_progname in otool; do
12004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12005 set dummy ${ncn_progname}; ac_word=$2
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007 $as_echo_n "checking for $ac_word... " >&6; }
12008 if ${ac_cv_prog_OTOOL+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 if test -n "$OTOOL"; then
12012 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12013 else
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12021 ac_cv_prog_OTOOL="${ncn_progname}"
12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 break 2
12025 done
12026 done
12027 IFS=$as_save_IFS
12031 OTOOL=$ac_cv_prog_OTOOL
12032 if test -n "$OTOOL"; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12034 $as_echo "$OTOOL" >&6; }
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037 $as_echo "no" >&6; }
12041 done
12044 for ncn_progname in otool; do
12045 if test -n "$ncn_tool_prefix"; then
12046 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12047 set dummy ${ncn_tool_prefix}${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_OTOOL+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test -n "$OTOOL"; then
12054 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ncn_tool_prefix}${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 OTOOL=$ac_cv_prog_OTOOL
12074 if test -n "$OTOOL"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12076 $as_echo "$OTOOL" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12084 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12086 set dummy ${ncn_progname}; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_prog_OTOOL+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 if test -n "$OTOOL"; then
12093 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12094 else
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_prog_OTOOL="${ncn_progname}"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12106 done
12107 done
12108 IFS=$as_save_IFS
12112 OTOOL=$ac_cv_prog_OTOOL
12113 if test -n "$OTOOL"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12115 $as_echo "$OTOOL" >&6; }
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12123 test -n "$ac_cv_prog_OTOOL" && break
12124 done
12126 if test -z "$ac_cv_prog_OTOOL" ; then
12127 set dummy otool
12128 if test $build = $host ; then
12129 OTOOL="$2"
12130 else
12131 OTOOL="${ncn_tool_prefix}$2"
12137 if test -n "$READELF"; then
12138 ac_cv_prog_READELF=$READELF
12139 elif test -n "$ac_cv_prog_READELF"; then
12140 READELF=$ac_cv_prog_READELF
12143 if test -n "$ac_cv_prog_READELF"; then
12144 for ncn_progname in readelf; do
12145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12146 set dummy ${ncn_progname}; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_prog_READELF+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 if test -n "$READELF"; then
12153 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12154 else
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_prog_READELF="${ncn_progname}"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12172 READELF=$ac_cv_prog_READELF
12173 if test -n "$READELF"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12175 $as_echo "$READELF" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12182 done
12185 for ncn_progname in readelf; do
12186 if test -n "$ncn_tool_prefix"; then
12187 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12188 set dummy ${ncn_tool_prefix}${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_READELF+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if test -n "$READELF"; then
12195 ac_cv_prog_READELF="$READELF" # 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_READELF="${ncn_tool_prefix}${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 READELF=$ac_cv_prog_READELF
12215 if test -n "$READELF"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12217 $as_echo "$READELF" >&6; }
12218 else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12225 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12227 set dummy ${ncn_progname}; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_prog_READELF+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 if test -n "$READELF"; then
12234 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_prog_READELF="${ncn_progname}"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12247 done
12248 done
12249 IFS=$as_save_IFS
12253 READELF=$ac_cv_prog_READELF
12254 if test -n "$READELF"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12256 $as_echo "$READELF" >&6; }
12257 else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12264 test -n "$ac_cv_prog_READELF" && break
12265 done
12267 if test -z "$ac_cv_prog_READELF" ; then
12268 set dummy readelf
12269 if test $build = $host ; then
12270 READELF="$2"
12271 else
12272 READELF="${ncn_tool_prefix}$2"
12281 # Target tools.
12283 # Check whether --with-build-time-tools was given.
12284 if test "${with_build_time_tools+set}" = set; then :
12285 withval=$with_build_time_tools; case x"$withval" in
12286 x/*) ;;
12288 with_build_time_tools=
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12290 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12292 esac
12293 else
12294 with_build_time_tools=
12300 if test -n "$CC_FOR_TARGET"; then
12301 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12302 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12303 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12306 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12307 for ncn_progname in cc gcc; do
12308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12309 set dummy ${ncn_progname}; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 if test -n "$CC_FOR_TARGET"; then
12316 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12317 else
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12329 done
12330 done
12331 IFS=$as_save_IFS
12335 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12336 if test -n "$CC_FOR_TARGET"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12338 $as_echo "$CC_FOR_TARGET" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12345 done
12348 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12349 for ncn_progname in cc gcc; do
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12351 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12352 if test -x $with_build_time_tools/${ncn_progname}; then
12353 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355 $as_echo "yes" >&6; }
12356 break
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12361 done
12364 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12365 for ncn_progname in cc gcc; do
12366 if test -n "$ncn_target_tool_prefix"; then
12367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12368 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 if test -n "$CC_FOR_TARGET"; then
12375 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12376 else
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12384 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12388 done
12389 done
12390 IFS=$as_save_IFS
12394 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12395 if test -n "$CC_FOR_TARGET"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12397 $as_echo "$CC_FOR_TARGET" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12405 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12407 set dummy ${ncn_progname}; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 if test -n "$CC_FOR_TARGET"; then
12414 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425 break 2
12427 done
12428 done
12429 IFS=$as_save_IFS
12433 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12434 if test -n "$CC_FOR_TARGET"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12436 $as_echo "$CC_FOR_TARGET" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12444 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12445 done
12448 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12449 set dummy cc gcc
12450 if test $build = $target ; then
12451 CC_FOR_TARGET="$2"
12452 else
12453 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12455 else
12456 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12461 if test -n "$CXX_FOR_TARGET"; then
12462 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12463 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12464 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12467 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12468 for ncn_progname in c++ g++ cxx gxx; 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_CXX_FOR_TARGET+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 if test -n "$CXX_FOR_TARGET"; then
12477 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # 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_CXX_FOR_TARGET="${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 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12497 if test -n "$CXX_FOR_TARGET"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12499 $as_echo "$CXX_FOR_TARGET" >&6; }
12500 else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12506 done
12509 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12510 for ncn_progname in c++ g++ cxx gxx; do
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12512 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12513 if test -x $with_build_time_tools/${ncn_progname}; then
12514 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12516 $as_echo "yes" >&6; }
12517 break
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12522 done
12525 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12526 for ncn_progname in c++ g++ cxx gxx; do
12527 if test -n "$ncn_target_tool_prefix"; then
12528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12529 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$CXX_FOR_TARGET"; then
12536 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12549 done
12550 done
12551 IFS=$as_save_IFS
12555 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12556 if test -n "$CXX_FOR_TARGET"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12558 $as_echo "$CXX_FOR_TARGET" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12566 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12568 set dummy ${ncn_progname}; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if test -n "$CXX_FOR_TARGET"; then
12575 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12576 else
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12588 done
12589 done
12590 IFS=$as_save_IFS
12594 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12595 if test -n "$CXX_FOR_TARGET"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12597 $as_echo "$CXX_FOR_TARGET" >&6; }
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12605 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12606 done
12609 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12610 set dummy c++ g++ cxx gxx
12611 if test $build = $target ; then
12612 CXX_FOR_TARGET="$2"
12613 else
12614 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12616 else
12617 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12622 if test -n "$GCC_FOR_TARGET"; then
12623 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12624 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12625 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12628 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12629 for ncn_progname in gcc; do
12630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12631 set dummy ${ncn_progname}; ac_word=$2
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633 $as_echo_n "checking for $ac_word... " >&6; }
12634 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 if test -n "$GCC_FOR_TARGET"; then
12638 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12639 else
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12647 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12651 done
12652 done
12653 IFS=$as_save_IFS
12657 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12658 if test -n "$GCC_FOR_TARGET"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12660 $as_echo "$GCC_FOR_TARGET" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12667 done
12670 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12671 for ncn_progname in gcc; do
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12673 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12674 if test -x $with_build_time_tools/${ncn_progname}; then
12675 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12677 $as_echo "yes" >&6; }
12678 break
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12683 done
12686 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12687 for ncn_progname in gcc; do
12688 if test -n "$ncn_target_tool_prefix"; then
12689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12690 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692 $as_echo_n "checking for $ac_word... " >&6; }
12693 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 if test -n "$GCC_FOR_TARGET"; then
12697 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12698 else
12699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700 for as_dir in $PATH
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
12704 for ac_exec_ext in '' $ac_executable_extensions; do
12705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12706 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12708 break 2
12710 done
12711 done
12712 IFS=$as_save_IFS
12716 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12717 if test -n "$GCC_FOR_TARGET"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12719 $as_echo "$GCC_FOR_TARGET" >&6; }
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12727 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12729 set dummy ${ncn_progname}; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 if test -n "$GCC_FOR_TARGET"; then
12736 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12737 else
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12745 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 break 2
12749 done
12750 done
12751 IFS=$as_save_IFS
12755 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12756 if test -n "$GCC_FOR_TARGET"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12758 $as_echo "$GCC_FOR_TARGET" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12766 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12767 done
12770 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12771 GCC_FOR_TARGET="${CC_FOR_TARGET}"
12772 else
12773 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12778 if test -n "$GFORTRAN_FOR_TARGET"; then
12779 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12780 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12781 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12784 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12785 for ncn_progname in gfortran; do
12786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12787 set dummy ${ncn_progname}; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 $as_echo_n "checking for $ac_word... " >&6; }
12790 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 if test -n "$GFORTRAN_FOR_TARGET"; then
12794 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12795 else
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12799 IFS=$as_save_IFS
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12805 break 2
12807 done
12808 done
12809 IFS=$as_save_IFS
12813 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12814 if test -n "$GFORTRAN_FOR_TARGET"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12816 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12823 done
12826 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
12827 for ncn_progname in gfortran; do
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12829 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12830 if test -x $with_build_time_tools/${ncn_progname}; then
12831 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12833 $as_echo "yes" >&6; }
12834 break
12835 else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12839 done
12842 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12843 for ncn_progname in gfortran; do
12844 if test -n "$ncn_target_tool_prefix"; then
12845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12848 $as_echo_n "checking for $ac_word... " >&6; }
12849 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 if test -n "$GFORTRAN_FOR_TARGET"; then
12853 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12854 else
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12866 done
12867 done
12868 IFS=$as_save_IFS
12872 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12873 if test -n "$GFORTRAN_FOR_TARGET"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12875 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12883 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
12884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12885 set dummy ${ncn_progname}; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -n "$GFORTRAN_FOR_TARGET"; then
12892 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12905 done
12906 done
12907 IFS=$as_save_IFS
12911 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12912 if test -n "$GFORTRAN_FOR_TARGET"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12914 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12922 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
12923 done
12926 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
12927 set dummy gfortran
12928 if test $build = $target ; then
12929 GFORTRAN_FOR_TARGET="$2"
12930 else
12931 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
12933 else
12934 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
12939 if test -n "$GOC_FOR_TARGET"; then
12940 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
12941 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12942 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12945 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12946 for ncn_progname in gccgo; do
12947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12948 set dummy ${ncn_progname}; ac_word=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 if test -n "$GOC_FOR_TARGET"; then
12955 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
12956 else
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in $PATH
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
12962 for ac_exec_ext in '' $ac_executable_extensions; do
12963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12964 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12966 break 2
12968 done
12969 done
12970 IFS=$as_save_IFS
12974 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12975 if test -n "$GOC_FOR_TARGET"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
12977 $as_echo "$GOC_FOR_TARGET" >&6; }
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12984 done
12987 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12988 for ncn_progname in gccgo; do
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12990 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12991 if test -x $with_build_time_tools/${ncn_progname}; then
12992 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12994 $as_echo "yes" >&6; }
12995 break
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
13000 done
13003 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13004 for ncn_progname in gccgo; do
13005 if test -n "$ncn_target_tool_prefix"; then
13006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009 $as_echo_n "checking for $ac_word... " >&6; }
13010 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 if test -n "$GOC_FOR_TARGET"; then
13014 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13015 else
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13019 IFS=$as_save_IFS
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13023 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 break 2
13027 done
13028 done
13029 IFS=$as_save_IFS
13033 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13034 if test -n "$GOC_FOR_TARGET"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13036 $as_echo "$GOC_FOR_TARGET" >&6; }
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13044 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13046 set dummy ${ncn_progname}; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -n "$GOC_FOR_TARGET"; then
13053 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13066 done
13067 done
13068 IFS=$as_save_IFS
13072 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13073 if test -n "$GOC_FOR_TARGET"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13075 $as_echo "$GOC_FOR_TARGET" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13083 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13084 done
13087 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13088 set dummy gccgo
13089 if test $build = $target ; then
13090 GOC_FOR_TARGET="$2"
13091 else
13092 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13094 else
13095 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13100 if test -n "$GDC_FOR_TARGET"; then
13101 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13102 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13103 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13106 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13107 for ncn_progname in gdc; do
13108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13109 set dummy ${ncn_progname}; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111 $as_echo_n "checking for $ac_word... " >&6; }
13112 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 if test -n "$GDC_FOR_TARGET"; then
13116 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13117 else
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13125 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13129 done
13130 done
13131 IFS=$as_save_IFS
13135 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13136 if test -n "$GDC_FOR_TARGET"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13138 $as_echo "$GDC_FOR_TARGET" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13145 done
13148 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13149 for ncn_progname in gdc; do
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13151 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13152 if test -x $with_build_time_tools/${ncn_progname}; then
13153 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13155 $as_echo "yes" >&6; }
13156 break
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13161 done
13164 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13165 for ncn_progname in gdc; do
13166 if test -n "$ncn_target_tool_prefix"; then
13167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13168 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13170 $as_echo_n "checking for $ac_word... " >&6; }
13171 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13172 $as_echo_n "(cached) " >&6
13173 else
13174 if test -n "$GDC_FOR_TARGET"; then
13175 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13176 else
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $PATH
13180 IFS=$as_save_IFS
13181 test -z "$as_dir" && as_dir=.
13182 for ac_exec_ext in '' $ac_executable_extensions; do
13183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13184 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186 break 2
13188 done
13189 done
13190 IFS=$as_save_IFS
13194 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13195 if test -n "$GDC_FOR_TARGET"; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13197 $as_echo "$GDC_FOR_TARGET" >&6; }
13198 else
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200 $as_echo "no" >&6; }
13205 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13207 set dummy ${ncn_progname}; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209 $as_echo_n "checking for $ac_word... " >&6; }
13210 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13211 $as_echo_n "(cached) " >&6
13212 else
13213 if test -n "$GDC_FOR_TARGET"; then
13214 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13215 else
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13223 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225 break 2
13227 done
13228 done
13229 IFS=$as_save_IFS
13233 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13234 if test -n "$GDC_FOR_TARGET"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13236 $as_echo "$GDC_FOR_TARGET" >&6; }
13237 else
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13244 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13245 done
13248 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13249 set dummy gdc
13250 if test $build = $target ; then
13251 GDC_FOR_TARGET="$2"
13252 else
13253 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13255 else
13256 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13261 cat > conftest.c << \EOF
13262 #ifdef __GNUC__
13263 gcc_yay;
13264 #endif
13266 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13267 have_gcc_for_target=yes
13268 else
13269 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13270 have_gcc_for_target=no
13272 rm conftest.c
13277 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13278 if test -n "$with_build_time_tools"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13280 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13281 if test -x $with_build_time_tools/ar; then
13282 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13283 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13285 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13286 else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 $as_echo "no" >&6; }
13290 elif test $build != $host && test $have_gcc_for_target = yes; then
13291 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13292 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13293 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13296 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13297 # Extract the first word of "ar", so it can be a program name with args.
13298 set dummy ar; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 case $AR_FOR_TARGET in
13305 [\\/]* | ?:[\\/]*)
13306 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $gcc_cv_tool_dirs
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13316 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13320 done
13321 done
13322 IFS=$as_save_IFS
13325 esac
13327 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13328 if test -n "$AR_FOR_TARGET"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13330 $as_echo "$AR_FOR_TARGET" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13338 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13341 if test -n "$AR_FOR_TARGET"; then
13342 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13343 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13344 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13347 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13348 for ncn_progname in ar; do
13349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13350 set dummy ${ncn_progname}; ac_word=$2
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 $as_echo_n "checking for $ac_word... " >&6; }
13353 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 if test -n "$AR_FOR_TARGET"; then
13357 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13358 else
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 break 2
13370 done
13371 done
13372 IFS=$as_save_IFS
13376 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13377 if test -n "$AR_FOR_TARGET"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13379 $as_echo "$AR_FOR_TARGET" >&6; }
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13386 done
13389 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13390 for ncn_progname in ar; do
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13392 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13393 if test -x $with_build_time_tools/${ncn_progname}; then
13394 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13396 $as_echo "yes" >&6; }
13397 break
13398 else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13402 done
13405 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13406 for ncn_progname in ar; do
13407 if test -n "$ncn_target_tool_prefix"; then
13408 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13409 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 if test -n "$AR_FOR_TARGET"; then
13416 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13417 else
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 break 2
13429 done
13430 done
13431 IFS=$as_save_IFS
13435 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13436 if test -n "$AR_FOR_TARGET"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13438 $as_echo "$AR_FOR_TARGET" >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13446 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13448 set dummy ${ncn_progname}; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 if test -n "$AR_FOR_TARGET"; then
13455 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13456 else
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13468 done
13469 done
13470 IFS=$as_save_IFS
13474 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13475 if test -n "$AR_FOR_TARGET"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13477 $as_echo "$AR_FOR_TARGET" >&6; }
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13485 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13486 done
13489 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13490 set dummy ar
13491 if test $build = $target ; then
13492 AR_FOR_TARGET="$2"
13493 else
13494 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13496 else
13497 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13500 else
13501 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13507 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13508 if test -n "$with_build_time_tools"; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13510 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13511 if test -x $with_build_time_tools/as; then
13512 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13513 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13515 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13520 elif test $build != $host && test $have_gcc_for_target = yes; then
13521 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13522 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13523 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13526 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13527 # Extract the first word of "as", so it can be a program name with args.
13528 set dummy as; ac_word=$2
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13530 $as_echo_n "checking for $ac_word... " >&6; }
13531 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 case $AS_FOR_TARGET in
13535 [\\/]* | ?:[\\/]*)
13536 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $gcc_cv_tool_dirs
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13546 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 break 2
13550 done
13551 done
13552 IFS=$as_save_IFS
13555 esac
13557 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13558 if test -n "$AS_FOR_TARGET"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13560 $as_echo "$AS_FOR_TARGET" >&6; }
13561 else
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13568 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13571 if test -n "$AS_FOR_TARGET"; then
13572 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13573 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13574 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13577 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13578 for ncn_progname in as; do
13579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13580 set dummy ${ncn_progname}; ac_word=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13582 $as_echo_n "checking for $ac_word... " >&6; }
13583 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 if test -n "$AS_FOR_TARGET"; then
13587 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13588 else
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13600 done
13601 done
13602 IFS=$as_save_IFS
13606 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13607 if test -n "$AS_FOR_TARGET"; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13609 $as_echo "$AS_FOR_TARGET" >&6; }
13610 else
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13616 done
13619 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13620 for ncn_progname in as; do
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13622 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13623 if test -x $with_build_time_tools/${ncn_progname}; then
13624 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626 $as_echo "yes" >&6; }
13627 break
13628 else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13632 done
13635 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13636 for ncn_progname in as; do
13637 if test -n "$ncn_target_tool_prefix"; then
13638 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13639 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13641 $as_echo_n "checking for $ac_word... " >&6; }
13642 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 if test -n "$AS_FOR_TARGET"; then
13646 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13647 else
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13655 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13659 done
13660 done
13661 IFS=$as_save_IFS
13665 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13666 if test -n "$AS_FOR_TARGET"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13668 $as_echo "$AS_FOR_TARGET" >&6; }
13669 else
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13676 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13678 set dummy ${ncn_progname}; ac_word=$2
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13680 $as_echo_n "checking for $ac_word... " >&6; }
13681 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13682 $as_echo_n "(cached) " >&6
13683 else
13684 if test -n "$AS_FOR_TARGET"; then
13685 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13686 else
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13690 IFS=$as_save_IFS
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 break 2
13698 done
13699 done
13700 IFS=$as_save_IFS
13704 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13705 if test -n "$AS_FOR_TARGET"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13707 $as_echo "$AS_FOR_TARGET" >&6; }
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13715 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13716 done
13719 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13720 set dummy as
13721 if test $build = $target ; then
13722 AS_FOR_TARGET="$2"
13723 else
13724 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13726 else
13727 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13730 else
13731 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13737 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13738 if test -n "$with_build_time_tools"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13740 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13741 if test -x $with_build_time_tools/dlltool; then
13742 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13743 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13745 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13750 elif test $build != $host && test $have_gcc_for_target = yes; then
13751 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13752 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13753 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13756 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13757 # Extract the first word of "dlltool", so it can be a program name with args.
13758 set dummy dlltool; ac_word=$2
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13760 $as_echo_n "checking for $ac_word... " >&6; }
13761 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13762 $as_echo_n "(cached) " >&6
13763 else
13764 case $DLLTOOL_FOR_TARGET in
13765 [\\/]* | ?:[\\/]*)
13766 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $gcc_cv_tool_dirs
13772 IFS=$as_save_IFS
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13776 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 break 2
13780 done
13781 done
13782 IFS=$as_save_IFS
13785 esac
13787 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13788 if test -n "$DLLTOOL_FOR_TARGET"; then
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13790 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13791 else
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 $as_echo "no" >&6; }
13798 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13801 if test -n "$DLLTOOL_FOR_TARGET"; then
13802 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13803 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13804 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13807 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13808 for ncn_progname in dlltool; do
13809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13810 set dummy ${ncn_progname}; ac_word=$2
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13812 $as_echo_n "checking for $ac_word... " >&6; }
13813 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 if test -n "$DLLTOOL_FOR_TARGET"; then
13817 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13818 else
13819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13822 IFS=$as_save_IFS
13823 test -z "$as_dir" && as_dir=.
13824 for ac_exec_ext in '' $ac_executable_extensions; do
13825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13826 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13828 break 2
13830 done
13831 done
13832 IFS=$as_save_IFS
13836 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13837 if test -n "$DLLTOOL_FOR_TARGET"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13839 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13840 else
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13846 done
13849 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13850 for ncn_progname in dlltool; do
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13852 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13853 if test -x $with_build_time_tools/${ncn_progname}; then
13854 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13856 $as_echo "yes" >&6; }
13857 break
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860 $as_echo "no" >&6; }
13862 done
13865 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13866 for ncn_progname in dlltool; do
13867 if test -n "$ncn_target_tool_prefix"; then
13868 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13869 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871 $as_echo_n "checking for $ac_word... " >&6; }
13872 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 if test -n "$DLLTOOL_FOR_TARGET"; then
13876 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13877 else
13878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879 for as_dir in $PATH
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
13884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13885 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13889 done
13890 done
13891 IFS=$as_save_IFS
13895 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13896 if test -n "$DLLTOOL_FOR_TARGET"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13898 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13899 else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901 $as_echo "no" >&6; }
13906 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
13907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13908 set dummy ${ncn_progname}; ac_word=$2
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13910 $as_echo_n "checking for $ac_word... " >&6; }
13911 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13912 $as_echo_n "(cached) " >&6
13913 else
13914 if test -n "$DLLTOOL_FOR_TARGET"; then
13915 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13916 else
13917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13918 for as_dir in $PATH
13920 IFS=$as_save_IFS
13921 test -z "$as_dir" && as_dir=.
13922 for ac_exec_ext in '' $ac_executable_extensions; do
13923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13924 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13926 break 2
13928 done
13929 done
13930 IFS=$as_save_IFS
13934 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13935 if test -n "$DLLTOOL_FOR_TARGET"; then
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13937 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13938 else
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 $as_echo "no" >&6; }
13945 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
13946 done
13949 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
13950 set dummy dlltool
13951 if test $build = $target ; then
13952 DLLTOOL_FOR_TARGET="$2"
13953 else
13954 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13956 else
13957 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
13960 else
13961 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13967 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
13968 if test -n "$with_build_time_tools"; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
13970 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
13971 if test -x $with_build_time_tools/ld; then
13972 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
13973 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
13975 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
13976 else
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13978 $as_echo "no" >&6; }
13980 elif test $build != $host && test $have_gcc_for_target = yes; then
13981 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
13982 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
13983 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13986 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13987 # Extract the first word of "ld", so it can be a program name with args.
13988 set dummy ld; ac_word=$2
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13990 $as_echo_n "checking for $ac_word... " >&6; }
13991 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 case $LD_FOR_TARGET in
13995 [\\/]* | ?:[\\/]*)
13996 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000 for as_dir in $gcc_cv_tool_dirs
14002 IFS=$as_save_IFS
14003 test -z "$as_dir" && as_dir=.
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14006 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14008 break 2
14010 done
14011 done
14012 IFS=$as_save_IFS
14015 esac
14017 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14018 if test -n "$LD_FOR_TARGET"; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14020 $as_echo "$LD_FOR_TARGET" >&6; }
14021 else
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14028 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14031 if test -n "$LD_FOR_TARGET"; then
14032 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14033 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14034 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14037 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14038 for ncn_progname in ld; do
14039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14040 set dummy ${ncn_progname}; ac_word=$2
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042 $as_echo_n "checking for $ac_word... " >&6; }
14043 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 if test -n "$LD_FOR_TARGET"; then
14047 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14048 else
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14052 IFS=$as_save_IFS
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14056 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 break 2
14060 done
14061 done
14062 IFS=$as_save_IFS
14066 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14067 if test -n "$LD_FOR_TARGET"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14069 $as_echo "$LD_FOR_TARGET" >&6; }
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14076 done
14079 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14080 for ncn_progname in ld; do
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14082 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14083 if test -x $with_build_time_tools/${ncn_progname}; then
14084 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14086 $as_echo "yes" >&6; }
14087 break
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14092 done
14095 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14096 for ncn_progname in ld; do
14097 if test -n "$ncn_target_tool_prefix"; then
14098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14099 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101 $as_echo_n "checking for $ac_word... " >&6; }
14102 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 if test -n "$LD_FOR_TARGET"; then
14106 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14107 else
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14111 IFS=$as_save_IFS
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14115 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14117 break 2
14119 done
14120 done
14121 IFS=$as_save_IFS
14125 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14126 if test -n "$LD_FOR_TARGET"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14128 $as_echo "$LD_FOR_TARGET" >&6; }
14129 else
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14136 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14138 set dummy ${ncn_progname}; ac_word=$2
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14140 $as_echo_n "checking for $ac_word... " >&6; }
14141 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 if test -n "$LD_FOR_TARGET"; then
14145 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14146 else
14147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14148 for as_dir in $PATH
14150 IFS=$as_save_IFS
14151 test -z "$as_dir" && as_dir=.
14152 for ac_exec_ext in '' $ac_executable_extensions; do
14153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14154 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14156 break 2
14158 done
14159 done
14160 IFS=$as_save_IFS
14164 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14165 if test -n "$LD_FOR_TARGET"; then
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14167 $as_echo "$LD_FOR_TARGET" >&6; }
14168 else
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170 $as_echo "no" >&6; }
14175 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14176 done
14179 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14180 set dummy ld
14181 if test $build = $target ; then
14182 LD_FOR_TARGET="$2"
14183 else
14184 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14186 else
14187 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14190 else
14191 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14197 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14198 if test -n "$with_build_time_tools"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14200 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14201 if test -x $with_build_time_tools/lipo; then
14202 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14203 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14205 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14206 else
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208 $as_echo "no" >&6; }
14210 elif test $build != $host && test $have_gcc_for_target = yes; then
14211 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14212 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14213 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14216 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14217 # Extract the first word of "lipo", so it can be a program name with args.
14218 set dummy lipo; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 case $LIPO_FOR_TARGET in
14225 [\\/]* | ?:[\\/]*)
14226 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230 for as_dir in $gcc_cv_tool_dirs
14232 IFS=$as_save_IFS
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14238 break 2
14240 done
14241 done
14242 IFS=$as_save_IFS
14245 esac
14247 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14248 if test -n "$LIPO_FOR_TARGET"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14250 $as_echo "$LIPO_FOR_TARGET" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14258 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14261 if test -n "$LIPO_FOR_TARGET"; then
14262 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14263 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14264 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14267 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14268 for ncn_progname in lipo; do
14269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14270 set dummy ${ncn_progname}; ac_word=$2
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14272 $as_echo_n "checking for $ac_word... " >&6; }
14273 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 if test -n "$LIPO_FOR_TARGET"; then
14277 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14290 done
14291 done
14292 IFS=$as_save_IFS
14296 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14297 if test -n "$LIPO_FOR_TARGET"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14299 $as_echo "$LIPO_FOR_TARGET" >&6; }
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14306 done
14309 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14310 for ncn_progname in lipo; do
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14312 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14313 if test -x $with_build_time_tools/${ncn_progname}; then
14314 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14316 $as_echo "yes" >&6; }
14317 break
14318 else
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14322 done
14325 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14326 for ncn_progname in lipo; do
14327 if test -n "$ncn_target_tool_prefix"; then
14328 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14329 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14331 $as_echo_n "checking for $ac_word... " >&6; }
14332 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 if test -n "$LIPO_FOR_TARGET"; then
14336 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14337 else
14338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339 for as_dir in $PATH
14341 IFS=$as_save_IFS
14342 test -z "$as_dir" && as_dir=.
14343 for ac_exec_ext in '' $ac_executable_extensions; do
14344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14345 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14347 break 2
14349 done
14350 done
14351 IFS=$as_save_IFS
14355 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14356 if test -n "$LIPO_FOR_TARGET"; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14358 $as_echo "$LIPO_FOR_TARGET" >&6; }
14359 else
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361 $as_echo "no" >&6; }
14366 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14368 set dummy ${ncn_progname}; ac_word=$2
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14370 $as_echo_n "checking for $ac_word... " >&6; }
14371 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 if test -n "$LIPO_FOR_TARGET"; then
14375 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14376 else
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14380 IFS=$as_save_IFS
14381 test -z "$as_dir" && as_dir=.
14382 for ac_exec_ext in '' $ac_executable_extensions; do
14383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14384 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14386 break 2
14388 done
14389 done
14390 IFS=$as_save_IFS
14394 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14395 if test -n "$LIPO_FOR_TARGET"; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14397 $as_echo "$LIPO_FOR_TARGET" >&6; }
14398 else
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 $as_echo "no" >&6; }
14405 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14406 done
14409 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14410 set dummy lipo
14411 if test $build = $target ; then
14412 LIPO_FOR_TARGET="$2"
14413 else
14414 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14416 else
14417 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14420 else
14421 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14427 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14428 if test -n "$with_build_time_tools"; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14430 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14431 if test -x $with_build_time_tools/nm; then
14432 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14433 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14435 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14436 else
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 $as_echo "no" >&6; }
14440 elif test $build != $host && test $have_gcc_for_target = yes; then
14441 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14442 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14443 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14446 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14447 # Extract the first word of "nm", so it can be a program name with args.
14448 set dummy nm; ac_word=$2
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14450 $as_echo_n "checking for $ac_word... " >&6; }
14451 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 case $NM_FOR_TARGET in
14455 [\\/]* | ?:[\\/]*)
14456 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14460 for as_dir in $gcc_cv_tool_dirs
14462 IFS=$as_save_IFS
14463 test -z "$as_dir" && as_dir=.
14464 for ac_exec_ext in '' $ac_executable_extensions; do
14465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14466 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14468 break 2
14470 done
14471 done
14472 IFS=$as_save_IFS
14475 esac
14477 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14478 if test -n "$NM_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14480 $as_echo "$NM_FOR_TARGET" >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14488 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14491 if test -n "$NM_FOR_TARGET"; then
14492 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14493 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14494 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14497 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14498 for ncn_progname in nm; do
14499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14500 set dummy ${ncn_progname}; ac_word=$2
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502 $as_echo_n "checking for $ac_word... " >&6; }
14503 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 if test -n "$NM_FOR_TARGET"; then
14507 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14508 else
14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 for as_dir in $PATH
14512 IFS=$as_save_IFS
14513 test -z "$as_dir" && as_dir=.
14514 for ac_exec_ext in '' $ac_executable_extensions; do
14515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14516 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14518 break 2
14520 done
14521 done
14522 IFS=$as_save_IFS
14526 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14527 if test -n "$NM_FOR_TARGET"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14529 $as_echo "$NM_FOR_TARGET" >&6; }
14530 else
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532 $as_echo "no" >&6; }
14536 done
14539 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14540 for ncn_progname in nm; do
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14542 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14543 if test -x $with_build_time_tools/${ncn_progname}; then
14544 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14546 $as_echo "yes" >&6; }
14547 break
14548 else
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14550 $as_echo "no" >&6; }
14552 done
14555 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14556 for ncn_progname in nm; do
14557 if test -n "$ncn_target_tool_prefix"; then
14558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14559 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14561 $as_echo_n "checking for $ac_word... " >&6; }
14562 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14563 $as_echo_n "(cached) " >&6
14564 else
14565 if test -n "$NM_FOR_TARGET"; then
14566 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14567 else
14568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14569 for as_dir in $PATH
14571 IFS=$as_save_IFS
14572 test -z "$as_dir" && as_dir=.
14573 for ac_exec_ext in '' $ac_executable_extensions; do
14574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14575 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14577 break 2
14579 done
14580 done
14581 IFS=$as_save_IFS
14585 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14586 if test -n "$NM_FOR_TARGET"; then
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14588 $as_echo "$NM_FOR_TARGET" >&6; }
14589 else
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14596 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14598 set dummy ${ncn_progname}; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14604 if test -n "$NM_FOR_TARGET"; then
14605 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14606 else
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14618 done
14619 done
14620 IFS=$as_save_IFS
14624 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14625 if test -n "$NM_FOR_TARGET"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14627 $as_echo "$NM_FOR_TARGET" >&6; }
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14635 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14636 done
14639 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14640 set dummy nm
14641 if test $build = $target ; then
14642 NM_FOR_TARGET="$2"
14643 else
14644 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
14646 else
14647 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
14650 else
14651 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14657 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14658 if test -n "$with_build_time_tools"; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
14660 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
14661 if test -x $with_build_time_tools/objcopy; then
14662 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14663 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14665 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14666 else
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14668 $as_echo "no" >&6; }
14670 elif test $build != $host && test $have_gcc_for_target = yes; then
14671 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14672 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14673 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14676 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14677 # Extract the first word of "objcopy", so it can be a program name with args.
14678 set dummy objcopy; ac_word=$2
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14680 $as_echo_n "checking for $ac_word... " >&6; }
14681 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 case $OBJCOPY_FOR_TARGET in
14685 [\\/]* | ?:[\\/]*)
14686 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $gcc_cv_tool_dirs
14692 IFS=$as_save_IFS
14693 test -z "$as_dir" && as_dir=.
14694 for ac_exec_ext in '' $ac_executable_extensions; do
14695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14696 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14698 break 2
14700 done
14701 done
14702 IFS=$as_save_IFS
14705 esac
14707 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14708 if test -n "$OBJCOPY_FOR_TARGET"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14710 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14718 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14721 if test -n "$OBJCOPY_FOR_TARGET"; then
14722 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14723 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14724 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14727 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14728 for ncn_progname in objcopy; do
14729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14730 set dummy ${ncn_progname}; ac_word=$2
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14732 $as_echo_n "checking for $ac_word... " >&6; }
14733 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 if test -n "$OBJCOPY_FOR_TARGET"; then
14737 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14738 else
14739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740 for as_dir in $PATH
14742 IFS=$as_save_IFS
14743 test -z "$as_dir" && as_dir=.
14744 for ac_exec_ext in '' $ac_executable_extensions; do
14745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14746 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14748 break 2
14750 done
14751 done
14752 IFS=$as_save_IFS
14756 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14757 if test -n "$OBJCOPY_FOR_TARGET"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14759 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14760 else
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 $as_echo "no" >&6; }
14766 done
14769 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14770 for ncn_progname in objcopy; do
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14772 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14773 if test -x $with_build_time_tools/${ncn_progname}; then
14774 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14776 $as_echo "yes" >&6; }
14777 break
14778 else
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 $as_echo "no" >&6; }
14782 done
14785 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14786 for ncn_progname in objcopy; do
14787 if test -n "$ncn_target_tool_prefix"; then
14788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14789 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14791 $as_echo_n "checking for $ac_word... " >&6; }
14792 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14793 $as_echo_n "(cached) " >&6
14794 else
14795 if test -n "$OBJCOPY_FOR_TARGET"; then
14796 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14797 else
14798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14799 for as_dir in $PATH
14801 IFS=$as_save_IFS
14802 test -z "$as_dir" && as_dir=.
14803 for ac_exec_ext in '' $ac_executable_extensions; do
14804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14805 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14807 break 2
14809 done
14810 done
14811 IFS=$as_save_IFS
14815 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14816 if test -n "$OBJCOPY_FOR_TARGET"; then
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14818 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14819 else
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821 $as_echo "no" >&6; }
14826 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
14827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14828 set dummy ${ncn_progname}; ac_word=$2
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14830 $as_echo_n "checking for $ac_word... " >&6; }
14831 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834 if test -n "$OBJCOPY_FOR_TARGET"; then
14835 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14836 else
14837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838 for as_dir in $PATH
14840 IFS=$as_save_IFS
14841 test -z "$as_dir" && as_dir=.
14842 for ac_exec_ext in '' $ac_executable_extensions; do
14843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14844 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14846 break 2
14848 done
14849 done
14850 IFS=$as_save_IFS
14854 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14855 if test -n "$OBJCOPY_FOR_TARGET"; then
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14857 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14858 else
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860 $as_echo "no" >&6; }
14865 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
14866 done
14869 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
14870 set dummy objcopy
14871 if test $build = $target ; then
14872 OBJCOPY_FOR_TARGET="$2"
14873 else
14874 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
14876 else
14877 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
14880 else
14881 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14887 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14888 if test -n "$with_build_time_tools"; then
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
14890 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
14891 if test -x $with_build_time_tools/objdump; then
14892 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
14893 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
14895 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
14896 else
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14898 $as_echo "no" >&6; }
14900 elif test $build != $host && test $have_gcc_for_target = yes; then
14901 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
14902 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
14903 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14906 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14907 # Extract the first word of "objdump", so it can be a program name with args.
14908 set dummy objdump; ac_word=$2
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14910 $as_echo_n "checking for $ac_word... " >&6; }
14911 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 case $OBJDUMP_FOR_TARGET in
14915 [\\/]* | ?:[\\/]*)
14916 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
14919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14920 for as_dir in $gcc_cv_tool_dirs
14922 IFS=$as_save_IFS
14923 test -z "$as_dir" && as_dir=.
14924 for ac_exec_ext in '' $ac_executable_extensions; do
14925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14926 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14928 break 2
14930 done
14931 done
14932 IFS=$as_save_IFS
14935 esac
14937 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
14938 if test -n "$OBJDUMP_FOR_TARGET"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14940 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14948 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14951 if test -n "$OBJDUMP_FOR_TARGET"; then
14952 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14953 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14954 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14957 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14958 for ncn_progname in objdump; do
14959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14960 set dummy ${ncn_progname}; ac_word=$2
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14962 $as_echo_n "checking for $ac_word... " >&6; }
14963 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 if test -n "$OBJDUMP_FOR_TARGET"; then
14967 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
14968 else
14969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970 for as_dir in $PATH
14972 IFS=$as_save_IFS
14973 test -z "$as_dir" && as_dir=.
14974 for ac_exec_ext in '' $ac_executable_extensions; do
14975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
14977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14978 break 2
14980 done
14981 done
14982 IFS=$as_save_IFS
14986 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14987 if test -n "$OBJDUMP_FOR_TARGET"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14989 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14990 else
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 $as_echo "no" >&6; }
14996 done
14999 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15000 for ncn_progname in objdump; do
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15002 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15003 if test -x $with_build_time_tools/${ncn_progname}; then
15004 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15006 $as_echo "yes" >&6; }
15007 break
15008 else
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010 $as_echo "no" >&6; }
15012 done
15015 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15016 for ncn_progname in objdump; do
15017 if test -n "$ncn_target_tool_prefix"; then
15018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15019 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15021 $as_echo_n "checking for $ac_word... " >&6; }
15022 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 if test -n "$OBJDUMP_FOR_TARGET"; then
15026 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15027 else
15028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15031 IFS=$as_save_IFS
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15037 break 2
15039 done
15040 done
15041 IFS=$as_save_IFS
15045 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15046 if test -n "$OBJDUMP_FOR_TARGET"; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15048 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15049 else
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15051 $as_echo "no" >&6; }
15056 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15058 set dummy ${ncn_progname}; ac_word=$2
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15060 $as_echo_n "checking for $ac_word... " >&6; }
15061 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15062 $as_echo_n "(cached) " >&6
15063 else
15064 if test -n "$OBJDUMP_FOR_TARGET"; then
15065 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15066 else
15067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15068 for as_dir in $PATH
15070 IFS=$as_save_IFS
15071 test -z "$as_dir" && as_dir=.
15072 for ac_exec_ext in '' $ac_executable_extensions; do
15073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15074 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15076 break 2
15078 done
15079 done
15080 IFS=$as_save_IFS
15084 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15085 if test -n "$OBJDUMP_FOR_TARGET"; then
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15087 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15088 else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090 $as_echo "no" >&6; }
15095 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15096 done
15099 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15100 set dummy objdump
15101 if test $build = $target ; then
15102 OBJDUMP_FOR_TARGET="$2"
15103 else
15104 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15106 else
15107 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15110 else
15111 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15117 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15118 if test -n "$with_build_time_tools"; then
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15120 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15121 if test -x $with_build_time_tools/otool; then
15122 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15123 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15125 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15126 else
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128 $as_echo "no" >&6; }
15130 elif test $build != $host && test $have_gcc_for_target = yes; then
15131 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15132 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15133 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15136 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15137 # Extract the first word of "otool", so it can be a program name with args.
15138 set dummy otool; ac_word=$2
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15140 $as_echo_n "checking for $ac_word... " >&6; }
15141 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15142 $as_echo_n "(cached) " >&6
15143 else
15144 case $OTOOL_FOR_TARGET in
15145 [\\/]* | ?:[\\/]*)
15146 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $gcc_cv_tool_dirs
15152 IFS=$as_save_IFS
15153 test -z "$as_dir" && as_dir=.
15154 for ac_exec_ext in '' $ac_executable_extensions; do
15155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15156 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15158 break 2
15160 done
15161 done
15162 IFS=$as_save_IFS
15165 esac
15167 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15168 if test -n "$OTOOL_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15170 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15171 else
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173 $as_echo "no" >&6; }
15178 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15181 if test -n "$OTOOL_FOR_TARGET"; then
15182 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15183 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15184 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15187 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15188 for ncn_progname in otool; do
15189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15190 set dummy ${ncn_progname}; ac_word=$2
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15192 $as_echo_n "checking for $ac_word... " >&6; }
15193 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 if test -n "$OTOOL_FOR_TARGET"; then
15197 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15198 else
15199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200 for as_dir in $PATH
15202 IFS=$as_save_IFS
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15206 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15208 break 2
15210 done
15211 done
15212 IFS=$as_save_IFS
15216 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15217 if test -n "$OTOOL_FOR_TARGET"; then
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15219 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15220 else
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 $as_echo "no" >&6; }
15226 done
15229 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15230 for ncn_progname in otool; do
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15232 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15233 if test -x $with_build_time_tools/${ncn_progname}; then
15234 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15236 $as_echo "yes" >&6; }
15237 break
15238 else
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240 $as_echo "no" >&6; }
15242 done
15245 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15246 for ncn_progname in otool; do
15247 if test -n "$ncn_target_tool_prefix"; then
15248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15249 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15251 $as_echo_n "checking for $ac_word... " >&6; }
15252 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 if test -n "$OTOOL_FOR_TARGET"; then
15256 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15257 else
15258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15261 IFS=$as_save_IFS
15262 test -z "$as_dir" && as_dir=.
15263 for ac_exec_ext in '' $ac_executable_extensions; do
15264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15267 break 2
15269 done
15270 done
15271 IFS=$as_save_IFS
15275 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15276 if test -n "$OTOOL_FOR_TARGET"; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15278 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15279 else
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281 $as_echo "no" >&6; }
15286 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15288 set dummy ${ncn_progname}; ac_word=$2
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15290 $as_echo_n "checking for $ac_word... " >&6; }
15291 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 if test -n "$OTOOL_FOR_TARGET"; then
15295 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15296 else
15297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15298 for as_dir in $PATH
15300 IFS=$as_save_IFS
15301 test -z "$as_dir" && as_dir=.
15302 for ac_exec_ext in '' $ac_executable_extensions; do
15303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15304 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15306 break 2
15308 done
15309 done
15310 IFS=$as_save_IFS
15314 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15315 if test -n "$OTOOL_FOR_TARGET"; then
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15317 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15318 else
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320 $as_echo "no" >&6; }
15325 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15326 done
15329 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15330 set dummy otool
15331 if test $build = $target ; then
15332 OTOOL_FOR_TARGET="$2"
15333 else
15334 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15336 else
15337 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15340 else
15341 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15347 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15348 if test -n "$with_build_time_tools"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15350 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15351 if test -x $with_build_time_tools/ranlib; then
15352 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15353 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15355 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15356 else
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15358 $as_echo "no" >&6; }
15360 elif test $build != $host && test $have_gcc_for_target = yes; then
15361 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15362 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15363 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15366 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15367 # Extract the first word of "ranlib", so it can be a program name with args.
15368 set dummy ranlib; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 case $RANLIB_FOR_TARGET in
15375 [\\/]* | ?:[\\/]*)
15376 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380 for as_dir in $gcc_cv_tool_dirs
15382 IFS=$as_save_IFS
15383 test -z "$as_dir" && as_dir=.
15384 for ac_exec_ext in '' $ac_executable_extensions; do
15385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15386 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15388 break 2
15390 done
15391 done
15392 IFS=$as_save_IFS
15395 esac
15397 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15398 if test -n "$RANLIB_FOR_TARGET"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15400 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15408 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15411 if test -n "$RANLIB_FOR_TARGET"; then
15412 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15413 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15414 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15417 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15418 for ncn_progname in ranlib; do
15419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15420 set dummy ${ncn_progname}; ac_word=$2
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15422 $as_echo_n "checking for $ac_word... " >&6; }
15423 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15424 $as_echo_n "(cached) " >&6
15425 else
15426 if test -n "$RANLIB_FOR_TARGET"; then
15427 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15428 else
15429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15430 for as_dir in $PATH
15432 IFS=$as_save_IFS
15433 test -z "$as_dir" && as_dir=.
15434 for ac_exec_ext in '' $ac_executable_extensions; do
15435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15436 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15438 break 2
15440 done
15441 done
15442 IFS=$as_save_IFS
15446 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15447 if test -n "$RANLIB_FOR_TARGET"; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15449 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15450 else
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 $as_echo "no" >&6; }
15456 done
15459 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15460 for ncn_progname in ranlib; do
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15462 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15463 if test -x $with_build_time_tools/${ncn_progname}; then
15464 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15466 $as_echo "yes" >&6; }
15467 break
15468 else
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15470 $as_echo "no" >&6; }
15472 done
15475 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15476 for ncn_progname in ranlib; do
15477 if test -n "$ncn_target_tool_prefix"; then
15478 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15479 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15481 $as_echo_n "checking for $ac_word... " >&6; }
15482 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15485 if test -n "$RANLIB_FOR_TARGET"; then
15486 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15487 else
15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489 for as_dir in $PATH
15491 IFS=$as_save_IFS
15492 test -z "$as_dir" && as_dir=.
15493 for ac_exec_ext in '' $ac_executable_extensions; do
15494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15495 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15497 break 2
15499 done
15500 done
15501 IFS=$as_save_IFS
15505 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15506 if test -n "$RANLIB_FOR_TARGET"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15508 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15509 else
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15511 $as_echo "no" >&6; }
15516 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15518 set dummy ${ncn_progname}; ac_word=$2
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15520 $as_echo_n "checking for $ac_word... " >&6; }
15521 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523 else
15524 if test -n "$RANLIB_FOR_TARGET"; then
15525 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15526 else
15527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15536 break 2
15538 done
15539 done
15540 IFS=$as_save_IFS
15544 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15545 if test -n "$RANLIB_FOR_TARGET"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15547 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15548 else
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15555 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15556 done
15559 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15560 set dummy ranlib
15561 if test $build = $target ; then
15562 RANLIB_FOR_TARGET="$2"
15563 else
15564 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15566 else
15567 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15570 else
15571 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15577 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15578 if test -n "$with_build_time_tools"; then
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15580 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15581 if test -x $with_build_time_tools/readelf; then
15582 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15583 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15585 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15586 else
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15590 elif test $build != $host && test $have_gcc_for_target = yes; then
15591 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15592 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15593 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15596 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15597 # Extract the first word of "readelf", so it can be a program name with args.
15598 set dummy readelf; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15600 $as_echo_n "checking for $ac_word... " >&6; }
15601 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 case $READELF_FOR_TARGET in
15605 [\\/]* | ?:[\\/]*)
15606 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610 for as_dir in $gcc_cv_tool_dirs
15612 IFS=$as_save_IFS
15613 test -z "$as_dir" && as_dir=.
15614 for ac_exec_ext in '' $ac_executable_extensions; do
15615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15616 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618 break 2
15620 done
15621 done
15622 IFS=$as_save_IFS
15625 esac
15627 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15628 if test -n "$READELF_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15630 $as_echo "$READELF_FOR_TARGET" >&6; }
15631 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15638 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15641 if test -n "$READELF_FOR_TARGET"; then
15642 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15643 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15644 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15647 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15648 for ncn_progname in readelf; do
15649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15650 set dummy ${ncn_progname}; ac_word=$2
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15652 $as_echo_n "checking for $ac_word... " >&6; }
15653 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15654 $as_echo_n "(cached) " >&6
15655 else
15656 if test -n "$READELF_FOR_TARGET"; then
15657 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15658 else
15659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15660 for as_dir in $PATH
15662 IFS=$as_save_IFS
15663 test -z "$as_dir" && as_dir=.
15664 for ac_exec_ext in '' $ac_executable_extensions; do
15665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15666 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15668 break 2
15670 done
15671 done
15672 IFS=$as_save_IFS
15676 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15677 if test -n "$READELF_FOR_TARGET"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15679 $as_echo "$READELF_FOR_TARGET" >&6; }
15680 else
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15686 done
15689 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15690 for ncn_progname in readelf; do
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15692 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15693 if test -x $with_build_time_tools/${ncn_progname}; then
15694 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15696 $as_echo "yes" >&6; }
15697 break
15698 else
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15700 $as_echo "no" >&6; }
15702 done
15705 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15706 for ncn_progname in readelf; do
15707 if test -n "$ncn_target_tool_prefix"; then
15708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15711 $as_echo_n "checking for $ac_word... " >&6; }
15712 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 if test -n "$READELF_FOR_TARGET"; then
15716 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15717 else
15718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15719 for as_dir in $PATH
15721 IFS=$as_save_IFS
15722 test -z "$as_dir" && as_dir=.
15723 for ac_exec_ext in '' $ac_executable_extensions; do
15724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15725 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15727 break 2
15729 done
15730 done
15731 IFS=$as_save_IFS
15735 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15736 if test -n "$READELF_FOR_TARGET"; then
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15738 $as_echo "$READELF_FOR_TARGET" >&6; }
15739 else
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15746 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15748 set dummy ${ncn_progname}; ac_word=$2
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15750 $as_echo_n "checking for $ac_word... " >&6; }
15751 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 if test -n "$READELF_FOR_TARGET"; then
15755 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15756 else
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 for ac_exec_ext in '' $ac_executable_extensions; do
15763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15764 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15766 break 2
15768 done
15769 done
15770 IFS=$as_save_IFS
15774 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15775 if test -n "$READELF_FOR_TARGET"; then
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15777 $as_echo "$READELF_FOR_TARGET" >&6; }
15778 else
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15785 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15786 done
15789 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15790 set dummy readelf
15791 if test $build = $target ; then
15792 READELF_FOR_TARGET="$2"
15793 else
15794 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15796 else
15797 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15800 else
15801 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15807 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15808 if test -n "$with_build_time_tools"; then
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
15810 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
15811 if test -x $with_build_time_tools/strip; then
15812 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15813 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
15815 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
15816 else
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15818 $as_echo "no" >&6; }
15820 elif test $build != $host && test $have_gcc_for_target = yes; then
15821 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
15822 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
15823 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15826 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15827 # Extract the first word of "strip", so it can be a program name with args.
15828 set dummy strip; ac_word=$2
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15830 $as_echo_n "checking for $ac_word... " >&6; }
15831 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 case $STRIP_FOR_TARGET in
15835 [\\/]* | ?:[\\/]*)
15836 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
15839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15840 for as_dir in $gcc_cv_tool_dirs
15842 IFS=$as_save_IFS
15843 test -z "$as_dir" && as_dir=.
15844 for ac_exec_ext in '' $ac_executable_extensions; do
15845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15846 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15848 break 2
15850 done
15851 done
15852 IFS=$as_save_IFS
15855 esac
15857 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
15858 if test -n "$STRIP_FOR_TARGET"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15860 $as_echo "$STRIP_FOR_TARGET" >&6; }
15861 else
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863 $as_echo "no" >&6; }
15868 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15871 if test -n "$STRIP_FOR_TARGET"; then
15872 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15873 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15874 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15877 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15878 for ncn_progname in strip; do
15879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15880 set dummy ${ncn_progname}; ac_word=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882 $as_echo_n "checking for $ac_word... " >&6; }
15883 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 if test -n "$STRIP_FOR_TARGET"; then
15887 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15888 else
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15898 break 2
15900 done
15901 done
15902 IFS=$as_save_IFS
15906 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15907 if test -n "$STRIP_FOR_TARGET"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15909 $as_echo "$STRIP_FOR_TARGET" >&6; }
15910 else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15916 done
15919 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15920 for ncn_progname in strip; do
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15922 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15923 if test -x $with_build_time_tools/${ncn_progname}; then
15924 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15926 $as_echo "yes" >&6; }
15927 break
15928 else
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15930 $as_echo "no" >&6; }
15932 done
15935 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
15936 for ncn_progname in strip; do
15937 if test -n "$ncn_target_tool_prefix"; then
15938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15939 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15941 $as_echo_n "checking for $ac_word... " >&6; }
15942 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944 else
15945 if test -n "$STRIP_FOR_TARGET"; then
15946 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15947 else
15948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949 for as_dir in $PATH
15951 IFS=$as_save_IFS
15952 test -z "$as_dir" && as_dir=.
15953 for ac_exec_ext in '' $ac_executable_extensions; do
15954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15955 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15957 break 2
15959 done
15960 done
15961 IFS=$as_save_IFS
15965 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15966 if test -n "$STRIP_FOR_TARGET"; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15968 $as_echo "$STRIP_FOR_TARGET" >&6; }
15969 else
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971 $as_echo "no" >&6; }
15976 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
15977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15978 set dummy ${ncn_progname}; ac_word=$2
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980 $as_echo_n "checking for $ac_word... " >&6; }
15981 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15982 $as_echo_n "(cached) " >&6
15983 else
15984 if test -n "$STRIP_FOR_TARGET"; then
15985 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15986 else
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988 for as_dir in $PATH
15990 IFS=$as_save_IFS
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
15993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15994 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15996 break 2
15998 done
15999 done
16000 IFS=$as_save_IFS
16004 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16005 if test -n "$STRIP_FOR_TARGET"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16007 $as_echo "$STRIP_FOR_TARGET" >&6; }
16008 else
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010 $as_echo "no" >&6; }
16015 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16016 done
16019 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16020 set dummy strip
16021 if test $build = $target ; then
16022 STRIP_FOR_TARGET="$2"
16023 else
16024 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16026 else
16027 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16030 else
16031 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16037 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16038 if test -n "$with_build_time_tools"; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16040 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16041 if test -x $with_build_time_tools/windres; then
16042 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16043 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16045 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16046 else
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16050 elif test $build != $host && test $have_gcc_for_target = yes; then
16051 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16052 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16053 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16056 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16057 # Extract the first word of "windres", so it can be a program name with args.
16058 set dummy windres; ac_word=$2
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16060 $as_echo_n "checking for $ac_word... " >&6; }
16061 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063 else
16064 case $WINDRES_FOR_TARGET in
16065 [\\/]* | ?:[\\/]*)
16066 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16070 for as_dir in $gcc_cv_tool_dirs
16072 IFS=$as_save_IFS
16073 test -z "$as_dir" && as_dir=.
16074 for ac_exec_ext in '' $ac_executable_extensions; do
16075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16076 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16078 break 2
16080 done
16081 done
16082 IFS=$as_save_IFS
16085 esac
16087 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16088 if test -n "$WINDRES_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16090 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16098 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16101 if test -n "$WINDRES_FOR_TARGET"; then
16102 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16103 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16104 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16107 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16108 for ncn_progname in windres; do
16109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16110 set dummy ${ncn_progname}; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 if test -n "$WINDRES_FOR_TARGET"; then
16117 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16118 else
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16122 IFS=$as_save_IFS
16123 test -z "$as_dir" && as_dir=.
16124 for ac_exec_ext in '' $ac_executable_extensions; do
16125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16126 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16128 break 2
16130 done
16131 done
16132 IFS=$as_save_IFS
16136 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16137 if test -n "$WINDRES_FOR_TARGET"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16139 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16140 else
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142 $as_echo "no" >&6; }
16146 done
16149 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16150 for ncn_progname in windres; do
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16152 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16153 if test -x $with_build_time_tools/${ncn_progname}; then
16154 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16156 $as_echo "yes" >&6; }
16157 break
16158 else
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16162 done
16165 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16166 for ncn_progname in windres; do
16167 if test -n "$ncn_target_tool_prefix"; then
16168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16171 $as_echo_n "checking for $ac_word... " >&6; }
16172 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16173 $as_echo_n "(cached) " >&6
16174 else
16175 if test -n "$WINDRES_FOR_TARGET"; then
16176 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16177 else
16178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179 for as_dir in $PATH
16181 IFS=$as_save_IFS
16182 test -z "$as_dir" && as_dir=.
16183 for ac_exec_ext in '' $ac_executable_extensions; do
16184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16185 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16187 break 2
16189 done
16190 done
16191 IFS=$as_save_IFS
16195 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16196 if test -n "$WINDRES_FOR_TARGET"; then
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16198 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16199 else
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16201 $as_echo "no" >&6; }
16206 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16208 set dummy ${ncn_progname}; ac_word=$2
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16210 $as_echo_n "checking for $ac_word... " >&6; }
16211 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16214 if test -n "$WINDRES_FOR_TARGET"; then
16215 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16216 else
16217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218 for as_dir in $PATH
16220 IFS=$as_save_IFS
16221 test -z "$as_dir" && as_dir=.
16222 for ac_exec_ext in '' $ac_executable_extensions; do
16223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16224 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16226 break 2
16228 done
16229 done
16230 IFS=$as_save_IFS
16234 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16235 if test -n "$WINDRES_FOR_TARGET"; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16237 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16238 else
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16245 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16246 done
16249 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16250 set dummy windres
16251 if test $build = $target ; then
16252 WINDRES_FOR_TARGET="$2"
16253 else
16254 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16256 else
16257 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16260 else
16261 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16267 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16268 if test -n "$with_build_time_tools"; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16270 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16271 if test -x $with_build_time_tools/windmc; then
16272 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16273 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16275 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16276 else
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16278 $as_echo "no" >&6; }
16280 elif test $build != $host && test $have_gcc_for_target = yes; then
16281 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16282 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16283 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16286 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16287 # Extract the first word of "windmc", so it can be a program name with args.
16288 set dummy windmc; ac_word=$2
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16290 $as_echo_n "checking for $ac_word... " >&6; }
16291 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16292 $as_echo_n "(cached) " >&6
16293 else
16294 case $WINDMC_FOR_TARGET in
16295 [\\/]* | ?:[\\/]*)
16296 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300 for as_dir in $gcc_cv_tool_dirs
16302 IFS=$as_save_IFS
16303 test -z "$as_dir" && as_dir=.
16304 for ac_exec_ext in '' $ac_executable_extensions; do
16305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16306 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16308 break 2
16310 done
16311 done
16312 IFS=$as_save_IFS
16315 esac
16317 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16318 if test -n "$WINDMC_FOR_TARGET"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16320 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16328 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16331 if test -n "$WINDMC_FOR_TARGET"; then
16332 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16333 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16334 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16337 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16338 for ncn_progname in windmc; do
16339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16340 set dummy ${ncn_progname}; ac_word=$2
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16342 $as_echo_n "checking for $ac_word... " >&6; }
16343 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 if test -n "$WINDMC_FOR_TARGET"; then
16347 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16348 else
16349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16350 for as_dir in $PATH
16352 IFS=$as_save_IFS
16353 test -z "$as_dir" && as_dir=.
16354 for ac_exec_ext in '' $ac_executable_extensions; do
16355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16356 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16358 break 2
16360 done
16361 done
16362 IFS=$as_save_IFS
16366 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16367 if test -n "$WINDMC_FOR_TARGET"; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16369 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16370 else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16376 done
16379 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16380 for ncn_progname in windmc; do
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16382 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16383 if test -x $with_build_time_tools/${ncn_progname}; then
16384 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16386 $as_echo "yes" >&6; }
16387 break
16388 else
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16392 done
16395 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16396 for ncn_progname in windmc; do
16397 if test -n "$ncn_target_tool_prefix"; then
16398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16401 $as_echo_n "checking for $ac_word... " >&6; }
16402 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 if test -n "$WINDMC_FOR_TARGET"; then
16406 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16417 break 2
16419 done
16420 done
16421 IFS=$as_save_IFS
16425 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16426 if test -n "$WINDMC_FOR_TARGET"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16428 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16429 else
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16436 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16438 set dummy ${ncn_progname}; ac_word=$2
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16440 $as_echo_n "checking for $ac_word... " >&6; }
16441 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16442 $as_echo_n "(cached) " >&6
16443 else
16444 if test -n "$WINDMC_FOR_TARGET"; then
16445 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16446 else
16447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16448 for as_dir in $PATH
16450 IFS=$as_save_IFS
16451 test -z "$as_dir" && as_dir=.
16452 for ac_exec_ext in '' $ac_executable_extensions; do
16453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16454 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16456 break 2
16458 done
16459 done
16460 IFS=$as_save_IFS
16464 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16465 if test -n "$WINDMC_FOR_TARGET"; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16467 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16468 else
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470 $as_echo "no" >&6; }
16475 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16476 done
16479 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16480 set dummy windmc
16481 if test $build = $target ; then
16482 WINDMC_FOR_TARGET="$2"
16483 else
16484 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16486 else
16487 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16490 else
16491 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16495 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16498 $as_echo_n "checking where to find the target ar... " >&6; }
16499 if test "x${build}" != "x${host}" ; then
16500 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16501 # We already found the complete path
16502 ac_dir=`dirname $AR_FOR_TARGET`
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16504 $as_echo "pre-installed in $ac_dir" >&6; }
16505 else
16506 # Canadian cross, just use what we found
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16508 $as_echo "pre-installed" >&6; }
16510 else
16511 ok=yes
16512 case " ${configdirs} " in
16513 *" binutils "*) ;;
16514 *) ok=no ;;
16515 esac
16517 if test $ok = yes; then
16518 # An in-tree tool is available and we can use it
16519 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16521 $as_echo "just compiled" >&6; }
16522 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16523 # We already found the complete path
16524 ac_dir=`dirname $AR_FOR_TARGET`
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16526 $as_echo "pre-installed in $ac_dir" >&6; }
16527 elif test "x$target" = "x$host"; then
16528 # We can use an host tool
16529 AR_FOR_TARGET='$(AR)'
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16531 $as_echo "host tool" >&6; }
16532 else
16533 # We need a cross tool
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16535 $as_echo "pre-installed" >&6; }
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16540 $as_echo_n "checking where to find the target as... " >&6; }
16541 if test "x${build}" != "x${host}" ; then
16542 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16543 # We already found the complete path
16544 ac_dir=`dirname $AS_FOR_TARGET`
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16546 $as_echo "pre-installed in $ac_dir" >&6; }
16547 else
16548 # Canadian cross, just use what we found
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16550 $as_echo "pre-installed" >&6; }
16552 else
16553 ok=yes
16554 case " ${configdirs} " in
16555 *" gas "*) ;;
16556 *) ok=no ;;
16557 esac
16559 if test $ok = yes; then
16560 # An in-tree tool is available and we can use it
16561 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16563 $as_echo "just compiled" >&6; }
16564 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16565 # We already found the complete path
16566 ac_dir=`dirname $AS_FOR_TARGET`
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16568 $as_echo "pre-installed in $ac_dir" >&6; }
16569 elif test "x$target" = "x$host"; then
16570 # We can use an host tool
16571 AS_FOR_TARGET='$(AS)'
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16573 $as_echo "host tool" >&6; }
16574 else
16575 # We need a cross tool
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16577 $as_echo "pre-installed" >&6; }
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16582 $as_echo_n "checking where to find the target cc... " >&6; }
16583 if test "x${build}" != "x${host}" ; then
16584 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16585 # We already found the complete path
16586 ac_dir=`dirname $CC_FOR_TARGET`
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16588 $as_echo "pre-installed in $ac_dir" >&6; }
16589 else
16590 # Canadian cross, just use what we found
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16592 $as_echo "pre-installed" >&6; }
16594 else
16595 ok=yes
16596 case " ${configdirs} " in
16597 *" gcc "*) ;;
16598 *) ok=no ;;
16599 esac
16601 if test $ok = yes; then
16602 # An in-tree tool is available and we can use it
16603 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16605 $as_echo "just compiled" >&6; }
16606 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16607 # We already found the complete path
16608 ac_dir=`dirname $CC_FOR_TARGET`
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16610 $as_echo "pre-installed in $ac_dir" >&6; }
16611 elif test "x$target" = "x$host"; then
16612 # We can use an host tool
16613 CC_FOR_TARGET='$(CC)'
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16615 $as_echo "host tool" >&6; }
16616 else
16617 # We need a cross tool
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16619 $as_echo "pre-installed" >&6; }
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
16624 $as_echo_n "checking where to find the target c++... " >&6; }
16625 if test "x${build}" != "x${host}" ; then
16626 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16627 # We already found the complete path
16628 ac_dir=`dirname $CXX_FOR_TARGET`
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16630 $as_echo "pre-installed in $ac_dir" >&6; }
16631 else
16632 # Canadian cross, just use what we found
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16634 $as_echo "pre-installed" >&6; }
16636 else
16637 ok=yes
16638 case " ${configdirs} " in
16639 *" gcc "*) ;;
16640 *) ok=no ;;
16641 esac
16642 case ,${enable_languages}, in
16643 *,c++,*) ;;
16644 *) ok=no ;;
16645 esac
16646 if test $ok = yes; then
16647 # An in-tree tool is available and we can use it
16648 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'
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16650 $as_echo "just compiled" >&6; }
16651 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16652 # We already found the complete path
16653 ac_dir=`dirname $CXX_FOR_TARGET`
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16655 $as_echo "pre-installed in $ac_dir" >&6; }
16656 elif test "x$target" = "x$host"; then
16657 # We can use an host tool
16658 CXX_FOR_TARGET='$(CXX)'
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16660 $as_echo "host tool" >&6; }
16661 else
16662 # We need a cross tool
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16664 $as_echo "pre-installed" >&6; }
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
16669 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
16670 if test "x${build}" != "x${host}" ; then
16671 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16672 # We already found the complete path
16673 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16675 $as_echo "pre-installed in $ac_dir" >&6; }
16676 else
16677 # Canadian cross, just use what we found
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16679 $as_echo "pre-installed" >&6; }
16681 else
16682 ok=yes
16683 case " ${configdirs} " in
16684 *" gcc "*) ;;
16685 *) ok=no ;;
16686 esac
16687 case ,${enable_languages}, in
16688 *,c++,*) ;;
16689 *) ok=no ;;
16690 esac
16691 if test $ok = yes; then
16692 # An in-tree tool is available and we can use it
16693 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'
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16695 $as_echo "just compiled" >&6; }
16696 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16697 # We already found the complete path
16698 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16700 $as_echo "pre-installed in $ac_dir" >&6; }
16701 elif test "x$target" = "x$host"; then
16702 # We can use an host tool
16703 RAW_CXX_FOR_TARGET='$(CXX)'
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16705 $as_echo "host tool" >&6; }
16706 else
16707 # We need a cross tool
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16709 $as_echo "pre-installed" >&6; }
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
16714 $as_echo_n "checking where to find the target dlltool... " >&6; }
16715 if test "x${build}" != "x${host}" ; then
16716 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16717 # We already found the complete path
16718 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16720 $as_echo "pre-installed in $ac_dir" >&6; }
16721 else
16722 # Canadian cross, just use what we found
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16724 $as_echo "pre-installed" >&6; }
16726 else
16727 ok=yes
16728 case " ${configdirs} " in
16729 *" binutils "*) ;;
16730 *) ok=no ;;
16731 esac
16733 if test $ok = yes; then
16734 # An in-tree tool is available and we can use it
16735 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16737 $as_echo "just compiled" >&6; }
16738 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16739 # We already found the complete path
16740 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16742 $as_echo "pre-installed in $ac_dir" >&6; }
16743 elif test "x$target" = "x$host"; then
16744 # We can use an host tool
16745 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16747 $as_echo "host tool" >&6; }
16748 else
16749 # We need a cross tool
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16751 $as_echo "pre-installed" >&6; }
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
16756 $as_echo_n "checking where to find the target gcc... " >&6; }
16757 if test "x${build}" != "x${host}" ; then
16758 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16759 # We already found the complete path
16760 ac_dir=`dirname $GCC_FOR_TARGET`
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16762 $as_echo "pre-installed in $ac_dir" >&6; }
16763 else
16764 # Canadian cross, just use what we found
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16766 $as_echo "pre-installed" >&6; }
16768 else
16769 ok=yes
16770 case " ${configdirs} " in
16771 *" gcc "*) ;;
16772 *) ok=no ;;
16773 esac
16775 if test $ok = yes; then
16776 # An in-tree tool is available and we can use it
16777 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16779 $as_echo "just compiled" >&6; }
16780 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16781 # We already found the complete path
16782 ac_dir=`dirname $GCC_FOR_TARGET`
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16784 $as_echo "pre-installed in $ac_dir" >&6; }
16785 elif test "x$target" = "x$host"; then
16786 # We can use an host tool
16787 GCC_FOR_TARGET='$()'
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16789 $as_echo "host tool" >&6; }
16790 else
16791 # We need a cross tool
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16793 $as_echo "pre-installed" >&6; }
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
16798 $as_echo_n "checking where to find the target gfortran... " >&6; }
16799 if test "x${build}" != "x${host}" ; then
16800 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16801 # We already found the complete path
16802 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16804 $as_echo "pre-installed in $ac_dir" >&6; }
16805 else
16806 # Canadian cross, just use what we found
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16808 $as_echo "pre-installed" >&6; }
16810 else
16811 ok=yes
16812 case " ${configdirs} " in
16813 *" gcc "*) ;;
16814 *) ok=no ;;
16815 esac
16816 case ,${enable_languages}, in
16817 *,fortran,*) ;;
16818 *) ok=no ;;
16819 esac
16820 if test $ok = yes; then
16821 # An in-tree tool is available and we can use it
16822 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16824 $as_echo "just compiled" >&6; }
16825 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16826 # We already found the complete path
16827 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16829 $as_echo "pre-installed in $ac_dir" >&6; }
16830 elif test "x$target" = "x$host"; then
16831 # We can use an host tool
16832 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16834 $as_echo "host tool" >&6; }
16835 else
16836 # We need a cross tool
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16838 $as_echo "pre-installed" >&6; }
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
16843 $as_echo_n "checking where to find the target gccgo... " >&6; }
16844 if test "x${build}" != "x${host}" ; then
16845 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16846 # We already found the complete path
16847 ac_dir=`dirname $GOC_FOR_TARGET`
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16849 $as_echo "pre-installed in $ac_dir" >&6; }
16850 else
16851 # Canadian cross, just use what we found
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16853 $as_echo "pre-installed" >&6; }
16855 else
16856 ok=yes
16857 case " ${configdirs} " in
16858 *" gcc "*) ;;
16859 *) ok=no ;;
16860 esac
16861 case ,${enable_languages}, in
16862 *,go,*) ;;
16863 *) ok=no ;;
16864 esac
16865 if test $ok = yes; then
16866 # An in-tree tool is available and we can use it
16867 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16869 $as_echo "just compiled" >&6; }
16870 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16871 # We already found the complete path
16872 ac_dir=`dirname $GOC_FOR_TARGET`
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16874 $as_echo "pre-installed in $ac_dir" >&6; }
16875 elif test "x$target" = "x$host"; then
16876 # We can use an host tool
16877 GOC_FOR_TARGET='$(GOC)'
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16879 $as_echo "host tool" >&6; }
16880 else
16881 # We need a cross tool
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16883 $as_echo "pre-installed" >&6; }
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
16888 $as_echo_n "checking where to find the target gdc... " >&6; }
16889 if test "x${build}" != "x${host}" ; then
16890 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16891 # We already found the complete path
16892 ac_dir=`dirname $GDC_FOR_TARGET`
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16894 $as_echo "pre-installed in $ac_dir" >&6; }
16895 else
16896 # Canadian cross, just use what we found
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16898 $as_echo "pre-installed" >&6; }
16900 else
16901 ok=yes
16902 case " ${configdirs} " in
16903 *" gcc "*) ;;
16904 *) ok=no ;;
16905 esac
16906 case ,${enable_languages}, in
16907 *,d,*) ;;
16908 *) ok=no ;;
16909 esac
16910 if test $ok = yes; then
16911 # An in-tree tool is available and we can use it
16912 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16914 $as_echo "just compiled" >&6; }
16915 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16916 # We already found the complete path
16917 ac_dir=`dirname $GDC_FOR_TARGET`
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16919 $as_echo "pre-installed in $ac_dir" >&6; }
16920 elif test "x$target" = "x$host"; then
16921 # We can use an host tool
16922 GDC_FOR_TARGET='$(GDC)'
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16924 $as_echo "host tool" >&6; }
16925 else
16926 # We need a cross tool
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16928 $as_echo "pre-installed" >&6; }
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
16933 $as_echo_n "checking where to find the target ld... " >&6; }
16934 if test "x${build}" != "x${host}" ; then
16935 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16936 # We already found the complete path
16937 ac_dir=`dirname $LD_FOR_TARGET`
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16939 $as_echo "pre-installed in $ac_dir" >&6; }
16940 else
16941 # Canadian cross, just use what we found
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16943 $as_echo "pre-installed" >&6; }
16945 else
16946 ok=yes
16947 case " ${configdirs} " in
16948 *" ld "*) ;;
16949 *) ok=no ;;
16950 esac
16952 if test $ok = yes; then
16953 # An in-tree tool is available and we can use it
16954 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16956 $as_echo "just compiled" >&6; }
16957 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16958 # We already found the complete path
16959 ac_dir=`dirname $LD_FOR_TARGET`
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16961 $as_echo "pre-installed in $ac_dir" >&6; }
16962 elif test "x$target" = "x$host"; then
16963 # We can use an host tool
16964 LD_FOR_TARGET='$(LD)'
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16966 $as_echo "host tool" >&6; }
16967 else
16968 # We need a cross tool
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16970 $as_echo "pre-installed" >&6; }
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
16975 $as_echo_n "checking where to find the target lipo... " >&6; }
16976 if test "x${build}" != "x${host}" ; then
16977 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16978 # We already found the complete path
16979 ac_dir=`dirname $LIPO_FOR_TARGET`
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16981 $as_echo "pre-installed in $ac_dir" >&6; }
16982 else
16983 # Canadian cross, just use what we found
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16985 $as_echo "pre-installed" >&6; }
16987 else
16988 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16989 # We already found the complete path
16990 ac_dir=`dirname $LIPO_FOR_TARGET`
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16992 $as_echo "pre-installed in $ac_dir" >&6; }
16993 elif test "x$target" = "x$host"; then
16994 # We can use an host tool
16995 LIPO_FOR_TARGET='$(LIPO)'
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16997 $as_echo "host tool" >&6; }
16998 else
16999 # We need a cross tool
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17001 $as_echo "pre-installed" >&6; }
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17006 $as_echo_n "checking where to find the target nm... " >&6; }
17007 if test "x${build}" != "x${host}" ; then
17008 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17009 # We already found the complete path
17010 ac_dir=`dirname $NM_FOR_TARGET`
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17012 $as_echo "pre-installed in $ac_dir" >&6; }
17013 else
17014 # Canadian cross, just use what we found
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17016 $as_echo "pre-installed" >&6; }
17018 else
17019 ok=yes
17020 case " ${configdirs} " in
17021 *" binutils "*) ;;
17022 *) ok=no ;;
17023 esac
17025 if test $ok = yes; then
17026 # An in-tree tool is available and we can use it
17027 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17029 $as_echo "just compiled" >&6; }
17030 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17031 # We already found the complete path
17032 ac_dir=`dirname $NM_FOR_TARGET`
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17034 $as_echo "pre-installed in $ac_dir" >&6; }
17035 elif test "x$target" = "x$host"; then
17036 # We can use an host tool
17037 NM_FOR_TARGET='$(NM)'
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17039 $as_echo "host tool" >&6; }
17040 else
17041 # We need a cross tool
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17043 $as_echo "pre-installed" >&6; }
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17048 $as_echo_n "checking where to find the target objcopy... " >&6; }
17049 if test "x${build}" != "x${host}" ; then
17050 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17051 # We already found the complete path
17052 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17054 $as_echo "pre-installed in $ac_dir" >&6; }
17055 else
17056 # Canadian cross, just use what we found
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17058 $as_echo "pre-installed" >&6; }
17060 else
17061 ok=yes
17062 case " ${configdirs} " in
17063 *" binutils "*) ;;
17064 *) ok=no ;;
17065 esac
17067 if test $ok = yes; then
17068 # An in-tree tool is available and we can use it
17069 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17071 $as_echo "just compiled" >&6; }
17072 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17073 # We already found the complete path
17074 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17076 $as_echo "pre-installed in $ac_dir" >&6; }
17077 elif test "x$target" = "x$host"; then
17078 # We can use an host tool
17079 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17081 $as_echo "host tool" >&6; }
17082 else
17083 # We need a cross tool
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17085 $as_echo "pre-installed" >&6; }
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17090 $as_echo_n "checking where to find the target objdump... " >&6; }
17091 if test "x${build}" != "x${host}" ; then
17092 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17093 # We already found the complete path
17094 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17096 $as_echo "pre-installed in $ac_dir" >&6; }
17097 else
17098 # Canadian cross, just use what we found
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17100 $as_echo "pre-installed" >&6; }
17102 else
17103 ok=yes
17104 case " ${configdirs} " in
17105 *" binutils "*) ;;
17106 *) ok=no ;;
17107 esac
17109 if test $ok = yes; then
17110 # An in-tree tool is available and we can use it
17111 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17113 $as_echo "just compiled" >&6; }
17114 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17115 # We already found the complete path
17116 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17118 $as_echo "pre-installed in $ac_dir" >&6; }
17119 elif test "x$target" = "x$host"; then
17120 # We can use an host tool
17121 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17123 $as_echo "host tool" >&6; }
17124 else
17125 # We need a cross tool
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17127 $as_echo "pre-installed" >&6; }
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17132 $as_echo_n "checking where to find the target otool... " >&6; }
17133 if test "x${build}" != "x${host}" ; then
17134 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17135 # We already found the complete path
17136 ac_dir=`dirname $OTOOL_FOR_TARGET`
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17138 $as_echo "pre-installed in $ac_dir" >&6; }
17139 else
17140 # Canadian cross, just use what we found
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17142 $as_echo "pre-installed" >&6; }
17144 else
17145 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17146 # We already found the complete path
17147 ac_dir=`dirname $OTOOL_FOR_TARGET`
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17149 $as_echo "pre-installed in $ac_dir" >&6; }
17150 elif test "x$target" = "x$host"; then
17151 # We can use an host tool
17152 OTOOL_FOR_TARGET='$(OTOOL)'
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17154 $as_echo "host tool" >&6; }
17155 else
17156 # We need a cross tool
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17158 $as_echo "pre-installed" >&6; }
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17163 $as_echo_n "checking where to find the target ranlib... " >&6; }
17164 if test "x${build}" != "x${host}" ; then
17165 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17166 # We already found the complete path
17167 ac_dir=`dirname $RANLIB_FOR_TARGET`
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17169 $as_echo "pre-installed in $ac_dir" >&6; }
17170 else
17171 # Canadian cross, just use what we found
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17173 $as_echo "pre-installed" >&6; }
17175 else
17176 ok=yes
17177 case " ${configdirs} " in
17178 *" binutils "*) ;;
17179 *) ok=no ;;
17180 esac
17182 if test $ok = yes; then
17183 # An in-tree tool is available and we can use it
17184 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17186 $as_echo "just compiled" >&6; }
17187 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17188 # We already found the complete path
17189 ac_dir=`dirname $RANLIB_FOR_TARGET`
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17191 $as_echo "pre-installed in $ac_dir" >&6; }
17192 elif test "x$target" = "x$host"; then
17193 # We can use an host tool
17194 RANLIB_FOR_TARGET='$(RANLIB)'
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17196 $as_echo "host tool" >&6; }
17197 else
17198 # We need a cross tool
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17200 $as_echo "pre-installed" >&6; }
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17205 $as_echo_n "checking where to find the target readelf... " >&6; }
17206 if test "x${build}" != "x${host}" ; then
17207 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17208 # We already found the complete path
17209 ac_dir=`dirname $READELF_FOR_TARGET`
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17211 $as_echo "pre-installed in $ac_dir" >&6; }
17212 else
17213 # Canadian cross, just use what we found
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17215 $as_echo "pre-installed" >&6; }
17217 else
17218 ok=yes
17219 case " ${configdirs} " in
17220 *" binutils "*) ;;
17221 *) ok=no ;;
17222 esac
17224 if test $ok = yes; then
17225 # An in-tree tool is available and we can use it
17226 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17228 $as_echo "just compiled" >&6; }
17229 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17230 # We already found the complete path
17231 ac_dir=`dirname $READELF_FOR_TARGET`
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17233 $as_echo "pre-installed in $ac_dir" >&6; }
17234 elif test "x$target" = "x$host"; then
17235 # We can use an host tool
17236 READELF_FOR_TARGET='$(READELF)'
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17238 $as_echo "host tool" >&6; }
17239 else
17240 # We need a cross tool
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17242 $as_echo "pre-installed" >&6; }
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17247 $as_echo_n "checking where to find the target strip... " >&6; }
17248 if test "x${build}" != "x${host}" ; then
17249 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17250 # We already found the complete path
17251 ac_dir=`dirname $STRIP_FOR_TARGET`
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17253 $as_echo "pre-installed in $ac_dir" >&6; }
17254 else
17255 # Canadian cross, just use what we found
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17257 $as_echo "pre-installed" >&6; }
17259 else
17260 ok=yes
17261 case " ${configdirs} " in
17262 *" binutils "*) ;;
17263 *) ok=no ;;
17264 esac
17266 if test $ok = yes; then
17267 # An in-tree tool is available and we can use it
17268 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17270 $as_echo "just compiled" >&6; }
17271 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17272 # We already found the complete path
17273 ac_dir=`dirname $STRIP_FOR_TARGET`
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17275 $as_echo "pre-installed in $ac_dir" >&6; }
17276 elif test "x$target" = "x$host"; then
17277 # We can use an host tool
17278 STRIP_FOR_TARGET='$(STRIP)'
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17280 $as_echo "host tool" >&6; }
17281 else
17282 # We need a cross tool
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17284 $as_echo "pre-installed" >&6; }
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17289 $as_echo_n "checking where to find the target windres... " >&6; }
17290 if test "x${build}" != "x${host}" ; then
17291 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17292 # We already found the complete path
17293 ac_dir=`dirname $WINDRES_FOR_TARGET`
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17295 $as_echo "pre-installed in $ac_dir" >&6; }
17296 else
17297 # Canadian cross, just use what we found
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17299 $as_echo "pre-installed" >&6; }
17301 else
17302 ok=yes
17303 case " ${configdirs} " in
17304 *" binutils "*) ;;
17305 *) ok=no ;;
17306 esac
17308 if test $ok = yes; then
17309 # An in-tree tool is available and we can use it
17310 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17312 $as_echo "just compiled" >&6; }
17313 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17314 # We already found the complete path
17315 ac_dir=`dirname $WINDRES_FOR_TARGET`
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17317 $as_echo "pre-installed in $ac_dir" >&6; }
17318 elif test "x$target" = "x$host"; then
17319 # We can use an host tool
17320 WINDRES_FOR_TARGET='$(WINDRES)'
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17322 $as_echo "host tool" >&6; }
17323 else
17324 # We need a cross tool
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17326 $as_echo "pre-installed" >&6; }
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17331 $as_echo_n "checking where to find the target windmc... " >&6; }
17332 if test "x${build}" != "x${host}" ; then
17333 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17334 # We already found the complete path
17335 ac_dir=`dirname $WINDMC_FOR_TARGET`
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17337 $as_echo "pre-installed in $ac_dir" >&6; }
17338 else
17339 # Canadian cross, just use what we found
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17341 $as_echo "pre-installed" >&6; }
17343 else
17344 ok=yes
17345 case " ${configdirs} " in
17346 *" binutils "*) ;;
17347 *) ok=no ;;
17348 esac
17350 if test $ok = yes; then
17351 # An in-tree tool is available and we can use it
17352 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17354 $as_echo "just compiled" >&6; }
17355 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17356 # We already found the complete path
17357 ac_dir=`dirname $WINDMC_FOR_TARGET`
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17359 $as_echo "pre-installed in $ac_dir" >&6; }
17360 elif test "x$target" = "x$host"; then
17361 # We can use an host tool
17362 WINDMC_FOR_TARGET='$(WINDMC)'
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17364 $as_echo "host tool" >&6; }
17365 else
17366 # We need a cross tool
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17368 $as_echo "pre-installed" >&6; }
17376 # Certain tools may need extra flags.
17377 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17378 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17379 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17381 # When building target libraries, except in a Canadian cross, we use
17382 # the same toolchain as the compiler we just built.
17383 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17384 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17385 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17386 if test $host = $build; then
17387 case " $configdirs " in
17388 *" gcc "*)
17389 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17390 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17391 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17393 esac
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17401 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17402 # Check whether --enable-maintainer-mode was given.
17403 if test "${enable_maintainer_mode+set}" = set; then :
17404 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17405 else
17406 USE_MAINTAINER_MODE=no
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17410 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17413 if test "$USE_MAINTAINER_MODE" = yes; then
17414 MAINTAINER_MODE_TRUE=
17415 MAINTAINER_MODE_FALSE='#'
17416 else
17417 MAINTAINER_MODE_TRUE='#'
17418 MAINTAINER_MODE_FALSE=
17420 MAINT=$MAINTAINER_MODE_TRUE
17422 # ---------------------
17423 # GCC bootstrap support
17424 # ---------------------
17426 # Stage specific cflags for build.
17427 stage1_cflags="-g"
17428 case $build in
17429 vax-*-*)
17430 case ${GCC} in
17431 yes) stage1_cflags="-g -Wa,-J" ;;
17432 *) stage1_cflags="-g -J" ;;
17433 esac ;;
17434 esac
17438 # Enable --enable-checking in stage1 of the compiler.
17439 # Check whether --enable-stage1-checking was given.
17440 if test "${enable_stage1_checking+set}" = set; then :
17441 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
17442 else
17443 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
17444 # For --disable-checking or implicit --enable-checking=release, avoid
17445 # setting --enable-checking=gc in the default stage1 checking for LTO
17446 # bootstraps. See PR62077.
17447 case $BUILD_CONFIG in
17448 *lto*)
17449 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17451 stage1_checking=--enable-checking=yes,types;;
17452 esac
17453 if test "x$enable_checking" = x && \
17454 test -d ${srcdir}/gcc && \
17455 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
17456 stage1_checking=--enable-checking=yes,types,extra
17458 else
17459 stage1_checking=--enable-checking=$enable_checking,types
17465 # Enable -Werror in bootstrap stage2 and later.
17466 # Check whether --enable-werror was given.
17467 if test "${enable_werror+set}" = set; then :
17468 enableval=$enable_werror;
17469 case ${enable_werror} in
17470 yes) stage2_werror_flag="--enable-werror-always" ;;
17471 *) stage2_werror_flag="" ;;
17472 esac
17474 else
17476 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17477 case $BUILD_CONFIG in
17478 bootstrap-debug)
17479 stage2_werror_flag="--enable-werror-always" ;;
17481 stage2_werror_flag="--enable-werror-always" ;;
17482 esac
17490 # Specify what files to not compare during bootstrap.
17492 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17493 case "$target" in
17494 hppa*64*-*-hpux*) ;;
17495 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17496 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
17497 esac
17500 ac_config_files="$ac_config_files Makefile"
17502 cat >confcache <<\_ACEOF
17503 # This file is a shell script that caches the results of configure
17504 # tests run on this system so they can be shared between configure
17505 # scripts and configure runs, see configure's option --config-cache.
17506 # It is not useful on other systems. If it contains results you don't
17507 # want to keep, you may remove or edit it.
17509 # config.status only pays attention to the cache file if you give it
17510 # the --recheck option to rerun configure.
17512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17514 # following values.
17516 _ACEOF
17518 # The following way of writing the cache mishandles newlines in values,
17519 # but we know of no workaround that is simple, portable, and efficient.
17520 # So, we kill variables containing newlines.
17521 # Ultrix sh set writes to stderr and can't be redirected directly,
17522 # and sets the high bit in the cache file unless we assign to the vars.
17524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17525 eval ac_val=\$$ac_var
17526 case $ac_val in #(
17527 *${as_nl}*)
17528 case $ac_var in #(
17529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17531 esac
17532 case $ac_var in #(
17533 _ | IFS | as_nl) ;; #(
17534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17535 *) { eval $ac_var=; unset $ac_var;} ;;
17536 esac ;;
17537 esac
17538 done
17540 (set) 2>&1 |
17541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17542 *${as_nl}ac_space=\ *)
17543 # `set' does not quote correctly, so add quotes: double-quote
17544 # substitution turns \\\\ into \\, and sed turns \\ into \.
17545 sed -n \
17546 "s/'/'\\\\''/g;
17547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17548 ;; #(
17550 # `set' quotes correctly as required by POSIX, so do not add quotes.
17551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17553 esac |
17554 sort
17556 sed '
17557 /^ac_cv_env_/b end
17558 t clear
17559 :clear
17560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17561 t end
17562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17563 :end' >>confcache
17564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17565 if test -w "$cache_file"; then
17566 if test "x$cache_file" != "x/dev/null"; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17568 $as_echo "$as_me: updating cache $cache_file" >&6;}
17569 if test ! -f "$cache_file" || test -h "$cache_file"; then
17570 cat confcache >"$cache_file"
17571 else
17572 case $cache_file in #(
17573 */* | ?:*)
17574 mv -f confcache "$cache_file"$$ &&
17575 mv -f "$cache_file"$$ "$cache_file" ;; #(
17577 mv -f confcache "$cache_file" ;;
17578 esac
17581 else
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17586 rm -f confcache
17588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17589 # Let make expand exec_prefix.
17590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17592 # Transform confdefs.h into DEFS.
17593 # Protect against shell expansion while executing Makefile rules.
17594 # Protect against Makefile macro expansion.
17596 # If the first sed substitution is executed (which looks for macros that
17597 # take arguments), then branch to the quote section. Otherwise,
17598 # look for a macro that doesn't take arguments.
17599 ac_script='
17600 :mline
17601 /\\$/{
17603 s,\\\n,,
17604 b mline
17606 t clear
17607 :clear
17608 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17609 t quote
17610 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17611 t quote
17612 b any
17613 :quote
17614 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17615 s/\[/\\&/g
17616 s/\]/\\&/g
17617 s/\$/$$/g
17619 :any
17622 s/^\n//
17623 s/\n/ /g
17627 DEFS=`sed -n "$ac_script" confdefs.h`
17630 ac_libobjs=
17631 ac_ltlibobjs=
17633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17634 # 1. Remove the extension, and $U if already installed.
17635 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17636 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17638 # will be set to the directory where LIBOBJS objects are built.
17639 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17640 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17641 done
17642 LIBOBJS=$ac_libobjs
17644 LTLIBOBJS=$ac_ltlibobjs
17648 : "${CONFIG_STATUS=./config.status}"
17649 ac_write_fail=0
17650 ac_clean_files_save=$ac_clean_files
17651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17654 as_write_fail=0
17655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17656 #! $SHELL
17657 # Generated by $as_me.
17658 # Run this file to recreate the current configuration.
17659 # Compiler output produced by configure, useful for debugging
17660 # configure, is in config.log if it exists.
17662 debug=false
17663 ac_cs_recheck=false
17664 ac_cs_silent=false
17666 SHELL=\${CONFIG_SHELL-$SHELL}
17667 export SHELL
17668 _ASEOF
17669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17670 ## -------------------- ##
17671 ## M4sh Initialization. ##
17672 ## -------------------- ##
17674 # Be more Bourne compatible
17675 DUALCASE=1; export DUALCASE # for MKS sh
17676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17677 emulate sh
17678 NULLCMD=:
17679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17680 # is contrary to our usage. Disable this feature.
17681 alias -g '${1+"$@"}'='"$@"'
17682 setopt NO_GLOB_SUBST
17683 else
17684 case `(set -o) 2>/dev/null` in #(
17685 *posix*) :
17686 set -o posix ;; #(
17687 *) :
17689 esac
17693 as_nl='
17695 export as_nl
17696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17697 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17700 # Prefer a ksh shell builtin over an external printf program on Solaris,
17701 # but without wasting forks for bash or zsh.
17702 if test -z "$BASH_VERSION$ZSH_VERSION" \
17703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17704 as_echo='print -r --'
17705 as_echo_n='print -rn --'
17706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17707 as_echo='printf %s\n'
17708 as_echo_n='printf %s'
17709 else
17710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17712 as_echo_n='/usr/ucb/echo -n'
17713 else
17714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17715 as_echo_n_body='eval
17716 arg=$1;
17717 case $arg in #(
17718 *"$as_nl"*)
17719 expr "X$arg" : "X\\(.*\\)$as_nl";
17720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17721 esac;
17722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17724 export as_echo_n_body
17725 as_echo_n='sh -c $as_echo_n_body as_echo'
17727 export as_echo_body
17728 as_echo='sh -c $as_echo_body as_echo'
17731 # The user is always right.
17732 if test "${PATH_SEPARATOR+set}" != set; then
17733 PATH_SEPARATOR=:
17734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17736 PATH_SEPARATOR=';'
17741 # IFS
17742 # We need space, tab and new line, in precisely that order. Quoting is
17743 # there to prevent editors from complaining about space-tab.
17744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17745 # splitting by setting IFS to empty value.)
17746 IFS=" "" $as_nl"
17748 # Find who we are. Look in the path if we contain no directory separator.
17749 as_myself=
17750 case $0 in #((
17751 *[\\/]* ) as_myself=$0 ;;
17752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17753 for as_dir in $PATH
17755 IFS=$as_save_IFS
17756 test -z "$as_dir" && as_dir=.
17757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17758 done
17759 IFS=$as_save_IFS
17762 esac
17763 # We did not find ourselves, most probably we were run as `sh COMMAND'
17764 # in which case we are not to be found in the path.
17765 if test "x$as_myself" = x; then
17766 as_myself=$0
17768 if test ! -f "$as_myself"; then
17769 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17770 exit 1
17773 # Unset variables that we do not need and which cause bugs (e.g. in
17774 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17775 # suppresses any "Segmentation fault" message there. '((' could
17776 # trigger a bug in pdksh 5.2.14.
17777 for as_var in BASH_ENV ENV MAIL MAILPATH
17778 do eval test x\${$as_var+set} = xset \
17779 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17780 done
17781 PS1='$ '
17782 PS2='> '
17783 PS4='+ '
17785 # NLS nuisances.
17786 LC_ALL=C
17787 export LC_ALL
17788 LANGUAGE=C
17789 export LANGUAGE
17791 # CDPATH.
17792 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17795 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17796 # ----------------------------------------
17797 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17798 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17799 # script with STATUS, using 1 if that was 0.
17800 as_fn_error ()
17802 as_status=$1; test $as_status -eq 0 && as_status=1
17803 if test "$4"; then
17804 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17805 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17807 $as_echo "$as_me: error: $2" >&2
17808 as_fn_exit $as_status
17809 } # as_fn_error
17812 # as_fn_set_status STATUS
17813 # -----------------------
17814 # Set $? to STATUS, without forking.
17815 as_fn_set_status ()
17817 return $1
17818 } # as_fn_set_status
17820 # as_fn_exit STATUS
17821 # -----------------
17822 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17823 as_fn_exit ()
17825 set +e
17826 as_fn_set_status $1
17827 exit $1
17828 } # as_fn_exit
17830 # as_fn_unset VAR
17831 # ---------------
17832 # Portably unset VAR.
17833 as_fn_unset ()
17835 { eval $1=; unset $1;}
17837 as_unset=as_fn_unset
17838 # as_fn_append VAR VALUE
17839 # ----------------------
17840 # Append the text in VALUE to the end of the definition contained in VAR. Take
17841 # advantage of any shell optimizations that allow amortized linear growth over
17842 # repeated appends, instead of the typical quadratic growth present in naive
17843 # implementations.
17844 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17845 eval 'as_fn_append ()
17847 eval $1+=\$2
17849 else
17850 as_fn_append ()
17852 eval $1=\$$1\$2
17854 fi # as_fn_append
17856 # as_fn_arith ARG...
17857 # ------------------
17858 # Perform arithmetic evaluation on the ARGs, and store the result in the
17859 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17860 # must be portable across $(()) and expr.
17861 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17862 eval 'as_fn_arith ()
17864 as_val=$(( $* ))
17866 else
17867 as_fn_arith ()
17869 as_val=`expr "$@" || test $? -eq 1`
17871 fi # as_fn_arith
17874 if expr a : '\(a\)' >/dev/null 2>&1 &&
17875 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17876 as_expr=expr
17877 else
17878 as_expr=false
17881 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17882 as_basename=basename
17883 else
17884 as_basename=false
17887 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17888 as_dirname=dirname
17889 else
17890 as_dirname=false
17893 as_me=`$as_basename -- "$0" ||
17894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17895 X"$0" : 'X\(//\)$' \| \
17896 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17897 $as_echo X/"$0" |
17898 sed '/^.*\/\([^/][^/]*\)\/*$/{
17899 s//\1/
17902 /^X\/\(\/\/\)$/{
17903 s//\1/
17906 /^X\/\(\/\).*/{
17907 s//\1/
17910 s/.*/./; q'`
17912 # Avoid depending upon Character Ranges.
17913 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17914 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17915 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17916 as_cr_digits='0123456789'
17917 as_cr_alnum=$as_cr_Letters$as_cr_digits
17919 ECHO_C= ECHO_N= ECHO_T=
17920 case `echo -n x` in #(((((
17921 -n*)
17922 case `echo 'xy\c'` in
17923 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17924 xy) ECHO_C='\c';;
17925 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17926 ECHO_T=' ';;
17927 esac;;
17929 ECHO_N='-n';;
17930 esac
17932 rm -f conf$$ conf$$.exe conf$$.file
17933 if test -d conf$$.dir; then
17934 rm -f conf$$.dir/conf$$.file
17935 else
17936 rm -f conf$$.dir
17937 mkdir conf$$.dir 2>/dev/null
17939 if (echo >conf$$.file) 2>/dev/null; then
17940 if ln -s conf$$.file conf$$ 2>/dev/null; then
17941 as_ln_s='ln -s'
17942 # ... but there are two gotchas:
17943 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17944 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17945 # In both cases, we have to default to `cp -pR'.
17946 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17947 as_ln_s='cp -pR'
17948 elif ln conf$$.file conf$$ 2>/dev/null; then
17949 as_ln_s=ln
17950 else
17951 as_ln_s='cp -pR'
17953 else
17954 as_ln_s='cp -pR'
17956 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17957 rmdir conf$$.dir 2>/dev/null
17960 # as_fn_mkdir_p
17961 # -------------
17962 # Create "$as_dir" as a directory, including parents if necessary.
17963 as_fn_mkdir_p ()
17966 case $as_dir in #(
17967 -*) as_dir=./$as_dir;;
17968 esac
17969 test -d "$as_dir" || eval $as_mkdir_p || {
17970 as_dirs=
17971 while :; do
17972 case $as_dir in #(
17973 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17974 *) as_qdir=$as_dir;;
17975 esac
17976 as_dirs="'$as_qdir' $as_dirs"
17977 as_dir=`$as_dirname -- "$as_dir" ||
17978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17979 X"$as_dir" : 'X\(//\)[^/]' \| \
17980 X"$as_dir" : 'X\(//\)$' \| \
17981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17982 $as_echo X"$as_dir" |
17983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17984 s//\1/
17987 /^X\(\/\/\)[^/].*/{
17988 s//\1/
17991 /^X\(\/\/\)$/{
17992 s//\1/
17995 /^X\(\/\).*/{
17996 s//\1/
17999 s/.*/./; q'`
18000 test -d "$as_dir" && break
18001 done
18002 test -z "$as_dirs" || eval "mkdir $as_dirs"
18003 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18006 } # as_fn_mkdir_p
18007 if mkdir -p . 2>/dev/null; then
18008 as_mkdir_p='mkdir -p "$as_dir"'
18009 else
18010 test -d ./-p && rmdir ./-p
18011 as_mkdir_p=false
18015 # as_fn_executable_p FILE
18016 # -----------------------
18017 # Test if FILE is an executable regular file.
18018 as_fn_executable_p ()
18020 test -f "$1" && test -x "$1"
18021 } # as_fn_executable_p
18022 as_test_x='test -x'
18023 as_executable_p=as_fn_executable_p
18025 # Sed expression to map a string onto a valid CPP name.
18026 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18028 # Sed expression to map a string onto a valid variable name.
18029 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18032 exec 6>&1
18033 ## ----------------------------------- ##
18034 ## Main body of $CONFIG_STATUS script. ##
18035 ## ----------------------------------- ##
18036 _ASEOF
18037 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18040 # Save the log message, to keep $0 and so on meaningful, and to
18041 # report actual input values of CONFIG_FILES etc. instead of their
18042 # values after options handling.
18043 ac_log="
18044 This file was extended by $as_me, which was
18045 generated by GNU Autoconf 2.69. Invocation command line was
18047 CONFIG_FILES = $CONFIG_FILES
18048 CONFIG_HEADERS = $CONFIG_HEADERS
18049 CONFIG_LINKS = $CONFIG_LINKS
18050 CONFIG_COMMANDS = $CONFIG_COMMANDS
18051 $ $0 $@
18053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18056 _ACEOF
18058 case $ac_config_files in *"
18059 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18060 esac
18064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18065 # Files that config.status was made for.
18066 config_files="$ac_config_files"
18068 _ACEOF
18070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18071 ac_cs_usage="\
18072 \`$as_me' instantiates files and other configuration actions
18073 from templates according to the current configuration. Unless the files
18074 and actions are specified as TAGs, all are instantiated by default.
18076 Usage: $0 [OPTION]... [TAG]...
18078 -h, --help print this help, then exit
18079 -V, --version print version number and configuration settings, then exit
18080 --config print configuration, then exit
18081 -q, --quiet, --silent
18082 do not print progress messages
18083 -d, --debug don't remove temporary files
18084 --recheck update $as_me by reconfiguring in the same conditions
18085 --file=FILE[:TEMPLATE]
18086 instantiate the configuration file FILE
18088 Configuration files:
18089 $config_files
18091 Report bugs to the package provider."
18093 _ACEOF
18094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18095 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18096 ac_cs_version="\\
18097 config.status
18098 configured by $0, generated by GNU Autoconf 2.69,
18099 with options \\"\$ac_cs_config\\"
18101 Copyright (C) 2012 Free Software Foundation, Inc.
18102 This config.status script is free software; the Free Software Foundation
18103 gives unlimited permission to copy, distribute and modify it."
18105 ac_pwd='$ac_pwd'
18106 srcdir='$srcdir'
18107 INSTALL='$INSTALL'
18108 AWK='$AWK'
18109 test -n "\$AWK" || AWK=awk
18110 _ACEOF
18112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18113 # The default lists apply if the user does not specify any file.
18114 ac_need_defaults=:
18115 while test $# != 0
18117 case $1 in
18118 --*=?*)
18119 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18120 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18121 ac_shift=:
18123 --*=)
18124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18125 ac_optarg=
18126 ac_shift=:
18129 ac_option=$1
18130 ac_optarg=$2
18131 ac_shift=shift
18133 esac
18135 case $ac_option in
18136 # Handling of the options.
18137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18138 ac_cs_recheck=: ;;
18139 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18140 $as_echo "$ac_cs_version"; exit ;;
18141 --config | --confi | --conf | --con | --co | --c )
18142 $as_echo "$ac_cs_config"; exit ;;
18143 --debug | --debu | --deb | --de | --d | -d )
18144 debug=: ;;
18145 --file | --fil | --fi | --f )
18146 $ac_shift
18147 case $ac_optarg in
18148 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18149 '') as_fn_error $? "missing file argument" ;;
18150 esac
18151 as_fn_append CONFIG_FILES " '$ac_optarg'"
18152 ac_need_defaults=false;;
18153 --he | --h | --help | --hel | -h )
18154 $as_echo "$ac_cs_usage"; exit ;;
18155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18157 ac_cs_silent=: ;;
18159 # This is an error.
18160 -*) as_fn_error $? "unrecognized option: \`$1'
18161 Try \`$0 --help' for more information." ;;
18163 *) as_fn_append ac_config_targets " $1"
18164 ac_need_defaults=false ;;
18166 esac
18167 shift
18168 done
18170 ac_configure_extra_args=
18172 if $ac_cs_silent; then
18173 exec 6>/dev/null
18174 ac_configure_extra_args="$ac_configure_extra_args --silent"
18177 _ACEOF
18178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18179 if \$ac_cs_recheck; then
18180 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18181 shift
18182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18183 CONFIG_SHELL='$SHELL'
18184 export CONFIG_SHELL
18185 exec "\$@"
18188 _ACEOF
18189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18190 exec 5>>config.log
18192 echo
18193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18194 ## Running $as_me. ##
18195 _ASBOX
18196 $as_echo "$ac_log"
18197 } >&5
18199 _ACEOF
18200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18202 # INIT-COMMANDS
18204 extrasub_build="$extrasub_build"
18205 extrasub_host="$extrasub_host"
18206 extrasub_target="$extrasub_target"
18208 _ACEOF
18210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18212 # Handling of arguments.
18213 for ac_config_target in $ac_config_targets
18215 case $ac_config_target in
18216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18218 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18219 esac
18220 done
18223 # If the user did not use the arguments to specify the items to instantiate,
18224 # then the envvar interface is used. Set only those that are not.
18225 # We use the long form for the default assignment because of an extremely
18226 # bizarre bug on SunOS 4.1.3.
18227 if $ac_need_defaults; then
18228 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18231 # Have a temporary directory for convenience. Make it in the build tree
18232 # simply because there is no reason against having it here, and in addition,
18233 # creating and moving files from /tmp can sometimes cause problems.
18234 # Hook for its removal unless debugging.
18235 # Note that there is a small window in which the directory will not be cleaned:
18236 # after its creation but before its name has been assigned to `$tmp'.
18237 $debug ||
18239 tmp= ac_tmp=
18240 trap 'exit_status=$?
18241 : "${ac_tmp:=$tmp}"
18242 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18244 trap 'as_fn_exit 1' 1 2 13 15
18246 # Create a (secure) tmp directory for tmp files.
18249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18250 test -d "$tmp"
18251 } ||
18253 tmp=./conf$$-$RANDOM
18254 (umask 077 && mkdir "$tmp")
18255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18256 ac_tmp=$tmp
18258 # Set up the scripts for CONFIG_FILES section.
18259 # No need to generate them if there are no CONFIG_FILES.
18260 # This happens for instance with `./config.status config.h'.
18261 if test -n "$CONFIG_FILES"; then
18263 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18264 ac_cs_awk_getline=:
18265 ac_cs_awk_pipe_init=
18266 ac_cs_awk_read_file='
18267 while ((getline aline < (F[key])) > 0)
18268 print(aline)
18269 close(F[key])'
18270 ac_cs_awk_pipe_fini=
18271 else
18272 ac_cs_awk_getline=false
18273 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18274 ac_cs_awk_read_file='
18275 print "|#_!!_#|"
18276 print "cat " F[key] " &&"
18277 '$ac_cs_awk_pipe_init
18278 # The final `:' finishes the AND list.
18279 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18281 ac_cr=`echo X | tr X '\015'`
18282 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18283 # But we know of no other shell where ac_cr would be empty at this
18284 # point, so we can use a bashism as a fallback.
18285 if test "x$ac_cr" = x; then
18286 eval ac_cr=\$\'\\r\'
18288 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18289 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18290 ac_cs_awk_cr='\\r'
18291 else
18292 ac_cs_awk_cr=$ac_cr
18295 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18296 _ACEOF
18298 # Create commands to substitute file output variables.
18300 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18301 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18302 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18303 echo "_ACAWK" &&
18304 echo "_ACEOF"
18305 } >conf$$files.sh &&
18306 . ./conf$$files.sh ||
18307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18308 rm -f conf$$files.sh
18311 echo "cat >conf$$subs.awk <<_ACEOF" &&
18312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18313 echo "_ACEOF"
18314 } >conf$$subs.sh ||
18315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18317 ac_delim='%!_!# '
18318 for ac_last_try in false false false false false :; do
18319 . ./conf$$subs.sh ||
18320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18323 if test $ac_delim_n = $ac_delim_num; then
18324 break
18325 elif $ac_last_try; then
18326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18327 else
18328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18330 done
18331 rm -f conf$$subs.sh
18333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18335 _ACEOF
18336 sed -n '
18338 s/^/S["/; s/!.*/"]=/
18341 s/^[^!]*!//
18342 :repl
18343 t repl
18344 s/'"$ac_delim"'$//
18345 t delim
18348 s/\(.\{148\}\)..*/\1/
18349 t more1
18350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18353 b repl
18354 :more1
18355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18358 s/.\{148\}//
18359 t nl
18360 :delim
18362 s/\(.\{148\}\)..*/\1/
18363 t more2
18364 s/["\\]/\\&/g; s/^/"/; s/$/"/
18367 :more2
18368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18371 s/.\{148\}//
18372 t delim
18373 ' <conf$$subs.awk | sed '
18374 /^[^""]/{
18376 s/\n//
18378 ' >>$CONFIG_STATUS || ac_write_fail=1
18379 rm -f conf$$subs.awk
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 _ACAWK
18382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18383 for (key in S) S_is_set[key] = 1
18384 FS = "\a"
18385 \$ac_cs_awk_pipe_init
18388 line = $ 0
18389 nfields = split(line, field, "@")
18390 substed = 0
18391 len = length(field[1])
18392 for (i = 2; i < nfields; i++) {
18393 key = field[i]
18394 keylen = length(key)
18395 if (S_is_set[key]) {
18396 value = S[key]
18397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18398 len += length(value) + length(field[++i])
18399 substed = 1
18400 } else
18401 len += 1 + keylen
18403 if (nfields == 3 && !substed) {
18404 key = field[2]
18405 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18406 \$ac_cs_awk_read_file
18407 next
18410 print line
18412 \$ac_cs_awk_pipe_fini
18413 _ACAWK
18414 _ACEOF
18415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18418 else
18420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18422 _ACEOF
18424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18426 # trailing colons and then remove the whole line if VPATH becomes empty
18427 # (actually we leave an empty line to preserve line numbers).
18428 if test "x$srcdir" = x.; then
18429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18431 s///
18432 s/^/:/
18433 s/[ ]*$/:/
18434 s/:\$(srcdir):/:/g
18435 s/:\${srcdir}:/:/g
18436 s/:@srcdir@:/:/g
18437 s/^:*//
18438 s/:*$//
18440 s/\(=[ ]*\).*/\1/
18442 s/\n//
18443 s/^[^=]*=[ ]*$//
18447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18448 fi # test -n "$CONFIG_FILES"
18451 eval set X " :F $CONFIG_FILES "
18452 shift
18453 for ac_tag
18455 case $ac_tag in
18456 :[FHLC]) ac_mode=$ac_tag; continue;;
18457 esac
18458 case $ac_mode$ac_tag in
18459 :[FHL]*:*);;
18460 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18461 :[FH]-) ac_tag=-:-;;
18462 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18463 esac
18464 ac_save_IFS=$IFS
18465 IFS=:
18466 set x $ac_tag
18467 IFS=$ac_save_IFS
18468 shift
18469 ac_file=$1
18470 shift
18472 case $ac_mode in
18473 :L) ac_source=$1;;
18474 :[FH])
18475 ac_file_inputs=
18476 for ac_f
18478 case $ac_f in
18479 -) ac_f="$ac_tmp/stdin";;
18480 *) # Look for the file first in the build tree, then in the source tree
18481 # (if the path is not absolute). The absolute path cannot be DOS-style,
18482 # because $ac_f cannot contain `:'.
18483 test -f "$ac_f" ||
18484 case $ac_f in
18485 [\\/$]*) false;;
18486 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18487 esac ||
18488 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18489 esac
18490 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18491 as_fn_append ac_file_inputs " '$ac_f'"
18492 done
18494 # Let's still pretend it is `configure' which instantiates (i.e., don't
18495 # use $as_me), people would be surprised to read:
18496 # /* config.h. Generated by config.status. */
18497 configure_input='Generated from '`
18498 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18499 `' by configure.'
18500 if test x"$ac_file" != x-; then
18501 configure_input="$ac_file. $configure_input"
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18503 $as_echo "$as_me: creating $ac_file" >&6;}
18505 # Neutralize special characters interpreted by sed in replacement strings.
18506 case $configure_input in #(
18507 *\&* | *\|* | *\\* )
18508 ac_sed_conf_input=`$as_echo "$configure_input" |
18509 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18510 *) ac_sed_conf_input=$configure_input;;
18511 esac
18513 case $ac_tag in
18514 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18516 esac
18518 esac
18520 ac_dir=`$as_dirname -- "$ac_file" ||
18521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18522 X"$ac_file" : 'X\(//\)[^/]' \| \
18523 X"$ac_file" : 'X\(//\)$' \| \
18524 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18525 $as_echo X"$ac_file" |
18526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18527 s//\1/
18530 /^X\(\/\/\)[^/].*/{
18531 s//\1/
18534 /^X\(\/\/\)$/{
18535 s//\1/
18538 /^X\(\/\).*/{
18539 s//\1/
18542 s/.*/./; q'`
18543 as_dir="$ac_dir"; as_fn_mkdir_p
18544 ac_builddir=.
18546 case "$ac_dir" in
18547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18550 # A ".." for each directory in $ac_dir_suffix.
18551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18552 case $ac_top_builddir_sub in
18553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18555 esac ;;
18556 esac
18557 ac_abs_top_builddir=$ac_pwd
18558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18559 # for backward compatibility:
18560 ac_top_builddir=$ac_top_build_prefix
18562 case $srcdir in
18563 .) # We are building in place.
18564 ac_srcdir=.
18565 ac_top_srcdir=$ac_top_builddir_sub
18566 ac_abs_top_srcdir=$ac_pwd ;;
18567 [\\/]* | ?:[\\/]* ) # Absolute name.
18568 ac_srcdir=$srcdir$ac_dir_suffix;
18569 ac_top_srcdir=$srcdir
18570 ac_abs_top_srcdir=$srcdir ;;
18571 *) # Relative name.
18572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18573 ac_top_srcdir=$ac_top_build_prefix$srcdir
18574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18575 esac
18576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18579 case $ac_mode in
18582 # CONFIG_FILE
18585 case $INSTALL in
18586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18588 esac
18589 _ACEOF
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18592 # If the template does not know about datarootdir, expand it.
18593 # FIXME: This hack should be removed a few years after 2.60.
18594 ac_datarootdir_hack=; ac_datarootdir_seen=
18595 ac_sed_dataroot='
18596 /datarootdir/ {
18600 /@datadir@/p
18601 /@docdir@/p
18602 /@infodir@/p
18603 /@localedir@/p
18604 /@mandir@/p'
18605 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18606 *datarootdir*) ac_datarootdir_seen=yes;;
18607 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18609 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18610 _ACEOF
18611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18612 ac_datarootdir_hack='
18613 s&@datadir@&$datadir&g
18614 s&@docdir@&$docdir&g
18615 s&@infodir@&$infodir&g
18616 s&@localedir@&$localedir&g
18617 s&@mandir@&$mandir&g
18618 s&\\\${datarootdir}&$datarootdir&g' ;;
18619 esac
18620 _ACEOF
18622 # Neutralize VPATH when `$srcdir' = `.'.
18623 # Shell code in configure.ac might set extrasub.
18624 # FIXME: do we really want to maintain this feature?
18625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18626 ac_sed_extra="$ac_vpsub
18627 $extrasub
18628 _ACEOF
18629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18632 s|@configure_input@|$ac_sed_conf_input|;t t
18633 s&@top_builddir@&$ac_top_builddir_sub&;t t
18634 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18635 s&@srcdir@&$ac_srcdir&;t t
18636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18637 s&@top_srcdir@&$ac_top_srcdir&;t t
18638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18639 s&@builddir@&$ac_builddir&;t t
18640 s&@abs_builddir@&$ac_abs_builddir&;t t
18641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18642 s&@INSTALL@&$ac_INSTALL&;t t
18643 $ac_datarootdir_hack
18645 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18646 if $ac_cs_awk_getline; then
18647 $AWK -f "$ac_tmp/subs.awk"
18648 else
18649 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18650 fi \
18651 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18653 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18654 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18656 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18658 which seems to be undefined. Please make sure it is defined" >&5
18659 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18660 which seems to be undefined. Please make sure it is defined" >&2;}
18662 rm -f "$ac_tmp/stdin"
18663 case $ac_file in
18664 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18665 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18666 esac \
18667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18672 esac
18675 case $ac_file$ac_mode in
18676 "Makefile":F) sed "$extrasub_build" Makefile |
18677 sed "$extrasub_host" |
18678 sed "$extrasub_target" > mf$$
18679 mv -f mf$$ Makefile ;;
18681 esac
18682 done # for ac_tag
18685 as_fn_exit 0
18686 _ACEOF
18687 ac_clean_files=$ac_clean_files_save
18689 test $ac_write_fail = 0 ||
18690 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18693 # configure is writing to config.log, and then calls config.status.
18694 # config.status does its own redirection, appending to config.log.
18695 # Unfortunately, on DOS this fails, as config.log is still kept open
18696 # by configure, so config.status won't be able to write to it; its
18697 # output is simply discarded. So we exec the FD to /dev/null,
18698 # effectively closing config.log, so it can be properly (re)opened and
18699 # appended to by config.status. When coming back to configure, we
18700 # need to make the FD available again.
18701 if test "$no_create" != yes; then
18702 ac_cs_success=:
18703 ac_config_status_args=
18704 test "$silent" = yes &&
18705 ac_config_status_args="$ac_config_status_args --quiet"
18706 exec 5>/dev/null
18707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18708 exec 5>>config.log
18709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18710 # would make configure fail if this is the last instruction.
18711 $ac_cs_success || as_fn_exit 1
18713 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18715 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}