Cygwin: devices: Make generic console devices invisible from pty.
[newlib-cygwin.git] / configure
blobeb0ba840b1ac75bba1393a7574035c9970645fe7
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 host_shared
591 stage2_werror_flag
592 stage1_checking
593 stage1_cflags
594 MAINT
595 MAINTAINER_MODE_FALSE
596 MAINTAINER_MODE_TRUE
597 COMPILER_NM_FOR_TARGET
598 COMPILER_LD_FOR_TARGET
599 COMPILER_AS_FOR_TARGET
600 FLAGS_FOR_TARGET
601 RAW_CXX_FOR_TARGET
602 WINDMC_FOR_TARGET
603 WINDRES_FOR_TARGET
604 STRIP_FOR_TARGET
605 READELF_FOR_TARGET
606 RANLIB_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 GOC_FOR_TARGET
616 GFORTRAN_FOR_TARGET
617 GCJ_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 RANLIB_PLUGIN_OPTION
622 AR_PLUGIN_OPTION
623 READELF
624 OBJDUMP
625 OBJCOPY
626 WINDMC
627 WINDRES
628 STRIP
629 RANLIB
631 LIPO
633 DLLTOOL
636 RUNTEST
637 EXPECT
638 MAKEINFO
639 FLEX
642 BISON
643 YACC
644 WINDRES_FOR_BUILD
645 WINDMC_FOR_BUILD
646 RANLIB_FOR_BUILD
647 NM_FOR_BUILD
648 LD_FOR_BUILD
649 LDFLAGS_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 GCJ_FOR_BUILD
653 DLLTOOL_FOR_BUILD
654 CXX_FOR_BUILD
655 CXXFLAGS_FOR_BUILD
656 CFLAGS_FOR_BUILD
657 CC_FOR_BUILD
658 AS_FOR_BUILD
659 AR_FOR_BUILD
660 target_configdirs
661 configdirs
662 build_configdirs
663 INSTALL_GDB_TK
664 GDB_TK
665 CONFIGURE_GDB_TK
666 build_tooldir
667 tooldir
668 GCC_SHLIB_SUBDIR
669 RPATH_ENVVAR
670 target_configargs
671 host_configargs
672 build_configargs
673 BUILD_CONFIG
674 LDFLAGS_FOR_TARGET
675 CXXFLAGS_FOR_TARGET
676 CFLAGS_FOR_TARGET
677 DEBUG_PREFIX_CFLAGS_FOR_TARGET
678 SYSROOT_CFLAGS_FOR_TARGET
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 extra_linker_plugin_flags
683 extra_linker_plugin_configure_flags
684 islinc
685 isllibs
686 islver
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 do_compare
698 GNATMAKE
699 GNATBIND
700 ac_ct_CXX
701 CXXFLAGS
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
710 EXTRA_CONFIGARGS_LIBJAVA
711 extra_liboffloadmic_configure_flags
712 target_subdir
713 host_subdir
714 build_subdir
715 build_libsubdir
718 LN_S
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 target_noncanonical
732 host_noncanonical
733 build_noncanonical
734 build_os
735 build_vendor
736 build_cpu
737 build
738 TOPLEVEL_CONFIGURE_ARGUMENTS
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files='serialization_dependencies
778 host_makefile_frag
779 target_makefile_frag
780 alphaieee_frag
781 ospace_frag'
782 ac_user_opts='
783 enable_option_checking
784 with_build_libsubdir
785 with_system_zlib
786 enable_as_accelerator_for
787 enable_offload_targets
788 enable_gold
789 enable_ld
790 enable_compressed_debug_sections
791 enable_libquadmath
792 enable_libquadmath_support
793 enable_libada
794 enable_libssp
795 enable_libstdcxx
796 enable_liboffloadmic
797 enable_static_libjava
798 enable_bootstrap
799 with_mpc
800 with_mpc_include
801 with_mpc_lib
802 with_mpfr_dir
803 with_mpfr
804 with_mpfr_include
805 with_mpfr_lib
806 with_gmp_dir
807 with_gmp
808 with_gmp_include
809 with_gmp_lib
810 with_stage1_libs
811 with_stage1_ldflags
812 with_boot_libs
813 with_boot_ldflags
814 with_isl
815 with_isl_include
816 with_isl_lib
817 enable_isl_version_check
818 enable_lto
819 enable_linker_plugin_configure_flags
820 enable_linker_plugin_flags
821 enable_stage1_languages
822 enable_objc_gc
823 with_build_sysroot
824 with_debug_prefix_map
825 with_build_config
826 enable_vtable_verify
827 enable_serial_configure
828 with_build_time_tools
829 enable_maintainer_mode
830 enable_stage1_checking
831 enable_werror
832 enable_host_shared
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
843 CXXFLAGS
845 build_configargs
846 host_configargs
847 target_configargs
850 DLLTOOL
852 LIPO
854 RANLIB
855 STRIP
856 WINDRES
857 WINDMC
858 OBJCOPY
859 OBJDUMP
860 READELF
861 CC_FOR_TARGET
862 CXX_FOR_TARGET
863 GCC_FOR_TARGET
864 GCJ_FOR_TARGET
865 GFORTRAN_FOR_TARGET
866 GOC_FOR_TARGET
867 AR_FOR_TARGET
868 AS_FOR_TARGET
869 DLLTOOL_FOR_TARGET
870 LD_FOR_TARGET
871 LIPO_FOR_TARGET
872 NM_FOR_TARGET
873 OBJCOPY_FOR_TARGET
874 OBJDUMP_FOR_TARGET
875 RANLIB_FOR_TARGET
876 READELF_FOR_TARGET
877 STRIP_FOR_TARGET
878 WINDRES_FOR_TARGET
879 WINDMC_FOR_TARGET'
882 # Initialize some variables set by options.
883 ac_init_help=
884 ac_init_version=false
885 ac_unrecognized_opts=
886 ac_unrecognized_sep=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
889 cache_file=/dev/null
890 exec_prefix=NONE
891 no_create=
892 no_recursion=
893 prefix=NONE
894 program_prefix=NONE
895 program_suffix=NONE
896 program_transform_name=s,x,x,
897 silent=
898 site=
899 srcdir=
900 verbose=
901 x_includes=NONE
902 x_libraries=NONE
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
930 ac_prev=
931 ac_dashdash=
932 for ac_option
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
937 ac_prev=
938 continue
941 case $ac_option in
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *=) ac_optarg= ;;
944 *) ac_optarg=yes ;;
945 esac
947 # Accept the important Cygnus configure options, so we can diagnose typos.
949 case $ac_dashdash$ac_option in
951 ac_dashdash=yes ;;
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
970 --config-cache | -C)
971 cache_file=config.cache ;;
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1265 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information"
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287 esac
1288 done
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error $? "missing argument to $ac_option"
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343 test "$silent" = yes && exec 6>/dev/null
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $? "working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $? "pwd does not report name of working directory"
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1372 /^X\(\/\/\)$/{
1373 s//\1/
1376 /^X\(\/\).*/{
1377 s//\1/
1380 s/.*/./; q'`
1381 srcdir=$ac_confdir
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 srcdir=..
1385 else
1386 ac_srcdir_defaulted=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395 pwd)`
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1403 case $srcdir in
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 esac
1406 case $srcdir in
1407 *" "*)
1408 as_fn_error $? "path to source, $srcdir, contains spaces"
1410 esac
1411 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures this package to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1482 cat <<\_ACEOF
1484 Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493 _ACEOF
1496 if test -n "$ac_init_help"; then
1498 cat <<\_ACEOF
1500 Optional Features:
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-as-accelerator-for=ARG
1505 build as offload target compiler. Specify offload
1506 host triple by ARG
1507 --enable-offload-targets=LIST
1508 enable offloading to devices from comma-separated
1509 LIST of TARGET[=DIR]. Use optional path to find
1510 offload target compiler during the build
1511 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1512 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1513 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1514 Enable compressed debug sections for gas, gold or ld
1515 by default
1516 --disable-libquadmath do not build libquadmath directory
1517 --disable-libquadmath-support
1518 disable libquadmath support for Fortran
1519 --enable-libada build libada directory
1520 --enable-libssp build libssp directory
1521 --disable-libstdcxx do not build libstdc++-v3 directory
1522 --enable-liboffloadmic=ARG
1523 build liboffloadmic [ARG={no,host,target}]
1524 --enable-static-libjava[=ARG]
1525 build static libjava [default=no]
1526 --enable-bootstrap enable bootstrapping [yes if native build]
1527 --disable-isl-version-check
1528 disable check for isl version
1529 --enable-lto enable link time optimization support
1530 --enable-linker-plugin-configure-flags=FLAGS
1531 additional flags for configuring linker plugins
1532 [none]
1533 --enable-linker-plugin-flags=FLAGS
1534 additional flags for configuring and building linker
1535 plugins [none]
1536 --enable-stage1-languages[=all]
1537 choose additional languages to build during stage1.
1538 Mostly useful for compiler development
1539 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1540 Objective-C runtime
1541 --enable-vtable-verify Enable vtable verification feature
1542 --enable-serial-[{host,target,build}-]configure
1543 force sequential configuration of sub-packages for
1544 the host, target or build machine, or all
1545 sub-packages
1546 --enable-maintainer-mode
1547 enable make rules and dependencies not useful (and
1548 sometimes confusing) to the casual installer
1549 --enable-stage1-checking[=all]
1550 choose additional checking for stage1 of the
1551 compiler
1552 --enable-werror enable -Werror in bootstrap stage2 and later
1553 --enable-host-shared build host code as shared libraries
1555 Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-build-libsubdir=DIR Directory where to find libraries for build system
1559 --with-system-zlib use installed libz
1560 --with-mpc=PATH specify prefix directory for installed MPC package.
1561 Equivalent to --with-mpc-include=PATH/include plus
1562 --with-mpc-lib=PATH/lib
1563 --with-mpc-include=PATH specify directory for installed MPC include files
1564 --with-mpc-lib=PATH specify directory for the installed MPC library
1565 --with-mpfr-dir=PATH this option has been REMOVED
1566 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1567 Equivalent to --with-mpfr-include=PATH/include plus
1568 --with-mpfr-lib=PATH/lib
1569 --with-mpfr-include=PATH
1570 specify directory for installed MPFR include files
1571 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1572 --with-gmp-dir=PATH this option has been REMOVED
1573 --with-gmp=PATH specify prefix directory for the installed GMP
1574 package. Equivalent to
1575 --with-gmp-include=PATH/include plus
1576 --with-gmp-lib=PATH/lib
1577 --with-gmp-include=PATH specify directory for installed GMP include files
1578 --with-gmp-lib=PATH specify directory for the installed GMP library
1579 --with-stage1-libs=LIBS libraries for stage1
1580 --with-stage1-ldflags=FLAGS
1581 linker flags for stage1
1582 --with-boot-libs=LIBS libraries for stage2 and later
1583 --with-boot-ldflags=FLAGS
1584 linker flags for stage2 and later
1585 --with-isl=PATH Specify prefix directory for the installed isl
1586 package. Equivalent to
1587 --with-isl-include=PATH/include plus
1588 --with-isl-lib=PATH/lib
1589 --with-isl-include=PATH Specify directory for installed isl include files
1590 --with-isl-lib=PATH Specify the directory for the installed isl library
1591 --with-build-sysroot=SYSROOT
1592 use sysroot as the system root during the build
1593 --with-debug-prefix-map='A=B C=D ...'
1594 map A to B, C to D ... in debug information
1595 --with-build-config='NAME NAME2...'
1596 use config/NAME.mk build configuration
1597 --with-build-time-tools=PATH
1598 use given path to find target tools during the build
1600 Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
1605 LIBS libraries to pass to the linker, e.g. -l<library>
1606 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
1608 CXX C++ compiler command
1609 CXXFLAGS C++ compiler flags
1610 build_configargs
1611 additional configure arguments for build directories
1612 host_configargs
1613 additional configure arguments for host directories
1614 target_configargs
1615 additional configure arguments for target directories
1616 AR AR for the host
1617 AS AS for the host
1618 DLLTOOL DLLTOOL for the host
1619 LD LD for the host
1620 LIPO LIPO for the host
1621 NM NM for the host
1622 RANLIB RANLIB for the host
1623 STRIP STRIP for the host
1624 WINDRES WINDRES for the host
1625 WINDMC WINDMC for the host
1626 OBJCOPY OBJCOPY for the host
1627 OBJDUMP OBJDUMP for the host
1628 READELF READELF for the host
1629 CC_FOR_TARGET
1630 CC for the target
1631 CXX_FOR_TARGET
1632 CXX for the target
1633 GCC_FOR_TARGET
1634 GCC for the target
1635 GCJ_FOR_TARGET
1636 GCJ for the target
1637 GFORTRAN_FOR_TARGET
1638 GFORTRAN for the target
1639 GOC_FOR_TARGET
1640 GOC for the target
1641 AR_FOR_TARGET
1642 AR for the target
1643 AS_FOR_TARGET
1644 AS for the target
1645 DLLTOOL_FOR_TARGET
1646 DLLTOOL for the target
1647 LD_FOR_TARGET
1648 LD for the target
1649 LIPO_FOR_TARGET
1650 LIPO for the target
1651 NM_FOR_TARGET
1652 NM for the target
1653 OBJCOPY_FOR_TARGET
1654 OBJCOPY for the target
1655 OBJDUMP_FOR_TARGET
1656 OBJDUMP for the target
1657 RANLIB_FOR_TARGET
1658 RANLIB for the target
1659 READELF_FOR_TARGET
1660 READELF for the target
1661 STRIP_FOR_TARGET
1662 STRIP for the target
1663 WINDRES_FOR_TARGET
1664 WINDRES for the target
1665 WINDMC_FOR_TARGET
1666 WINDMC for the target
1668 Use these variables to override the choices made by `configure' or to help
1669 it to find libraries and programs with nonstandard names/locations.
1671 Report bugs to the package provider.
1672 _ACEOF
1673 ac_status=$?
1676 if test "$ac_init_help" = "recursive"; then
1677 # If there are subdirs, report their specific --help.
1678 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1679 test -d "$ac_dir" ||
1680 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1681 continue
1682 ac_builddir=.
1684 case "$ac_dir" in
1685 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1688 # A ".." for each directory in $ac_dir_suffix.
1689 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1690 case $ac_top_builddir_sub in
1691 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1693 esac ;;
1694 esac
1695 ac_abs_top_builddir=$ac_pwd
1696 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1697 # for backward compatibility:
1698 ac_top_builddir=$ac_top_build_prefix
1700 case $srcdir in
1701 .) # We are building in place.
1702 ac_srcdir=.
1703 ac_top_srcdir=$ac_top_builddir_sub
1704 ac_abs_top_srcdir=$ac_pwd ;;
1705 [\\/]* | ?:[\\/]* ) # Absolute name.
1706 ac_srcdir=$srcdir$ac_dir_suffix;
1707 ac_top_srcdir=$srcdir
1708 ac_abs_top_srcdir=$srcdir ;;
1709 *) # Relative name.
1710 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1711 ac_top_srcdir=$ac_top_build_prefix$srcdir
1712 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1713 esac
1714 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716 cd "$ac_dir" || { ac_status=$?; continue; }
1717 # Check for guested configure.
1718 if test -f "$ac_srcdir/configure.gnu"; then
1719 echo &&
1720 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1721 elif test -f "$ac_srcdir/configure"; then
1722 echo &&
1723 $SHELL "$ac_srcdir/configure" --help=recursive
1724 else
1725 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1726 fi || ac_status=$?
1727 cd "$ac_pwd" || { ac_status=$?; break; }
1728 done
1731 test -n "$ac_init_help" && exit $ac_status
1732 if $ac_init_version; then
1733 cat <<\_ACEOF
1734 configure
1735 generated by GNU Autoconf 2.69
1737 Copyright (C) 2012 Free Software Foundation, Inc.
1738 This configure script is free software; the Free Software Foundation
1739 gives unlimited permission to copy, distribute and modify it.
1740 _ACEOF
1741 exit
1744 ## ------------------------ ##
1745 ## Autoconf initialization. ##
1746 ## ------------------------ ##
1748 # ac_fn_c_try_compile LINENO
1749 # --------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_c_try_compile
1786 # ac_fn_cxx_try_compile LINENO
1787 # ----------------------------
1788 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_compile ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext
1793 if { { ac_try="$ac_compile"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_compile") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest.$ac_objext; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1822 } # ac_fn_cxx_try_compile
1824 # ac_fn_cxx_try_link LINENO
1825 # -------------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_cxx_try_link ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext conftest$ac_exeext
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_cxx_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest$ac_exeext && {
1850 test "$cross_compiling" = yes ||
1851 test -x conftest$ac_exeext
1852 }; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 ac_retval=1
1860 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862 # interfere with the next link command; also delete a directory that is
1863 # left behind by Apple's compiler. We do this before executing the actions.
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_cxx_try_link
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_link ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_link
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1919 It was created by $as_me, which was
1920 generated by GNU Autoconf 2.69. Invocation command line was
1922 $ $0 $@
1924 _ACEOF
1925 exec 5>>config.log
1927 cat <<_ASUNAME
1928 ## --------- ##
1929 ## Platform. ##
1930 ## --------- ##
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1949 _ASUNAME
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 $as_echo "PATH: $as_dir"
1957 done
1958 IFS=$as_save_IFS
1960 } >&5
1962 cat >&5 <<_ACEOF
1965 ## ----------- ##
1966 ## Core tests. ##
1967 ## ----------- ##
1969 _ACEOF
1972 # Keep a trace of the command line.
1973 # Strip out --no-create and --no-recursion so they do not pile up.
1974 # Strip out --silent because we don't want to record it for future runs.
1975 # Also quote any args containing shell meta-characters.
1976 # Make two passes to allow for proper duplicate-argument suppression.
1977 ac_configure_args=
1978 ac_configure_args0=
1979 ac_configure_args1=
1980 ac_must_keep_next=false
1981 for ac_pass in 1 2
1983 for ac_arg
1985 case $ac_arg in
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1989 continue ;;
1990 *\'*)
1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 esac
1993 case $ac_pass in
1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1996 as_fn_append ac_configure_args1 " '$ac_arg'"
1997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
1999 else
2000 case $ac_arg in
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007 esac
2009 -* ) ac_must_keep_next=true ;;
2010 esac
2012 as_fn_append ac_configure_args " '$ac_arg'"
2014 esac
2015 done
2016 done
2017 { ac_configure_args0=; unset ac_configure_args0;}
2018 { ac_configure_args1=; unset ac_configure_args1;}
2020 # When interrupted or exit'd, cleanup temporary files, and complete
2021 # config.log. We remove comments because anyway the quotes in there
2022 # would cause problems or look ugly.
2023 # WARNING: Use '\'' to represent an apostrophe within the trap.
2024 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025 trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2028 echo
2030 $as_echo "## ---------------- ##
2031 ## Cache variables. ##
2032 ## ---------------- ##"
2033 echo
2034 # The following way of writing the cache mishandles newlines in values,
2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in #(
2039 *${as_nl}*)
2040 case $ac_var in #(
2041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2042 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2043 esac
2044 case $ac_var in #(
2045 _ | IFS | as_nl) ;; #(
2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2047 *) { eval $ac_var=; unset $ac_var;} ;;
2048 esac ;;
2049 esac
2050 done
2051 (set) 2>&1 |
2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053 *${as_nl}ac_space=\ *)
2054 sed -n \
2055 "s/'\''/'\''\\\\'\'''\''/g;
2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057 ;; #(
2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2061 esac |
2062 sort
2064 echo
2066 $as_echo "## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##"
2069 echo
2070 for ac_var in $ac_subst_vars
2072 eval ac_val=\$$ac_var
2073 case $ac_val in
2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075 esac
2076 $as_echo "$ac_var='\''$ac_val'\''"
2077 done | sort
2078 echo
2080 if test -n "$ac_subst_files"; then
2081 $as_echo "## ------------------- ##
2082 ## File substitutions. ##
2083 ## ------------------- ##"
2084 echo
2085 for ac_var in $ac_subst_files
2087 eval ac_val=\$$ac_var
2088 case $ac_val in
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 esac
2091 $as_echo "$ac_var='\''$ac_val'\''"
2092 done | sort
2093 echo
2096 if test -s confdefs.h; then
2097 $as_echo "## ----------- ##
2098 ## confdefs.h. ##
2099 ## ----------- ##"
2100 echo
2101 cat confdefs.h
2102 echo
2104 test "$ac_signal" != 0 &&
2105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
2107 } >&5
2108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110 exit $exit_status
2112 for ac_signal in 1 2 13 15; do
2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114 done
2115 ac_signal=0
2117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2118 rm -f -r conftest* confdefs.h
2120 $as_echo "/* confdefs.h */" > confdefs.h
2122 # Predefined preprocessor variables.
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_NAME "$PACKAGE_NAME"
2126 _ACEOF
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130 _ACEOF
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2134 _ACEOF
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_STRING "$PACKAGE_STRING"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_URL "$PACKAGE_URL"
2146 _ACEOF
2149 # Let the site file select an alternate cache file if it wants to.
2150 # Prefer an explicitly selected file to automatically selected ones.
2151 ac_site_file1=NONE
2152 ac_site_file2=NONE
2153 if test -n "$CONFIG_SITE"; then
2154 # We do not want a PATH search for config.site.
2155 case $CONFIG_SITE in #((
2156 -*) ac_site_file1=./$CONFIG_SITE;;
2157 */*) ac_site_file1=$CONFIG_SITE;;
2158 *) ac_site_file1=./$CONFIG_SITE;;
2159 esac
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2163 else
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 test "x$ac_site_file" = xNONE && continue
2170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2174 . "$ac_site_file" \
2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177 as_fn_error $? "failed to load site script $ac_site_file
2178 See \`config.log' for more details" "$LINENO" 5; }
2180 done
2182 if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special files
2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187 $as_echo "$as_me: loading cache $cache_file" >&6;}
2188 case $cache_file in
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2191 esac
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195 $as_echo "$as_me: creating cache $cache_file" >&6;}
2196 >$cache_file
2199 # Check that the precious variables saved in the cache have kept the same
2200 # value.
2201 ac_cache_corrupted=false
2202 for ac_var in $ac_precious_vars; do
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
2207 case $ac_old_set,$ac_new_set in
2208 set,)
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2212 ,set)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,);;
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2235 fi;;
2236 esac
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2239 case $ac_new_val in
2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2242 esac
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2246 esac
2248 done
2249 if $ac_cache_corrupted; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256 ## -------------------- ##
2257 ## Main body of script. ##
2258 ## -------------------- ##
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273 progname=$0
2274 # if PWD already has a value, it is probably wrong.
2275 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2277 # Export original configure arguments for use by sub-configures.
2278 # Quote arguments with shell meta charatcers.
2279 TOPLEVEL_CONFIGURE_ARGUMENTS=
2280 set -- "$progname" "$@"
2281 for ac_arg
2283 case "$ac_arg" in
2284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2286 # if the argument is of the form -foo=baz, quote the baz part only
2287 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2288 *) ;;
2289 esac
2290 # Add the quoted argument to the list.
2291 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2292 done
2293 if test "$silent" = yes; then
2294 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2296 # Remove the initial space we just introduced and, as these will be
2297 # expanded by make, quote '$'.
2298 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2301 # Find the build, host, and target systems.
2302 ac_aux_dir=
2303 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2304 if test -f "$ac_dir/install-sh"; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/install-sh -c"
2307 break
2308 elif test -f "$ac_dir/install.sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install.sh -c"
2311 break
2312 elif test -f "$ac_dir/shtool"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 break
2317 done
2318 if test -z "$ac_aux_dir"; then
2319 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2322 # These three variables are undocumented and unsupported,
2323 # and are intended to be withdrawn in a future Autoconf release.
2324 # They can cause serious problems if a builder's source tree is in a directory
2325 # whose full name contains unusual characters.
2326 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2327 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2328 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331 # Make sure we can run config.sub.
2332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2333 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2336 $as_echo_n "checking build system type... " >&6; }
2337 if ${ac_cv_build+:} false; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 ac_build_alias=$build_alias
2341 test "x$ac_build_alias" = x &&
2342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2343 test "x$ac_build_alias" = x &&
2344 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2350 $as_echo "$ac_cv_build" >&6; }
2351 case $ac_cv_build in
2352 *-*-*) ;;
2353 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2354 esac
2355 build=$ac_cv_build
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_build
2358 shift
2359 build_cpu=$1
2360 build_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 build_os=$*
2365 IFS=$ac_save_IFS
2366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2369 case ${build_alias} in
2370 "") build_noncanonical=${build} ;;
2371 *) build_noncanonical=${build_alias} ;;
2372 esac
2376 case ${host_alias} in
2377 "") host_noncanonical=${build_noncanonical} ;;
2378 *) host_noncanonical=${host_alias} ;;
2379 esac
2383 case ${target_alias} in
2384 "") target_noncanonical=${host_noncanonical} ;;
2385 *) target_noncanonical=${target_alias} ;;
2386 esac
2391 test "$host_noncanonical" = "$target_noncanonical" &&
2392 test "$program_prefix$program_suffix$program_transform_name" = \
2393 NONENONEs,x,x, &&
2394 program_transform_name=s,y,y,
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2397 $as_echo_n "checking host system type... " >&6; }
2398 if ${ac_cv_host+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test "x$host_alias" = x; then
2402 ac_cv_host=$ac_cv_build
2403 else
2404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2410 $as_echo "$ac_cv_host" >&6; }
2411 case $ac_cv_host in
2412 *-*-*) ;;
2413 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2414 esac
2415 host=$ac_cv_host
2416 ac_save_IFS=$IFS; IFS='-'
2417 set x $ac_cv_host
2418 shift
2419 host_cpu=$1
2420 host_vendor=$2
2421 shift; shift
2422 # Remember, the first character of IFS is used to create $*,
2423 # except with old shells:
2424 host_os=$*
2425 IFS=$ac_save_IFS
2426 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2430 $as_echo_n "checking target system type... " >&6; }
2431 if ${ac_cv_target+:} false; then :
2432 $as_echo_n "(cached) " >&6
2433 else
2434 if test "x$target_alias" = x; then
2435 ac_cv_target=$ac_cv_host
2436 else
2437 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2443 $as_echo "$ac_cv_target" >&6; }
2444 case $ac_cv_target in
2445 *-*-*) ;;
2446 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2447 esac
2448 target=$ac_cv_target
2449 ac_save_IFS=$IFS; IFS='-'
2450 set x $ac_cv_target
2451 shift
2452 target_cpu=$1
2453 target_vendor=$2
2454 shift; shift
2455 # Remember, the first character of IFS is used to create $*,
2456 # except with old shells:
2457 target_os=$*
2458 IFS=$ac_save_IFS
2459 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2462 # The aliases save the names the user supplied, while $host etc.
2463 # will get canonicalized.
2464 test -n "$target_alias" &&
2465 test "$program_prefix$program_suffix$program_transform_name" = \
2466 NONENONEs,x,x, &&
2467 program_prefix=${target_alias}-
2469 test "$program_prefix" != NONE &&
2470 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2471 # Use a double $ so make ignores it.
2472 test "$program_suffix" != NONE &&
2473 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2474 # Double any \ or $.
2475 # By default was `s,x,x', remove it if useless.
2476 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2477 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2481 # Get 'install' or 'install-sh' and its variants.
2482 # Find a good install program. We prefer a C program (faster),
2483 # so one script is as good as another. But avoid the broken or
2484 # incompatible versions:
2485 # SysV /etc/install, /usr/sbin/install
2486 # SunOS /usr/etc/install
2487 # IRIX /sbin/install
2488 # AIX /bin/install
2489 # AmigaOS /C/install, which installs bootblocks on floppy discs
2490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2493 # OS/2's system install, which has a completely different semantic
2494 # ./install, which can be erroneously created by make from ./install.sh.
2495 # Reject install programs that cannot install multiple files.
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2497 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2498 if test -z "$INSTALL"; then
2499 if ${ac_cv_path_install+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 # Account for people who put trailing slashes in PATH elements.
2508 case $as_dir/ in #((
2509 ./ | .// | /[cC]/* | \
2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2511 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2512 /usr/ucb/* ) ;;
2514 # OSF1 and SCO ODT 3.0 have their own names for install.
2515 # Don't use installbsd from OSF since it installs stuff as root
2516 # by default.
2517 for ac_prog in ginstall scoinst install; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2520 if test $ac_prog = install &&
2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # AIX install. It has an incompatible calling convention.
2524 elif test $ac_prog = install &&
2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # program-specific install script used by HP pwplus--don't use.
2528 else
2529 rm -rf conftest.one conftest.two conftest.dir
2530 echo one > conftest.one
2531 echo two > conftest.two
2532 mkdir conftest.dir
2533 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2534 test -s conftest.one && test -s conftest.two &&
2535 test -s conftest.dir/conftest.one &&
2536 test -s conftest.dir/conftest.two
2537 then
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
2543 done
2544 done
2546 esac
2548 done
2549 IFS=$as_save_IFS
2551 rm -rf conftest.one conftest.two conftest.dir
2554 if test "${ac_cv_path_install+set}" = set; then
2555 INSTALL=$ac_cv_path_install
2556 else
2557 # As a last resort, use the slow shell script. Don't cache a
2558 # value for INSTALL within a source directory, because that will
2559 # break other packages using the cache if that directory is
2560 # removed, or if the value is a relative name.
2561 INSTALL=$ac_install_sh
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2565 $as_echo "$INSTALL" >&6; }
2567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2568 # It thinks the first close brace ends the variable substitution.
2569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2573 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2576 $as_echo_n "checking whether ln works... " >&6; }
2577 if ${acx_cv_prog_LN+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 rm -f conftestdata_t
2581 echo >conftestdata_f
2582 if ln conftestdata_f conftestdata_t 2>/dev/null
2583 then
2584 acx_cv_prog_LN=ln
2585 else
2586 acx_cv_prog_LN=no
2588 rm -f conftestdata_f conftestdata_t
2591 if test $acx_cv_prog_LN = no; then
2592 LN="cp"
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2594 $as_echo "no, using $LN" >&6; }
2595 else
2596 LN="$acx_cv_prog_LN"
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2598 $as_echo "yes" >&6; }
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2602 $as_echo_n "checking whether ln -s works... " >&6; }
2603 LN_S=$as_ln_s
2604 if test "$LN_S" = "ln -s"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2606 $as_echo "yes" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2609 $as_echo "no, using $LN_S" >&6; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2613 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2614 if ${ac_cv_path_SED+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2618 for ac_i in 1 2 3 4 5 6 7; do
2619 ac_script="$ac_script$as_nl$ac_script"
2620 done
2621 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2622 { ac_script=; unset ac_script;}
2623 if test -z "$SED"; then
2624 ac_path_SED_found=false
2625 # Loop through the user's path and test for each of PROGNAME-LIST
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_prog in sed gsed; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2634 as_fn_executable_p "$ac_path_SED" || continue
2635 # Check for GNU ac_path_SED and select it if it is found.
2636 # Check for GNU $ac_path_SED
2637 case `"$ac_path_SED" --version 2>&1` in
2638 *GNU*)
2639 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2641 ac_count=0
2642 $as_echo_n 0123456789 >"conftest.in"
2643 while :
2645 cat "conftest.in" "conftest.in" >"conftest.tmp"
2646 mv "conftest.tmp" "conftest.in"
2647 cp "conftest.in" "conftest.nl"
2648 $as_echo '' >> "conftest.nl"
2649 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2651 as_fn_arith $ac_count + 1 && ac_count=$as_val
2652 if test $ac_count -gt ${ac_path_SED_max-0}; then
2653 # Best one so far, save it but keep looking for a better one
2654 ac_cv_path_SED="$ac_path_SED"
2655 ac_path_SED_max=$ac_count
2657 # 10*(2^10) chars as input seems more than enough
2658 test $ac_count -gt 10 && break
2659 done
2660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2661 esac
2663 $ac_path_SED_found && break 3
2664 done
2665 done
2666 done
2667 IFS=$as_save_IFS
2668 if test -z "$ac_cv_path_SED"; then
2669 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2671 else
2672 ac_cv_path_SED=$SED
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2677 $as_echo "$ac_cv_path_SED" >&6; }
2678 SED="$ac_cv_path_SED"
2679 rm -f conftest.sed
2681 for ac_prog in gawk mawk nawk awk
2683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_AWK+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test -n "$AWK"; then
2691 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_prog_AWK="$ac_prog"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2704 done
2705 done
2706 IFS=$as_save_IFS
2710 AWK=$ac_cv_prog_AWK
2711 if test -n "$AWK"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2713 $as_echo "$AWK" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2720 test -n "$AWK" && break
2721 done
2724 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2726 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2727 # a relative path.
2728 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2729 INSTALL="${srcpwd}/install-sh -c"
2732 # Set srcdir to "." if that's what it is.
2733 # This is important for multilib support.
2734 pwd=`${PWDCMD-pwd}`
2735 if test "${pwd}" = "${srcpwd}" ; then
2736 srcdir=.
2739 topsrcdir=$srcpwd
2741 extra_host_args=
2743 ### To add a new directory to the tree, first choose whether it is a target
2744 ### or a host dependent tool. Then put it into the appropriate list
2745 ### (library or tools, host or target), doing a dependency sort.
2747 # Subdirs will be configured in the order listed in build_configdirs,
2748 # configdirs, or target_configdirs; see the serialization section below.
2750 # Dependency sorting is only needed when *configuration* must be done in
2751 # a particular order. In all cases a dependency should be specified in
2752 # the Makefile, whether or not it's implicitly specified here.
2754 # Double entries in build_configdirs, configdirs, or target_configdirs may
2755 # cause circular dependencies and break everything horribly.
2757 # these library is used by various programs built for the build
2758 # environment
2760 build_libs="build-libiberty build-libcpp"
2762 # these tools are built for the build environment
2763 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2765 # these libraries are used by various programs built for the host environment
2767 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2769 # these tools are built for the host environment
2770 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2771 # know that we are building the simulator.
2772 # binutils, gas and ld appear in that order because it makes sense to run
2773 # "make check" in that particular order.
2774 # If --enable-gold is used, "gold" may replace "ld".
2775 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2777 # libgcj represents the runtime libraries only used by gcj.
2778 libgcj="target-libffi \
2779 target-zlib \
2780 target-libjava"
2782 # these libraries are built for the target environment, and are built after
2783 # the host libraries and the host tools (which may be a cross compiler)
2784 # Note that libiberty is not a target library.
2785 target_libraries="target-libgcc \
2786 target-libbacktrace \
2787 target-libgloss \
2788 target-newlib \
2789 target-libgomp \
2790 target-libcilkrts \
2791 target-liboffloadmic \
2792 target-libatomic \
2793 target-libitm \
2794 target-libstdc++-v3 \
2795 target-libsanitizer \
2796 target-libvtv \
2797 target-libmpx \
2798 target-libssp \
2799 target-libquadmath \
2800 target-libgfortran \
2801 target-boehm-gc \
2802 ${libgcj} \
2803 target-libobjc \
2804 target-libada \
2805 target-libgo"
2807 # these tools are built using the target libraries, and are intended to
2808 # run only in the target environment
2810 # note: any program that *uses* libraries that are in the "target_libraries"
2811 # list belongs in this list.
2813 target_tools="target-rda"
2815 ################################################################################
2817 ## All tools belong in one of the four categories, and are assigned above
2818 ## We assign ${configdirs} this way to remove all embedded newlines. This
2819 ## is important because configure will choke if they ever get through.
2820 ## ${configdirs} is directories we build using the host tools.
2821 ## ${target_configdirs} is directories we build using the target tools.
2822 configdirs=`echo ${host_libs} ${host_tools}`
2823 target_configdirs=`echo ${target_libraries} ${target_tools}`
2824 build_configdirs=`echo ${build_libs} ${build_tools}`
2828 ################################################################################
2830 srcname="gnu development package"
2832 # This gets set non-empty for some net releases of packages.
2833 appdirs=""
2835 # Define is_cross_compiler to save on calls to 'test'.
2836 is_cross_compiler=
2837 if test x"${host}" = x"${target}" ; then
2838 is_cross_compiler=no
2839 else
2840 is_cross_compiler=yes
2843 # Find the build and target subdir names.
2845 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2846 # have matching libraries, they should use host libraries: Makefile.tpl
2847 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2848 # However, they still use the build modules, because the corresponding
2849 # host modules (e.g. bison) are only built for the host when bootstrap
2850 # finishes. So:
2851 # - build_subdir is where we find build modules, and never changes.
2852 # - build_libsubdir is where we find build libraries, and can be overridden.
2854 # Prefix 'build-' so this never conflicts with target_subdir.
2855 build_subdir="build-${build_noncanonical}"
2857 # Check whether --with-build-libsubdir was given.
2858 if test "${with_build_libsubdir+set}" = set; then :
2859 withval=$with_build_libsubdir; build_libsubdir="$withval"
2860 else
2861 build_libsubdir="$build_subdir"
2864 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2865 if ( test $srcdir = . && test -d gcc ) \
2866 || test -d $srcdir/../host-${host_noncanonical}; then
2867 host_subdir="host-${host_noncanonical}"
2868 else
2869 host_subdir=.
2871 # No prefix.
2872 target_subdir=${target_noncanonical}
2874 # Be sure to cover against remnants of an in-tree build.
2875 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2876 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2877 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2880 # Skipdirs are removed silently.
2881 skipdirs=
2882 # Noconfigdirs are removed loudly.
2883 noconfigdirs=""
2885 use_gnu_ld=
2886 # Make sure we don't let GNU ld be added if we didn't want it.
2887 if test x$with_gnu_ld = xno ; then
2888 use_gnu_ld=no
2889 noconfigdirs="$noconfigdirs ld gold"
2892 use_gnu_as=
2893 # Make sure we don't let GNU as be added if we didn't want it.
2894 if test x$with_gnu_as = xno ; then
2895 use_gnu_as=no
2896 noconfigdirs="$noconfigdirs gas"
2899 use_included_zlib=
2901 # Check whether --with-system-zlib was given.
2902 if test "${with_system_zlib+set}" = set; then :
2903 withval=$with_system_zlib;
2906 # Make sure we don't let ZLIB be added if we didn't want it.
2907 if test x$with_system_zlib = xyes ; then
2908 use_included_zlib=no
2909 noconfigdirs="$noconfigdirs zlib"
2912 # some tools are so dependent upon X11 that if we're not building with X,
2913 # it's not even worth trying to configure, much less build, that tool.
2915 case ${with_x} in
2916 yes | "") ;; # the default value for this tree is that X11 is available
2918 skipdirs="${skipdirs} tk itcl libgui"
2919 # We won't be able to build gdbtk without X.
2920 enable_gdbtk=no
2922 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2923 esac
2925 # Some are only suitable for cross toolchains.
2926 # Remove these if host=target.
2927 cross_only="target-libgloss target-newlib target-opcodes"
2929 case $is_cross_compiler in
2930 no) skipdirs="${skipdirs} ${cross_only}" ;;
2931 esac
2933 # If both --with-headers and --with-libs are specified, default to
2934 # --without-newlib.
2935 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2936 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2937 if test x"${with_newlib}" = x ; then
2938 with_newlib=no
2942 # Recognize --with-newlib/--without-newlib.
2943 case ${with_newlib} in
2944 no) skipdirs="${skipdirs} target-newlib" ;;
2945 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2946 esac
2948 # Check whether --enable-as-accelerator-for was given.
2949 if test "${enable_as_accelerator_for+set}" = set; then :
2950 enableval=$enable_as_accelerator_for;
2954 # Check whether --enable-offload-targets was given.
2955 if test "${enable_offload_targets+set}" = set; then :
2956 enableval=$enable_offload_targets;
2957 if test x"$enable_offload_targets" = x; then
2958 as_fn_error $? "no offload targets specified" "$LINENO" 5
2961 else
2962 enable_offload_targets=
2966 # Handle --enable-gold, --enable-ld.
2967 # --disable-gold [--enable-ld]
2968 # Build only ld. Default option.
2969 # --enable-gold [--enable-ld]
2970 # Build both gold and ld. Install gold as "ld.gold", install ld
2971 # as "ld.bfd" and "ld".
2972 # --enable-gold=default [--enable-ld]
2973 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2974 # install ld as "ld.bfd".
2975 # --enable-gold[=default] --disable-ld
2976 # Build only gold, which is then installed as both "ld.gold" and "ld".
2977 # --enable-gold --enable-ld=default
2978 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2979 # and ld.bfd).
2980 # In other words, ld is default
2981 # --enable-gold=default --enable-ld=default
2982 # Error.
2984 default_ld=
2985 # Check whether --enable-gold was given.
2986 if test "${enable_gold+set}" = set; then :
2987 enableval=$enable_gold; ENABLE_GOLD=$enableval
2988 else
2989 ENABLE_GOLD=no
2992 case "${ENABLE_GOLD}" in
2993 yes|default)
2994 # Check for ELF target.
2995 is_elf=no
2996 case "${target}" in
2997 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2998 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2999 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3000 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3001 case "${target}" in
3002 *-*-linux*aout* | *-*-linux*oldld*)
3005 is_elf=yes
3007 esac
3008 esac
3010 if test "$is_elf" = "yes"; then
3011 # Check for target supported by gold.
3012 case "${target}" in
3013 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3014 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3015 configdirs="$configdirs gold"
3016 if test x${ENABLE_GOLD} = xdefault; then
3017 default_ld=gold
3019 ENABLE_GOLD=yes
3021 esac
3027 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3029 esac
3031 # Check whether --enable-ld was given.
3032 if test "${enable_ld+set}" = set; then :
3033 enableval=$enable_ld; ENABLE_LD=$enableval
3034 else
3035 ENABLE_LD=yes
3039 case "${ENABLE_LD}" in
3040 default)
3041 if test x${default_ld} != x; then
3042 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3045 yes)
3048 if test x${ENABLE_GOLD} != xyes; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3050 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3052 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3055 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3057 esac
3059 # PR gas/19109
3060 # Decide the default method for compressing debug sections.
3061 # Provide a configure time option to override our default.
3062 # Check whether --enable-compressed_debug_sections was given.
3063 if test "${enable_compressed_debug_sections+set}" = set; then :
3064 enableval=$enable_compressed_debug_sections;
3065 if test x"$enable_compressed_debug_sections" = xyes; then
3066 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3069 else
3070 enable_compressed_debug_sections=
3074 # Configure extra directories which are host specific
3076 case "${host}" in
3077 *-cygwin*)
3078 configdirs="$configdirs libtermcap" ;;
3079 esac
3081 # A target can indicate whether a language isn't supported for some reason.
3082 # Only spaces may be used in this macro; not newlines or tabs.
3083 unsupported_languages=
3085 # Remove more programs from consideration, based on the host or
3086 # target this usually means that a port of the program doesn't
3087 # exist yet.
3089 case "${host}" in
3090 i[3456789]86-*-msdosdjgpp*)
3091 noconfigdirs="$noconfigdirs tcl tk itcl"
3093 esac
3096 # Check whether --enable-libquadmath was given.
3097 if test "${enable_libquadmath+set}" = set; then :
3098 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3099 else
3100 ENABLE_LIBQUADMATH=yes
3103 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3104 noconfigdirs="$noconfigdirs target-libquadmath"
3108 # Check whether --enable-libquadmath-support was given.
3109 if test "${enable_libquadmath_support+set}" = set; then :
3110 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3111 else
3112 ENABLE_LIBQUADMATH_SUPPORT=yes
3115 enable_libquadmath_support=
3116 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3117 enable_libquadmath_support=no
3121 # Check whether --enable-libada was given.
3122 if test "${enable_libada+set}" = set; then :
3123 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3124 else
3125 ENABLE_LIBADA=yes
3128 if test "${ENABLE_LIBADA}" != "yes" ; then
3129 noconfigdirs="$noconfigdirs gnattools"
3132 # Check whether --enable-libssp was given.
3133 if test "${enable_libssp+set}" = set; then :
3134 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3135 else
3136 ENABLE_LIBSSP=yes
3140 # Check whether --enable-libstdcxx was given.
3141 if test "${enable_libstdcxx+set}" = set; then :
3142 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3143 else
3144 ENABLE_LIBSTDCXX=default
3147 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3148 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3151 # If this is accelerator compiler and its target is intelmic we enable
3152 # target liboffloadmic by default. If this is compiler with offloading
3153 # for intelmic we enable host liboffloadmic by default. Otherwise
3154 # liboffloadmic is disabled by default.
3155 # Check whether --enable-liboffloadmic was given.
3156 if test "${enable_liboffloadmic+set}" = set; then :
3157 enableval=$enable_liboffloadmic; case "$enableval" in
3158 no | host | target)
3159 enable_liboffloadmic=$enableval ;;
3161 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3162 esac
3163 else
3164 if test x"$enable_as_accelerator_for" != x; then
3165 case "${target}" in
3166 *-intelmic-* | *-intelmicemul-*)
3167 enable_liboffloadmic=target
3168 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3171 enable_liboffloadmic=no
3173 esac
3174 else
3175 case "${enable_offload_targets}" in
3176 *-intelmic-* | *-intelmicemul-*)
3177 enable_liboffloadmic=host
3178 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3181 enable_liboffloadmic=no
3183 esac
3189 # Save it here so that, even in case of --enable-libgcj, if the Java
3190 # front-end isn't enabled, we still get libgcj disabled.
3191 libgcj_saved=$libgcj
3192 case $enable_libgcj in
3193 yes)
3194 # If we reset it here, it won't get added to noconfigdirs in the
3195 # target-specific build rules, so it will be forcibly enabled
3196 # (unless the Java language itself isn't enabled).
3197 libgcj=
3200 # Make sure we get it printed in the list of not supported target libs.
3201 # Don't disable libffi, though, other languages use it.
3202 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3203 # Clear libgcj_saved so that even if java is enabled libffi won't be
3204 # built.
3205 libgcj_saved=
3207 esac
3209 # Check whether --enable-static-libjava was given.
3210 if test "${enable_static_libjava+set}" = set; then :
3211 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3212 else
3213 ENABLE_STATIC_LIBJAVA=no
3216 enable_static_libjava=
3217 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3218 enable_static_libjava=yes
3221 if test x$enable_static_libjava != xyes ; then
3222 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3226 # Enable libgomp by default on hosted POSIX systems, and a few others.
3227 if test x$enable_libgomp = x ; then
3228 case "${target}" in
3229 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3231 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3233 *-*-solaris2* | *-*-hpux11*)
3235 *-*-darwin* | *-*-aix*)
3237 nvptx*-*-*)
3240 noconfigdirs="$noconfigdirs target-libgomp"
3242 esac
3245 # Disable libatomic on unsupported systems.
3246 if test -d ${srcdir}/libatomic; then
3247 if test x$enable_libatomic = x; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3249 $as_echo_n "checking for libatomic support... " >&6; }
3250 if (srcdir=${srcdir}/libatomic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-libatomic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3264 # Disable libcilkrts on unsupported systems.
3265 if test -d ${srcdir}/libcilkrts; then
3266 if test x$enable_libcilkrts = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3268 $as_echo_n "checking for libcilkrts support... " >&6; }
3269 if (srcdir=${srcdir}/libcilkrts; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libcilkrts"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3283 # Disable liboffloadmic on unsupported systems.
3284 if test -d ${srcdir}/liboffloadmic; then
3285 if test x$enable_liboffloadmic != xno; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3287 $as_echo_n "checking for liboffloadmic support... " >&6; }
3288 if (srcdir=${srcdir}/liboffloadmic; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-liboffloadmic"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3302 # Disable libitm on unsupported systems.
3303 if test -d ${srcdir}/libitm; then
3304 if test x$enable_libitm = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3306 $as_echo_n "checking for libitm support... " >&6; }
3307 if (srcdir=${srcdir}/libitm; \
3308 . ${srcdir}/configure.tgt; \
3309 test -n "$UNSUPPORTED")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libitm"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3321 # Disable libsanitizer on unsupported systems.
3322 if test -d ${srcdir}/libsanitizer; then
3323 if test x$enable_libsanitizer = x; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3325 $as_echo_n "checking for libsanitizer support... " >&6; }
3326 if (srcdir=${srcdir}/libsanitizer; \
3327 . ${srcdir}/configure.tgt; \
3328 test -n "$UNSUPPORTED")
3329 then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 noconfigdirs="$noconfigdirs target-libsanitizer"
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3340 # Disable libvtv on unsupported systems.
3341 if test -d ${srcdir}/libvtv; then
3342 if test x$enable_libvtv = x; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3344 $as_echo_n "checking for libvtv support... " >&6; }
3345 if (srcdir=${srcdir}/libvtv; \
3346 . ${srcdir}/configure.tgt; \
3347 test "$VTV_SUPPORTED" != "yes")
3348 then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 noconfigdirs="$noconfigdirs target-libvtv"
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3360 # Enable libmpx on supported systems by request.
3361 if test -d ${srcdir}/libmpx; then
3362 if test x$enable_libmpx = x; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3364 $as_echo_n "checking for libmpx support... " >&6; }
3365 if (srcdir=${srcdir}/libmpx; \
3366 . ${srcdir}/configure.tgt; \
3367 test "$LIBMPX_SUPPORTED" != "yes")
3368 then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 noconfigdirs="$noconfigdirs target-libmpx"
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3381 # Disable libquadmath for some systems.
3382 case "${target}" in
3383 avr-*-*)
3384 noconfigdirs="$noconfigdirs target-libquadmath"
3386 # libquadmath is unused on AIX and libquadmath build process use of
3387 # LD_LIBRARY_PATH can break AIX bootstrap.
3388 powerpc-*-aix* | rs6000-*-aix*)
3389 noconfigdirs="$noconfigdirs target-libquadmath"
3391 esac
3393 # Disable libssp for some systems.
3394 case "${target}" in
3395 avr-*-*)
3396 # No hosted I/O support.
3397 noconfigdirs="$noconfigdirs target-libssp"
3399 powerpc-*-aix* | rs6000-*-aix*)
3400 noconfigdirs="$noconfigdirs target-libssp"
3402 rl78-*-*)
3403 # libssp uses a misaligned load to trigger a fault, but the RL78
3404 # doesn't fault for those - instead, it gives a build-time error
3405 # for explicit misaligned loads.
3406 noconfigdirs="$noconfigdirs target-libssp"
3408 visium-*-*)
3409 # No hosted I/O support.
3410 noconfigdirs="$noconfigdirs target-libssp"
3412 esac
3414 # Disable libstdc++-v3 for some systems.
3415 # Allow user to override this if they pass --enable-libstdc++-v3
3416 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3417 case "${target}" in
3418 *-*-vxworks*)
3419 # VxWorks uses the Dinkumware C++ library.
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3422 arm*-wince-pe*)
3423 # the C++ libraries don't build on top of CE's C libraries
3424 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3426 avr-*-*)
3427 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3429 ft32-*-*)
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3432 esac
3435 # Disable Fortran for some systems.
3436 case "${target}" in
3437 mmix-*-*)
3438 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3439 unsupported_languages="$unsupported_languages fortran"
3441 esac
3443 # Disable Java if libffi is not supported.
3444 case "${target}" in
3445 aarch64-*-*)
3447 alpha*-*-*)
3449 arm*-*-*)
3451 cris-*-*)
3453 frv-*-*)
3455 hppa*-*-linux*)
3457 hppa*-*-hpux*)
3459 i?86-*-*)
3461 ia64*-*-*)
3463 m32r*-*-*)
3465 m68k-*-*)
3467 mips*-*-rtems*)
3469 mips*-*-linux*)
3471 powerpc*-*-linux*)
3473 powerpc-*-darwin*)
3475 powerpc-*-aix* | rs6000-*-aix*)
3477 powerpc-*-freebsd*)
3479 powerpc64-*-freebsd*)
3481 powerpc*-*-rtems*)
3483 s390-*-* | s390x-*-*)
3485 sh-*-* | sh[34]*-*-*)
3487 sparc*-*-*)
3489 x86_64-*-*)
3491 *-*-*)
3492 unsupported_languages="$unsupported_languages java"
3494 esac
3496 # Disable Java, libgcj or related libraries for some systems.
3497 case "${target}" in
3498 powerpc-*-darwin*)
3500 i[3456789]86-*-darwin*)
3502 x86_64-*-darwin[912]*)
3504 *-*-darwin*)
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3507 *-*-netware*)
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3510 *-*-phoenix*)
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3513 *-*-rtems*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3516 *-*-tpf*)
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3519 *-*-uclinux*)
3520 noconfigdirs="$noconfigdirs ${libgcj}"
3522 *-*-vxworks*)
3523 noconfigdirs="$noconfigdirs ${libgcj}"
3525 alpha*-*-*vms*)
3526 noconfigdirs="$noconfigdirs ${libgcj}"
3528 arm*-*-freebsd*)
3529 noconfigdirs="$noconfigdirs ${libgcj}"
3531 arm-wince-pe)
3532 noconfigdirs="$noconfigdirs ${libgcj}"
3534 arm*-*-symbianelf*)
3535 noconfigdirs="$noconfigdirs ${libgcj}"
3537 bfin-*-*)
3538 noconfigdirs="$noconfigdirs target-boehm-gc"
3540 cris-*-* | crisv32-*-*)
3541 unsupported_languages="$unsupported_languages java"
3542 case "${target}" in
3543 *-*-linux*)
3545 *) # See PR46792 regarding target-libffi.
3546 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3547 esac
3549 hppa*64*-*-linux*)
3550 # In this case, it's because the hppa64-linux target is for
3551 # the kernel only at this point and has no libc, and thus no
3552 # headers, crt*.o, etc., all of which are needed by these.
3553 unsupported_languages="$unsupported_languages java"
3555 hppa*64*-*-hpux*)
3556 noconfigdirs="$noconfigdirs ${libgcj}"
3558 hppa*-hp-hpux11*)
3560 hppa*-*-hpux*)
3561 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3562 # build on HP-UX 10.20.
3563 noconfigdirs="$noconfigdirs ${libgcj}"
3565 ia64*-*-*vms*)
3566 noconfigdirs="$noconfigdirs ${libgcj}"
3568 i[3456789]86-w64-mingw*)
3569 noconfigdirs="$noconfigdirs ${libgcj}"
3571 i[3456789]86-*-mingw*)
3572 noconfigdirs="$noconfigdirs ${libgcj}"
3574 x86_64-*-mingw*)
3575 noconfigdirs="$noconfigdirs ${libgcj}"
3577 mmix-*-*)
3578 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3580 powerpc-*-aix*)
3581 # copied from rs6000-*-* entry
3582 noconfigdirs="$noconfigdirs ${libgcj}"
3584 rs6000-*-aix*)
3585 noconfigdirs="$noconfigdirs ${libgcj}"
3587 ft32-*-*)
3588 noconfigdirs="$noconfigdirs ${libgcj}"
3590 *-*-lynxos*)
3591 noconfigdirs="$noconfigdirs ${libgcj}"
3593 esac
3595 # Disable the go frontend on systems where it is known to not work. Please keep
3596 # this in sync with contrib/config-list.mk.
3597 case "${target}" in
3598 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3599 unsupported_languages="$unsupported_languages go"
3601 esac
3603 # Disable libgo for some systems where it is known to not work.
3604 # For testing, you can easily override this with --enable-libgo.
3605 if test x$enable_libgo = x; then
3606 case "${target}" in
3607 *-*-darwin*)
3608 # PR 46986
3609 noconfigdirs="$noconfigdirs target-libgo"
3611 *-*-cygwin* | *-*-mingw*)
3612 noconfigdirs="$noconfigdirs target-libgo"
3614 *-*-aix*)
3615 noconfigdirs="$noconfigdirs target-libgo"
3617 esac
3620 # Default libgloss CPU subdirectory.
3621 libgloss_dir="$target_cpu"
3623 case "${target}" in
3624 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3625 libgloss_dir=wince
3627 aarch64*-*-* )
3628 libgloss_dir=aarch64
3630 arm*-*-*)
3631 libgloss_dir=arm
3633 cris-*-* | crisv32-*-*)
3634 libgloss_dir=cris
3636 hppa*-*-*)
3637 libgloss_dir=pa
3639 i[3456789]86-*-*)
3640 libgloss_dir=i386
3642 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3643 libgloss_dir=m68hc11
3645 m68*-*-* | fido-*-*)
3646 libgloss_dir=m68k
3648 mips*-*-*)
3649 libgloss_dir=mips
3651 powerpc*-*-*)
3652 libgloss_dir=rs6000
3654 sparc*-*-*)
3655 libgloss_dir=sparc
3657 esac
3659 # Disable newlib and libgloss for various target OSes.
3660 case "${target}" in
3661 alpha*-dec-osf*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 i[3456789]86-*-linux*)
3665 # This section makes it possible to build newlib natively on linux.
3666 # If we are using a cross compiler then don't configure newlib.
3667 if test x${is_cross_compiler} != xno ; then
3668 noconfigdirs="$noconfigdirs target-newlib"
3670 noconfigdirs="$noconfigdirs target-libgloss"
3671 # If we are not using a cross compiler, do configure newlib.
3672 # Note however, that newlib will only be configured in this situation
3673 # if the --with-newlib option has been given, because otherwise
3674 # 'target-newlib' will appear in skipdirs.
3676 i[3456789]86-*-rdos*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 sparc-*-sunos4*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 *-*-aix*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 *-*-beos*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 *-*-chorusos)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 *-*-dragonfly*)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 *-*-freebsd*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 *-*-lynxos*)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 *-*-mingw*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 *-*-netbsd*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 *-*-netware*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 *-*-tpf*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 *-*-uclinux*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 *-*-vxworks*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 esac
3726 case "${target}" in
3727 *-*-chorusos)
3729 aarch64-*-darwin*)
3730 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3731 noconfigdirs="$noconfigdirs sim target-rda"
3733 arm-*-darwin*)
3734 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3735 noconfigdirs="$noconfigdirs sim target-rda"
3737 powerpc-*-darwin*)
3738 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3739 noconfigdirs="$noconfigdirs sim target-rda"
3741 i[3456789]86-*-darwin*)
3742 noconfigdirs="$noconfigdirs ld gprof"
3743 noconfigdirs="$noconfigdirs sim target-rda"
3745 x86_64-*-darwin[912]*)
3746 noconfigdirs="$noconfigdirs ld gas gprof"
3747 noconfigdirs="$noconfigdirs sim target-rda"
3749 *-*-darwin*)
3750 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3751 noconfigdirs="$noconfigdirs sim target-rda"
3753 *-*-dragonfly*)
3755 *-*-freebsd*)
3756 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3757 && test -f /usr/local/include/gmp.h; then
3758 with_gmp=/usr/local
3761 *-*-kaos*)
3762 # Remove unsupported stuff on all kaOS configurations.
3763 noconfigdirs="$noconfigdirs target-libgloss"
3765 *-*-netbsd*)
3767 *-*-netware*)
3769 *-*-phoenix*)
3770 noconfigdirs="$noconfigdirs target-libgloss"
3772 *-*-rtems*)
3773 noconfigdirs="$noconfigdirs target-libgloss"
3774 # this is not caught below because this stanza matches earlier
3775 case $target in
3776 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3777 esac
3779 # The tpf target doesn't support gdb yet.
3780 *-*-tpf*)
3781 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3783 *-*-uclinux*)
3784 noconfigdirs="$noconfigdirs target-rda"
3786 *-*-vxworks*)
3788 alpha*-dec-osf*)
3789 # ld works, but does not support shared libraries.
3790 # gas doesn't generate exception information.
3791 noconfigdirs="$noconfigdirs gas ld"
3793 alpha*-*-*vms*)
3794 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3796 alpha*-*-*)
3797 # newlib is not 64 bit ready
3798 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3800 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3801 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3803 arm-*-pe*)
3804 noconfigdirs="$noconfigdirs target-libgloss"
3806 arm-*-riscix*)
3807 noconfigdirs="$noconfigdirs ld target-libgloss"
3809 avr-*-*)
3810 if test x${with_avrlibc} != xno; then
3811 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3814 c4x-*-* | tic4x-*-*)
3815 noconfigdirs="$noconfigdirs target-libgloss"
3817 tic54x-*-*)
3818 noconfigdirs="$noconfigdirs target-libgloss gdb"
3820 d10v-*-*)
3821 noconfigdirs="$noconfigdirs target-libgloss"
3823 d30v-*-*)
3824 noconfigdirs="$noconfigdirs gdb"
3826 fr30-*-elf*)
3827 noconfigdirs="$noconfigdirs gdb"
3829 ft32-*-*)
3830 noconfigdirs="$noconfigdirs target-rda gprof"
3832 moxie-*-*)
3833 noconfigdirs="$noconfigdirs"
3835 h8300*-*-*)
3836 noconfigdirs="$noconfigdirs target-libgloss"
3838 h8500-*-*)
3839 noconfigdirs="$noconfigdirs target-libgloss"
3841 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3843 hppa*64*-*-hpux*)
3844 noconfigdirs="$noconfigdirs gdb"
3846 hppa*-*-hpux11*)
3847 noconfigdirs="$noconfigdirs gdb ld"
3849 hppa*64*-*-linux*)
3851 hppa*-*-linux*)
3853 hppa*-*-*elf* | \
3854 hppa*-*-lites* | \
3855 hppa*-*-openbsd* | \
3856 hppa*64*-*-*)
3858 hppa*-*-pro*)
3860 hppa*-*-*)
3861 noconfigdirs="$noconfigdirs ld"
3863 i960-*-*)
3864 noconfigdirs="$noconfigdirs gdb"
3866 ia64*-*-elf*)
3867 # No gdb support yet.
3868 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3870 ia64*-**-hpux*)
3871 # No ld support yet.
3872 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3874 ia64*-*-*vms*)
3875 # No ld support yet.
3876 noconfigdirs="$noconfigdirs libgui itcl ld"
3878 i[3456789]86-w64-mingw*)
3880 i[3456789]86-*-mingw*)
3881 target_configdirs="$target_configdirs target-winsup"
3883 *-*-cygwin*)
3884 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3885 noconfigdirs="$noconfigdirs target-libgloss"
3886 # always build newlib if winsup directory is present.
3887 if test -d "$srcdir/winsup/cygwin"; then
3888 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3889 elif test -d "$srcdir/newlib"; then
3890 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3893 i[3456789]86-*-pe)
3894 noconfigdirs="$noconfigdirs target-libgloss"
3896 i[3456789]86-*-sco3.2v5*)
3897 # The linker does not yet know about weak symbols in COFF,
3898 # and is not configured to handle mixed ELF and COFF.
3899 noconfigdirs="$noconfigdirs ld target-libgloss"
3901 i[3456789]86-*-sco*)
3902 noconfigdirs="$noconfigdirs gprof target-libgloss"
3904 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3905 noconfigdirs="$noconfigdirs target-libgloss"
3907 i[3456789]86-*-sysv4*)
3908 noconfigdirs="$noconfigdirs target-libgloss"
3910 i[3456789]86-*-beos*)
3911 noconfigdirs="$noconfigdirs gdb"
3913 i[3456789]86-*-rdos*)
3914 noconfigdirs="$noconfigdirs gdb"
3916 mmix-*-*)
3917 noconfigdirs="$noconfigdirs gdb"
3919 mt-*-*)
3920 noconfigdirs="$noconfigdirs sim"
3922 powerpc-*-aix*)
3923 # copied from rs6000-*-* entry
3924 noconfigdirs="$noconfigdirs gprof"
3926 powerpc*-*-winnt* | powerpc*-*-pe*)
3927 target_configdirs="$target_configdirs target-winsup"
3928 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3929 # always build newlib.
3930 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3932 # This is temporary until we can link against shared libraries
3933 powerpcle-*-solaris*)
3934 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3936 powerpc-*-beos*)
3937 noconfigdirs="$noconfigdirs gdb"
3939 rs6000-*-lynxos*)
3940 noconfigdirs="$noconfigdirs gprof"
3942 rs6000-*-aix*)
3943 noconfigdirs="$noconfigdirs gprof"
3945 rs6000-*-*)
3946 noconfigdirs="$noconfigdirs gprof"
3948 m68k-apollo-*)
3949 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3951 microblaze*)
3952 noconfigdirs="$noconfigdirs gprof"
3954 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3955 if test x$with_newlib = xyes; then
3956 noconfigdirs="$noconfigdirs gprof"
3959 mips*-*-irix5*)
3960 noconfigdirs="$noconfigdirs gprof target-libgloss"
3962 mips*-*-irix6*)
3963 noconfigdirs="$noconfigdirs gprof target-libgloss"
3965 mips*-*-bsd*)
3966 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3968 mips*-*-linux*)
3970 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3971 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3972 noconfigdirs="$noconfigdirs ld gas gprof"
3974 mips*-*-*)
3975 noconfigdirs="$noconfigdirs gprof"
3977 nds32*-*-*)
3978 noconfigdirs="$noconfigdirs gdb"
3980 nvptx*-*-*)
3981 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3983 or1k*-*-*)
3984 noconfigdirs="$noconfigdirs gdb"
3986 sh-*-*)
3987 case "${target}" in
3988 sh*-*-elf)
3991 noconfigdirs="$noconfigdirs target-libgloss" ;;
3992 esac
3994 sparc-*-sunos4*)
3995 if test x${is_cross_compiler} = xno ; then
3996 use_gnu_ld=no
3999 tic6x-*-*)
4000 noconfigdirs="$noconfigdirs sim"
4002 tilepro*-*-* | tilegx*-*-*)
4003 noconfigdirs="$noconfigdirs sim"
4005 v810-*-*)
4006 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4008 vax-*-*)
4009 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4011 esac
4013 # If we aren't building newlib, then don't build libgloss, since libgloss
4014 # depends upon some newlib header files.
4015 case "${noconfigdirs}" in
4016 *target-libgloss*) ;;
4017 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4018 esac
4020 # Work in distributions that contain no compiler tools, like Autoconf.
4021 host_makefile_frag=/dev/null
4022 if test -d ${srcdir}/config ; then
4023 case "${host}" in
4024 i[3456789]86-*-msdosdjgpp*)
4025 host_makefile_frag="config/mh-djgpp"
4027 *-cygwin*)
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4030 $as_echo_n "checking to see if cat works as expected... " >&6; }
4031 echo a >cygwin-cat-check
4032 if test `cat cygwin-cat-check` = a ; then
4033 rm cygwin-cat-check
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4035 $as_echo "yes" >&6; }
4036 else
4037 rm cygwin-cat-check
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4040 as_fn_error $? "The cat command does not ignore carriage return characters.
4041 Please either mount the build directory in binary mode or run the following
4042 commands before running any configure script:
4043 set -o igncr
4044 export SHELLOPTS
4045 " "$LINENO" 5
4048 host_makefile_frag="config/mh-cygwin"
4050 *-mingw*)
4051 host_makefile_frag="config/mh-mingw"
4053 alpha*-linux*)
4054 host_makefile_frag="config/mh-alpha-linux"
4056 hppa*-hp-hpux10*)
4057 host_makefile_frag="config/mh-pa-hpux10"
4059 hppa*-hp-hpux*)
4060 host_makefile_frag="config/mh-pa"
4062 hppa*-*)
4063 host_makefile_frag="config/mh-pa"
4065 *-*-darwin*)
4066 host_makefile_frag="config/mh-darwin"
4068 powerpc-*-aix*)
4069 host_makefile_frag="config/mh-ppc-aix"
4071 rs6000-*-aix*)
4072 host_makefile_frag="config/mh-ppc-aix"
4074 esac
4077 if test "${build}" != "${host}" ; then
4078 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4079 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4080 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4081 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4082 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4083 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4084 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4085 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4086 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4087 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4088 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4089 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4090 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4091 else
4092 AR_FOR_BUILD="\$(AR)"
4093 AS_FOR_BUILD="\$(AS)"
4094 CC_FOR_BUILD="\$(CC)"
4095 CXX_FOR_BUILD="\$(CXX)"
4096 GCJ_FOR_BUILD="\$(GCJ)"
4097 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4098 GOC_FOR_BUILD="\$(GOC)"
4099 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4100 LD_FOR_BUILD="\$(LD)"
4101 NM_FOR_BUILD="\$(NM)"
4102 RANLIB_FOR_BUILD="\$(RANLIB)"
4103 WINDRES_FOR_BUILD="\$(WINDRES)"
4104 WINDMC_FOR_BUILD="\$(WINDMC)"
4107 ac_ext=c
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_CC+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$CC"; then
4121 ac_cv_prog_CC="$CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4136 IFS=$as_save_IFS
4140 CC=$ac_cv_prog_CC
4141 if test -n "$CC"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4143 $as_echo "$CC" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4151 if test -z "$ac_cv_prog_CC"; then
4152 ac_ct_CC=$CC
4153 # Extract the first word of "gcc", so it can be a program name with args.
4154 set dummy gcc; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if test -n "$ac_ct_CC"; then
4161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_ac_ct_CC="gcc"
4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4174 done
4175 done
4176 IFS=$as_save_IFS
4180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4181 if test -n "$ac_ct_CC"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4183 $as_echo "$ac_ct_CC" >&6; }
4184 else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4189 if test "x$ac_ct_CC" = x; then
4190 CC=""
4191 else
4192 case $cross_compiling:$ac_tool_warned in
4193 yes:)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196 ac_tool_warned=yes ;;
4197 esac
4198 CC=$ac_ct_CC
4200 else
4201 CC="$ac_cv_prog_CC"
4204 if test -z "$CC"; then
4205 if test -n "$ac_tool_prefix"; then
4206 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4207 set dummy ${ac_tool_prefix}cc; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if ${ac_cv_prog_CC+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$CC"; then
4214 ac_cv_prog_CC="$CC" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_CC="${ac_tool_prefix}cc"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 CC=$ac_cv_prog_CC
4234 if test -n "$CC"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4236 $as_echo "$CC" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4245 if test -z "$CC"; then
4246 # Extract the first word of "cc", so it can be a program name with args.
4247 set dummy cc; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_CC+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test -n "$CC"; then
4254 ac_cv_prog_CC="$CC" # Let the user override the test.
4255 else
4256 ac_prog_rejected=no
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4265 ac_prog_rejected=yes
4266 continue
4268 ac_cv_prog_CC="cc"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4272 done
4273 done
4274 IFS=$as_save_IFS
4276 if test $ac_prog_rejected = yes; then
4277 # We found a bogon in the path, so make sure we never use it.
4278 set dummy $ac_cv_prog_CC
4279 shift
4280 if test $# != 0; then
4281 # We chose a different compiler from the bogus one.
4282 # However, it has the same basename, so the bogon will be chosen
4283 # first if we set CC to just the basename; use the full file name.
4284 shift
4285 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4301 if test -z "$CC"; then
4302 if test -n "$ac_tool_prefix"; then
4303 for ac_prog in cl.exe
4305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_CC+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 $as_echo "$CC" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$CC" && break
4343 done
4345 if test -z "$CC"; then
4346 ac_ct_CC=$CC
4347 for ac_prog in cl.exe
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$ac_ct_CC"; then
4357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_ac_ct_CC="$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4377 if test -n "$ac_ct_CC"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4379 $as_echo "$ac_ct_CC" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4386 test -n "$ac_ct_CC" && break
4387 done
4389 if test "x$ac_ct_CC" = x; then
4390 CC=""
4391 else
4392 case $cross_compiling:$ac_tool_warned in
4393 yes:)
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4396 ac_tool_warned=yes ;;
4397 esac
4398 CC=$ac_ct_CC
4405 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 as_fn_error $? "no acceptable C compiler found in \$PATH
4408 See \`config.log' for more details" "$LINENO" 5; }
4410 # Provide some information about the compiler.
4411 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4412 set X $ac_compile
4413 ac_compiler=$2
4414 for ac_option in --version -v -V -qversion; do
4415 { { ac_try="$ac_compiler $ac_option >&5"
4416 case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4423 ac_status=$?
4424 if test -s conftest.err; then
4425 sed '10a\
4426 ... rest of stderr output deleted ...
4427 10q' conftest.err >conftest.er1
4428 cat conftest.er1 >&5
4430 rm -f conftest.er1 conftest.err
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; }
4433 done
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4439 main ()
4443 return 0;
4445 _ACEOF
4446 ac_clean_files_save=$ac_clean_files
4447 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4448 # Try to create an executable without -o first, disregard a.out.
4449 # It will help us diagnose broken compilers, and finding out an intuition
4450 # of exeext.
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4452 $as_echo_n "checking whether the C compiler works... " >&6; }
4453 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4455 # The possible output files:
4456 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4458 ac_rmfiles=
4459 for ac_file in $ac_files
4461 case $ac_file in
4462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4463 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4464 esac
4465 done
4466 rm -f $ac_rmfiles
4468 if { { ac_try="$ac_link_default"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 $as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_link_default") 2>&5
4476 ac_status=$?
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }; then :
4479 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4480 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4481 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4482 # so that the user can short-circuit this test for compilers unknown to
4483 # Autoconf.
4484 for ac_file in $ac_files ''
4486 test -f "$ac_file" || continue
4487 case $ac_file in
4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4490 [ab].out )
4491 # We found the default executable, but exeext='' is most
4492 # certainly right.
4493 break;;
4494 *.* )
4495 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4496 then :; else
4497 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4499 # We set ac_cv_exeext here because the later test for it is not
4500 # safe: cross compilers may not add the suffix if given an `-o'
4501 # argument, so we may need to know it at that point already.
4502 # Even if this section looks crufty: it has the advantage of
4503 # actually working.
4504 break;;
4506 break;;
4507 esac
4508 done
4509 test "$ac_cv_exeext" = no && ac_cv_exeext=
4511 else
4512 ac_file=''
4514 if test -z "$ac_file"; then :
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 $as_echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error 77 "C compiler cannot create executables
4523 See \`config.log' for more details" "$LINENO" 5; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4526 $as_echo "yes" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4529 $as_echo_n "checking for C compiler default output file name... " >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4531 $as_echo "$ac_file" >&6; }
4532 ac_exeext=$ac_cv_exeext
4534 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4535 ac_clean_files=$ac_clean_files_save
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4537 $as_echo_n "checking for suffix of executables... " >&6; }
4538 if { { ac_try="$ac_link"
4539 case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542 esac
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545 (eval "$ac_link") 2>&5
4546 ac_status=$?
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }; then :
4549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4551 # work properly (i.e., refer to `conftest.exe'), while it won't with
4552 # `rm'.
4553 for ac_file in conftest.exe conftest conftest.*; do
4554 test -f "$ac_file" || continue
4555 case $ac_file in
4556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4557 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4558 break;;
4559 * ) break;;
4560 esac
4561 done
4562 else
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4566 See \`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest conftest$ac_cv_exeext
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4570 $as_echo "$ac_cv_exeext" >&6; }
4572 rm -f conftest.$ac_ext
4573 EXEEXT=$ac_cv_exeext
4574 ac_exeext=$EXEEXT
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <stdio.h>
4579 main ()
4581 FILE *f = fopen ("conftest.out", "w");
4582 return ferror (f) || fclose (f) != 0;
4585 return 0;
4587 _ACEOF
4588 ac_clean_files="$ac_clean_files conftest.out"
4589 # Check that the compiler produces executables we can run. If not, either
4590 # the compiler is broken, or we cross compile.
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4592 $as_echo_n "checking whether we are cross compiling... " >&6; }
4593 if test "$cross_compiling" != yes; then
4594 { { ac_try="$ac_link"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 $as_echo "$ac_try_echo"; } >&5
4601 (eval "$ac_link") 2>&5
4602 ac_status=$?
4603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }
4605 if { ac_try='./conftest$ac_cv_exeext'
4606 { { case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 $as_echo "$ac_try_echo"; } >&5
4612 (eval "$ac_try") 2>&5
4613 ac_status=$?
4614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }; }; then
4616 cross_compiling=no
4617 else
4618 if test "$cross_compiling" = maybe; then
4619 cross_compiling=yes
4620 else
4621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4623 as_fn_error $? "cannot run C compiled programs.
4624 If you meant to cross compile, use \`--host'.
4625 See \`config.log' for more details" "$LINENO" 5; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4630 $as_echo "$cross_compiling" >&6; }
4632 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4633 ac_clean_files=$ac_clean_files_save
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4635 $as_echo_n "checking for suffix of object files... " >&6; }
4636 if ${ac_cv_objext+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4643 main ()
4647 return 0;
4649 _ACEOF
4650 rm -f conftest.o conftest.obj
4651 if { { ac_try="$ac_compile"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657 $as_echo "$ac_try_echo"; } >&5
4658 (eval "$ac_compile") 2>&5
4659 ac_status=$?
4660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661 test $ac_status = 0; }; then :
4662 for ac_file in conftest.o conftest.obj conftest.*; do
4663 test -f "$ac_file" || continue;
4664 case $ac_file in
4665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4666 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4667 break;;
4668 esac
4669 done
4670 else
4671 $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4676 as_fn_error $? "cannot compute suffix of object files: cannot compile
4677 See \`config.log' for more details" "$LINENO" 5; }
4679 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4682 $as_echo "$ac_cv_objext" >&6; }
4683 OBJEXT=$ac_cv_objext
4684 ac_objext=$OBJEXT
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4686 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4687 if ${ac_cv_c_compiler_gnu+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4694 main ()
4696 #ifndef __GNUC__
4697 choke me
4698 #endif
4701 return 0;
4703 _ACEOF
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_compiler_gnu=yes
4706 else
4707 ac_compiler_gnu=no
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4714 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4715 if test $ac_compiler_gnu = yes; then
4716 GCC=yes
4717 else
4718 GCC=
4720 ac_test_CFLAGS=${CFLAGS+set}
4721 ac_save_CFLAGS=$CFLAGS
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4723 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4724 if ${ac_cv_prog_cc_g+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 ac_save_c_werror_flag=$ac_c_werror_flag
4728 ac_c_werror_flag=yes
4729 ac_cv_prog_cc_g=no
4730 CFLAGS="-g"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4735 main ()
4739 return 0;
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_prog_cc_g=yes
4744 else
4745 CFLAGS=""
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4750 main ()
4754 return 0;
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4759 else
4760 ac_c_werror_flag=$ac_save_c_werror_flag
4761 CFLAGS="-g"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4766 main ()
4770 return 0;
4772 _ACEOF
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_prog_cc_g=yes
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 ac_c_werror_flag=$ac_save_c_werror_flag
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4784 $as_echo "$ac_cv_prog_cc_g" >&6; }
4785 if test "$ac_test_CFLAGS" = set; then
4786 CFLAGS=$ac_save_CFLAGS
4787 elif test $ac_cv_prog_cc_g = yes; then
4788 if test "$GCC" = yes; then
4789 CFLAGS="-g -O2"
4790 else
4791 CFLAGS="-g"
4793 else
4794 if test "$GCC" = yes; then
4795 CFLAGS="-O2"
4796 else
4797 CFLAGS=
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4801 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4802 if ${ac_cv_prog_cc_c89+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_cv_prog_cc_c89=no
4806 ac_save_CC=$CC
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 #include <stdarg.h>
4810 #include <stdio.h>
4811 struct stat;
4812 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4813 struct buf { int x; };
4814 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4815 static char *e (p, i)
4816 char **p;
4817 int i;
4819 return p[i];
4821 static char *f (char * (*g) (char **, int), char **p, ...)
4823 char *s;
4824 va_list v;
4825 va_start (v,p);
4826 s = g (p, va_arg (v,int));
4827 va_end (v);
4828 return s;
4831 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4832 function prototypes and stuff, but not '\xHH' hex character constants.
4833 These don't provoke an error unfortunately, instead are silently treated
4834 as 'x'. The following induces an error, until -std is added to get
4835 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4836 array size at least. It's necessary to write '\x00'==0 to get something
4837 that's true only with -std. */
4838 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4840 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4841 inside strings and character constants. */
4842 #define FOO(x) 'x'
4843 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4845 int test (int i, double x);
4846 struct s1 {int (*f) (int a);};
4847 struct s2 {int (*f) (double a);};
4848 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4849 int argc;
4850 char **argv;
4852 main ()
4854 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4856 return 0;
4858 _ACEOF
4859 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4860 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4862 CC="$ac_save_CC $ac_arg"
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 ac_cv_prog_cc_c89=$ac_arg
4866 rm -f core conftest.err conftest.$ac_objext
4867 test "x$ac_cv_prog_cc_c89" != "xno" && break
4868 done
4869 rm -f conftest.$ac_ext
4870 CC=$ac_save_CC
4873 # AC_CACHE_VAL
4874 case "x$ac_cv_prog_cc_c89" in
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4877 $as_echo "none needed" >&6; } ;;
4878 xno)
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4880 $as_echo "unsupported" >&6; } ;;
4882 CC="$CC $ac_cv_prog_cc_c89"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4884 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4885 esac
4886 if test "x$ac_cv_prog_cc_c89" != xno; then :
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 ac_ext=cpp
4897 ac_cpp='$CXXCPP $CPPFLAGS'
4898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4901 if test -z "$CXX"; then
4902 if test -n "$CCC"; then
4903 CXX=$CCC
4904 else
4905 if test -n "$ac_tool_prefix"; then
4906 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_prog_CXX+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$CXX"; then
4916 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4935 CXX=$ac_cv_prog_CXX
4936 if test -n "$CXX"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4938 $as_echo "$CXX" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4945 test -n "$CXX" && break
4946 done
4948 if test -z "$CXX"; then
4949 ac_ct_CXX=$CXX
4950 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953 set dummy $ac_prog; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -n "$ac_ct_CXX"; then
4960 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_prog_ac_ct_CXX="$ac_prog"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4973 done
4974 done
4975 IFS=$as_save_IFS
4979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4980 if test -n "$ac_ct_CXX"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4982 $as_echo "$ac_ct_CXX" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4989 test -n "$ac_ct_CXX" && break
4990 done
4992 if test "x$ac_ct_CXX" = x; then
4993 CXX="g++"
4994 else
4995 case $cross_compiling:$ac_tool_warned in
4996 yes:)
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4999 ac_tool_warned=yes ;;
5000 esac
5001 CXX=$ac_ct_CXX
5007 # Provide some information about the compiler.
5008 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5009 set X $ac_compile
5010 ac_compiler=$2
5011 for ac_option in --version -v -V -qversion; do
5012 { { ac_try="$ac_compiler $ac_option >&5"
5013 case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5016 esac
5017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5018 $as_echo "$ac_try_echo"; } >&5
5019 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5020 ac_status=$?
5021 if test -s conftest.err; then
5022 sed '10a\
5023 ... rest of stderr output deleted ...
5024 10q' conftest.err >conftest.er1
5025 cat conftest.er1 >&5
5027 rm -f conftest.er1 conftest.err
5028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5029 test $ac_status = 0; }
5030 done
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5033 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5034 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5041 main ()
5043 #ifndef __GNUC__
5044 choke me
5045 #endif
5048 return 0;
5050 _ACEOF
5051 if ac_fn_cxx_try_compile "$LINENO"; then :
5052 ac_compiler_gnu=yes
5053 else
5054 ac_compiler_gnu=no
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5061 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5062 if test $ac_compiler_gnu = yes; then
5063 GXX=yes
5064 else
5065 GXX=
5067 ac_test_CXXFLAGS=${CXXFLAGS+set}
5068 ac_save_CXXFLAGS=$CXXFLAGS
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5070 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5071 if ${ac_cv_prog_cxx_g+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5075 ac_cxx_werror_flag=yes
5076 ac_cv_prog_cxx_g=no
5077 CXXFLAGS="-g"
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5082 main ()
5086 return 0;
5088 _ACEOF
5089 if ac_fn_cxx_try_compile "$LINENO"; then :
5090 ac_cv_prog_cxx_g=yes
5091 else
5092 CXXFLAGS=""
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5097 main ()
5101 return 0;
5103 _ACEOF
5104 if ac_fn_cxx_try_compile "$LINENO"; then :
5106 else
5107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5108 CXXFLAGS="-g"
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5113 main ()
5117 return 0;
5119 _ACEOF
5120 if ac_fn_cxx_try_compile "$LINENO"; then :
5121 ac_cv_prog_cxx_g=yes
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5131 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5132 if test "$ac_test_CXXFLAGS" = set; then
5133 CXXFLAGS=$ac_save_CXXFLAGS
5134 elif test $ac_cv_prog_cxx_g = yes; then
5135 if test "$GXX" = yes; then
5136 CXXFLAGS="-g -O2"
5137 else
5138 CXXFLAGS="-g"
5140 else
5141 if test "$GXX" = yes; then
5142 CXXFLAGS="-O2"
5143 else
5144 CXXFLAGS=
5147 ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154 # We must set the default linker to the linker used by gcc for the correct
5155 # operation of libtool. If LD is not defined and we are using gcc, try to
5156 # set the LD default to the ld used by gcc.
5157 if test -z "$LD"; then
5158 if test "$GCC" = yes; then
5159 case $build in
5160 *-*-mingw*)
5161 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5163 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5164 esac
5165 case $gcc_prog_ld in
5166 # Accept absolute paths.
5167 [\\/]* | [A-Za-z]:[\\/]*)
5168 LD="$gcc_prog_ld" ;;
5169 esac
5173 # Check whether -static-libstdc++ -static-libgcc is supported.
5174 have_static_libs=no
5175 if test "$GCC" = yes; then
5176 saved_LDFLAGS="$LDFLAGS"
5178 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5180 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5181 ac_ext=cpp
5182 ac_cpp='$CXXCPP $CPPFLAGS'
5183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5191 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5192 #error -static-libstdc++ not implemented
5193 #endif
5194 int main() {}
5195 _ACEOF
5196 if ac_fn_cxx_try_link "$LINENO"; then :
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5198 $as_echo "yes" >&6; }; have_static_libs=yes
5199 else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5203 rm -f core conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5205 ac_ext=c
5206 ac_cpp='$CPP $CPPFLAGS'
5207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 LDFLAGS="$saved_LDFLAGS"
5218 if test -n "$ac_tool_prefix"; then
5219 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5220 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_GNATBIND+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$GNATBIND"; then
5227 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5246 GNATBIND=$ac_cv_prog_GNATBIND
5247 if test -n "$GNATBIND"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5249 $as_echo "$GNATBIND" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5257 if test -z "$ac_cv_prog_GNATBIND"; then
5258 ac_ct_GNATBIND=$GNATBIND
5259 # Extract the first word of "gnatbind", so it can be a program name with args.
5260 set dummy gnatbind; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if test -n "$ac_ct_GNATBIND"; then
5267 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5282 IFS=$as_save_IFS
5286 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5287 if test -n "$ac_ct_GNATBIND"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5289 $as_echo "$ac_ct_GNATBIND" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5295 if test "x$ac_ct_GNATBIND" = x; then
5296 GNATBIND="no"
5297 else
5298 case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5303 esac
5304 GNATBIND=$ac_ct_GNATBIND
5306 else
5307 GNATBIND="$ac_cv_prog_GNATBIND"
5310 if test -n "$ac_tool_prefix"; then
5311 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5312 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_GNATMAKE+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$GNATMAKE"; then
5319 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 GNATMAKE=$ac_cv_prog_GNATMAKE
5339 if test -n "$GNATMAKE"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5341 $as_echo "$GNATMAKE" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5349 if test -z "$ac_cv_prog_GNATMAKE"; then
5350 ac_ct_GNATMAKE=$GNATMAKE
5351 # Extract the first word of "gnatmake", so it can be a program name with args.
5352 set dummy gnatmake; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$ac_ct_GNATMAKE"; then
5359 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5379 if test -n "$ac_ct_GNATMAKE"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5381 $as_echo "$ac_ct_GNATMAKE" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5387 if test "x$ac_ct_GNATMAKE" = x; then
5388 GNATMAKE="no"
5389 else
5390 case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396 GNATMAKE=$ac_ct_GNATMAKE
5398 else
5399 GNATMAKE="$ac_cv_prog_GNATMAKE"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5403 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5404 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 cat >conftest.adb <<EOF
5408 procedure conftest is begin null; end conftest;
5410 acx_cv_cc_gcc_supports_ada=no
5411 # There is a bug in old released versions of GCC which causes the
5412 # driver to exit successfully when the appropriate language module
5413 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5414 # Therefore we must check for the error message as well as an
5415 # unsuccessful exit.
5416 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5417 # given a .adb file, but produce no object file. So we must check
5418 # if an object file was really produced to guard against this.
5419 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5420 if test x"$errors" = x && test -f conftest.$ac_objext; then
5421 acx_cv_cc_gcc_supports_ada=yes
5423 rm -f conftest.*
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5426 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5428 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5429 have_gnat=yes
5430 else
5431 have_gnat=no
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5435 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5436 if ${gcc_cv_prog_cmp_skip+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 echo abfoo >t1
5440 echo cdfoo >t2
5441 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5442 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5443 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5445 else
5446 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5449 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5450 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5452 else
5453 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5456 rm t1 t2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5460 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5461 do_compare="$gcc_cv_prog_cmp_skip"
5465 # Check whether --enable-bootstrap was given.
5466 if test "${enable_bootstrap+set}" = set; then :
5467 enableval=$enable_bootstrap;
5468 else
5469 enable_bootstrap=default
5473 # Issue errors and warnings for invalid/strange bootstrap combinations.
5474 if test -r $srcdir/gcc/configure; then
5475 have_compiler=yes
5476 else
5477 have_compiler=no
5480 case "$have_compiler:$host:$target:$enable_bootstrap" in
5481 *:*:*:no) ;;
5483 # Default behavior. Enable bootstrap if we have a compiler
5484 # and we are in a native configuration.
5485 yes:$build:$build:default)
5486 enable_bootstrap=yes ;;
5488 *:*:*:default)
5489 enable_bootstrap=no ;;
5491 # We have a compiler and we are in a native configuration, bootstrap is ok
5492 yes:$build:$build:yes)
5495 # Other configurations, but we have a compiler. Assume the user knows
5496 # what he's doing.
5497 yes:*:*:yes)
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5499 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5502 # No compiler: if they passed --enable-bootstrap explicitly, fail
5503 no:*:*:yes)
5504 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5506 # Fail if wrong command line
5508 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5510 esac
5512 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5513 # C++98 compiler can still start the bootstrap.
5514 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5515 CXX="$CXX -std=gnu++98"
5518 # Used for setting $lt_cv_objdir
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5520 $as_echo_n "checking for objdir... " >&6; }
5521 if ${lt_cv_objdir+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 rm -f .libs 2>/dev/null
5525 mkdir .libs 2>/dev/null
5526 if test -d .libs; then
5527 lt_cv_objdir=.libs
5528 else
5529 # MS-DOS does not allow filenames that begin with a dot.
5530 lt_cv_objdir=_libs
5532 rmdir .libs 2>/dev/null
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5535 $as_echo "$lt_cv_objdir" >&6; }
5536 objdir=$lt_cv_objdir
5542 cat >>confdefs.h <<_ACEOF
5543 #define LT_OBJDIR "$lt_cv_objdir/"
5544 _ACEOF
5548 # Check for GMP, MPFR and MPC
5549 gmplibs="-lmpc -lmpfr -lgmp"
5550 gmpinc=
5551 have_gmp=no
5553 # Specify a location for mpc
5554 # check for this first so it ends up on the link line before mpfr.
5556 # Check whether --with-mpc was given.
5557 if test "${with_mpc+set}" = set; then :
5558 withval=$with_mpc;
5562 # Check whether --with-mpc-include was given.
5563 if test "${with_mpc_include+set}" = set; then :
5564 withval=$with_mpc_include;
5568 # Check whether --with-mpc-lib was given.
5569 if test "${with_mpc_lib+set}" = set; then :
5570 withval=$with_mpc_lib;
5574 if test "x$with_mpc" != x; then
5575 gmplibs="-L$with_mpc/lib $gmplibs"
5576 gmpinc="-I$with_mpc/include $gmpinc"
5578 if test "x$with_mpc_include" != x; then
5579 gmpinc="-I$with_mpc_include $gmpinc"
5581 if test "x$with_mpc_lib" != x; then
5582 gmplibs="-L$with_mpc_lib $gmplibs"
5584 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5585 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5586 gmpinc='-I$$s/mpc/src '"$gmpinc"
5587 # Do not test the mpc version. Assume that it is sufficient, since
5588 # it is in the source tree, and the library has not been built yet
5589 # but it would be included on the link line in the version check below
5590 # hence making the test fail.
5591 have_gmp=yes
5594 # Specify a location for mpfr
5595 # check for this first so it ends up on the link line before gmp.
5597 # Check whether --with-mpfr-dir was given.
5598 if test "${with_mpfr_dir+set}" = set; then :
5599 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5600 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5605 # Check whether --with-mpfr was given.
5606 if test "${with_mpfr+set}" = set; then :
5607 withval=$with_mpfr;
5611 # Check whether --with-mpfr-include was given.
5612 if test "${with_mpfr_include+set}" = set; then :
5613 withval=$with_mpfr_include;
5617 # Check whether --with-mpfr-lib was given.
5618 if test "${with_mpfr_lib+set}" = set; then :
5619 withval=$with_mpfr_lib;
5623 if test "x$with_mpfr" != x; then
5624 gmplibs="-L$with_mpfr/lib $gmplibs"
5625 gmpinc="-I$with_mpfr/include $gmpinc"
5627 if test "x$with_mpfr_include" != x; then
5628 gmpinc="-I$with_mpfr_include $gmpinc"
5630 if test "x$with_mpfr_lib" != x; then
5631 gmplibs="-L$with_mpfr_lib $gmplibs"
5633 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5634 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5635 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5636 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5637 # Do not test the mpfr version. Assume that it is sufficient, since
5638 # it is in the source tree, and the library has not been built yet
5639 # but it would be included on the link line in the version check below
5640 # hence making the test fail.
5641 have_gmp=yes
5644 # Specify a location for gmp
5646 # Check whether --with-gmp-dir was given.
5647 if test "${with_gmp_dir+set}" = set; then :
5648 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5649 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5654 # Check whether --with-gmp was given.
5655 if test "${with_gmp+set}" = set; then :
5656 withval=$with_gmp;
5660 # Check whether --with-gmp-include was given.
5661 if test "${with_gmp_include+set}" = set; then :
5662 withval=$with_gmp_include;
5666 # Check whether --with-gmp-lib was given.
5667 if test "${with_gmp_lib+set}" = set; then :
5668 withval=$with_gmp_lib;
5673 if test "x$with_gmp" != x; then
5674 gmplibs="-L$with_gmp/lib $gmplibs"
5675 gmpinc="-I$with_gmp/include $gmpinc"
5677 if test "x$with_gmp_include" != x; then
5678 gmpinc="-I$with_gmp_include $gmpinc"
5680 if test "x$with_gmp_lib" != x; then
5681 gmplibs="-L$with_gmp_lib $gmplibs"
5683 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5684 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5685 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5686 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5687 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5688 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5689 # Do not test the gmp version. Assume that it is sufficient, since
5690 # it is in the source tree, and the library has not been built yet
5691 # but it would be included on the link line in the version check below
5692 # hence making the test fail.
5693 have_gmp=yes
5696 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5697 have_gmp=yes
5698 saved_CFLAGS="$CFLAGS"
5699 CFLAGS="$CFLAGS $gmpinc"
5700 # Check for the recommended and required versions of GMP.
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5702 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include "gmp.h"
5708 main ()
5711 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5712 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5713 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5714 choke me
5715 #endif
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <gmp.h>
5726 main ()
5729 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5730 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5731 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5732 choke me
5733 #endif
5736 return 0;
5738 _ACEOF
5739 if ac_fn_c_try_compile "$LINENO"; then :
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741 $as_echo "yes" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5744 $as_echo "buggy but acceptable" >&6; }
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }; have_gmp=no
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 # If we have GMP, check the MPFR version.
5754 if test x"$have_gmp" = xyes; then
5755 # Check for the recommended and required versions of MPFR.
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5757 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #include <gmp.h>
5761 #include <mpfr.h>
5763 main ()
5766 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5767 choke me
5768 #endif
5771 return 0;
5773 _ACEOF
5774 if ac_fn_c_try_compile "$LINENO"; then :
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <gmp.h>
5778 #include <mpfr.h>
5780 main ()
5783 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5784 choke me
5785 #endif
5788 return 0;
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793 $as_echo "yes" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5796 $as_echo "buggy but acceptable" >&6; }
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }; have_gmp=no
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 # Check for the MPC header version.
5807 if test x"$have_gmp" = xyes ; then
5808 # Check for the recommended and required versions of MPC.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5810 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <mpc.h>
5815 main ()
5818 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5819 choke me
5820 #endif
5823 return 0;
5825 _ACEOF
5826 if ac_fn_c_try_compile "$LINENO"; then :
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <mpc.h>
5831 main ()
5834 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5835 choke me
5836 #endif
5839 return 0;
5841 _ACEOF
5842 if ac_fn_c_try_compile "$LINENO"; then :
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844 $as_echo "yes" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5847 $as_echo "buggy but acceptable" >&6; }
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }; have_gmp=no
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 # Now check the MPFR library.
5858 if test x"$have_gmp" = xyes; then
5859 saved_LIBS="$LIBS"
5860 LIBS="$LIBS $gmplibs"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5862 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #include <mpc.h>
5867 main ()
5870 mpfr_t n;
5871 mpfr_t x;
5872 mpc_t c;
5873 int t;
5874 mpfr_init (n);
5875 mpfr_init (x);
5876 mpfr_atan2 (n, n, x, GMP_RNDN);
5877 mpfr_erfc (n, x, GMP_RNDN);
5878 mpfr_subnormalize (x, t, GMP_RNDN);
5879 mpfr_clear(n);
5880 mpfr_clear(x);
5881 mpc_init2 (c, 53);
5882 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5883 mpc_cosh (c, c, MPC_RNDNN);
5884 mpc_pow (c, c, c, MPC_RNDNN);
5885 mpc_acosh (c, c, MPC_RNDNN);
5886 mpc_clear (c);
5889 return 0;
5891 _ACEOF
5892 if ac_fn_c_try_link "$LINENO"; then :
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5894 $as_echo "yes" >&6; }
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }; have_gmp=no
5899 rm -f core conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5901 LIBS="$saved_LIBS"
5904 CFLAGS="$saved_CFLAGS"
5906 # The library versions listed in the error message below should match
5907 # the HARD-minimums enforced above.
5908 if test x$have_gmp != xyes; then
5909 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5910 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5911 their locations. Source code for these libraries can be found at
5912 their respective hosting sites as well as at
5913 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5914 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5915 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5916 make sure that you have installed both the libraries and the header
5917 files. They may be located in separate packages." "$LINENO" 5
5921 # Flags needed for both GMP, MPFR and/or MPC.
5929 # Libraries to use for stage1 or when not bootstrapping.
5931 # Check whether --with-stage1-libs was given.
5932 if test "${with_stage1_libs+set}" = set; then :
5933 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5934 stage1_libs=
5935 else
5936 stage1_libs=$withval
5938 else
5939 stage1_libs=
5944 # Linker flags to use for stage1 or when not bootstrapping.
5946 # Check whether --with-stage1-ldflags was given.
5947 if test "${with_stage1_ldflags+set}" = set; then :
5948 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5949 stage1_ldflags=
5950 else
5951 stage1_ldflags=$withval
5953 else
5954 stage1_ldflags=
5955 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5956 # if supported. But if the user explicitly specified the libraries to use,
5957 # trust that they are doing what they want.
5958 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5959 stage1_ldflags="-static-libstdc++ -static-libgcc"
5965 # Libraries to use for stage2 and later builds.
5967 # Check whether --with-boot-libs was given.
5968 if test "${with_boot_libs+set}" = set; then :
5969 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5970 poststage1_libs=
5971 else
5972 poststage1_libs=$withval
5974 else
5975 poststage1_libs=
5980 # Linker flags to use for stage2 and later builds.
5982 # Check whether --with-boot-ldflags was given.
5983 if test "${with_boot_ldflags+set}" = set; then :
5984 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5985 poststage1_ldflags=
5986 else
5987 poststage1_ldflags=$withval
5989 else
5990 poststage1_ldflags=
5991 # In stages 2 and 3, default to linking libstdc++ and libgcc
5992 # statically. But if the user explicitly specified the libraries to
5993 # use, trust that they are doing what they want.
5994 if test "$poststage1_libs" = ""; then
5995 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6001 # GCC GRAPHITE dependency isl.
6002 # Basic setup is inlined here, actual checks are in config/isl.m4
6005 # Check whether --with-isl was given.
6006 if test "${with_isl+set}" = set; then :
6007 withval=$with_isl;
6011 # Treat --without-isl as a request to disable
6012 # GRAPHITE support and skip all following checks.
6013 if test "x$with_isl" != "xno"; then
6014 # Check for isl
6017 # Check whether --with-isl-include was given.
6018 if test "${with_isl_include+set}" = set; then :
6019 withval=$with_isl_include;
6023 # Check whether --with-isl-lib was given.
6024 if test "${with_isl_lib+set}" = set; then :
6025 withval=$with_isl_lib;
6029 # Check whether --enable-isl-version-check was given.
6030 if test "${enable_isl_version_check+set}" = set; then :
6031 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6032 else
6033 ENABLE_ISL_CHECK=yes
6037 # Initialize isllibs and islinc.
6038 case $with_isl in
6040 isllibs=
6041 islinc=
6043 "" | yes)
6046 isllibs="-L$with_isl/lib"
6047 islinc="-I$with_isl/include"
6049 esac
6050 if test "x${with_isl_include}" != x ; then
6051 islinc="-I$with_isl_include"
6053 if test "x${with_isl_lib}" != x; then
6054 isllibs="-L$with_isl_lib"
6056 if test "x${islinc}" = x && test "x${isllibs}" = x \
6057 && test -d ${srcdir}/isl; then
6058 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6059 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6060 ENABLE_ISL_CHECK=no
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6062 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6065 isllibs="${isllibs} -lisl"
6069 if test "${ENABLE_ISL_CHECK}" = yes ; then
6070 _isl_saved_CFLAGS=$CFLAGS
6071 _isl_saved_LDFLAGS=$LDFLAGS
6072 _isl_saved_LIBS=$LIBS
6074 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6075 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6076 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6079 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include <isl/ctx.h>
6084 main ()
6086 isl_ctx_get_max_operations (isl_ctx_alloc ());
6088 return 0;
6090 _ACEOF
6091 if ac_fn_c_try_link "$LINENO"; then :
6092 gcc_cv_isl=yes
6093 else
6094 gcc_cv_isl=no
6096 rm -f core conftest.err conftest.$ac_objext \
6097 conftest$ac_exeext conftest.$ac_ext
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6099 $as_echo "$gcc_cv_isl" >&6; }
6101 if test "${gcc_cv_isl}" = no ; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6103 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6107 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <isl/schedule.h>
6112 main ()
6114 isl_options_set_schedule_serialize_sccs (NULL, 0);
6116 return 0;
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"; then :
6120 ac_has_isl_options_set_schedule_serialize_sccs=yes
6121 else
6122 ac_has_isl_options_set_schedule_serialize_sccs=no
6124 rm -f core conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6127 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6129 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6130 islver="0.15"
6134 CFLAGS=$_isl_saved_CFLAGS
6135 LDFLAGS=$_isl_saved_LDFLAGS
6136 LIBS=$_isl_saved_LIBS
6144 if test "x${with_isl}" = xno; then
6145 graphite_requested=no
6146 elif test "x${with_isl}" != x \
6147 || test "x${with_isl_include}" != x \
6148 || test "x${with_isl_lib}" != x ; then
6149 graphite_requested=yes
6150 else
6151 graphite_requested=no
6156 if test "${gcc_cv_isl}" = no ; then
6157 isllibs=
6158 islinc=
6161 if test "${graphite_requested}" = yes \
6162 && test "x${isllibs}" = x \
6163 && test "x${islinc}" = x ; then
6165 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6171 # If the isl check failed, disable builds of in-tree variant of isl
6172 if test "x$with_isl" = xno ||
6173 test "x$gcc_cv_isl" = xno; then
6174 noconfigdirs="$noconfigdirs isl"
6175 islinc=
6181 # Check for LTO support.
6182 # Check whether --enable-lto was given.
6183 if test "${enable_lto+set}" = set; then :
6184 enableval=$enable_lto; enable_lto=$enableval
6185 else
6186 enable_lto=yes; default_enable_lto=yes
6193 target_elf=no
6194 case $target in
6195 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6196 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6197 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6198 nvptx-*-none)
6199 target_elf=no
6202 target_elf=yes
6204 esac
6206 if test $target_elf = yes; then :
6207 # ELF platforms build the lto-plugin always.
6208 build_lto_plugin=yes
6210 else
6211 if test x"$default_enable_lto" = x"yes" ; then
6212 case $target in
6213 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6214 # On other non-ELF platforms, LTO has yet to be validated.
6215 *) enable_lto=no ;;
6216 esac
6217 else
6218 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6219 # It would also be nice to check the binutils support, but we don't
6220 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6221 # warn during gcc/ subconfigure; unless you're bootstrapping with
6222 # -flto it won't be needed until after installation anyway.
6223 case $target in
6224 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6225 *) if test x"$enable_lto" = x"yes"; then
6226 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6229 esac
6231 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6232 # Build it unless LTO was explicitly disabled.
6233 case $target in
6234 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6235 *) ;;
6236 esac
6241 # Check whether --enable-linker-plugin-configure-flags was given.
6242 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6243 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6244 else
6245 extra_linker_plugin_configure_flags=
6249 # Check whether --enable-linker-plugin-flags was given.
6250 if test "${enable_linker_plugin_flags+set}" = set; then :
6251 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6252 else
6253 extra_linker_plugin_flags=
6259 # By default, C and C++ are the only stage 1 languages.
6260 stage1_languages=,c,
6262 # Target libraries that we bootstrap.
6263 bootstrap_target_libs=,target-libgcc,
6265 # Figure out what language subdirectories are present.
6266 # Look if the user specified --enable-languages="..."; if not, use
6267 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6268 # go away some day.
6269 # NB: embedded tabs in this IF block -- do not untabify
6270 if test -d ${srcdir}/gcc; then
6271 if test x"${enable_languages+set}" != xset; then
6272 if test x"${LANGUAGES+set}" = xset; then
6273 enable_languages="${LANGUAGES}"
6274 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6275 else
6276 enable_languages=all
6278 else
6279 if test x"${enable_languages}" = x ||
6280 test x"${enable_languages}" = xyes;
6281 then
6282 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6283 exit 1
6286 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6288 # 'f95' is the old name for the 'fortran' language. We issue a warning
6289 # and make the substitution.
6290 case ,${enable_languages}, in
6291 *,f95,*)
6292 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6293 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6295 esac
6297 # If bootstrapping, C++ must be enabled.
6298 case ",$enable_languages,:$enable_bootstrap" in
6299 *,c++,*:*) ;;
6300 *:yes)
6301 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6302 enable_languages="${enable_languages},c++"
6303 else
6304 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6307 esac
6309 # First scan to see if an enabled language requires some other language.
6310 # We assume that a given config-lang.in will list all the language
6311 # front ends it requires, even if some are required indirectly.
6312 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6313 case ${lang_frag} in
6314 ..) ;;
6315 # The odd quoting in the next line works around
6316 # an apparent bug in bash 1.12 on linux.
6317 ${srcdir}/gcc/[*]/config-lang.in) ;;
6319 # From the config-lang.in, get $language, $lang_requires, and
6320 # $lang_requires_boot_languages.
6321 language=
6322 lang_requires=
6323 lang_requires_boot_languages=
6324 . ${lang_frag}
6325 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6326 case ,${enable_languages}, in
6327 *,$other,*) ;;
6328 *,all,*) ;;
6329 *,$language,*)
6330 echo " \`$other' language required by \`$language'; enabling" 1>&2
6331 enable_languages="${enable_languages},${other}"
6333 esac
6334 done
6335 for other in ${lang_requires_boot_languages} ; do
6336 if test "$other" != "c"; then
6337 case ,${enable_stage1_languages}, in
6338 *,$other,*) ;;
6339 *,all,*) ;;
6341 case ,${enable_languages}, in
6342 *,$language,*)
6343 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6344 enable_stage1_languages="$enable_stage1_languages,${other}"
6346 esac
6348 esac
6350 done
6352 esac
6353 done
6355 new_enable_languages=,c,
6357 # If LTO is enabled, add the LTO front end.
6358 if test "$enable_lto" = "yes" ; then
6359 case ,${enable_languages}, in
6360 *,lto,*) ;;
6361 *) enable_languages="${enable_languages},lto" ;;
6362 esac
6363 if test "${build_lto_plugin}" = "yes" ; then
6364 configdirs="$configdirs lto-plugin"
6368 # If we're building an offloading compiler, add the LTO front end.
6369 if test x"$enable_as_accelerator_for" != x ; then
6370 case ,${enable_languages}, in
6371 *,lto,*) ;;
6372 *) enable_languages="${enable_languages},lto" ;;
6373 esac
6376 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6377 potential_languages=,c,
6379 enabled_target_libs=
6380 disabled_target_libs=
6382 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6383 case ${lang_frag} in
6384 ..) ;;
6385 # The odd quoting in the next line works around
6386 # an apparent bug in bash 1.12 on linux.
6387 ${srcdir}/gcc/[*]/config-lang.in) ;;
6389 # From the config-lang.in, get $language, $target_libs,
6390 # $lang_dirs, $boot_language, and $build_by_default
6391 language=
6392 target_libs=
6393 lang_dirs=
6394 subdir_requires=
6395 boot_language=no
6396 build_by_default=yes
6397 . ${lang_frag}
6398 if test x${language} = x; then
6399 echo "${lang_frag} doesn't set \$language." 1>&2
6400 exit 1
6403 if test "$language" = "c++"; then
6404 boot_language=yes
6407 add_this_lang=no
6408 case ,${enable_languages}, in
6409 *,${language},*)
6410 # Language was explicitly selected; include it
6411 # unless it is C, which is enabled by default.
6412 if test "$language" != "c"; then
6413 add_this_lang=yes
6416 *,all,*)
6417 # 'all' was selected, select it if it is a default language
6418 if test "$language" != "c"; then
6419 add_this_lang=${build_by_default}
6422 esac
6424 # Disable languages that need other directories if these aren't available.
6425 for i in $subdir_requires; do
6426 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6427 case ,${enable_languages}, in
6428 *,${language},*)
6429 # Specifically requested language; tell them.
6430 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6433 # Silently disable.
6434 add_this_lang=unsupported
6436 esac
6437 done
6439 # Disable Ada if no preexisting GNAT is available.
6440 case ,${enable_languages},:${language}:${have_gnat} in
6441 *,${language},*:ada:no)
6442 # Specifically requested language; tell them.
6443 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6445 *:ada:no)
6446 # Silently disable.
6447 add_this_lang=unsupported
6449 esac
6451 # Disable a language that is unsupported by the target.
6452 case " $unsupported_languages " in
6453 *" $language "*)
6454 add_this_lang=unsupported
6456 esac
6458 case $add_this_lang in
6459 unsupported)
6460 # Remove language-dependent dirs.
6461 disabled_target_libs="$disabled_target_libs $target_libs"
6462 noconfigdirs="$noconfigdirs $lang_dirs"
6465 # Remove language-dependent dirs; still show language as supported.
6466 disabled_target_libs="$disabled_target_libs $target_libs"
6467 noconfigdirs="$noconfigdirs $lang_dirs"
6468 potential_languages="${potential_languages}${language},"
6470 yes)
6471 new_enable_languages="${new_enable_languages}${language},"
6472 potential_languages="${potential_languages}${language},"
6473 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6474 enabled_target_libs="$enabled_target_libs $target_libs"
6475 case "${boot_language}:,$enable_stage1_languages," in
6476 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6477 # Add to (comma-separated) list of stage 1 languages.
6478 case ",$stage1_languages," in
6479 *,$language,* | ,yes, | ,all,) ;;
6480 *) stage1_languages="${stage1_languages}${language}," ;;
6481 esac
6482 # We need to bootstrap any supporting libraries.
6483 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6485 esac
6487 esac
6489 esac
6490 done
6492 # Add target libraries which are only needed for disabled languages
6493 # to noconfigdirs.
6494 if test -n "$disabled_target_libs"; then
6495 for dir in $disabled_target_libs; do
6496 case " $enabled_target_libs " in
6497 *" ${dir} "*) ;;
6498 *) noconfigdirs="$noconfigdirs $dir" ;;
6499 esac
6500 done
6503 # Check whether --enable-stage1-languages was given.
6504 if test "${enable_stage1_languages+set}" = set; then :
6505 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6506 ,no,|,,)
6507 # Set it to something that will have no effect in the loop below
6508 enable_stage1_languages=c ;;
6509 ,yes,)
6510 enable_stage1_languages=`echo $new_enable_languages | \
6511 sed -e "s/^,//" -e "s/,$//" ` ;;
6512 *,all,*)
6513 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6514 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6515 esac
6517 # Add "good" languages from enable_stage1_languages to stage1_languages,
6518 # while "bad" languages go in missing_languages. Leave no duplicates.
6519 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6520 case $potential_languages in
6521 *,$i,*)
6522 case $stage1_languages in
6523 *,$i,*) ;;
6524 *) stage1_languages="$stage1_languages$i," ;;
6525 esac ;;
6527 case $missing_languages in
6528 *,$i,*) ;;
6529 *) missing_languages="$missing_languages$i," ;;
6530 esac ;;
6531 esac
6532 done
6536 # Remove leading/trailing commas that were added for simplicity
6537 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6538 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6539 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6540 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6542 if test "x$missing_languages" != x; then
6543 as_fn_error $? "
6544 The following requested languages could not be built: ${missing_languages}
6545 Supported languages are: ${potential_languages}" "$LINENO" 5
6547 if test "x$new_enable_languages" != "x$enable_languages"; then
6548 echo The following languages will be built: ${new_enable_languages}
6549 enable_languages="$new_enable_languages"
6553 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6556 # Handle --disable-<component> generically.
6557 for dir in $configdirs $build_configdirs $target_configdirs ; do
6558 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6559 varname=`echo $dirname | sed -e s/+/_/g`
6560 if eval test x\${enable_${varname}} "=" xno ; then
6561 noconfigdirs="$noconfigdirs $dir"
6563 done
6565 # Check for Boehm's garbage collector
6566 # Check whether --enable-objc-gc was given.
6567 if test "${enable_objc_gc+set}" = set; then :
6568 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6569 *,objc,*:*:yes:*target-boehm-gc*)
6570 as_fn_error $? "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6572 esac
6576 # Make sure we only build Boehm's garbage collector if required.
6577 case ,${enable_languages},:${enable_objc_gc} in
6578 *,objc,*:yes)
6579 # Keep target-boehm-gc if requested for Objective-C.
6582 # Otherwise remove target-boehm-gc depending on target-libjava.
6583 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6584 noconfigdirs="$noconfigdirs target-boehm-gc"
6587 esac
6589 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6590 case ,${enable_languages}, in
6591 *,c++,*)
6592 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6593 case "${noconfigdirs}" in
6594 *target-libstdc++-v3*)
6595 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6597 *) ;;
6598 esac
6601 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6603 esac
6605 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6606 # $build_configdirs and $target_configdirs.
6607 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6609 notsupp=""
6610 for dir in . $skipdirs $noconfigdirs ; do
6611 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6612 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6613 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6614 if test -r $srcdir/$dirname/configure ; then
6615 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6616 true
6617 else
6618 notsupp="$notsupp $dir"
6622 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6623 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6624 if test -r $srcdir/$dirname/configure ; then
6625 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6626 true
6627 else
6628 notsupp="$notsupp $dir"
6632 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6633 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6634 if test -r $srcdir/$dirname/configure ; then
6635 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6636 true
6637 else
6638 notsupp="$notsupp $dir"
6642 done
6644 # Quietly strip out all directories which aren't configurable in this tree.
6645 # This relies on all configurable subdirectories being autoconfiscated, which
6646 # is now the case.
6647 build_configdirs_all="$build_configdirs"
6648 build_configdirs=
6649 for i in ${build_configdirs_all} ; do
6650 j=`echo $i | sed -e s/build-//g`
6651 if test -f ${srcdir}/$j/configure ; then
6652 build_configdirs="${build_configdirs} $i"
6654 done
6656 configdirs_all="$configdirs"
6657 configdirs=
6658 for i in ${configdirs_all} ; do
6659 if test -f ${srcdir}/$i/configure ; then
6660 configdirs="${configdirs} $i"
6662 done
6664 target_configdirs_all="$target_configdirs"
6665 target_configdirs=
6666 for i in ${target_configdirs_all} ; do
6667 j=`echo $i | sed -e s/target-//g`
6668 if test -f ${srcdir}/$j/configure ; then
6669 target_configdirs="${target_configdirs} $i"
6671 done
6673 # Exclude target-zlib if target-libjava isn't built.
6674 case ${target_configdirs} in
6675 *target-libjava*)
6678 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6680 esac
6682 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6683 # so we have to add it after the preceding checks.
6684 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6685 then
6686 case " $configdirs " in
6687 *" libiberty "*)
6688 # If we can build libiberty, we can also build libiberty-linker-plugin.
6689 configdirs="$configdirs libiberty-linker-plugin"
6690 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6691 --with-libiberty=../libiberty-linker-plugin";;
6693 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6694 esac
6697 # Sometimes we have special requirements for the host libiberty.
6698 extra_host_libiberty_configure_flags=
6699 extra_host_zlib_configure_flags=
6700 case " $configdirs " in
6701 *" lto-plugin "* | *" libcc1 "*)
6702 # When these are to be built as shared libraries, the same applies to
6703 # libiberty.
6704 extra_host_libiberty_configure_flags=--enable-shared
6706 *" bfd "*)
6707 # When bfd is to be built as a shared library, the same applies to
6708 # zlib.
6709 if test "$enable_shared" = "yes"; then
6710 extra_host_zlib_configure_flags=--enable-host-shared
6713 esac
6717 # Produce a warning message for the subdirs we can't configure.
6718 # This isn't especially interesting in the Cygnus tree, but in the individual
6719 # FSF releases, it's important to let people know when their machine isn't
6720 # supported by the one or two programs in a package.
6722 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6723 # If $appdirs is non-empty, at least one of those directories must still
6724 # be configured, or we error out. (E.g., if the gas release supports a
6725 # specified target in some subdirs but not the gas subdir, we shouldn't
6726 # pretend that all is well.)
6727 if test -n "$appdirs" ; then
6728 for dir in $appdirs ; do
6729 if test -r $dir/Makefile.in ; then
6730 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6731 appdirs=""
6732 break
6734 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6735 appdirs=""
6736 break
6739 done
6740 if test -n "$appdirs" ; then
6741 echo "*** This configuration is not supported by this package." 1>&2
6742 exit 1
6745 # Okay, some application will build, or we don't care to check. Still
6746 # notify of subdirs not getting built.
6747 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6748 echo " ${notsupp}" 1>&2
6749 echo " (Any other directories should still work fine.)" 1>&2
6752 case "$host" in
6753 *msdosdjgpp*)
6754 enable_gdbtk=no ;;
6755 esac
6757 # To find our prefix, in gcc_cv_tool_prefix.
6759 # The user is always right.
6760 if test "${PATH_SEPARATOR+set}" != set; then
6761 echo "#! /bin/sh" >conf$$.sh
6762 echo "exit 0" >>conf$$.sh
6763 chmod +x conf$$.sh
6764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6765 PATH_SEPARATOR=';'
6766 else
6767 PATH_SEPARATOR=:
6769 rm -f conf$$.sh
6774 if test "x$exec_prefix" = xNONE; then
6775 if test "x$prefix" = xNONE; then
6776 gcc_cv_tool_prefix=$ac_default_prefix
6777 else
6778 gcc_cv_tool_prefix=$prefix
6780 else
6781 gcc_cv_tool_prefix=$exec_prefix
6784 # If there is no compiler in the tree, use the PATH only. In any
6785 # case, if there is no compiler in the tree nobody should use
6786 # AS_FOR_TARGET and LD_FOR_TARGET.
6787 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6788 gcc_version=`cat $srcdir/gcc/BASE-VER`
6789 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6792 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6793 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6794 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6795 else
6796 gcc_cv_tool_dirs=
6799 if test x$build = x$target && test -n "$md_exec_prefix"; then
6800 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6805 copy_dirs=
6808 # Check whether --with-build-sysroot was given.
6809 if test "${with_build_sysroot+set}" = set; then :
6810 withval=$with_build_sysroot; if test x"$withval" != x ; then
6811 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6813 else
6814 SYSROOT_CFLAGS_FOR_TARGET=
6820 # Check whether --with-debug-prefix-map was given.
6821 if test "${with_debug_prefix_map+set}" = set; then :
6822 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6823 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6824 for debug_map in $withval; do
6825 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6826 done
6828 else
6829 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6834 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6835 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6836 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6837 # We want to ensure that TARGET libraries (which we know are built with
6838 # gcc) are built with "-O2 -g", so include those options when setting
6839 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6840 if test "x$CFLAGS_FOR_TARGET" = x; then
6841 if test "x${is_cross_compiler}" = xyes; then
6842 CFLAGS_FOR_TARGET="-g -O2"
6843 else
6844 CFLAGS_FOR_TARGET=$CFLAGS
6845 case " $CFLAGS " in
6846 *" -O2 "*) ;;
6847 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6848 esac
6849 case " $CFLAGS " in
6850 *" -g "* | *" -g3 "*) ;;
6851 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6852 esac
6857 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6858 if test "x${is_cross_compiler}" = xyes; then
6859 CXXFLAGS_FOR_TARGET="-g -O2"
6860 else
6861 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6862 case " $CXXFLAGS " in
6863 *" -O2 "*) ;;
6864 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6865 esac
6866 case " $CXXFLAGS " in
6867 *" -g "* | *" -g3 "*) ;;
6868 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6869 esac
6876 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6877 # the named directory are copied to $(tooldir)/sys-include.
6878 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6879 if test x${is_cross_compiler} = xno ; then
6880 echo 1>&2 '***' --with-headers is only supported when cross compiling
6881 exit 1
6883 if test x"${with_headers}" != xyes ; then
6884 x=${gcc_cv_tool_prefix}
6885 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6889 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6890 # the name directories are copied to $(tooldir)/lib. Multiple directories
6891 # are permitted.
6892 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6893 if test x${is_cross_compiler} = xno ; then
6894 echo 1>&2 '***' --with-libs is only supported when cross compiling
6895 exit 1
6897 if test x"${with_libs}" != xyes ; then
6898 # Copy the libraries in reverse order, so that files in the first named
6899 # library override files in subsequent libraries.
6900 x=${gcc_cv_tool_prefix}
6901 for l in ${with_libs}; do
6902 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6903 done
6907 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6909 # This is done by determining whether or not the appropriate directory
6910 # is available, and by checking whether or not specific configurations
6911 # have requested that this magic not happen.
6913 # The command line options always override the explicit settings in
6914 # configure.ac, and the settings in configure.ac override this magic.
6916 # If the default for a toolchain is to use GNU as and ld, and you don't
6917 # want to do that, then you should use the --without-gnu-as and
6918 # --without-gnu-ld options for the configure script. Similarly, if
6919 # the default is to use the included zlib and you don't want to do that,
6920 # you should use the --with-system-zlib option for the configure script.
6922 if test x${use_gnu_as} = x &&
6923 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6924 with_gnu_as=yes
6925 extra_host_args="$extra_host_args --with-gnu-as"
6928 if test x${use_gnu_ld} = x &&
6929 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6930 with_gnu_ld=yes
6931 extra_host_args="$extra_host_args --with-gnu-ld"
6934 if test x${use_included_zlib} = x &&
6935 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6937 else
6938 with_system_zlib=yes
6939 extra_host_args="$extra_host_args --with-system-zlib"
6942 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6943 # can detect this case.
6945 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6946 with_newlib=yes
6947 extra_host_args="$extra_host_args --with-newlib"
6950 # Handle ${copy_dirs}
6951 set fnord ${copy_dirs}
6952 shift
6953 while test $# != 0 ; do
6954 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6956 else
6957 echo Copying $1 to $2
6959 # Use the install script to create the directory and all required
6960 # parent directories.
6961 if test -d $2 ; then
6963 else
6964 echo >config.temp
6965 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6968 # Copy the directory, assuming we have tar.
6969 # FIXME: Should we use B in the second tar? Not all systems support it.
6970 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6972 # It is the responsibility of the user to correctly adjust all
6973 # symlinks. If somebody can figure out how to handle them correctly
6974 # here, feel free to add the code.
6976 echo $1 > $2/COPIED
6978 shift; shift
6979 done
6981 # Determine a target-dependent exec_prefix that the installed
6982 # gcc will search in. Keep this list sorted by triplet, with
6983 # the *-*-osname triplets last.
6984 md_exec_prefix=
6985 case "${target}" in
6986 i[34567]86-pc-msdosdjgpp*)
6987 md_exec_prefix=/dev/env/DJDIR/bin
6989 *-*-hpux* | \
6990 *-*-nto-qnx* | \
6991 *-*-solaris2*)
6992 md_exec_prefix=/usr/ccs/bin
6994 esac
6996 extra_arflags_for_target=
6997 extra_nmflags_for_target=
6998 extra_ranlibflags_for_target=
6999 target_makefile_frag=/dev/null
7000 case "${target}" in
7001 spu-*-*)
7002 target_makefile_frag="config/mt-spu"
7004 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7005 target_makefile_frag="config/mt-sde"
7007 mipsisa*-*-elfoabi*)
7008 target_makefile_frag="config/mt-mips-elfoabi"
7010 mips*-*-*linux* | mips*-*-gnu*)
7011 target_makefile_frag="config/mt-mips-gnu"
7013 nios2-*-elf*)
7014 target_makefile_frag="config/mt-nios2-elf"
7016 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7017 target_makefile_frag="config/mt-gnu"
7019 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7020 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7021 # commands to handle both 32-bit and 64-bit objects. These flags are
7022 # harmless if we're using GNU nm or ar.
7023 extra_arflags_for_target=" -X32_64"
7024 extra_nmflags_for_target=" -B -X32_64"
7026 esac
7028 alphaieee_frag=/dev/null
7029 case $target in
7030 alpha*-*-*)
7031 # This just makes sure to use the -mieee option to build target libs.
7032 # This should probably be set individually by each library.
7033 alphaieee_frag="config/mt-alphaieee"
7035 esac
7037 # If --enable-target-optspace always use -Os instead of -O2 to build
7038 # the target libraries, similarly if it is not specified, use -Os
7039 # on selected platforms.
7040 ospace_frag=/dev/null
7041 case "${enable_target_optspace}:${target}" in
7042 yes:*)
7043 ospace_frag="config/mt-ospace"
7045 :d30v-*)
7046 ospace_frag="config/mt-d30v"
7048 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7049 ospace_frag="config/mt-ospace"
7051 no:* | :*)
7054 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7056 esac
7058 # Some systems (e.g., one of the i386-aix systems the gas testers are
7059 # using) don't handle "\$" correctly, so don't use it here.
7060 tooldir='${exec_prefix}'/${target_noncanonical}
7061 build_tooldir=${tooldir}
7063 # Create a .gdbinit file which runs the one in srcdir
7064 # and tells GDB to look there for source files.
7066 if test -r ${srcdir}/.gdbinit ; then
7067 case ${srcdir} in
7068 .) ;;
7069 *) cat > ./.gdbinit <<EOF
7070 # ${NO_EDIT}
7071 dir ${srcdir}
7072 dir .
7073 source ${srcdir}/.gdbinit
7076 esac
7079 # Make sure that the compiler is able to generate an executable. If it
7080 # can't, we are probably in trouble. We don't care whether we can run the
7081 # executable--we might be using a cross compiler--we only care whether it
7082 # can be created. At this point the main configure script has set CC.
7083 we_are_ok=no
7084 echo "int main () { return 0; }" > conftest.c
7085 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7086 if test $? = 0 ; then
7087 if test -s conftest || test -s conftest.exe ; then
7088 we_are_ok=yes
7091 case $we_are_ok in
7093 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7094 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7095 rm -f conftest*
7096 exit 1
7098 esac
7099 rm -f conftest*
7101 # Decide which environment variable is used to find dynamic libraries.
7102 case "${host}" in
7103 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7104 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7105 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7106 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7107 esac
7109 # On systems where the dynamic library environment variable is PATH,
7110 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7111 # built executables to PATH.
7112 if test "$RPATH_ENVVAR" = PATH; then
7113 GCC_SHLIB_SUBDIR=/shlib
7114 else
7115 GCC_SHLIB_SUBDIR=
7118 # Adjust the toplevel makefile according to whether bootstrap was selected.
7119 case $enable_bootstrap in
7120 yes)
7121 bootstrap_suffix=bootstrap
7122 BUILD_CONFIG=bootstrap-debug
7125 bootstrap_suffix=no-bootstrap
7126 BUILD_CONFIG=
7128 esac
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7131 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7134 # Check whether --with-build-config was given.
7135 if test "${with_build_config+set}" = set; then :
7136 withval=$with_build_config; case $with_build_config in
7137 yes) with_build_config= ;;
7138 no) with_build_config= BUILD_CONFIG= ;;
7139 esac
7143 if test "x${with_build_config}" != x; then
7144 BUILD_CONFIG=$with_build_config
7145 else
7146 case $BUILD_CONFIG in
7147 bootstrap-debug)
7148 if echo "int f (void) { return 0; }" > conftest.c &&
7149 ${CC} -c conftest.c &&
7150 mv conftest.o conftest.o.g0 &&
7151 ${CC} -c -g conftest.c &&
7152 mv conftest.o conftest.o.g &&
7153 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7155 else
7156 BUILD_CONFIG=
7158 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7160 esac
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7163 $as_echo "$BUILD_CONFIG" >&6; }
7166 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7168 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7169 # Check whether --enable-vtable-verify was given.
7170 if test "${enable_vtable_verify+set}" = set; then :
7171 enableval=$enable_vtable_verify; case "$enableval" in
7172 yes) enable_vtable_verify=yes ;;
7173 no) enable_vtable_verify=no ;;
7174 *) enable_vtable_verify=no;;
7175 esac
7176 else
7177 enable_vtable_verify=no
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7181 $as_echo "$enable_vtable_verify" >&6; }
7183 # Record target_configdirs and the configure arguments for target and
7184 # build configuration in Makefile.
7185 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7186 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7187 bootstrap_fixincludes=no
7189 # If we are building libgomp, bootstrap it.
7190 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7191 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7194 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7195 # or bootstrap-ubsan, bootstrap it.
7196 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7197 case "$BUILD_CONFIG" in
7198 *bootstrap-asan* | *bootstrap-ubsan* )
7199 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7200 bootstrap_fixincludes=yes
7202 esac
7205 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7206 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7207 test "$enable_vtable_verify" != no; then
7208 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7211 # If we are building libmpx, bootstrap it.
7212 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7213 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7216 # Determine whether gdb needs tk/tcl or not.
7217 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7218 # and in that case we want gdb to be built without tk. Ugh!
7219 # In fact I believe gdb is the *only* package directly dependent on tk,
7220 # so we should be able to put the 'maybe's in unconditionally and
7221 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7222 # 100% sure that that's safe though.
7224 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7225 case "$enable_gdbtk" in
7227 GDB_TK="" ;;
7228 yes)
7229 GDB_TK="${gdb_tk}" ;;
7231 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7232 # distro. Eventually someone will fix this and move Insight, nee
7233 # gdbtk to a separate directory.
7234 if test -d ${srcdir}/gdb/gdbtk ; then
7235 GDB_TK="${gdb_tk}"
7236 else
7237 GDB_TK=""
7240 esac
7241 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7242 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7244 # Strip out unwanted targets.
7246 # While at that, we remove Makefiles if we were started for recursive
7247 # configuration, so that the top-level Makefile reconfigures them,
7248 # like we used to do when configure itself was recursive.
7250 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7251 # but now we're fixing up the Makefile ourselves with the additional
7252 # commands passed to AC_CONFIG_FILES. Use separate variables
7253 # extrasub-{build,host,target} not because there is any reason to split
7254 # the substitutions up that way, but only to remain below the limit of
7255 # 99 commands in a script, for HP-UX sed.
7257 # Do not nest @if/@endif or @unless/@endunless pairs, because
7258 # configure will not warn you at all.
7260 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7261 yes:yes:*\ gold\ *:*,c++,*) ;;
7262 yes:yes:*\ gold\ *:*)
7263 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7265 esac
7267 extrasub_build=
7268 for module in ${build_configdirs} ; do
7269 if test -z "${no_recursion}" \
7270 && test -f ${build_subdir}/${module}/Makefile; then
7271 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7272 rm -f ${build_subdir}/${module}/Makefile
7274 extrasub_build="$extrasub_build
7275 /^@if build-$module\$/d
7276 /^@endif build-$module\$/d
7277 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7278 /^@if build-$module-$bootstrap_suffix\$/d
7279 /^@endif build-$module-$bootstrap_suffix\$/d
7280 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7281 done
7282 extrasub_host=
7283 for module in ${configdirs} ; do
7284 if test -z "${no_recursion}"; then
7285 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7286 if test -f ${file}; then
7287 echo 1>&2 "*** removing ${file} to force reconfigure"
7288 rm -f ${file}
7290 done
7292 case ${module},${bootstrap_fixincludes} in
7293 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7294 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7295 esac
7296 extrasub_host="$extrasub_host
7297 /^@if $module\$/d
7298 /^@endif $module\$/d
7299 /^@unless $module\$/,/^@endunless $module\$/d
7300 /^@if $module-$host_bootstrap_suffix\$/d
7301 /^@endif $module-$host_bootstrap_suffix\$/d
7302 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7303 done
7304 extrasub_target=
7305 for module in ${target_configdirs} ; do
7306 if test -z "${no_recursion}" \
7307 && test -f ${target_subdir}/${module}/Makefile; then
7308 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7309 rm -f ${target_subdir}/${module}/Makefile
7312 # We only bootstrap target libraries listed in bootstrap_target_libs.
7313 case $bootstrap_target_libs in
7314 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7315 *) target_bootstrap_suffix=no-bootstrap ;;
7316 esac
7318 extrasub_target="$extrasub_target
7319 /^@if target-$module\$/d
7320 /^@endif target-$module\$/d
7321 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7322 /^@if target-$module-$target_bootstrap_suffix\$/d
7323 /^@endif target-$module-$target_bootstrap_suffix\$/d
7324 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7325 done
7327 # Do the final fixup along with target modules.
7328 extrasub_target="$extrasub_target
7329 /^@if /,/^@endif /d
7330 /^@unless /d
7331 /^@endunless /d"
7333 # Create the serialization dependencies. This uses a temporary file.
7335 # Check whether --enable-serial-configure was given.
7336 if test "${enable_serial_configure+set}" = set; then :
7337 enableval=$enable_serial_configure;
7341 case ${enable_serial_configure} in
7342 yes)
7343 enable_serial_build_configure=yes
7344 enable_serial_host_configure=yes
7345 enable_serial_target_configure=yes
7347 esac
7349 # These force 'configure's to be done one at a time, to avoid problems
7350 # with contention over a shared config.cache.
7351 rm -f serdep.tmp
7352 echo '# serdep.tmp' > serdep.tmp
7353 olditem=
7354 test "x${enable_serial_build_configure}" = xyes &&
7355 for item in ${build_configdirs} ; do
7356 case ${olditem} in
7357 "") ;;
7358 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7359 esac
7360 olditem=${item}
7361 done
7362 olditem=
7363 test "x${enable_serial_host_configure}" = xyes &&
7364 for item in ${configdirs} ; do
7365 case ${olditem} in
7366 "") ;;
7367 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7368 esac
7369 olditem=${item}
7370 done
7371 olditem=
7372 test "x${enable_serial_target_configure}" = xyes &&
7373 for item in ${target_configdirs} ; do
7374 case ${olditem} in
7375 "") ;;
7376 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7377 esac
7378 olditem=${item}
7379 done
7380 serialization_dependencies=serdep.tmp
7383 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7384 # target, nonopt, and variable assignments. These are the ones we
7385 # might not want to pass down to subconfigures. The exception being
7386 # --cache-file=/dev/null, which is used to turn off the use of cache
7387 # files altogether, and which should be passed on to subconfigures.
7388 # Also strip program-prefix, program-suffix, and program-transform-name,
7389 # so that we can pass down a consistent program-transform-name.
7390 baseargs=
7391 tbaseargs=
7392 keep_next=no
7393 skip_next=no
7394 eval "set -- $ac_configure_args"
7395 for ac_arg
7397 if test X"$skip_next" = X"yes"; then
7398 skip_next=no
7399 continue
7401 if test X"$keep_next" = X"yes"; then
7402 case $ac_arg in
7403 *\'*)
7404 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7405 esac
7406 baseargs="$baseargs '$ac_arg'"
7407 tbaseargs="$tbaseargs '$ac_arg'"
7408 keep_next=no
7409 continue
7412 # Handle separated arguments. Based on the logic generated by
7413 # autoconf 2.59.
7414 case $ac_arg in
7415 *=* | --config-cache | -C | -disable-* | --disable-* \
7416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7418 | -with-* | --with-* | -without-* | --without-* | --x)
7419 separate_arg=no
7422 separate_arg=yes
7425 separate_arg=no
7427 esac
7429 skip_targ=no
7430 case $ac_arg in
7432 --with-* | --without-*)
7433 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7435 case $libopt in
7436 *[-_]include)
7437 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7439 *[-_]lib)
7440 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7443 lib=$libopt
7445 esac
7448 case $lib in
7449 mpc | mpfr | gmp | isl)
7450 # If we're processing --with-$lib, --with-$lib-include or
7451 # --with-$lib-lib, for one of the libs above, and target is
7452 # different from host, don't pass the current argument to any
7453 # target library's configure.
7454 if test x$is_cross_compiler = xyes; then
7455 skip_targ=yes
7458 esac
7460 esac
7462 case "$ac_arg" in
7463 --cache-file=/dev/null | \
7464 -cache-file=/dev/null )
7465 # Handled here to avoid the test to skip args below.
7466 baseargs="$baseargs '$ac_arg'"
7467 tbaseargs="$tbaseargs '$ac_arg'"
7468 # Assert: $separate_arg should always be no.
7469 keep_next=$separate_arg
7471 --no*)
7472 continue
7474 --c* | \
7475 --sr* | \
7476 --ho* | \
7477 --bu* | \
7478 --t* | \
7479 --program-* | \
7480 -cache_file* | \
7481 -srcdir* | \
7482 -host* | \
7483 -build* | \
7484 -target* | \
7485 -program-prefix* | \
7486 -program-suffix* | \
7487 -program-transform-name* )
7488 skip_next=$separate_arg
7489 continue
7492 # An option. Add it.
7493 case $ac_arg in
7494 *\'*)
7495 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7496 esac
7497 baseargs="$baseargs '$ac_arg'"
7498 if test X"$skip_targ" = Xno; then
7499 tbaseargs="$tbaseargs '$ac_arg'"
7501 keep_next=$separate_arg
7504 # Either a variable assignment, or a nonopt (triplet). Don't
7505 # pass it down; let the Makefile handle this.
7506 continue
7508 esac
7509 done
7510 # Remove the initial space we just introduced and, as these will be
7511 # expanded by make, quote '$'.
7512 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7514 # Add in --program-transform-name, after --program-prefix and
7515 # --program-suffix have been applied to it. Autoconf has already
7516 # doubled dollar signs and backslashes in program_transform_name; we want
7517 # the backslashes un-doubled, and then the entire thing wrapped in single
7518 # quotes, because this will be expanded first by make and then by the shell.
7519 # Also, because we want to override the logic in subdir configure scripts to
7520 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7521 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7522 ${program_transform_name}
7523 EOF_SED
7524 gcc_transform_name=`cat conftestsed.out`
7525 rm -f conftestsed.out
7526 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7527 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7528 if test "$silent" = yes; then
7529 baseargs="$baseargs --silent"
7530 tbaseargs="$tbaseargs --silent"
7532 baseargs="$baseargs --disable-option-checking"
7533 tbaseargs="$tbaseargs --disable-option-checking"
7535 # Record and document user additions to sub configure arguments.
7540 # For the build-side libraries, we just need to pretend we're native,
7541 # and not use the same cache file. Multilibs are neither needed nor
7542 # desired. We can't even use the same cache file for all build-side
7543 # libraries, as they're compiled differently; some with C, some with
7544 # C++ or with different feature-enabling options.
7545 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7547 # For host modules, accept cache file option, or specification as blank.
7548 case "${cache_file}" in
7549 "") # empty
7550 cache_file_option="" ;;
7551 /* | [A-Za-z]:[\\/]* ) # absolute path
7552 cache_file_option="--cache-file=${cache_file}" ;;
7553 *) # relative path
7554 cache_file_option="--cache-file=../${cache_file}" ;;
7555 esac
7557 # Host dirs don't like to share a cache file either, horribly enough.
7558 # This seems to be due to autoconf 2.5x stupidity.
7559 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7561 target_configargs="$target_configargs ${tbaseargs}"
7563 # Passing a --with-cross-host argument lets the target libraries know
7564 # whether they are being built with a cross-compiler or being built
7565 # native. However, it would be better to use other mechanisms to make the
7566 # sorts of decisions they want to make on this basis. Please consider
7567 # this option to be deprecated. FIXME.
7568 if test x${is_cross_compiler} = xyes ; then
7569 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7572 # Special user-friendly check for native x86_64-linux build, if
7573 # multilib is not explicitly enabled.
7574 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7575 x86_64-*linux*:yes:$build:$build:)
7576 # Make sure we have a development environment that handles 32-bit
7577 dev64=no
7578 echo "int main () { return 0; }" > conftest.c
7579 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7580 if test $? = 0 ; then
7581 if test -s conftest || test -s conftest.exe ; then
7582 dev64=yes
7585 rm -f conftest*
7586 if test x${dev64} != xyes ; then
7587 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
7590 esac
7592 # Default to --enable-multilib.
7593 if test x${enable_multilib} = x ; then
7594 target_configargs="--enable-multilib ${target_configargs}"
7597 # Pass --with-newlib if appropriate. Note that target_configdirs has
7598 # changed from the earlier setting of with_newlib.
7599 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7600 target_configargs="--with-newlib ${target_configargs}"
7603 # Different target subdirs use different values of certain variables
7604 # (notably CXX). Worse, multilibs use *lots* of different values.
7605 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7606 # it doesn't automatically accept command-line overrides of them.
7607 # This means it's not safe for target subdirs to share a cache file,
7608 # which is disgusting, but there you have it. Hopefully this can be
7609 # fixed in future. It's still worthwhile to use a cache file for each
7610 # directory. I think.
7612 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7613 # We need to pass --target, as newer autoconf's requires consistency
7614 # for target_alias and gcc doesn't manage it consistently.
7615 target_configargs="--cache-file=./config.cache ${target_configargs}"
7617 FLAGS_FOR_TARGET=
7618 case " $target_configdirs " in
7619 *" newlib "*)
7620 case " $target_configargs " in
7621 *" --with-newlib "*)
7622 case "$target" in
7623 *-cygwin*)
7624 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7626 esac
7628 # If we're not building GCC, don't discard standard headers.
7629 if test -d ${srcdir}/gcc; then
7630 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7632 if test "${build}" != "${host}"; then
7633 # On Canadian crosses, CC_FOR_TARGET will have already been set
7634 # by `configure', so we won't have an opportunity to add -Bgcc/
7635 # to it. This is right: we don't want to search that directory
7636 # for binaries, but we want the header files in there, so add
7637 # them explicitly.
7638 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7640 # Someone might think of using the pre-installed headers on
7641 # Canadian crosses, in case the installed compiler is not fully
7642 # compatible with the compiler being built. In this case, it
7643 # would be better to flag an error than risking having
7644 # incompatible object files being constructed. We can't
7645 # guarantee that an error will be flagged, but let's hope the
7646 # compiler will do it, when presented with incompatible header
7647 # files.
7651 case "${target}-${is_cross_compiler}" in
7652 i[3456789]86-*-linux*-no)
7653 # Here host == target, so we don't need to build gcc,
7654 # so we don't want to discard standard headers.
7655 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7658 # If we're building newlib, use its generic headers last, but search
7659 # for any libc-related directories first (so make it the last -B
7660 # switch).
7661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7663 # If we're building libgloss, find the startup file, simulator library
7664 # and linker script.
7665 case " $target_configdirs " in
7666 *" libgloss "*)
7667 # Look for startup file, simulator library and maybe linker script.
7668 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7669 # Look for libnosys.a in case the target needs it.
7670 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7671 # Most targets have the linker script in the source directory.
7672 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7674 esac
7676 esac
7678 esac
7680 esac
7682 case "$target" in
7683 x86_64-*mingw* | *-w64-mingw*)
7684 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7685 # however, use a symlink named 'mingw' in ${prefix} .
7686 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7688 *-mingw*)
7689 # MinGW can't be handled as Cygwin above since it does not use newlib.
7690 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'
7692 esac
7694 # Allow the user to override the flags for
7695 # our build compiler if desired.
7696 if test x"${build}" = x"${host}" ; then
7697 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7698 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7699 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7702 # On Canadian crosses, we'll be searching the right directories for
7703 # the previously-installed cross compiler, so don't bother to add
7704 # flags for directories within the install tree of the compiler
7705 # being built; programs in there won't even run.
7706 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7707 # Search for pre-installed headers if nothing else fits.
7708 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7711 if test "x${use_gnu_ld}" = x &&
7712 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7713 # Arrange for us to find uninstalled linker scripts.
7714 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7717 # Search for other target-specific linker scripts and such.
7718 case "${target}" in
7719 mep*)
7720 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7722 esac
7724 # Makefile fragments.
7725 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7727 eval fragval=\$$frag
7728 if test $fragval != /dev/null; then
7729 eval $frag=${srcdir}/$fragval
7731 done
7737 # Miscellanea: directories, flags, etc.
7746 # Build module lists & subconfigure args.
7750 # Host module lists & subconfigure args.
7755 # Target module lists & subconfigure args.
7759 # Build tools.
7777 # Generate default definitions for YACC, M4, LEX and other programs that run
7778 # on the build machine. These are used if the Makefile can't locate these
7779 # programs in objdir.
7780 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7782 for ac_prog in 'bison -y' byacc yacc
7784 # Extract the first word of "$ac_prog", so it can be a program name with args.
7785 set dummy $ac_prog; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_YACC+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 if test -n "$YACC"; then
7792 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_YACC="$ac_prog"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7805 done
7806 done
7807 IFS=$as_save_IFS
7811 YACC=$ac_cv_prog_YACC
7812 if test -n "$YACC"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7814 $as_echo "$YACC" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7821 test -n "$YACC" && break
7822 done
7823 test -n "$YACC" || YACC="$MISSING bison -y"
7825 case " $build_configdirs " in
7826 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7827 esac
7829 for ac_prog in bison
7831 # Extract the first word of "$ac_prog", so it can be a program name with args.
7832 set dummy $ac_prog; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_BISON+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$BISON"; then
7839 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_BISON="$ac_prog"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7852 done
7853 done
7854 IFS=$as_save_IFS
7858 BISON=$ac_cv_prog_BISON
7859 if test -n "$BISON"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7861 $as_echo "$BISON" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7868 test -n "$BISON" && break
7869 done
7870 test -n "$BISON" || BISON="$MISSING bison"
7872 case " $build_configdirs " in
7873 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7874 esac
7876 for ac_prog in gm4 gnum4 m4
7878 # Extract the first word of "$ac_prog", so it can be a program name with args.
7879 set dummy $ac_prog; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_M4+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 if test -n "$M4"; then
7886 ac_cv_prog_M4="$M4" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_M4="$ac_prog"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7899 done
7900 done
7901 IFS=$as_save_IFS
7905 M4=$ac_cv_prog_M4
7906 if test -n "$M4"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7908 $as_echo "$M4" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7915 test -n "$M4" && break
7916 done
7917 test -n "$M4" || M4="$MISSING m4"
7919 case " $build_configdirs " in
7920 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7921 esac
7923 for ac_prog in flex lex
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_LEX+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$LEX"; then
7933 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_LEX="$ac_prog"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7946 done
7947 done
7948 IFS=$as_save_IFS
7952 LEX=$ac_cv_prog_LEX
7953 if test -n "$LEX"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7955 $as_echo "$LEX" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7962 test -n "$LEX" && break
7963 done
7964 test -n "$LEX" || LEX="$MISSING flex"
7966 case " $build_configdirs " in
7967 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7968 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7969 esac
7971 for ac_prog in flex
7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
7974 set dummy $ac_prog; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_FLEX+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$FLEX"; then
7981 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_FLEX="$ac_prog"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7994 done
7995 done
7996 IFS=$as_save_IFS
8000 FLEX=$ac_cv_prog_FLEX
8001 if test -n "$FLEX"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8003 $as_echo "$FLEX" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8010 test -n "$FLEX" && break
8011 done
8012 test -n "$FLEX" || FLEX="$MISSING flex"
8014 case " $build_configdirs " in
8015 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8016 esac
8018 for ac_prog in makeinfo
8020 # Extract the first word of "$ac_prog", so it can be a program name with args.
8021 set dummy $ac_prog; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_MAKEINFO+:} false; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 if test -n "$MAKEINFO"; then
8028 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_MAKEINFO="$ac_prog"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8041 done
8042 done
8043 IFS=$as_save_IFS
8047 MAKEINFO=$ac_cv_prog_MAKEINFO
8048 if test -n "$MAKEINFO"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8050 $as_echo "$MAKEINFO" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8057 test -n "$MAKEINFO" && break
8058 done
8059 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8061 case " $build_configdirs " in
8062 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8065 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8066 # higher, else we use the "missing" dummy.
8067 if ${MAKEINFO} --version \
8068 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8070 else
8071 MAKEINFO="$MISSING makeinfo"
8075 esac
8077 # FIXME: expect and dejagnu may become build tools?
8079 for ac_prog in expect
8081 # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_EXPECT+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$EXPECT"; then
8089 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_EXPECT="$ac_prog"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8108 EXPECT=$ac_cv_prog_EXPECT
8109 if test -n "$EXPECT"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8111 $as_echo "$EXPECT" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8118 test -n "$EXPECT" && break
8119 done
8120 test -n "$EXPECT" || EXPECT="expect"
8122 case " $configdirs " in
8123 *" expect "*)
8124 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8126 esac
8128 for ac_prog in runtest
8130 # Extract the first word of "$ac_prog", so it can be a program name with args.
8131 set dummy $ac_prog; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_RUNTEST+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$RUNTEST"; then
8138 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_RUNTEST="$ac_prog"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8157 RUNTEST=$ac_cv_prog_RUNTEST
8158 if test -n "$RUNTEST"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8160 $as_echo "$RUNTEST" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8167 test -n "$RUNTEST" && break
8168 done
8169 test -n "$RUNTEST" || RUNTEST="runtest"
8171 case " $configdirs " in
8172 *" dejagnu "*)
8173 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8175 esac
8178 # Host tools.
8179 ncn_tool_prefix=
8180 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8181 ncn_target_tool_prefix=
8182 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8186 if test -n "$AR"; then
8187 ac_cv_prog_AR=$AR
8188 elif test -n "$ac_cv_prog_AR"; then
8189 AR=$ac_cv_prog_AR
8192 if test -n "$ac_cv_prog_AR"; then
8193 for ncn_progname in ar; do
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8195 set dummy ${ncn_progname}; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if ${ac_cv_prog_AR+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if test -n "$AR"; then
8202 ac_cv_prog_AR="$AR" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_AR="${ncn_progname}"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8215 done
8216 done
8217 IFS=$as_save_IFS
8221 AR=$ac_cv_prog_AR
8222 if test -n "$AR"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8224 $as_echo "$AR" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8231 done
8234 for ncn_progname in ar; do
8235 if test -n "$ncn_tool_prefix"; then
8236 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8237 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_AR+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 if test -n "$AR"; then
8244 ac_cv_prog_AR="$AR" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8257 done
8258 done
8259 IFS=$as_save_IFS
8263 AR=$ac_cv_prog_AR
8264 if test -n "$AR"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8266 $as_echo "$AR" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8274 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8276 set dummy ${ncn_progname}; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_AR+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 if test -n "$AR"; then
8283 ac_cv_prog_AR="$AR" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_AR="${ncn_progname}"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8296 done
8297 done
8298 IFS=$as_save_IFS
8302 AR=$ac_cv_prog_AR
8303 if test -n "$AR"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8305 $as_echo "$AR" >&6; }
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8313 test -n "$ac_cv_prog_AR" && break
8314 done
8316 if test -z "$ac_cv_prog_AR" ; then
8317 set dummy ar
8318 if test $build = $host ; then
8319 AR="$2"
8320 else
8321 AR="${ncn_tool_prefix}$2"
8327 if test -n "$AS"; then
8328 ac_cv_prog_AS=$AS
8329 elif test -n "$ac_cv_prog_AS"; then
8330 AS=$ac_cv_prog_AS
8333 if test -n "$ac_cv_prog_AS"; then
8334 for ncn_progname in as; do
8335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8336 set dummy ${ncn_progname}; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_AS+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 if test -n "$AS"; then
8343 ac_cv_prog_AS="$AS" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352 ac_cv_prog_AS="${ncn_progname}"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8362 AS=$ac_cv_prog_AS
8363 if test -n "$AS"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8365 $as_echo "$AS" >&6; }
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8372 done
8375 for ncn_progname in as; do
8376 if test -n "$ncn_tool_prefix"; then
8377 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8378 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AS+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$AS"; then
8385 ac_cv_prog_AS="$AS" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8404 AS=$ac_cv_prog_AS
8405 if test -n "$AS"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8407 $as_echo "$AS" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8417 set dummy ${ncn_progname}; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if ${ac_cv_prog_AS+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 if test -n "$AS"; then
8424 ac_cv_prog_AS="$AS" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_AS="${ncn_progname}"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8437 done
8438 done
8439 IFS=$as_save_IFS
8443 AS=$ac_cv_prog_AS
8444 if test -n "$AS"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8446 $as_echo "$AS" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8454 test -n "$ac_cv_prog_AS" && break
8455 done
8457 if test -z "$ac_cv_prog_AS" ; then
8458 set dummy as
8459 if test $build = $host ; then
8460 AS="$2"
8461 else
8462 AS="${ncn_tool_prefix}$2"
8468 if test -n "$DLLTOOL"; then
8469 ac_cv_prog_DLLTOOL=$DLLTOOL
8470 elif test -n "$ac_cv_prog_DLLTOOL"; then
8471 DLLTOOL=$ac_cv_prog_DLLTOOL
8474 if test -n "$ac_cv_prog_DLLTOOL"; then
8475 for ncn_progname in dlltool; do
8476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8477 set dummy ${ncn_progname}; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_DLLTOOL+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test -n "$DLLTOOL"; then
8484 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_DLLTOOL="${ncn_progname}"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8497 done
8498 done
8499 IFS=$as_save_IFS
8503 DLLTOOL=$ac_cv_prog_DLLTOOL
8504 if test -n "$DLLTOOL"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8506 $as_echo "$DLLTOOL" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8513 done
8516 for ncn_progname in dlltool; do
8517 if test -n "$ncn_tool_prefix"; then
8518 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8519 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if ${ac_cv_prog_DLLTOOL+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 if test -n "$DLLTOOL"; then
8526 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8539 done
8540 done
8541 IFS=$as_save_IFS
8545 DLLTOOL=$ac_cv_prog_DLLTOOL
8546 if test -n "$DLLTOOL"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8548 $as_echo "$DLLTOOL" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8556 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8558 set dummy ${ncn_progname}; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_DLLTOOL+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$DLLTOOL"; then
8565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_DLLTOOL="${ncn_progname}"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8584 DLLTOOL=$ac_cv_prog_DLLTOOL
8585 if test -n "$DLLTOOL"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8587 $as_echo "$DLLTOOL" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8595 test -n "$ac_cv_prog_DLLTOOL" && break
8596 done
8598 if test -z "$ac_cv_prog_DLLTOOL" ; then
8599 set dummy dlltool
8600 if test $build = $host ; then
8601 DLLTOOL="$2"
8602 else
8603 DLLTOOL="${ncn_tool_prefix}$2"
8609 if test -n "$LD"; then
8610 ac_cv_prog_LD=$LD
8611 elif test -n "$ac_cv_prog_LD"; then
8612 LD=$ac_cv_prog_LD
8615 if test -n "$ac_cv_prog_LD"; then
8616 for ncn_progname in ld; do
8617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8618 set dummy ${ncn_progname}; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_LD+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test -n "$LD"; then
8625 ac_cv_prog_LD="$LD" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_LD="${ncn_progname}"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8638 done
8639 done
8640 IFS=$as_save_IFS
8644 LD=$ac_cv_prog_LD
8645 if test -n "$LD"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8647 $as_echo "$LD" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8654 done
8657 for ncn_progname in ld; do
8658 if test -n "$ncn_tool_prefix"; then
8659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8660 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if ${ac_cv_prog_LD+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 if test -n "$LD"; then
8667 ac_cv_prog_LD="$LD" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8676 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8680 done
8681 done
8682 IFS=$as_save_IFS
8686 LD=$ac_cv_prog_LD
8687 if test -n "$LD"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8689 $as_echo "$LD" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8697 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8699 set dummy ${ncn_progname}; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_prog_LD+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 if test -n "$LD"; then
8706 ac_cv_prog_LD="$LD" # Let the user override the test.
8707 else
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8715 ac_cv_prog_LD="${ncn_progname}"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8719 done
8720 done
8721 IFS=$as_save_IFS
8725 LD=$ac_cv_prog_LD
8726 if test -n "$LD"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8728 $as_echo "$LD" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8736 test -n "$ac_cv_prog_LD" && break
8737 done
8739 if test -z "$ac_cv_prog_LD" ; then
8740 set dummy ld
8741 if test $build = $host ; then
8742 LD="$2"
8743 else
8744 LD="${ncn_tool_prefix}$2"
8750 if test -n "$LIPO"; then
8751 ac_cv_prog_LIPO=$LIPO
8752 elif test -n "$ac_cv_prog_LIPO"; then
8753 LIPO=$ac_cv_prog_LIPO
8756 if test -n "$ac_cv_prog_LIPO"; then
8757 for ncn_progname in lipo; do
8758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8759 set dummy ${ncn_progname}; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_prog_LIPO+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 if test -n "$LIPO"; then
8766 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 ac_cv_prog_LIPO="${ncn_progname}"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 break 2
8779 done
8780 done
8781 IFS=$as_save_IFS
8785 LIPO=$ac_cv_prog_LIPO
8786 if test -n "$LIPO"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8788 $as_echo "$LIPO" >&6; }
8789 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8795 done
8798 for ncn_progname in lipo; do
8799 if test -n "$ncn_tool_prefix"; then
8800 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_LIPO+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 if test -n "$LIPO"; then
8808 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8809 else
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8821 done
8822 done
8823 IFS=$as_save_IFS
8827 LIPO=$ac_cv_prog_LIPO
8828 if test -n "$LIPO"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8830 $as_echo "$LIPO" >&6; }
8831 else
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8838 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8840 set dummy ${ncn_progname}; ac_word=$2
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842 $as_echo_n "checking for $ac_word... " >&6; }
8843 if ${ac_cv_prog_LIPO+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 if test -n "$LIPO"; then
8847 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_LIPO="${ncn_progname}"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8860 done
8861 done
8862 IFS=$as_save_IFS
8866 LIPO=$ac_cv_prog_LIPO
8867 if test -n "$LIPO"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8869 $as_echo "$LIPO" >&6; }
8870 else
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8877 test -n "$ac_cv_prog_LIPO" && break
8878 done
8880 if test -z "$ac_cv_prog_LIPO" ; then
8881 set dummy lipo
8882 if test $build = $host ; then
8883 LIPO="$2"
8884 else
8885 LIPO="${ncn_tool_prefix}$2"
8891 if test -n "$NM"; then
8892 ac_cv_prog_NM=$NM
8893 elif test -n "$ac_cv_prog_NM"; then
8894 NM=$ac_cv_prog_NM
8897 if test -n "$ac_cv_prog_NM"; then
8898 for ncn_progname in nm; do
8899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8900 set dummy ${ncn_progname}; ac_word=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if ${ac_cv_prog_NM+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -n "$NM"; then
8907 ac_cv_prog_NM="$NM" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8916 ac_cv_prog_NM="${ncn_progname}"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8920 done
8921 done
8922 IFS=$as_save_IFS
8926 NM=$ac_cv_prog_NM
8927 if test -n "$NM"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8929 $as_echo "$NM" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8936 done
8939 for ncn_progname in nm; do
8940 if test -n "$ncn_tool_prefix"; then
8941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if ${ac_cv_prog_NM+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 if test -n "$NM"; then
8949 ac_cv_prog_NM="$NM" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 break 2
8962 done
8963 done
8964 IFS=$as_save_IFS
8968 NM=$ac_cv_prog_NM
8969 if test -n "$NM"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8971 $as_echo "$NM" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8979 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8981 set dummy ${ncn_progname}; ac_word=$2
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 $as_echo_n "checking for $ac_word... " >&6; }
8984 if ${ac_cv_prog_NM+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 if test -n "$NM"; then
8988 ac_cv_prog_NM="$NM" # Let the user override the test.
8989 else
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8997 ac_cv_prog_NM="${ncn_progname}"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9001 done
9002 done
9003 IFS=$as_save_IFS
9007 NM=$ac_cv_prog_NM
9008 if test -n "$NM"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9010 $as_echo "$NM" >&6; }
9011 else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9018 test -n "$ac_cv_prog_NM" && break
9019 done
9021 if test -z "$ac_cv_prog_NM" ; then
9022 set dummy nm
9023 if test $build = $host ; then
9024 NM="$2"
9025 else
9026 NM="${ncn_tool_prefix}$2"
9032 if test -n "$RANLIB"; then
9033 ac_cv_prog_RANLIB=$RANLIB
9034 elif test -n "$ac_cv_prog_RANLIB"; then
9035 RANLIB=$ac_cv_prog_RANLIB
9038 if test -n "$ac_cv_prog_RANLIB"; then
9039 for ncn_progname in ranlib; do
9040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9041 set dummy ${ncn_progname}; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_prog_RANLIB+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 if test -n "$RANLIB"; then
9048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9049 else
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057 ac_cv_prog_RANLIB="${ncn_progname}"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9061 done
9062 done
9063 IFS=$as_save_IFS
9067 RANLIB=$ac_cv_prog_RANLIB
9068 if test -n "$RANLIB"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9070 $as_echo "$RANLIB" >&6; }
9071 else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9077 done
9080 for ncn_progname in ranlib; do
9081 if test -n "$ncn_tool_prefix"; then
9082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_RANLIB+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 if test -n "$RANLIB"; then
9090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9103 done
9104 done
9105 IFS=$as_save_IFS
9109 RANLIB=$ac_cv_prog_RANLIB
9110 if test -n "$RANLIB"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9112 $as_echo "$RANLIB" >&6; }
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9120 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9122 set dummy ${ncn_progname}; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_prog_RANLIB+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 if test -n "$RANLIB"; then
9129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9130 else
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138 ac_cv_prog_RANLIB="${ncn_progname}"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9142 done
9143 done
9144 IFS=$as_save_IFS
9148 RANLIB=$ac_cv_prog_RANLIB
9149 if test -n "$RANLIB"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9151 $as_echo "$RANLIB" >&6; }
9152 else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9159 test -n "$ac_cv_prog_RANLIB" && break
9160 done
9162 if test -z "$ac_cv_prog_RANLIB" ; then
9163 RANLIB="true"
9168 if test -n "$STRIP"; then
9169 ac_cv_prog_STRIP=$STRIP
9170 elif test -n "$ac_cv_prog_STRIP"; then
9171 STRIP=$ac_cv_prog_STRIP
9174 if test -n "$ac_cv_prog_STRIP"; then
9175 for ncn_progname in strip; do
9176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9177 set dummy ${ncn_progname}; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_prog_STRIP+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 if test -n "$STRIP"; then
9184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_STRIP="${ncn_progname}"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9197 done
9198 done
9199 IFS=$as_save_IFS
9203 STRIP=$ac_cv_prog_STRIP
9204 if test -n "$STRIP"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9206 $as_echo "$STRIP" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9213 done
9216 for ncn_progname in strip; do
9217 if test -n "$ncn_tool_prefix"; then
9218 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9219 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if ${ac_cv_prog_STRIP+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 if test -n "$STRIP"; then
9226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 break 2
9239 done
9240 done
9241 IFS=$as_save_IFS
9245 STRIP=$ac_cv_prog_STRIP
9246 if test -n "$STRIP"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9248 $as_echo "$STRIP" >&6; }
9249 else
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9256 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9258 set dummy ${ncn_progname}; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if ${ac_cv_prog_STRIP+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 if test -n "$STRIP"; then
9265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9266 else
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274 ac_cv_prog_STRIP="${ncn_progname}"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9278 done
9279 done
9280 IFS=$as_save_IFS
9284 STRIP=$ac_cv_prog_STRIP
9285 if test -n "$STRIP"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9287 $as_echo "$STRIP" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9295 test -n "$ac_cv_prog_STRIP" && break
9296 done
9298 if test -z "$ac_cv_prog_STRIP" ; then
9299 STRIP="true"
9304 if test -n "$WINDRES"; then
9305 ac_cv_prog_WINDRES=$WINDRES
9306 elif test -n "$ac_cv_prog_WINDRES"; then
9307 WINDRES=$ac_cv_prog_WINDRES
9310 if test -n "$ac_cv_prog_WINDRES"; then
9311 for ncn_progname in windres; do
9312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9313 set dummy ${ncn_progname}; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_prog_WINDRES+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test -n "$WINDRES"; then
9320 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9321 else
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9329 ac_cv_prog_WINDRES="${ncn_progname}"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9333 done
9334 done
9335 IFS=$as_save_IFS
9339 WINDRES=$ac_cv_prog_WINDRES
9340 if test -n "$WINDRES"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9342 $as_echo "$WINDRES" >&6; }
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9349 done
9352 for ncn_progname in windres; do
9353 if test -n "$ncn_tool_prefix"; then
9354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9355 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 $as_echo_n "checking for $ac_word... " >&6; }
9358 if ${ac_cv_prog_WINDRES+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 if test -n "$WINDRES"; then
9362 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9363 else
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9371 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9375 done
9376 done
9377 IFS=$as_save_IFS
9381 WINDRES=$ac_cv_prog_WINDRES
9382 if test -n "$WINDRES"; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9384 $as_echo "$WINDRES" >&6; }
9385 else
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9392 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9394 set dummy ${ncn_progname}; ac_word=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if ${ac_cv_prog_WINDRES+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 if test -n "$WINDRES"; then
9401 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9402 else
9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 for as_dir in $PATH
9406 IFS=$as_save_IFS
9407 test -z "$as_dir" && as_dir=.
9408 for ac_exec_ext in '' $ac_executable_extensions; do
9409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9410 ac_cv_prog_WINDRES="${ncn_progname}"
9411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 break 2
9414 done
9415 done
9416 IFS=$as_save_IFS
9420 WINDRES=$ac_cv_prog_WINDRES
9421 if test -n "$WINDRES"; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9423 $as_echo "$WINDRES" >&6; }
9424 else
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9431 test -n "$ac_cv_prog_WINDRES" && break
9432 done
9434 if test -z "$ac_cv_prog_WINDRES" ; then
9435 set dummy windres
9436 if test $build = $host ; then
9437 WINDRES="$2"
9438 else
9439 WINDRES="${ncn_tool_prefix}$2"
9445 if test -n "$WINDMC"; then
9446 ac_cv_prog_WINDMC=$WINDMC
9447 elif test -n "$ac_cv_prog_WINDMC"; then
9448 WINDMC=$ac_cv_prog_WINDMC
9451 if test -n "$ac_cv_prog_WINDMC"; then
9452 for ncn_progname in windmc; do
9453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9454 set dummy ${ncn_progname}; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if ${ac_cv_prog_WINDMC+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 if test -n "$WINDMC"; then
9461 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9462 else
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 for as_dir in $PATH
9466 IFS=$as_save_IFS
9467 test -z "$as_dir" && as_dir=.
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9470 ac_cv_prog_WINDMC="${ncn_progname}"
9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9472 break 2
9474 done
9475 done
9476 IFS=$as_save_IFS
9480 WINDMC=$ac_cv_prog_WINDMC
9481 if test -n "$WINDMC"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9483 $as_echo "$WINDMC" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9490 done
9493 for ncn_progname in windmc; do
9494 if test -n "$ncn_tool_prefix"; then
9495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498 $as_echo_n "checking for $ac_word... " >&6; }
9499 if ${ac_cv_prog_WINDMC+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 if test -n "$WINDMC"; then
9503 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9504 else
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9508 IFS=$as_save_IFS
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 break 2
9516 done
9517 done
9518 IFS=$as_save_IFS
9522 WINDMC=$ac_cv_prog_WINDMC
9523 if test -n "$WINDMC"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9525 $as_echo "$WINDMC" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9533 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9535 set dummy ${ncn_progname}; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if ${ac_cv_prog_WINDMC+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 if test -n "$WINDMC"; then
9542 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_WINDMC="${ncn_progname}"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9561 WINDMC=$ac_cv_prog_WINDMC
9562 if test -n "$WINDMC"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9564 $as_echo "$WINDMC" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9572 test -n "$ac_cv_prog_WINDMC" && break
9573 done
9575 if test -z "$ac_cv_prog_WINDMC" ; then
9576 set dummy windmc
9577 if test $build = $host ; then
9578 WINDMC="$2"
9579 else
9580 WINDMC="${ncn_tool_prefix}$2"
9586 if test -n "$OBJCOPY"; then
9587 ac_cv_prog_OBJCOPY=$OBJCOPY
9588 elif test -n "$ac_cv_prog_OBJCOPY"; then
9589 OBJCOPY=$ac_cv_prog_OBJCOPY
9592 if test -n "$ac_cv_prog_OBJCOPY"; then
9593 for ncn_progname in objcopy; do
9594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9595 set dummy ${ncn_progname}; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_prog_OBJCOPY+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 if test -n "$OBJCOPY"; then
9602 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9603 else
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_prog_OBJCOPY="${ncn_progname}"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9615 done
9616 done
9617 IFS=$as_save_IFS
9621 OBJCOPY=$ac_cv_prog_OBJCOPY
9622 if test -n "$OBJCOPY"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9624 $as_echo "$OBJCOPY" >&6; }
9625 else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9631 done
9634 for ncn_progname in objcopy; do
9635 if test -n "$ncn_tool_prefix"; then
9636 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9637 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if ${ac_cv_prog_OBJCOPY+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 if test -n "$OBJCOPY"; then
9644 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9645 else
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 for as_dir in $PATH
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9653 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 break 2
9657 done
9658 done
9659 IFS=$as_save_IFS
9663 OBJCOPY=$ac_cv_prog_OBJCOPY
9664 if test -n "$OBJCOPY"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9666 $as_echo "$OBJCOPY" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9674 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9676 set dummy ${ncn_progname}; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_prog_OBJCOPY+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 if test -n "$OBJCOPY"; then
9683 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9684 else
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_OBJCOPY="${ncn_progname}"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9696 done
9697 done
9698 IFS=$as_save_IFS
9702 OBJCOPY=$ac_cv_prog_OBJCOPY
9703 if test -n "$OBJCOPY"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9705 $as_echo "$OBJCOPY" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9713 test -n "$ac_cv_prog_OBJCOPY" && break
9714 done
9716 if test -z "$ac_cv_prog_OBJCOPY" ; then
9717 set dummy objcopy
9718 if test $build = $host ; then
9719 OBJCOPY="$2"
9720 else
9721 OBJCOPY="${ncn_tool_prefix}$2"
9727 if test -n "$OBJDUMP"; then
9728 ac_cv_prog_OBJDUMP=$OBJDUMP
9729 elif test -n "$ac_cv_prog_OBJDUMP"; then
9730 OBJDUMP=$ac_cv_prog_OBJDUMP
9733 if test -n "$ac_cv_prog_OBJDUMP"; then
9734 for ncn_progname in objdump; do
9735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9736 set dummy ${ncn_progname}; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_OBJDUMP+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 if test -n "$OBJDUMP"; then
9743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_OBJDUMP="${ncn_progname}"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9756 done
9757 done
9758 IFS=$as_save_IFS
9762 OBJDUMP=$ac_cv_prog_OBJDUMP
9763 if test -n "$OBJDUMP"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9765 $as_echo "$OBJDUMP" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9772 done
9775 for ncn_progname in objdump; do
9776 if test -n "$ncn_tool_prefix"; then
9777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9778 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if ${ac_cv_prog_OBJDUMP+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 if test -n "$OBJDUMP"; then
9785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9786 else
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9794 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9804 OBJDUMP=$ac_cv_prog_OBJDUMP
9805 if test -n "$OBJDUMP"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9807 $as_echo "$OBJDUMP" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9815 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9817 set dummy ${ncn_progname}; ac_word=$2
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9819 $as_echo_n "checking for $ac_word... " >&6; }
9820 if ${ac_cv_prog_OBJDUMP+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 if test -n "$OBJDUMP"; then
9824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9825 else
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833 ac_cv_prog_OBJDUMP="${ncn_progname}"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9837 done
9838 done
9839 IFS=$as_save_IFS
9843 OBJDUMP=$ac_cv_prog_OBJDUMP
9844 if test -n "$OBJDUMP"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9846 $as_echo "$OBJDUMP" >&6; }
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9854 test -n "$ac_cv_prog_OBJDUMP" && break
9855 done
9857 if test -z "$ac_cv_prog_OBJDUMP" ; then
9858 set dummy objdump
9859 if test $build = $host ; then
9860 OBJDUMP="$2"
9861 else
9862 OBJDUMP="${ncn_tool_prefix}$2"
9868 if test -n "$READELF"; then
9869 ac_cv_prog_READELF=$READELF
9870 elif test -n "$ac_cv_prog_READELF"; then
9871 READELF=$ac_cv_prog_READELF
9874 if test -n "$ac_cv_prog_READELF"; then
9875 for ncn_progname in readelf; do
9876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9877 set dummy ${ncn_progname}; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if ${ac_cv_prog_READELF+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 if test -n "$READELF"; then
9884 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893 ac_cv_prog_READELF="${ncn_progname}"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9903 READELF=$ac_cv_prog_READELF
9904 if test -n "$READELF"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9906 $as_echo "$READELF" >&6; }
9907 else
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9913 done
9916 for ncn_progname in readelf; do
9917 if test -n "$ncn_tool_prefix"; then
9918 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9919 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if ${ac_cv_prog_READELF+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 if test -n "$READELF"; then
9926 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9927 else
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9939 done
9940 done
9941 IFS=$as_save_IFS
9945 READELF=$ac_cv_prog_READELF
9946 if test -n "$READELF"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9948 $as_echo "$READELF" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9956 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9958 set dummy ${ncn_progname}; ac_word=$2
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960 $as_echo_n "checking for $ac_word... " >&6; }
9961 if ${ac_cv_prog_READELF+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 if test -n "$READELF"; then
9965 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9966 else
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_prog_READELF="${ncn_progname}"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9978 done
9979 done
9980 IFS=$as_save_IFS
9984 READELF=$ac_cv_prog_READELF
9985 if test -n "$READELF"; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9987 $as_echo "$READELF" >&6; }
9988 else
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 $as_echo "no" >&6; }
9995 test -n "$ac_cv_prog_READELF" && break
9996 done
9998 if test -z "$ac_cv_prog_READELF" ; then
9999 set dummy readelf
10000 if test $build = $host ; then
10001 READELF="$2"
10002 else
10003 READELF="${ncn_tool_prefix}$2"
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10013 $as_echo_n "checking for -plugin option... " >&6; }
10015 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10016 plugin_option=
10017 for plugin in $plugin_names; do
10018 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10019 if test x$plugin_so = x$plugin; then
10020 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10022 if test x$plugin_so != x$plugin; then
10023 plugin_option="--plugin $plugin_so"
10024 break
10026 done
10027 if test -n "$ac_tool_prefix"; then
10028 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10029 set dummy ${ac_tool_prefix}ar; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if ${ac_cv_prog_AR+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 if test -n "$AR"; then
10036 ac_cv_prog_AR="$AR" # Let the user override the test.
10037 else
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 ac_cv_prog_AR="${ac_tool_prefix}ar"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10049 done
10050 done
10051 IFS=$as_save_IFS
10055 AR=$ac_cv_prog_AR
10056 if test -n "$AR"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10058 $as_echo "$AR" >&6; }
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10066 if test -z "$ac_cv_prog_AR"; then
10067 ac_ct_AR=$AR
10068 # Extract the first word of "ar", so it can be a program name with args.
10069 set dummy ar; ac_word=$2
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 $as_echo_n "checking for $ac_word... " >&6; }
10072 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 if test -n "$ac_ct_AR"; then
10076 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10077 else
10078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079 for as_dir in $PATH
10081 IFS=$as_save_IFS
10082 test -z "$as_dir" && as_dir=.
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10085 ac_cv_prog_ac_ct_AR="ar"
10086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 break 2
10089 done
10090 done
10091 IFS=$as_save_IFS
10095 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10096 if test -n "$ac_ct_AR"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10098 $as_echo "$ac_ct_AR" >&6; }
10099 else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10104 if test "x$ac_ct_AR" = x; then
10105 AR=""
10106 else
10107 case $cross_compiling:$ac_tool_warned in
10108 yes:)
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10111 ac_tool_warned=yes ;;
10112 esac
10113 AR=$ac_ct_AR
10115 else
10116 AR="$ac_cv_prog_AR"
10119 if test "${AR}" = "" ; then
10120 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10122 touch conftest.c
10123 ${AR} $plugin_option rc conftest.a conftest.c
10124 if test "$?" != 0; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10126 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10127 plugin_option=
10129 rm -f conftest.*
10130 if test -n "$plugin_option"; then
10131 PLUGIN_OPTION="$plugin_option"
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10133 $as_echo "$plugin_option" >&6; }
10134 else
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136 $as_echo "no" >&6; }
10139 AR_PLUGIN_OPTION=
10140 RANLIB_PLUGIN_OPTION=
10141 if test -n "$PLUGIN_OPTION"; then
10142 if $AR --help 2>&1 | grep -q "\--plugin"; then
10143 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10145 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10146 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10152 # Target tools.
10154 # Check whether --with-build-time-tools was given.
10155 if test "${with_build_time_tools+set}" = set; then :
10156 withval=$with_build_time_tools; case x"$withval" in
10157 x/*) ;;
10159 with_build_time_tools=
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10161 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10163 esac
10164 else
10165 with_build_time_tools=
10171 if test -n "$CC_FOR_TARGET"; then
10172 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10173 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10174 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10177 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10178 for ncn_progname in cc gcc; do
10179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10180 set dummy ${ncn_progname}; ac_word=$2
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182 $as_echo_n "checking for $ac_word... " >&6; }
10183 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 if test -n "$CC_FOR_TARGET"; then
10187 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10188 else
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10200 done
10201 done
10202 IFS=$as_save_IFS
10206 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10207 if test -n "$CC_FOR_TARGET"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10209 $as_echo "$CC_FOR_TARGET" >&6; }
10210 else
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10216 done
10219 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10220 for ncn_progname in cc gcc; do
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10223 if test -x $with_build_time_tools/${ncn_progname}; then
10224 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226 $as_echo "yes" >&6; }
10227 break
10228 else
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10232 done
10235 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10236 for ncn_progname in cc gcc; do
10237 if test -n "$ncn_target_tool_prefix"; then
10238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 if test -n "$CC_FOR_TARGET"; then
10246 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10247 else
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in $PATH
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
10253 for ac_exec_ext in '' $ac_executable_extensions; do
10254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10255 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257 break 2
10259 done
10260 done
10261 IFS=$as_save_IFS
10265 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10266 if test -n "$CC_FOR_TARGET"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10268 $as_echo "$CC_FOR_TARGET" >&6; }
10269 else
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10276 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10278 set dummy ${ncn_progname}; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 if test -n "$CC_FOR_TARGET"; then
10285 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10286 else
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 break 2
10298 done
10299 done
10300 IFS=$as_save_IFS
10304 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10305 if test -n "$CC_FOR_TARGET"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10307 $as_echo "$CC_FOR_TARGET" >&6; }
10308 else
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310 $as_echo "no" >&6; }
10315 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10316 done
10319 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10320 set dummy cc gcc
10321 if test $build = $target ; then
10322 CC_FOR_TARGET="$2"
10323 else
10324 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10326 else
10327 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10332 if test -n "$CXX_FOR_TARGET"; then
10333 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10334 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10335 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10338 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10339 for ncn_progname in c++ g++ cxx gxx; do
10340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10341 set dummy ${ncn_progname}; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 if test -n "$CXX_FOR_TARGET"; then
10348 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10349 else
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10361 done
10362 done
10363 IFS=$as_save_IFS
10367 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10368 if test -n "$CXX_FOR_TARGET"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10370 $as_echo "$CXX_FOR_TARGET" >&6; }
10371 else
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10377 done
10380 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10381 for ncn_progname in c++ g++ cxx gxx; do
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10383 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10384 if test -x $with_build_time_tools/${ncn_progname}; then
10385 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387 $as_echo "yes" >&6; }
10388 break
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10393 done
10396 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10397 for ncn_progname in c++ g++ cxx gxx; do
10398 if test -n "$ncn_target_tool_prefix"; then
10399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10400 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 if test -n "$CXX_FOR_TARGET"; then
10407 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10408 else
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10420 done
10421 done
10422 IFS=$as_save_IFS
10426 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10427 if test -n "$CXX_FOR_TARGET"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10429 $as_echo "$CXX_FOR_TARGET" >&6; }
10430 else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; }
10437 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10439 set dummy ${ncn_progname}; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 if test -n "$CXX_FOR_TARGET"; then
10446 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10447 else
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10459 done
10460 done
10461 IFS=$as_save_IFS
10465 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10466 if test -n "$CXX_FOR_TARGET"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10468 $as_echo "$CXX_FOR_TARGET" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10476 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10477 done
10480 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10481 set dummy c++ g++ cxx gxx
10482 if test $build = $target ; then
10483 CXX_FOR_TARGET="$2"
10484 else
10485 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10487 else
10488 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10493 if test -n "$GCC_FOR_TARGET"; then
10494 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10495 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10496 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10499 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10500 for ncn_progname in gcc; do
10501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10502 set dummy ${ncn_progname}; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 if test -n "$GCC_FOR_TARGET"; then
10509 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10510 else
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10518 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10522 done
10523 done
10524 IFS=$as_save_IFS
10528 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10529 if test -n "$GCC_FOR_TARGET"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10531 $as_echo "$GCC_FOR_TARGET" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10538 done
10541 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10542 for ncn_progname in gcc; do
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10544 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10545 if test -x $with_build_time_tools/${ncn_progname}; then
10546 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10548 $as_echo "yes" >&6; }
10549 break
10550 else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10554 done
10557 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10558 for ncn_progname in gcc; do
10559 if test -n "$ncn_target_tool_prefix"; then
10560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 if test -n "$GCC_FOR_TARGET"; then
10568 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10569 else
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10581 done
10582 done
10583 IFS=$as_save_IFS
10587 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10588 if test -n "$GCC_FOR_TARGET"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10590 $as_echo "$GCC_FOR_TARGET" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10598 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10600 set dummy ${ncn_progname}; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 if test -n "$GCC_FOR_TARGET"; then
10607 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10608 else
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10616 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 break 2
10620 done
10621 done
10622 IFS=$as_save_IFS
10626 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10627 if test -n "$GCC_FOR_TARGET"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10629 $as_echo "$GCC_FOR_TARGET" >&6; }
10630 else
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10637 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10638 done
10641 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10642 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10643 else
10644 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10649 if test -n "$GCJ_FOR_TARGET"; then
10650 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10651 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10652 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10655 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10656 for ncn_progname in gcj; do
10657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10658 set dummy ${ncn_progname}; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 if test -n "$GCJ_FOR_TARGET"; then
10665 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10666 else
10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10678 done
10679 done
10680 IFS=$as_save_IFS
10684 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10685 if test -n "$GCJ_FOR_TARGET"; then
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10687 $as_echo "$GCJ_FOR_TARGET" >&6; }
10688 else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10694 done
10697 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10698 for ncn_progname in gcj; do
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10701 if test -x $with_build_time_tools/${ncn_progname}; then
10702 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704 $as_echo "yes" >&6; }
10705 break
10706 else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10710 done
10713 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10714 for ncn_progname in gcj; do
10715 if test -n "$ncn_target_tool_prefix"; then
10716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 if test -n "$GCJ_FOR_TARGET"; then
10724 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10725 else
10726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727 for as_dir in $PATH
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 break 2
10737 done
10738 done
10739 IFS=$as_save_IFS
10743 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10744 if test -n "$GCJ_FOR_TARGET"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10746 $as_echo "$GCJ_FOR_TARGET" >&6; }
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10754 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756 set dummy ${ncn_progname}; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test -n "$GCJ_FOR_TARGET"; then
10763 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10764 else
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10776 done
10777 done
10778 IFS=$as_save_IFS
10782 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10783 if test -n "$GCJ_FOR_TARGET"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10785 $as_echo "$GCJ_FOR_TARGET" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10793 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10794 done
10797 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10798 set dummy gcj
10799 if test $build = $target ; then
10800 GCJ_FOR_TARGET="$2"
10801 else
10802 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10804 else
10805 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10810 if test -n "$GFORTRAN_FOR_TARGET"; then
10811 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10812 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10813 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10816 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10817 for ncn_progname in gfortran; do
10818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10819 set dummy ${ncn_progname}; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 if test -n "$GFORTRAN_FOR_TARGET"; then
10826 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10827 else
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10839 done
10840 done
10841 IFS=$as_save_IFS
10845 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10846 if test -n "$GFORTRAN_FOR_TARGET"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10848 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10849 else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10855 done
10858 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10859 for ncn_progname in gfortran; do
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10861 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10862 if test -x $with_build_time_tools/${ncn_progname}; then
10863 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10865 $as_echo "yes" >&6; }
10866 break
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10871 done
10874 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10875 for ncn_progname in gfortran; do
10876 if test -n "$ncn_target_tool_prefix"; then
10877 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10878 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880 $as_echo_n "checking for $ac_word... " >&6; }
10881 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 if test -n "$GFORTRAN_FOR_TARGET"; then
10885 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10886 else
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10898 done
10899 done
10900 IFS=$as_save_IFS
10904 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10905 if test -n "$GFORTRAN_FOR_TARGET"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10907 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10915 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10917 set dummy ${ncn_progname}; ac_word=$2
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919 $as_echo_n "checking for $ac_word... " >&6; }
10920 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10923 if test -n "$GFORTRAN_FOR_TARGET"; then
10924 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10925 else
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10937 done
10938 done
10939 IFS=$as_save_IFS
10943 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10944 if test -n "$GFORTRAN_FOR_TARGET"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10946 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10954 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10955 done
10958 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10959 set dummy gfortran
10960 if test $build = $target ; then
10961 GFORTRAN_FOR_TARGET="$2"
10962 else
10963 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10965 else
10966 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10971 if test -n "$GOC_FOR_TARGET"; then
10972 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10973 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10974 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10977 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10978 for ncn_progname in gccgo; do
10979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10980 set dummy ${ncn_progname}; ac_word=$2
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982 $as_echo_n "checking for $ac_word... " >&6; }
10983 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 if test -n "$GOC_FOR_TARGET"; then
10987 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10988 else
10989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in $PATH
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
10995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10996 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
11000 done
11001 done
11002 IFS=$as_save_IFS
11006 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11007 if test -n "$GOC_FOR_TARGET"; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11009 $as_echo "$GOC_FOR_TARGET" >&6; }
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11016 done
11019 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11020 for ncn_progname in gccgo; do
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11022 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11023 if test -x $with_build_time_tools/${ncn_progname}; then
11024 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11026 $as_echo "yes" >&6; }
11027 break
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11032 done
11035 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11036 for ncn_progname in gccgo; do
11037 if test -n "$ncn_target_tool_prefix"; then
11038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11039 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041 $as_echo_n "checking for $ac_word... " >&6; }
11042 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 if test -n "$GOC_FOR_TARGET"; then
11046 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11047 else
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11059 done
11060 done
11061 IFS=$as_save_IFS
11065 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11066 if test -n "$GOC_FOR_TARGET"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11068 $as_echo "$GOC_FOR_TARGET" >&6; }
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; }
11076 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11078 set dummy ${ncn_progname}; ac_word=$2
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11080 $as_echo_n "checking for $ac_word... " >&6; }
11081 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 if test -n "$GOC_FOR_TARGET"; then
11085 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11086 else
11087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088 for as_dir in $PATH
11090 IFS=$as_save_IFS
11091 test -z "$as_dir" && as_dir=.
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11094 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 break 2
11098 done
11099 done
11100 IFS=$as_save_IFS
11104 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11105 if test -n "$GOC_FOR_TARGET"; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11107 $as_echo "$GOC_FOR_TARGET" >&6; }
11108 else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11115 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11116 done
11119 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11120 set dummy gccgo
11121 if test $build = $target ; then
11122 GOC_FOR_TARGET="$2"
11123 else
11124 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11126 else
11127 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11132 cat > conftest.c << \EOF
11133 #ifdef __GNUC__
11134 gcc_yay;
11135 #endif
11137 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11138 have_gcc_for_target=yes
11139 else
11140 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11141 have_gcc_for_target=no
11143 rm conftest.c
11148 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11149 if test -n "$with_build_time_tools"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11151 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11152 if test -x $with_build_time_tools/ar; then
11153 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11154 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11156 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11161 elif test $build != $host && test $have_gcc_for_target = yes; then
11162 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11163 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11164 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11167 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11168 # Extract the first word of "ar", so it can be a program name with args.
11169 set dummy ar; 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_path_AR_FOR_TARGET+:} false; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 case $AR_FOR_TARGET in
11176 [\\/]* | ?:[\\/]*)
11177 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $gcc_cv_tool_dirs
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11191 done
11192 done
11193 IFS=$as_save_IFS
11196 esac
11198 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11199 if test -n "$AR_FOR_TARGET"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11201 $as_echo "$AR_FOR_TARGET" >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204 $as_echo "no" >&6; }
11209 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11212 if test -n "$AR_FOR_TARGET"; then
11213 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11214 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11215 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11218 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11219 for ncn_progname in ar; do
11220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11221 set dummy ${ncn_progname}; ac_word=$2
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223 $as_echo_n "checking for $ac_word... " >&6; }
11224 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 if test -n "$AR_FOR_TARGET"; then
11228 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11229 else
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11237 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11241 done
11242 done
11243 IFS=$as_save_IFS
11247 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11248 if test -n "$AR_FOR_TARGET"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11250 $as_echo "$AR_FOR_TARGET" >&6; }
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11257 done
11260 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11261 for ncn_progname in ar; do
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11263 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11264 if test -x $with_build_time_tools/${ncn_progname}; then
11265 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267 $as_echo "yes" >&6; }
11268 break
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11273 done
11276 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11277 for ncn_progname in ar; do
11278 if test -n "$ncn_target_tool_prefix"; then
11279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 if test -n "$AR_FOR_TARGET"; then
11287 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11300 done
11301 done
11302 IFS=$as_save_IFS
11306 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11307 if test -n "$AR_FOR_TARGET"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11309 $as_echo "$AR_FOR_TARGET" >&6; }
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11317 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11319 set dummy ${ncn_progname}; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 if test -n "$AR_FOR_TARGET"; then
11326 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11327 else
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $PATH
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11339 done
11340 done
11341 IFS=$as_save_IFS
11345 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11346 if test -n "$AR_FOR_TARGET"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11348 $as_echo "$AR_FOR_TARGET" >&6; }
11349 else
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11356 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11357 done
11360 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11361 set dummy ar
11362 if test $build = $target ; then
11363 AR_FOR_TARGET="$2"
11364 else
11365 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11367 else
11368 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11371 else
11372 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11378 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11379 if test -n "$with_build_time_tools"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11381 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11382 if test -x $with_build_time_tools/as; then
11383 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11384 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11386 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11391 elif test $build != $host && test $have_gcc_for_target = yes; then
11392 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11393 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11394 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11397 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11398 # Extract the first word of "as", so it can be a program name with args.
11399 set dummy as; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 case $AS_FOR_TARGET in
11406 [\\/]* | ?:[\\/]*)
11407 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $gcc_cv_tool_dirs
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 break 2
11421 done
11422 done
11423 IFS=$as_save_IFS
11426 esac
11428 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11429 if test -n "$AS_FOR_TARGET"; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11431 $as_echo "$AS_FOR_TARGET" >&6; }
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11439 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11442 if test -n "$AS_FOR_TARGET"; then
11443 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11444 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11445 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11448 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11449 for ncn_progname in as; do
11450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11451 set dummy ${ncn_progname}; ac_word=$2
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453 $as_echo_n "checking for $ac_word... " >&6; }
11454 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 if test -n "$AS_FOR_TARGET"; then
11458 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11459 else
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11467 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 break 2
11471 done
11472 done
11473 IFS=$as_save_IFS
11477 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11478 if test -n "$AS_FOR_TARGET"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11480 $as_echo "$AS_FOR_TARGET" >&6; }
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11487 done
11490 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11491 for ncn_progname in as; do
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11493 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11494 if test -x $with_build_time_tools/${ncn_progname}; then
11495 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11497 $as_echo "yes" >&6; }
11498 break
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11503 done
11506 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11507 for ncn_progname in as; do
11508 if test -n "$ncn_target_tool_prefix"; then
11509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 if test -n "$AS_FOR_TARGET"; then
11517 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11518 else
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 break 2
11530 done
11531 done
11532 IFS=$as_save_IFS
11536 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11537 if test -n "$AS_FOR_TARGET"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11539 $as_echo "$AS_FOR_TARGET" >&6; }
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11547 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11549 set dummy ${ncn_progname}; ac_word=$2
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 if test -n "$AS_FOR_TARGET"; then
11556 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11569 done
11570 done
11571 IFS=$as_save_IFS
11575 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11576 if test -n "$AS_FOR_TARGET"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11578 $as_echo "$AS_FOR_TARGET" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11586 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11587 done
11590 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11591 set dummy as
11592 if test $build = $target ; then
11593 AS_FOR_TARGET="$2"
11594 else
11595 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11597 else
11598 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11601 else
11602 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11608 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11609 if test -n "$with_build_time_tools"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11611 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11612 if test -x $with_build_time_tools/dlltool; then
11613 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11614 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11616 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11621 elif test $build != $host && test $have_gcc_for_target = yes; then
11622 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11623 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11624 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11627 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11628 # Extract the first word of "dlltool", so it can be a program name with args.
11629 set dummy dlltool; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 case $DLLTOOL_FOR_TARGET in
11636 [\\/]* | ?:[\\/]*)
11637 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $gcc_cv_tool_dirs
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11651 done
11652 done
11653 IFS=$as_save_IFS
11656 esac
11658 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11659 if test -n "$DLLTOOL_FOR_TARGET"; then
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11661 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11669 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11672 if test -n "$DLLTOOL_FOR_TARGET"; then
11673 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11674 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11675 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11678 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11679 for ncn_progname in dlltool; do
11680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11681 set dummy ${ncn_progname}; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 if test -n "$DLLTOOL_FOR_TARGET"; then
11688 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11689 else
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11701 done
11702 done
11703 IFS=$as_save_IFS
11707 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11708 if test -n "$DLLTOOL_FOR_TARGET"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11710 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11717 done
11720 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11721 for ncn_progname in dlltool; do
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11723 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11724 if test -x $with_build_time_tools/${ncn_progname}; then
11725 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727 $as_echo "yes" >&6; }
11728 break
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11733 done
11736 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11737 for ncn_progname in dlltool; do
11738 if test -n "$ncn_target_tool_prefix"; then
11739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11740 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 if test -n "$DLLTOOL_FOR_TARGET"; then
11747 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11760 done
11761 done
11762 IFS=$as_save_IFS
11766 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11767 if test -n "$DLLTOOL_FOR_TARGET"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11769 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11777 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11779 set dummy ${ncn_progname}; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 if test -n "$DLLTOOL_FOR_TARGET"; then
11786 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11799 done
11800 done
11801 IFS=$as_save_IFS
11805 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11806 if test -n "$DLLTOOL_FOR_TARGET"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11808 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11816 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11817 done
11820 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11821 set dummy dlltool
11822 if test $build = $target ; then
11823 DLLTOOL_FOR_TARGET="$2"
11824 else
11825 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11827 else
11828 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11831 else
11832 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11838 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11839 if test -n "$with_build_time_tools"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11841 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11842 if test -x $with_build_time_tools/ld; then
11843 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11844 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11846 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11851 elif test $build != $host && test $have_gcc_for_target = yes; then
11852 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11853 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11854 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11857 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11858 # Extract the first word of "ld", so it can be a program name with args.
11859 set dummy ld; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 case $LD_FOR_TARGET in
11866 [\\/]* | ?:[\\/]*)
11867 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $gcc_cv_tool_dirs
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 break 2
11881 done
11882 done
11883 IFS=$as_save_IFS
11886 esac
11888 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11889 if test -n "$LD_FOR_TARGET"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11891 $as_echo "$LD_FOR_TARGET" >&6; }
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11899 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11902 if test -n "$LD_FOR_TARGET"; then
11903 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11904 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11905 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11908 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11909 for ncn_progname in ld; do
11910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11911 set dummy ${ncn_progname}; ac_word=$2
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913 $as_echo_n "checking for $ac_word... " >&6; }
11914 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 if test -n "$LD_FOR_TARGET"; then
11918 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11919 else
11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11931 done
11932 done
11933 IFS=$as_save_IFS
11937 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11938 if test -n "$LD_FOR_TARGET"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11940 $as_echo "$LD_FOR_TARGET" >&6; }
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 $as_echo "no" >&6; }
11947 done
11950 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11951 for ncn_progname in ld; do
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11953 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11954 if test -x $with_build_time_tools/${ncn_progname}; then
11955 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11957 $as_echo "yes" >&6; }
11958 break
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11963 done
11966 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11967 for ncn_progname in ld; do
11968 if test -n "$ncn_target_tool_prefix"; then
11969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 if test -n "$LD_FOR_TARGET"; then
11977 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11978 else
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11986 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11990 done
11991 done
11992 IFS=$as_save_IFS
11996 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11997 if test -n "$LD_FOR_TARGET"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11999 $as_echo "$LD_FOR_TARGET" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12007 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12009 set dummy ${ncn_progname}; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test -n "$LD_FOR_TARGET"; then
12016 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12029 done
12030 done
12031 IFS=$as_save_IFS
12035 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12036 if test -n "$LD_FOR_TARGET"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12038 $as_echo "$LD_FOR_TARGET" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12046 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12047 done
12050 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12051 set dummy ld
12052 if test $build = $target ; then
12053 LD_FOR_TARGET="$2"
12054 else
12055 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12057 else
12058 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12061 else
12062 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12068 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12069 if test -n "$with_build_time_tools"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12071 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12072 if test -x $with_build_time_tools/lipo; then
12073 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12074 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12076 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12081 elif test $build != $host && test $have_gcc_for_target = yes; then
12082 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12083 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12084 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12087 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12088 # Extract the first word of "lipo", so it can be a program name with args.
12089 set dummy lipo; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 case $LIPO_FOR_TARGET in
12096 [\\/]* | ?:[\\/]*)
12097 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $gcc_cv_tool_dirs
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12109 break 2
12111 done
12112 done
12113 IFS=$as_save_IFS
12116 esac
12118 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12119 if test -n "$LIPO_FOR_TARGET"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12121 $as_echo "$LIPO_FOR_TARGET" >&6; }
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12129 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12132 if test -n "$LIPO_FOR_TARGET"; then
12133 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12134 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12135 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12138 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12139 for ncn_progname in lipo; do
12140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12141 set dummy ${ncn_progname}; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 if test -n "$LIPO_FOR_TARGET"; then
12148 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12149 else
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12157 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 break 2
12161 done
12162 done
12163 IFS=$as_save_IFS
12167 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12168 if test -n "$LIPO_FOR_TARGET"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12170 $as_echo "$LIPO_FOR_TARGET" >&6; }
12171 else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12177 done
12180 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12181 for ncn_progname in lipo; do
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12183 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12184 if test -x $with_build_time_tools/${ncn_progname}; then
12185 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187 $as_echo "yes" >&6; }
12188 break
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12193 done
12196 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12197 for ncn_progname in lipo; do
12198 if test -n "$ncn_target_tool_prefix"; then
12199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12200 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202 $as_echo_n "checking for $ac_word... " >&6; }
12203 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 if test -n "$LIPO_FOR_TARGET"; then
12207 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12208 else
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12220 done
12221 done
12222 IFS=$as_save_IFS
12226 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12227 if test -n "$LIPO_FOR_TARGET"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12229 $as_echo "$LIPO_FOR_TARGET" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12237 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12239 set dummy ${ncn_progname}; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 if test -n "$LIPO_FOR_TARGET"; then
12246 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12247 else
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12259 done
12260 done
12261 IFS=$as_save_IFS
12265 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12266 if test -n "$LIPO_FOR_TARGET"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12268 $as_echo "$LIPO_FOR_TARGET" >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12276 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12277 done
12280 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12281 set dummy lipo
12282 if test $build = $target ; then
12283 LIPO_FOR_TARGET="$2"
12284 else
12285 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12287 else
12288 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12291 else
12292 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12298 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12299 if test -n "$with_build_time_tools"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12301 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12302 if test -x $with_build_time_tools/nm; then
12303 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12304 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12306 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12311 elif test $build != $host && test $have_gcc_for_target = yes; then
12312 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12313 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12314 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12317 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12318 # Extract the first word of "nm", so it can be a program name with args.
12319 set dummy nm; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 case $NM_FOR_TARGET in
12326 [\\/]* | ?:[\\/]*)
12327 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $gcc_cv_tool_dirs
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 break 2
12341 done
12342 done
12343 IFS=$as_save_IFS
12346 esac
12348 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12349 if test -n "$NM_FOR_TARGET"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12351 $as_echo "$NM_FOR_TARGET" >&6; }
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12359 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12362 if test -n "$NM_FOR_TARGET"; then
12363 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12364 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12365 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12368 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12369 for ncn_progname in nm; do
12370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12371 set dummy ${ncn_progname}; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 if test -n "$NM_FOR_TARGET"; then
12378 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12379 else
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12387 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 break 2
12391 done
12392 done
12393 IFS=$as_save_IFS
12397 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12398 if test -n "$NM_FOR_TARGET"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12400 $as_echo "$NM_FOR_TARGET" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12407 done
12410 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12411 for ncn_progname in nm; do
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12413 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12414 if test -x $with_build_time_tools/${ncn_progname}; then
12415 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12417 $as_echo "yes" >&6; }
12418 break
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12423 done
12426 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12427 for ncn_progname in nm; do
12428 if test -n "$ncn_target_tool_prefix"; then
12429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12430 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 if test -n "$NM_FOR_TARGET"; then
12437 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12438 else
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12450 done
12451 done
12452 IFS=$as_save_IFS
12456 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12457 if test -n "$NM_FOR_TARGET"; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12459 $as_echo "$NM_FOR_TARGET" >&6; }
12460 else
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12467 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12469 set dummy ${ncn_progname}; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 if test -n "$NM_FOR_TARGET"; then
12476 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12485 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12489 done
12490 done
12491 IFS=$as_save_IFS
12495 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12496 if test -n "$NM_FOR_TARGET"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12498 $as_echo "$NM_FOR_TARGET" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12506 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12507 done
12510 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12511 set dummy nm
12512 if test $build = $target ; then
12513 NM_FOR_TARGET="$2"
12514 else
12515 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12517 else
12518 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12521 else
12522 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12528 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12529 if test -n "$with_build_time_tools"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12531 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12532 if test -x $with_build_time_tools/objcopy; then
12533 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12534 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12536 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12541 elif test $build != $host && test $have_gcc_for_target = yes; then
12542 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12543 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12544 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12547 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12548 # Extract the first word of "objcopy", so it can be a program name with args.
12549 set dummy objcopy; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 case $OBJCOPY_FOR_TARGET in
12556 [\\/]* | ?:[\\/]*)
12557 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 for as_dir in $gcc_cv_tool_dirs
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12567 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12571 done
12572 done
12573 IFS=$as_save_IFS
12576 esac
12578 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12579 if test -n "$OBJCOPY_FOR_TARGET"; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12581 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12582 else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12589 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12592 if test -n "$OBJCOPY_FOR_TARGET"; then
12593 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12594 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12595 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12598 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12599 for ncn_progname in objcopy; do
12600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12601 set dummy ${ncn_progname}; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 if test -n "$OBJCOPY_FOR_TARGET"; then
12608 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12609 else
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12617 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12621 done
12622 done
12623 IFS=$as_save_IFS
12627 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12628 if test -n "$OBJCOPY_FOR_TARGET"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12630 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12637 done
12640 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12641 for ncn_progname in objcopy; do
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12643 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12644 if test -x $with_build_time_tools/${ncn_progname}; then
12645 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648 break
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12653 done
12656 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12657 for ncn_progname in objcopy; do
12658 if test -n "$ncn_target_tool_prefix"; then
12659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 if test -n "$OBJCOPY_FOR_TARGET"; then
12667 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12668 else
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12680 done
12681 done
12682 IFS=$as_save_IFS
12686 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12687 if test -n "$OBJCOPY_FOR_TARGET"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12689 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12697 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12699 set dummy ${ncn_progname}; ac_word=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701 $as_echo_n "checking for $ac_word... " >&6; }
12702 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 if test -n "$OBJCOPY_FOR_TARGET"; then
12706 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12707 else
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12719 done
12720 done
12721 IFS=$as_save_IFS
12725 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12726 if test -n "$OBJCOPY_FOR_TARGET"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12728 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12729 else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731 $as_echo "no" >&6; }
12736 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12737 done
12740 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12741 set dummy objcopy
12742 if test $build = $target ; then
12743 OBJCOPY_FOR_TARGET="$2"
12744 else
12745 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12747 else
12748 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12751 else
12752 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12758 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12759 if test -n "$with_build_time_tools"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12761 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12762 if test -x $with_build_time_tools/objdump; then
12763 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12764 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12766 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12771 elif test $build != $host && test $have_gcc_for_target = yes; then
12772 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12773 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12774 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12777 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12778 # Extract the first word of "objdump", so it can be a program name with args.
12779 set dummy objdump; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 case $OBJDUMP_FOR_TARGET in
12786 [\\/]* | ?:[\\/]*)
12787 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $gcc_cv_tool_dirs
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
12795 for ac_exec_ext in '' $ac_executable_extensions; do
12796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 break 2
12801 done
12802 done
12803 IFS=$as_save_IFS
12806 esac
12808 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12809 if test -n "$OBJDUMP_FOR_TARGET"; then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12811 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12812 else
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12819 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12822 if test -n "$OBJDUMP_FOR_TARGET"; then
12823 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12824 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12825 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12828 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12829 for ncn_progname in objdump; do
12830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12831 set dummy ${ncn_progname}; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 if test -n "$OBJDUMP_FOR_TARGET"; then
12838 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12839 else
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12847 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12851 done
12852 done
12853 IFS=$as_save_IFS
12857 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12858 if test -n "$OBJDUMP_FOR_TARGET"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12860 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12861 else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12867 done
12870 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12871 for ncn_progname in objdump; do
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12873 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12874 if test -x $with_build_time_tools/${ncn_progname}; then
12875 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12878 break
12879 else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 $as_echo "no" >&6; }
12883 done
12886 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12887 for ncn_progname in objdump; do
12888 if test -n "$ncn_target_tool_prefix"; then
12889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12890 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 if test -n "$OBJDUMP_FOR_TARGET"; then
12897 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12898 else
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12906 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12916 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12917 if test -n "$OBJDUMP_FOR_TARGET"; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12919 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12927 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12929 set dummy ${ncn_progname}; ac_word=$2
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12931 $as_echo_n "checking for $ac_word... " >&6; }
12932 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 if test -n "$OBJDUMP_FOR_TARGET"; then
12936 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12937 else
12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939 for as_dir in $PATH
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12945 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 break 2
12949 done
12950 done
12951 IFS=$as_save_IFS
12955 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12956 if test -n "$OBJDUMP_FOR_TARGET"; then
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12958 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12959 else
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12966 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12967 done
12970 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12971 set dummy objdump
12972 if test $build = $target ; then
12973 OBJDUMP_FOR_TARGET="$2"
12974 else
12975 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12977 else
12978 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12981 else
12982 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12988 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12989 if test -n "$with_build_time_tools"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12991 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12992 if test -x $with_build_time_tools/ranlib; then
12993 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12994 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12996 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13001 elif test $build != $host && test $have_gcc_for_target = yes; then
13002 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13003 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13004 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13007 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13008 # Extract the first word of "ranlib", so it can be a program name with args.
13009 set dummy ranlib; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015 case $RANLIB_FOR_TARGET in
13016 [\\/]* | ?:[\\/]*)
13017 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $gcc_cv_tool_dirs
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13031 done
13032 done
13033 IFS=$as_save_IFS
13036 esac
13038 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13039 if test -n "$RANLIB_FOR_TARGET"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13041 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13049 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13052 if test -n "$RANLIB_FOR_TARGET"; then
13053 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13054 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13055 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13058 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13059 for ncn_progname in ranlib; do
13060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13061 set dummy ${ncn_progname}; ac_word=$2
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063 $as_echo_n "checking for $ac_word... " >&6; }
13064 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 if test -n "$RANLIB_FOR_TARGET"; then
13068 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13069 else
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13083 IFS=$as_save_IFS
13087 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13088 if test -n "$RANLIB_FOR_TARGET"; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13090 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13091 else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13097 done
13100 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13101 for ncn_progname in ranlib; do
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13103 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13104 if test -x $with_build_time_tools/${ncn_progname}; then
13105 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 $as_echo "yes" >&6; }
13108 break
13109 else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13113 done
13116 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13117 for ncn_progname in ranlib; do
13118 if test -n "$ncn_target_tool_prefix"; then
13119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 if test -n "$RANLIB_FOR_TARGET"; then
13127 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13128 else
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13140 done
13141 done
13142 IFS=$as_save_IFS
13146 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13147 if test -n "$RANLIB_FOR_TARGET"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13149 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13150 else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13157 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13159 set dummy ${ncn_progname}; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 if test -n "$RANLIB_FOR_TARGET"; then
13166 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13167 else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13179 done
13180 done
13181 IFS=$as_save_IFS
13185 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13186 if test -n "$RANLIB_FOR_TARGET"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13188 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13196 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13197 done
13200 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13201 set dummy ranlib
13202 if test $build = $target ; then
13203 RANLIB_FOR_TARGET="$2"
13204 else
13205 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13207 else
13208 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13211 else
13212 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13218 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13219 if test -n "$with_build_time_tools"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13221 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13222 if test -x $with_build_time_tools/readelf; then
13223 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13224 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13226 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13227 else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13231 elif test $build != $host && test $have_gcc_for_target = yes; then
13232 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13233 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13234 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13237 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13238 # Extract the first word of "readelf", so it can be a program name with args.
13239 set dummy readelf; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241 $as_echo_n "checking for $ac_word... " >&6; }
13242 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 case $READELF_FOR_TARGET in
13246 [\\/]* | ?:[\\/]*)
13247 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251 for as_dir in $gcc_cv_tool_dirs
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13257 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 break 2
13261 done
13262 done
13263 IFS=$as_save_IFS
13266 esac
13268 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13269 if test -n "$READELF_FOR_TARGET"; then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13271 $as_echo "$READELF_FOR_TARGET" >&6; }
13272 else
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13279 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13282 if test -n "$READELF_FOR_TARGET"; then
13283 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13284 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13285 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13288 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13289 for ncn_progname in readelf; do
13290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13291 set dummy ${ncn_progname}; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 if test -n "$READELF_FOR_TARGET"; then
13298 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13299 else
13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
13305 for ac_exec_ext in '' $ac_executable_extensions; do
13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13307 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 break 2
13311 done
13312 done
13313 IFS=$as_save_IFS
13317 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13318 if test -n "$READELF_FOR_TARGET"; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13320 $as_echo "$READELF_FOR_TARGET" >&6; }
13321 else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13327 done
13330 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13331 for ncn_progname in readelf; do
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13333 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13334 if test -x $with_build_time_tools/${ncn_progname}; then
13335 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337 $as_echo "yes" >&6; }
13338 break
13339 else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13343 done
13346 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13347 for ncn_progname in readelf; do
13348 if test -n "$ncn_target_tool_prefix"; then
13349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13350 set dummy ${ncn_target_tool_prefix}${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_READELF_FOR_TARGET+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 if test -n "$READELF_FOR_TARGET"; then
13357 ac_cv_prog_READELF_FOR_TARGET="$READELF_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_READELF_FOR_TARGET="${ncn_target_tool_prefix}${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 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13377 if test -n "$READELF_FOR_TARGET"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13379 $as_echo "$READELF_FOR_TARGET" >&6; }
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13387 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13389 set dummy ${ncn_progname}; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 $as_echo_n "checking for $ac_word... " >&6; }
13392 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 if test -n "$READELF_FOR_TARGET"; then
13396 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13397 else
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 break 2
13409 done
13410 done
13411 IFS=$as_save_IFS
13415 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13416 if test -n "$READELF_FOR_TARGET"; then
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13418 $as_echo "$READELF_FOR_TARGET" >&6; }
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 $as_echo "no" >&6; }
13426 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13427 done
13430 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13431 set dummy readelf
13432 if test $build = $target ; then
13433 READELF_FOR_TARGET="$2"
13434 else
13435 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13437 else
13438 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13441 else
13442 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13448 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13449 if test -n "$with_build_time_tools"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13451 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13452 if test -x $with_build_time_tools/strip; then
13453 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13454 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13456 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13461 elif test $build != $host && test $have_gcc_for_target = yes; then
13462 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13463 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13464 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13467 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13468 # Extract the first word of "strip", so it can be a program name with args.
13469 set dummy strip; ac_word=$2
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471 $as_echo_n "checking for $ac_word... " >&6; }
13472 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 case $STRIP_FOR_TARGET in
13476 [\\/]* | ?:[\\/]*)
13477 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $gcc_cv_tool_dirs
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 for ac_exec_ext in '' $ac_executable_extensions; do
13486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13487 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13489 break 2
13491 done
13492 done
13493 IFS=$as_save_IFS
13496 esac
13498 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13499 if test -n "$STRIP_FOR_TARGET"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13501 $as_echo "$STRIP_FOR_TARGET" >&6; }
13502 else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13509 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13512 if test -n "$STRIP_FOR_TARGET"; then
13513 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13514 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13515 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13518 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13519 for ncn_progname in strip; do
13520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13521 set dummy ${ncn_progname}; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 if test -n "$STRIP_FOR_TARGET"; then
13528 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13533 IFS=$as_save_IFS
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 break 2
13541 done
13542 done
13543 IFS=$as_save_IFS
13547 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13548 if test -n "$STRIP_FOR_TARGET"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13550 $as_echo "$STRIP_FOR_TARGET" >&6; }
13551 else
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13557 done
13560 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13561 for ncn_progname in strip; do
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13563 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13564 if test -x $with_build_time_tools/${ncn_progname}; then
13565 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13567 $as_echo "yes" >&6; }
13568 break
13569 else
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13573 done
13576 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13577 for ncn_progname in strip; do
13578 if test -n "$ncn_target_tool_prefix"; then
13579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13580 set dummy ${ncn_target_tool_prefix}${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_STRIP_FOR_TARGET+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 if test -n "$STRIP_FOR_TARGET"; then
13587 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_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_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${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 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13607 if test -n "$STRIP_FOR_TARGET"; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13609 $as_echo "$STRIP_FOR_TARGET" >&6; }
13610 else
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13617 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13619 set dummy ${ncn_progname}; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 if test -n "$STRIP_FOR_TARGET"; then
13626 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13639 done
13640 done
13641 IFS=$as_save_IFS
13645 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13646 if test -n "$STRIP_FOR_TARGET"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13648 $as_echo "$STRIP_FOR_TARGET" >&6; }
13649 else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13656 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13657 done
13660 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13661 set dummy strip
13662 if test $build = $target ; then
13663 STRIP_FOR_TARGET="$2"
13664 else
13665 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13667 else
13668 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13671 else
13672 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13678 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13679 if test -n "$with_build_time_tools"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13681 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13682 if test -x $with_build_time_tools/windres; then
13683 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13684 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13686 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13691 elif test $build != $host && test $have_gcc_for_target = yes; then
13692 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13693 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13694 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13697 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13698 # Extract the first word of "windres", so it can be a program name with args.
13699 set dummy windres; ac_word=$2
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; }
13702 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 case $WINDRES_FOR_TARGET in
13706 [\\/]* | ?:[\\/]*)
13707 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $gcc_cv_tool_dirs
13713 IFS=$as_save_IFS
13714 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13717 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13719 break 2
13721 done
13722 done
13723 IFS=$as_save_IFS
13726 esac
13728 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13729 if test -n "$WINDRES_FOR_TARGET"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13731 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13739 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13742 if test -n "$WINDRES_FOR_TARGET"; then
13743 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13744 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13745 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13748 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13749 for ncn_progname in windres; do
13750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13751 set dummy ${ncn_progname}; ac_word=$2
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753 $as_echo_n "checking for $ac_word... " >&6; }
13754 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 if test -n "$WINDRES_FOR_TARGET"; then
13758 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13759 else
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13767 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13771 done
13772 done
13773 IFS=$as_save_IFS
13777 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13778 if test -n "$WINDRES_FOR_TARGET"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13780 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13787 done
13790 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13791 for ncn_progname in windres; do
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13793 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13794 if test -x $with_build_time_tools/${ncn_progname}; then
13795 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13797 $as_echo "yes" >&6; }
13798 break
13799 else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801 $as_echo "no" >&6; }
13803 done
13806 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13807 for ncn_progname in windres; do
13808 if test -n "$ncn_target_tool_prefix"; then
13809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13810 set dummy ${ncn_target_tool_prefix}${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_WINDRES_FOR_TARGET+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 if test -n "$WINDRES_FOR_TARGET"; then
13817 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_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_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${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 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13837 if test -n "$WINDRES_FOR_TARGET"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13839 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13840 else
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13847 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13849 set dummy ${ncn_progname}; ac_word=$2
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 if test -n "$WINDRES_FOR_TARGET"; then
13856 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13857 else
13858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13861 IFS=$as_save_IFS
13862 test -z "$as_dir" && as_dir=.
13863 for ac_exec_ext in '' $ac_executable_extensions; do
13864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 break 2
13869 done
13870 done
13871 IFS=$as_save_IFS
13875 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13876 if test -n "$WINDRES_FOR_TARGET"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13878 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13879 else
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13886 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13887 done
13890 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13891 set dummy windres
13892 if test $build = $target ; then
13893 WINDRES_FOR_TARGET="$2"
13894 else
13895 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13897 else
13898 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13901 else
13902 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13908 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13909 if test -n "$with_build_time_tools"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13911 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13912 if test -x $with_build_time_tools/windmc; then
13913 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13914 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13916 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13917 else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13921 elif test $build != $host && test $have_gcc_for_target = yes; then
13922 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13923 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13924 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13927 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13928 # Extract the first word of "windmc", so it can be a program name with args.
13929 set dummy windmc; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 case $WINDMC_FOR_TARGET in
13936 [\\/]* | ?:[\\/]*)
13937 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $gcc_cv_tool_dirs
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13951 done
13952 done
13953 IFS=$as_save_IFS
13956 esac
13958 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13959 if test -n "$WINDMC_FOR_TARGET"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13961 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13969 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13972 if test -n "$WINDMC_FOR_TARGET"; then
13973 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13974 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13975 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13978 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13979 for ncn_progname in windmc; do
13980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13981 set dummy ${ncn_progname}; ac_word=$2
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13983 $as_echo_n "checking for $ac_word... " >&6; }
13984 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 if test -n "$WINDMC_FOR_TARGET"; then
13988 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13989 else
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13993 IFS=$as_save_IFS
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
13996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13997 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 break 2
14001 done
14002 done
14003 IFS=$as_save_IFS
14007 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14008 if test -n "$WINDMC_FOR_TARGET"; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14010 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14011 else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14017 done
14020 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14021 for ncn_progname in windmc; do
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14023 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14024 if test -x $with_build_time_tools/${ncn_progname}; then
14025 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14027 $as_echo "yes" >&6; }
14028 break
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14033 done
14036 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14037 for ncn_progname in windmc; do
14038 if test -n "$ncn_target_tool_prefix"; then
14039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14040 set dummy ${ncn_target_tool_prefix}${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_WINDMC_FOR_TARGET+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 if test -n "$WINDMC_FOR_TARGET"; then
14047 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_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_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${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 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14067 if test -n "$WINDMC_FOR_TARGET"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14069 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14077 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14079 set dummy ${ncn_progname}; ac_word=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 if test -n "$WINDMC_FOR_TARGET"; then
14086 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14087 else
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14099 done
14100 done
14101 IFS=$as_save_IFS
14105 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14106 if test -n "$WINDMC_FOR_TARGET"; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14108 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14109 else
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111 $as_echo "no" >&6; }
14116 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14117 done
14120 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14121 set dummy windmc
14122 if test $build = $target ; then
14123 WINDMC_FOR_TARGET="$2"
14124 else
14125 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14127 else
14128 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14131 else
14132 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14136 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14139 $as_echo_n "checking where to find the target ar... " >&6; }
14140 if test "x${build}" != "x${host}" ; then
14141 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14142 # We already found the complete path
14143 ac_dir=`dirname $AR_FOR_TARGET`
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145 $as_echo "pre-installed in $ac_dir" >&6; }
14146 else
14147 # Canadian cross, just use what we found
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149 $as_echo "pre-installed" >&6; }
14151 else
14152 ok=yes
14153 case " ${configdirs} " in
14154 *" binutils "*) ;;
14155 *) ok=no ;;
14156 esac
14158 if test $ok = yes; then
14159 # An in-tree tool is available and we can use it
14160 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14162 $as_echo "just compiled" >&6; }
14163 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14164 # We already found the complete path
14165 ac_dir=`dirname $AR_FOR_TARGET`
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14167 $as_echo "pre-installed in $ac_dir" >&6; }
14168 elif test "x$target" = "x$host"; then
14169 # We can use an host tool
14170 AR_FOR_TARGET='$(AR)'
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14172 $as_echo "host tool" >&6; }
14173 else
14174 # We need a cross tool
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176 $as_echo "pre-installed" >&6; }
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14181 $as_echo_n "checking where to find the target as... " >&6; }
14182 if test "x${build}" != "x${host}" ; then
14183 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14184 # We already found the complete path
14185 ac_dir=`dirname $AS_FOR_TARGET`
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14187 $as_echo "pre-installed in $ac_dir" >&6; }
14188 else
14189 # Canadian cross, just use what we found
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14191 $as_echo "pre-installed" >&6; }
14193 else
14194 ok=yes
14195 case " ${configdirs} " in
14196 *" gas "*) ;;
14197 *) ok=no ;;
14198 esac
14200 if test $ok = yes; then
14201 # An in-tree tool is available and we can use it
14202 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14204 $as_echo "just compiled" >&6; }
14205 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14206 # We already found the complete path
14207 ac_dir=`dirname $AS_FOR_TARGET`
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14209 $as_echo "pre-installed in $ac_dir" >&6; }
14210 elif test "x$target" = "x$host"; then
14211 # We can use an host tool
14212 AS_FOR_TARGET='$(AS)'
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14214 $as_echo "host tool" >&6; }
14215 else
14216 # We need a cross tool
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218 $as_echo "pre-installed" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14223 $as_echo_n "checking where to find the target cc... " >&6; }
14224 if test "x${build}" != "x${host}" ; then
14225 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14226 # We already found the complete path
14227 ac_dir=`dirname $CC_FOR_TARGET`
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14229 $as_echo "pre-installed in $ac_dir" >&6; }
14230 else
14231 # Canadian cross, just use what we found
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14233 $as_echo "pre-installed" >&6; }
14235 else
14236 ok=yes
14237 case " ${configdirs} " in
14238 *" gcc "*) ;;
14239 *) ok=no ;;
14240 esac
14242 if test $ok = yes; then
14243 # An in-tree tool is available and we can use it
14244 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14246 $as_echo "just compiled" >&6; }
14247 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14248 # We already found the complete path
14249 ac_dir=`dirname $CC_FOR_TARGET`
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14251 $as_echo "pre-installed in $ac_dir" >&6; }
14252 elif test "x$target" = "x$host"; then
14253 # We can use an host tool
14254 CC_FOR_TARGET='$(CC)'
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14256 $as_echo "host tool" >&6; }
14257 else
14258 # We need a cross tool
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260 $as_echo "pre-installed" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14265 $as_echo_n "checking where to find the target c++... " >&6; }
14266 if test "x${build}" != "x${host}" ; then
14267 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
14269 ac_dir=`dirname $CXX_FOR_TARGET`
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14271 $as_echo "pre-installed in $ac_dir" >&6; }
14272 else
14273 # Canadian cross, just use what we found
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275 $as_echo "pre-installed" >&6; }
14277 else
14278 ok=yes
14279 case " ${configdirs} " in
14280 *" gcc "*) ;;
14281 *) ok=no ;;
14282 esac
14283 case ,${enable_languages}, in
14284 *,c++,*) ;;
14285 *) ok=no ;;
14286 esac
14287 if test $ok = yes; then
14288 # An in-tree tool is available and we can use it
14289 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'
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14291 $as_echo "just compiled" >&6; }
14292 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $CXX_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296 $as_echo "pre-installed in $ac_dir" >&6; }
14297 elif test "x$target" = "x$host"; then
14298 # We can use an host tool
14299 CXX_FOR_TARGET='$(CXX)'
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14301 $as_echo "host tool" >&6; }
14302 else
14303 # We need a cross tool
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14305 $as_echo "pre-installed" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14310 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14311 if test "x${build}" != "x${host}" ; then
14312 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14313 # We already found the complete path
14314 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14316 $as_echo "pre-installed in $ac_dir" >&6; }
14317 else
14318 # Canadian cross, just use what we found
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14320 $as_echo "pre-installed" >&6; }
14322 else
14323 ok=yes
14324 case " ${configdirs} " in
14325 *" gcc "*) ;;
14326 *) ok=no ;;
14327 esac
14328 case ,${enable_languages}, in
14329 *,c++,*) ;;
14330 *) ok=no ;;
14331 esac
14332 if test $ok = yes; then
14333 # An in-tree tool is available and we can use it
14334 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'
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14336 $as_echo "just compiled" >&6; }
14337 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14338 # We already found the complete path
14339 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14341 $as_echo "pre-installed in $ac_dir" >&6; }
14342 elif test "x$target" = "x$host"; then
14343 # We can use an host tool
14344 RAW_CXX_FOR_TARGET='$(CXX)'
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14346 $as_echo "host tool" >&6; }
14347 else
14348 # We need a cross tool
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14350 $as_echo "pre-installed" >&6; }
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14355 $as_echo_n "checking where to find the target dlltool... " >&6; }
14356 if test "x${build}" != "x${host}" ; then
14357 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14358 # We already found the complete path
14359 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14361 $as_echo "pre-installed in $ac_dir" >&6; }
14362 else
14363 # Canadian cross, just use what we found
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365 $as_echo "pre-installed" >&6; }
14367 else
14368 ok=yes
14369 case " ${configdirs} " in
14370 *" binutils "*) ;;
14371 *) ok=no ;;
14372 esac
14374 if test $ok = yes; then
14375 # An in-tree tool is available and we can use it
14376 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14378 $as_echo "just compiled" >&6; }
14379 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14380 # We already found the complete path
14381 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14383 $as_echo "pre-installed in $ac_dir" >&6; }
14384 elif test "x$target" = "x$host"; then
14385 # We can use an host tool
14386 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14388 $as_echo "host tool" >&6; }
14389 else
14390 # We need a cross tool
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14392 $as_echo "pre-installed" >&6; }
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14397 $as_echo_n "checking where to find the target gcc... " >&6; }
14398 if test "x${build}" != "x${host}" ; then
14399 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14400 # We already found the complete path
14401 ac_dir=`dirname $GCC_FOR_TARGET`
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14403 $as_echo "pre-installed in $ac_dir" >&6; }
14404 else
14405 # Canadian cross, just use what we found
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407 $as_echo "pre-installed" >&6; }
14409 else
14410 ok=yes
14411 case " ${configdirs} " in
14412 *" gcc "*) ;;
14413 *) ok=no ;;
14414 esac
14416 if test $ok = yes; then
14417 # An in-tree tool is available and we can use it
14418 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14420 $as_echo "just compiled" >&6; }
14421 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14422 # We already found the complete path
14423 ac_dir=`dirname $GCC_FOR_TARGET`
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14425 $as_echo "pre-installed in $ac_dir" >&6; }
14426 elif test "x$target" = "x$host"; then
14427 # We can use an host tool
14428 GCC_FOR_TARGET='$()'
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14430 $as_echo "host tool" >&6; }
14431 else
14432 # We need a cross tool
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14434 $as_echo "pre-installed" >&6; }
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14439 $as_echo_n "checking where to find the target gcj... " >&6; }
14440 if test "x${build}" != "x${host}" ; then
14441 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14442 # We already found the complete path
14443 ac_dir=`dirname $GCJ_FOR_TARGET`
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14445 $as_echo "pre-installed in $ac_dir" >&6; }
14446 else
14447 # Canadian cross, just use what we found
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14449 $as_echo "pre-installed" >&6; }
14451 else
14452 ok=yes
14453 case " ${configdirs} " in
14454 *" gcc "*) ;;
14455 *) ok=no ;;
14456 esac
14457 case ,${enable_languages}, in
14458 *,java,*) ;;
14459 *) ok=no ;;
14460 esac
14461 if test $ok = yes; then
14462 # An in-tree tool is available and we can use it
14463 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14465 $as_echo "just compiled" >&6; }
14466 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14467 # We already found the complete path
14468 ac_dir=`dirname $GCJ_FOR_TARGET`
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14470 $as_echo "pre-installed in $ac_dir" >&6; }
14471 elif test "x$target" = "x$host"; then
14472 # We can use an host tool
14473 GCJ_FOR_TARGET='$(GCJ)'
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14475 $as_echo "host tool" >&6; }
14476 else
14477 # We need a cross tool
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14479 $as_echo "pre-installed" >&6; }
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14484 $as_echo_n "checking where to find the target gfortran... " >&6; }
14485 if test "x${build}" != "x${host}" ; then
14486 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14487 # We already found the complete path
14488 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14490 $as_echo "pre-installed in $ac_dir" >&6; }
14491 else
14492 # Canadian cross, just use what we found
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14494 $as_echo "pre-installed" >&6; }
14496 else
14497 ok=yes
14498 case " ${configdirs} " in
14499 *" gcc "*) ;;
14500 *) ok=no ;;
14501 esac
14502 case ,${enable_languages}, in
14503 *,fortran,*) ;;
14504 *) ok=no ;;
14505 esac
14506 if test $ok = yes; then
14507 # An in-tree tool is available and we can use it
14508 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14510 $as_echo "just compiled" >&6; }
14511 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14512 # We already found the complete path
14513 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14515 $as_echo "pre-installed in $ac_dir" >&6; }
14516 elif test "x$target" = "x$host"; then
14517 # We can use an host tool
14518 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14520 $as_echo "host tool" >&6; }
14521 else
14522 # We need a cross tool
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14524 $as_echo "pre-installed" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14529 $as_echo_n "checking where to find the target gccgo... " >&6; }
14530 if test "x${build}" != "x${host}" ; then
14531 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14532 # We already found the complete path
14533 ac_dir=`dirname $GOC_FOR_TARGET`
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14535 $as_echo "pre-installed in $ac_dir" >&6; }
14536 else
14537 # Canadian cross, just use what we found
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14539 $as_echo "pre-installed" >&6; }
14541 else
14542 ok=yes
14543 case " ${configdirs} " in
14544 *" gcc "*) ;;
14545 *) ok=no ;;
14546 esac
14547 case ,${enable_languages}, in
14548 *,go,*) ;;
14549 *) ok=no ;;
14550 esac
14551 if test $ok = yes; then
14552 # An in-tree tool is available and we can use it
14553 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14555 $as_echo "just compiled" >&6; }
14556 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14557 # We already found the complete path
14558 ac_dir=`dirname $GOC_FOR_TARGET`
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14560 $as_echo "pre-installed in $ac_dir" >&6; }
14561 elif test "x$target" = "x$host"; then
14562 # We can use an host tool
14563 GOC_FOR_TARGET='$(GOC)'
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14565 $as_echo "host tool" >&6; }
14566 else
14567 # We need a cross tool
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14569 $as_echo "pre-installed" >&6; }
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14574 $as_echo_n "checking where to find the target ld... " >&6; }
14575 if test "x${build}" != "x${host}" ; then
14576 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14577 # We already found the complete path
14578 ac_dir=`dirname $LD_FOR_TARGET`
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14580 $as_echo "pre-installed in $ac_dir" >&6; }
14581 else
14582 # Canadian cross, just use what we found
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14584 $as_echo "pre-installed" >&6; }
14586 else
14587 ok=yes
14588 case " ${configdirs} " in
14589 *" ld "*) ;;
14590 *) ok=no ;;
14591 esac
14593 if test $ok = yes; then
14594 # An in-tree tool is available and we can use it
14595 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14597 $as_echo "just compiled" >&6; }
14598 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14599 # We already found the complete path
14600 ac_dir=`dirname $LD_FOR_TARGET`
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14602 $as_echo "pre-installed in $ac_dir" >&6; }
14603 elif test "x$target" = "x$host"; then
14604 # We can use an host tool
14605 LD_FOR_TARGET='$(LD)'
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14607 $as_echo "host tool" >&6; }
14608 else
14609 # We need a cross tool
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14611 $as_echo "pre-installed" >&6; }
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14616 $as_echo_n "checking where to find the target lipo... " >&6; }
14617 if test "x${build}" != "x${host}" ; then
14618 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14619 # We already found the complete path
14620 ac_dir=`dirname $LIPO_FOR_TARGET`
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14622 $as_echo "pre-installed in $ac_dir" >&6; }
14623 else
14624 # Canadian cross, just use what we found
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14626 $as_echo "pre-installed" >&6; }
14628 else
14629 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14630 # We already found the complete path
14631 ac_dir=`dirname $LIPO_FOR_TARGET`
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14633 $as_echo "pre-installed in $ac_dir" >&6; }
14634 elif test "x$target" = "x$host"; then
14635 # We can use an host tool
14636 LIPO_FOR_TARGET='$(LIPO)'
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14638 $as_echo "host tool" >&6; }
14639 else
14640 # We need a cross tool
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14642 $as_echo "pre-installed" >&6; }
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14647 $as_echo_n "checking where to find the target nm... " >&6; }
14648 if test "x${build}" != "x${host}" ; then
14649 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14650 # We already found the complete path
14651 ac_dir=`dirname $NM_FOR_TARGET`
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14653 $as_echo "pre-installed in $ac_dir" >&6; }
14654 else
14655 # Canadian cross, just use what we found
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14657 $as_echo "pre-installed" >&6; }
14659 else
14660 ok=yes
14661 case " ${configdirs} " in
14662 *" binutils "*) ;;
14663 *) ok=no ;;
14664 esac
14666 if test $ok = yes; then
14667 # An in-tree tool is available and we can use it
14668 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14670 $as_echo "just compiled" >&6; }
14671 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14672 # We already found the complete path
14673 ac_dir=`dirname $NM_FOR_TARGET`
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14675 $as_echo "pre-installed in $ac_dir" >&6; }
14676 elif test "x$target" = "x$host"; then
14677 # We can use an host tool
14678 NM_FOR_TARGET='$(NM)'
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14680 $as_echo "host tool" >&6; }
14681 else
14682 # We need a cross tool
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14684 $as_echo "pre-installed" >&6; }
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14689 $as_echo_n "checking where to find the target objcopy... " >&6; }
14690 if test "x${build}" != "x${host}" ; then
14691 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14692 # We already found the complete path
14693 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14695 $as_echo "pre-installed in $ac_dir" >&6; }
14696 else
14697 # Canadian cross, just use what we found
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14699 $as_echo "pre-installed" >&6; }
14701 else
14702 ok=yes
14703 case " ${configdirs} " in
14704 *" binutils "*) ;;
14705 *) ok=no ;;
14706 esac
14708 if test $ok = yes; then
14709 # An in-tree tool is available and we can use it
14710 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14712 $as_echo "just compiled" >&6; }
14713 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14714 # We already found the complete path
14715 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14717 $as_echo "pre-installed in $ac_dir" >&6; }
14718 elif test "x$target" = "x$host"; then
14719 # We can use an host tool
14720 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14722 $as_echo "host tool" >&6; }
14723 else
14724 # We need a cross tool
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14726 $as_echo "pre-installed" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14731 $as_echo_n "checking where to find the target objdump... " >&6; }
14732 if test "x${build}" != "x${host}" ; then
14733 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14734 # We already found the complete path
14735 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14737 $as_echo "pre-installed in $ac_dir" >&6; }
14738 else
14739 # Canadian cross, just use what we found
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14741 $as_echo "pre-installed" >&6; }
14743 else
14744 ok=yes
14745 case " ${configdirs} " in
14746 *" binutils "*) ;;
14747 *) ok=no ;;
14748 esac
14750 if test $ok = yes; then
14751 # An in-tree tool is available and we can use it
14752 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14754 $as_echo "just compiled" >&6; }
14755 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14756 # We already found the complete path
14757 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14759 $as_echo "pre-installed in $ac_dir" >&6; }
14760 elif test "x$target" = "x$host"; then
14761 # We can use an host tool
14762 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14764 $as_echo "host tool" >&6; }
14765 else
14766 # We need a cross tool
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14768 $as_echo "pre-installed" >&6; }
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14773 $as_echo_n "checking where to find the target ranlib... " >&6; }
14774 if test "x${build}" != "x${host}" ; then
14775 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14776 # We already found the complete path
14777 ac_dir=`dirname $RANLIB_FOR_TARGET`
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14779 $as_echo "pre-installed in $ac_dir" >&6; }
14780 else
14781 # Canadian cross, just use what we found
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14783 $as_echo "pre-installed" >&6; }
14785 else
14786 ok=yes
14787 case " ${configdirs} " in
14788 *" binutils "*) ;;
14789 *) ok=no ;;
14790 esac
14792 if test $ok = yes; then
14793 # An in-tree tool is available and we can use it
14794 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14796 $as_echo "just compiled" >&6; }
14797 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14798 # We already found the complete path
14799 ac_dir=`dirname $RANLIB_FOR_TARGET`
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14801 $as_echo "pre-installed in $ac_dir" >&6; }
14802 elif test "x$target" = "x$host"; then
14803 # We can use an host tool
14804 RANLIB_FOR_TARGET='$(RANLIB)'
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14806 $as_echo "host tool" >&6; }
14807 else
14808 # We need a cross tool
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14810 $as_echo "pre-installed" >&6; }
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14815 $as_echo_n "checking where to find the target readelf... " >&6; }
14816 if test "x${build}" != "x${host}" ; then
14817 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14818 # We already found the complete path
14819 ac_dir=`dirname $READELF_FOR_TARGET`
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14821 $as_echo "pre-installed in $ac_dir" >&6; }
14822 else
14823 # Canadian cross, just use what we found
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14825 $as_echo "pre-installed" >&6; }
14827 else
14828 ok=yes
14829 case " ${configdirs} " in
14830 *" binutils "*) ;;
14831 *) ok=no ;;
14832 esac
14834 if test $ok = yes; then
14835 # An in-tree tool is available and we can use it
14836 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14838 $as_echo "just compiled" >&6; }
14839 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14840 # We already found the complete path
14841 ac_dir=`dirname $READELF_FOR_TARGET`
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14843 $as_echo "pre-installed in $ac_dir" >&6; }
14844 elif test "x$target" = "x$host"; then
14845 # We can use an host tool
14846 READELF_FOR_TARGET='$(READELF)'
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14848 $as_echo "host tool" >&6; }
14849 else
14850 # We need a cross tool
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14852 $as_echo "pre-installed" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14857 $as_echo_n "checking where to find the target strip... " >&6; }
14858 if test "x${build}" != "x${host}" ; then
14859 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14860 # We already found the complete path
14861 ac_dir=`dirname $STRIP_FOR_TARGET`
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14863 $as_echo "pre-installed in $ac_dir" >&6; }
14864 else
14865 # Canadian cross, just use what we found
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14867 $as_echo "pre-installed" >&6; }
14869 else
14870 ok=yes
14871 case " ${configdirs} " in
14872 *" binutils "*) ;;
14873 *) ok=no ;;
14874 esac
14876 if test $ok = yes; then
14877 # An in-tree tool is available and we can use it
14878 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14880 $as_echo "just compiled" >&6; }
14881 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14882 # We already found the complete path
14883 ac_dir=`dirname $STRIP_FOR_TARGET`
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14885 $as_echo "pre-installed in $ac_dir" >&6; }
14886 elif test "x$target" = "x$host"; then
14887 # We can use an host tool
14888 STRIP_FOR_TARGET='$(STRIP)'
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14890 $as_echo "host tool" >&6; }
14891 else
14892 # We need a cross tool
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14894 $as_echo "pre-installed" >&6; }
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14899 $as_echo_n "checking where to find the target windres... " >&6; }
14900 if test "x${build}" != "x${host}" ; then
14901 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14902 # We already found the complete path
14903 ac_dir=`dirname $WINDRES_FOR_TARGET`
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14905 $as_echo "pre-installed in $ac_dir" >&6; }
14906 else
14907 # Canadian cross, just use what we found
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14909 $as_echo "pre-installed" >&6; }
14911 else
14912 ok=yes
14913 case " ${configdirs} " in
14914 *" binutils "*) ;;
14915 *) ok=no ;;
14916 esac
14918 if test $ok = yes; then
14919 # An in-tree tool is available and we can use it
14920 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14922 $as_echo "just compiled" >&6; }
14923 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14924 # We already found the complete path
14925 ac_dir=`dirname $WINDRES_FOR_TARGET`
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14927 $as_echo "pre-installed in $ac_dir" >&6; }
14928 elif test "x$target" = "x$host"; then
14929 # We can use an host tool
14930 WINDRES_FOR_TARGET='$(WINDRES)'
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14932 $as_echo "host tool" >&6; }
14933 else
14934 # We need a cross tool
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14936 $as_echo "pre-installed" >&6; }
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14941 $as_echo_n "checking where to find the target windmc... " >&6; }
14942 if test "x${build}" != "x${host}" ; then
14943 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14944 # We already found the complete path
14945 ac_dir=`dirname $WINDMC_FOR_TARGET`
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14947 $as_echo "pre-installed in $ac_dir" >&6; }
14948 else
14949 # Canadian cross, just use what we found
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14951 $as_echo "pre-installed" >&6; }
14953 else
14954 ok=yes
14955 case " ${configdirs} " in
14956 *" binutils "*) ;;
14957 *) ok=no ;;
14958 esac
14960 if test $ok = yes; then
14961 # An in-tree tool is available and we can use it
14962 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14964 $as_echo "just compiled" >&6; }
14965 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14966 # We already found the complete path
14967 ac_dir=`dirname $WINDMC_FOR_TARGET`
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14969 $as_echo "pre-installed in $ac_dir" >&6; }
14970 elif test "x$target" = "x$host"; then
14971 # We can use an host tool
14972 WINDMC_FOR_TARGET='$(WINDMC)'
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14974 $as_echo "host tool" >&6; }
14975 else
14976 # We need a cross tool
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14978 $as_echo "pre-installed" >&6; }
14986 # Certain tools may need extra flags.
14987 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14988 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14989 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14991 # When building target libraries, except in a Canadian cross, we use
14992 # the same toolchain as the compiler we just built.
14993 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14994 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14995 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14996 if test $host = $build; then
14997 case " $configdirs " in
14998 *" gcc "*)
14999 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15000 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15001 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15003 esac
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15011 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15012 # Check whether --enable-maintainer-mode was given.
15013 if test "${enable_maintainer_mode+set}" = set; then :
15014 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15015 else
15016 USE_MAINTAINER_MODE=no
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15020 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15023 if test "$USE_MAINTAINER_MODE" = yes; then
15024 MAINTAINER_MODE_TRUE=
15025 MAINTAINER_MODE_FALSE='#'
15026 else
15027 MAINTAINER_MODE_TRUE='#'
15028 MAINTAINER_MODE_FALSE=
15030 MAINT=$MAINTAINER_MODE_TRUE
15032 # ---------------------
15033 # GCC bootstrap support
15034 # ---------------------
15036 # Stage specific cflags for build.
15037 stage1_cflags="-g"
15038 case $build in
15039 vax-*-*)
15040 case ${GCC} in
15041 yes) stage1_cflags="-g -Wa,-J" ;;
15042 *) stage1_cflags="-g -J" ;;
15043 esac ;;
15044 esac
15048 # Enable --enable-checking in stage1 of the compiler.
15049 # Check whether --enable-stage1-checking was given.
15050 if test "${enable_stage1_checking+set}" = set; then :
15051 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15052 else
15053 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15054 # For --disable-checking or implicit --enable-checking=release, avoid
15055 # setting --enable-checking=gc in the default stage1 checking for LTO
15056 # bootstraps. See PR62077.
15057 case $BUILD_CONFIG in
15058 *lto*)
15059 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15061 stage1_checking=--enable-checking=yes,types;;
15062 esac
15063 if test "x$enable_checking" = x && \
15064 test -d ${srcdir}/gcc && \
15065 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15066 stage1_checking=--enable-checking=yes,types,extra
15068 else
15069 stage1_checking=--enable-checking=$enable_checking,types
15075 # Enable -Werror in bootstrap stage2 and later.
15076 # Check whether --enable-werror was given.
15077 if test "${enable_werror+set}" = set; then :
15078 enableval=$enable_werror;
15079 else
15080 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15081 enable_werror=yes
15082 else
15083 enable_werror=no
15087 case ${enable_werror} in
15088 yes) stage2_werror_flag="--enable-werror-always" ;;
15089 *) stage2_werror_flag="" ;;
15090 esac
15093 # Enable --enable-host-shared.
15094 # Check whether --enable-host-shared was given.
15095 if test "${enable_host_shared+set}" = set; then :
15096 enableval=$enable_host_shared; host_shared=$enableval
15097 else
15098 host_shared=no
15103 # PR jit/64780: Require the user to explicitly specify
15104 # --enable-host-shared if the jit is enabled, hinting
15105 # that they might want to do a separate configure/build of
15106 # the jit, to avoid users from slowing down the rest of the
15107 # compiler by enabling the jit.
15108 if test ${host_shared} = "no" ; then
15109 case "${enable_languages}" in
15110 *jit*)
15111 as_fn_error $? "
15112 Enabling language \"jit\" requires --enable-host-shared.
15114 --enable-host-shared typically slows the rest of the compiler down by
15115 a few %, so you must explicitly enable it.
15117 If you want to build both the jit and the regular compiler, it is often
15118 best to do this via two separate configure/builds, in separate
15119 directories, to avoid imposing the performance cost of
15120 --enable-host-shared on the regular compiler." "$LINENO" 5
15124 esac
15127 # Specify what files to not compare during bootstrap.
15129 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15130 case "$target" in
15131 hppa*64*-*-hpux*) ;;
15132 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
15133 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15134 esac
15137 ac_config_files="$ac_config_files Makefile"
15139 cat >confcache <<\_ACEOF
15140 # This file is a shell script that caches the results of configure
15141 # tests run on this system so they can be shared between configure
15142 # scripts and configure runs, see configure's option --config-cache.
15143 # It is not useful on other systems. If it contains results you don't
15144 # want to keep, you may remove or edit it.
15146 # config.status only pays attention to the cache file if you give it
15147 # the --recheck option to rerun configure.
15149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15151 # following values.
15153 _ACEOF
15155 # The following way of writing the cache mishandles newlines in values,
15156 # but we know of no workaround that is simple, portable, and efficient.
15157 # So, we kill variables containing newlines.
15158 # Ultrix sh set writes to stderr and can't be redirected directly,
15159 # and sets the high bit in the cache file unless we assign to the vars.
15161 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15162 eval ac_val=\$$ac_var
15163 case $ac_val in #(
15164 *${as_nl}*)
15165 case $ac_var in #(
15166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15168 esac
15169 case $ac_var in #(
15170 _ | IFS | as_nl) ;; #(
15171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15172 *) { eval $ac_var=; unset $ac_var;} ;;
15173 esac ;;
15174 esac
15175 done
15177 (set) 2>&1 |
15178 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15179 *${as_nl}ac_space=\ *)
15180 # `set' does not quote correctly, so add quotes: double-quote
15181 # substitution turns \\\\ into \\, and sed turns \\ into \.
15182 sed -n \
15183 "s/'/'\\\\''/g;
15184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15185 ;; #(
15187 # `set' quotes correctly as required by POSIX, so do not add quotes.
15188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15190 esac |
15191 sort
15193 sed '
15194 /^ac_cv_env_/b end
15195 t clear
15196 :clear
15197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15198 t end
15199 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15200 :end' >>confcache
15201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15202 if test -w "$cache_file"; then
15203 if test "x$cache_file" != "x/dev/null"; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15205 $as_echo "$as_me: updating cache $cache_file" >&6;}
15206 if test ! -f "$cache_file" || test -h "$cache_file"; then
15207 cat confcache >"$cache_file"
15208 else
15209 case $cache_file in #(
15210 */* | ?:*)
15211 mv -f confcache "$cache_file"$$ &&
15212 mv -f "$cache_file"$$ "$cache_file" ;; #(
15214 mv -f confcache "$cache_file" ;;
15215 esac
15218 else
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15220 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15223 rm -f confcache
15225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15226 # Let make expand exec_prefix.
15227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15229 # Transform confdefs.h into DEFS.
15230 # Protect against shell expansion while executing Makefile rules.
15231 # Protect against Makefile macro expansion.
15233 # If the first sed substitution is executed (which looks for macros that
15234 # take arguments), then branch to the quote section. Otherwise,
15235 # look for a macro that doesn't take arguments.
15236 ac_script='
15237 :mline
15238 /\\$/{
15240 s,\\\n,,
15241 b mline
15243 t clear
15244 :clear
15245 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15246 t quote
15247 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15248 t quote
15249 b any
15250 :quote
15251 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15252 s/\[/\\&/g
15253 s/\]/\\&/g
15254 s/\$/$$/g
15256 :any
15259 s/^\n//
15260 s/\n/ /g
15264 DEFS=`sed -n "$ac_script" confdefs.h`
15267 ac_libobjs=
15268 ac_ltlibobjs=
15270 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15271 # 1. Remove the extension, and $U if already installed.
15272 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15273 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15274 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15275 # will be set to the directory where LIBOBJS objects are built.
15276 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15277 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15278 done
15279 LIBOBJS=$ac_libobjs
15281 LTLIBOBJS=$ac_ltlibobjs
15285 : "${CONFIG_STATUS=./config.status}"
15286 ac_write_fail=0
15287 ac_clean_files_save=$ac_clean_files
15288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15291 as_write_fail=0
15292 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15293 #! $SHELL
15294 # Generated by $as_me.
15295 # Run this file to recreate the current configuration.
15296 # Compiler output produced by configure, useful for debugging
15297 # configure, is in config.log if it exists.
15299 debug=false
15300 ac_cs_recheck=false
15301 ac_cs_silent=false
15303 SHELL=\${CONFIG_SHELL-$SHELL}
15304 export SHELL
15305 _ASEOF
15306 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15307 ## -------------------- ##
15308 ## M4sh Initialization. ##
15309 ## -------------------- ##
15311 # Be more Bourne compatible
15312 DUALCASE=1; export DUALCASE # for MKS sh
15313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15314 emulate sh
15315 NULLCMD=:
15316 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15317 # is contrary to our usage. Disable this feature.
15318 alias -g '${1+"$@"}'='"$@"'
15319 setopt NO_GLOB_SUBST
15320 else
15321 case `(set -o) 2>/dev/null` in #(
15322 *posix*) :
15323 set -o posix ;; #(
15324 *) :
15326 esac
15330 as_nl='
15332 export as_nl
15333 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15334 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15336 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15337 # Prefer a ksh shell builtin over an external printf program on Solaris,
15338 # but without wasting forks for bash or zsh.
15339 if test -z "$BASH_VERSION$ZSH_VERSION" \
15340 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15341 as_echo='print -r --'
15342 as_echo_n='print -rn --'
15343 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15344 as_echo='printf %s\n'
15345 as_echo_n='printf %s'
15346 else
15347 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15348 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15349 as_echo_n='/usr/ucb/echo -n'
15350 else
15351 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15352 as_echo_n_body='eval
15353 arg=$1;
15354 case $arg in #(
15355 *"$as_nl"*)
15356 expr "X$arg" : "X\\(.*\\)$as_nl";
15357 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15358 esac;
15359 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15361 export as_echo_n_body
15362 as_echo_n='sh -c $as_echo_n_body as_echo'
15364 export as_echo_body
15365 as_echo='sh -c $as_echo_body as_echo'
15368 # The user is always right.
15369 if test "${PATH_SEPARATOR+set}" != set; then
15370 PATH_SEPARATOR=:
15371 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15372 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15373 PATH_SEPARATOR=';'
15378 # IFS
15379 # We need space, tab and new line, in precisely that order. Quoting is
15380 # there to prevent editors from complaining about space-tab.
15381 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15382 # splitting by setting IFS to empty value.)
15383 IFS=" "" $as_nl"
15385 # Find who we are. Look in the path if we contain no directory separator.
15386 as_myself=
15387 case $0 in #((
15388 *[\\/]* ) as_myself=$0 ;;
15389 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390 for as_dir in $PATH
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15395 done
15396 IFS=$as_save_IFS
15399 esac
15400 # We did not find ourselves, most probably we were run as `sh COMMAND'
15401 # in which case we are not to be found in the path.
15402 if test "x$as_myself" = x; then
15403 as_myself=$0
15405 if test ! -f "$as_myself"; then
15406 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15407 exit 1
15410 # Unset variables that we do not need and which cause bugs (e.g. in
15411 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15412 # suppresses any "Segmentation fault" message there. '((' could
15413 # trigger a bug in pdksh 5.2.14.
15414 for as_var in BASH_ENV ENV MAIL MAILPATH
15415 do eval test x\${$as_var+set} = xset \
15416 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15417 done
15418 PS1='$ '
15419 PS2='> '
15420 PS4='+ '
15422 # NLS nuisances.
15423 LC_ALL=C
15424 export LC_ALL
15425 LANGUAGE=C
15426 export LANGUAGE
15428 # CDPATH.
15429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15432 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15433 # ----------------------------------------
15434 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15435 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15436 # script with STATUS, using 1 if that was 0.
15437 as_fn_error ()
15439 as_status=$1; test $as_status -eq 0 && as_status=1
15440 if test "$4"; then
15441 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15442 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15444 $as_echo "$as_me: error: $2" >&2
15445 as_fn_exit $as_status
15446 } # as_fn_error
15449 # as_fn_set_status STATUS
15450 # -----------------------
15451 # Set $? to STATUS, without forking.
15452 as_fn_set_status ()
15454 return $1
15455 } # as_fn_set_status
15457 # as_fn_exit STATUS
15458 # -----------------
15459 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15460 as_fn_exit ()
15462 set +e
15463 as_fn_set_status $1
15464 exit $1
15465 } # as_fn_exit
15467 # as_fn_unset VAR
15468 # ---------------
15469 # Portably unset VAR.
15470 as_fn_unset ()
15472 { eval $1=; unset $1;}
15474 as_unset=as_fn_unset
15475 # as_fn_append VAR VALUE
15476 # ----------------------
15477 # Append the text in VALUE to the end of the definition contained in VAR. Take
15478 # advantage of any shell optimizations that allow amortized linear growth over
15479 # repeated appends, instead of the typical quadratic growth present in naive
15480 # implementations.
15481 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15482 eval 'as_fn_append ()
15484 eval $1+=\$2
15486 else
15487 as_fn_append ()
15489 eval $1=\$$1\$2
15491 fi # as_fn_append
15493 # as_fn_arith ARG...
15494 # ------------------
15495 # Perform arithmetic evaluation on the ARGs, and store the result in the
15496 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15497 # must be portable across $(()) and expr.
15498 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15499 eval 'as_fn_arith ()
15501 as_val=$(( $* ))
15503 else
15504 as_fn_arith ()
15506 as_val=`expr "$@" || test $? -eq 1`
15508 fi # as_fn_arith
15511 if expr a : '\(a\)' >/dev/null 2>&1 &&
15512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15513 as_expr=expr
15514 else
15515 as_expr=false
15518 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15519 as_basename=basename
15520 else
15521 as_basename=false
15524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15525 as_dirname=dirname
15526 else
15527 as_dirname=false
15530 as_me=`$as_basename -- "$0" ||
15531 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15532 X"$0" : 'X\(//\)$' \| \
15533 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15534 $as_echo X/"$0" |
15535 sed '/^.*\/\([^/][^/]*\)\/*$/{
15536 s//\1/
15539 /^X\/\(\/\/\)$/{
15540 s//\1/
15543 /^X\/\(\/\).*/{
15544 s//\1/
15547 s/.*/./; q'`
15549 # Avoid depending upon Character Ranges.
15550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15553 as_cr_digits='0123456789'
15554 as_cr_alnum=$as_cr_Letters$as_cr_digits
15556 ECHO_C= ECHO_N= ECHO_T=
15557 case `echo -n x` in #(((((
15558 -n*)
15559 case `echo 'xy\c'` in
15560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15561 xy) ECHO_C='\c';;
15562 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15563 ECHO_T=' ';;
15564 esac;;
15566 ECHO_N='-n';;
15567 esac
15569 rm -f conf$$ conf$$.exe conf$$.file
15570 if test -d conf$$.dir; then
15571 rm -f conf$$.dir/conf$$.file
15572 else
15573 rm -f conf$$.dir
15574 mkdir conf$$.dir 2>/dev/null
15576 if (echo >conf$$.file) 2>/dev/null; then
15577 if ln -s conf$$.file conf$$ 2>/dev/null; then
15578 as_ln_s='ln -s'
15579 # ... but there are two gotchas:
15580 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15581 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15582 # In both cases, we have to default to `cp -pR'.
15583 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15584 as_ln_s='cp -pR'
15585 elif ln conf$$.file conf$$ 2>/dev/null; then
15586 as_ln_s=ln
15587 else
15588 as_ln_s='cp -pR'
15590 else
15591 as_ln_s='cp -pR'
15593 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15594 rmdir conf$$.dir 2>/dev/null
15597 # as_fn_mkdir_p
15598 # -------------
15599 # Create "$as_dir" as a directory, including parents if necessary.
15600 as_fn_mkdir_p ()
15603 case $as_dir in #(
15604 -*) as_dir=./$as_dir;;
15605 esac
15606 test -d "$as_dir" || eval $as_mkdir_p || {
15607 as_dirs=
15608 while :; do
15609 case $as_dir in #(
15610 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15611 *) as_qdir=$as_dir;;
15612 esac
15613 as_dirs="'$as_qdir' $as_dirs"
15614 as_dir=`$as_dirname -- "$as_dir" ||
15615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15616 X"$as_dir" : 'X\(//\)[^/]' \| \
15617 X"$as_dir" : 'X\(//\)$' \| \
15618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15619 $as_echo X"$as_dir" |
15620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15621 s//\1/
15624 /^X\(\/\/\)[^/].*/{
15625 s//\1/
15628 /^X\(\/\/\)$/{
15629 s//\1/
15632 /^X\(\/\).*/{
15633 s//\1/
15636 s/.*/./; q'`
15637 test -d "$as_dir" && break
15638 done
15639 test -z "$as_dirs" || eval "mkdir $as_dirs"
15640 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15643 } # as_fn_mkdir_p
15644 if mkdir -p . 2>/dev/null; then
15645 as_mkdir_p='mkdir -p "$as_dir"'
15646 else
15647 test -d ./-p && rmdir ./-p
15648 as_mkdir_p=false
15652 # as_fn_executable_p FILE
15653 # -----------------------
15654 # Test if FILE is an executable regular file.
15655 as_fn_executable_p ()
15657 test -f "$1" && test -x "$1"
15658 } # as_fn_executable_p
15659 as_test_x='test -x'
15660 as_executable_p=as_fn_executable_p
15662 # Sed expression to map a string onto a valid CPP name.
15663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15665 # Sed expression to map a string onto a valid variable name.
15666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15669 exec 6>&1
15670 ## ----------------------------------- ##
15671 ## Main body of $CONFIG_STATUS script. ##
15672 ## ----------------------------------- ##
15673 _ASEOF
15674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15677 # Save the log message, to keep $0 and so on meaningful, and to
15678 # report actual input values of CONFIG_FILES etc. instead of their
15679 # values after options handling.
15680 ac_log="
15681 This file was extended by $as_me, which was
15682 generated by GNU Autoconf 2.69. Invocation command line was
15684 CONFIG_FILES = $CONFIG_FILES
15685 CONFIG_HEADERS = $CONFIG_HEADERS
15686 CONFIG_LINKS = $CONFIG_LINKS
15687 CONFIG_COMMANDS = $CONFIG_COMMANDS
15688 $ $0 $@
15690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15693 _ACEOF
15695 case $ac_config_files in *"
15696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15697 esac
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15702 # Files that config.status was made for.
15703 config_files="$ac_config_files"
15705 _ACEOF
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708 ac_cs_usage="\
15709 \`$as_me' instantiates files and other configuration actions
15710 from templates according to the current configuration. Unless the files
15711 and actions are specified as TAGs, all are instantiated by default.
15713 Usage: $0 [OPTION]... [TAG]...
15715 -h, --help print this help, then exit
15716 -V, --version print version number and configuration settings, then exit
15717 --config print configuration, then exit
15718 -q, --quiet, --silent
15719 do not print progress messages
15720 -d, --debug don't remove temporary files
15721 --recheck update $as_me by reconfiguring in the same conditions
15722 --file=FILE[:TEMPLATE]
15723 instantiate the configuration file FILE
15725 Configuration files:
15726 $config_files
15728 Report bugs to the package provider."
15730 _ACEOF
15731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15732 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15733 ac_cs_version="\\
15734 config.status
15735 configured by $0, generated by GNU Autoconf 2.69,
15736 with options \\"\$ac_cs_config\\"
15738 Copyright (C) 2012 Free Software Foundation, Inc.
15739 This config.status script is free software; the Free Software Foundation
15740 gives unlimited permission to copy, distribute and modify it."
15742 ac_pwd='$ac_pwd'
15743 srcdir='$srcdir'
15744 INSTALL='$INSTALL'
15745 AWK='$AWK'
15746 test -n "\$AWK" || AWK=awk
15747 _ACEOF
15749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15750 # The default lists apply if the user does not specify any file.
15751 ac_need_defaults=:
15752 while test $# != 0
15754 case $1 in
15755 --*=?*)
15756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15758 ac_shift=:
15760 --*=)
15761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15762 ac_optarg=
15763 ac_shift=:
15766 ac_option=$1
15767 ac_optarg=$2
15768 ac_shift=shift
15770 esac
15772 case $ac_option in
15773 # Handling of the options.
15774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15775 ac_cs_recheck=: ;;
15776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15777 $as_echo "$ac_cs_version"; exit ;;
15778 --config | --confi | --conf | --con | --co | --c )
15779 $as_echo "$ac_cs_config"; exit ;;
15780 --debug | --debu | --deb | --de | --d | -d )
15781 debug=: ;;
15782 --file | --fil | --fi | --f )
15783 $ac_shift
15784 case $ac_optarg in
15785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15786 '') as_fn_error $? "missing file argument" ;;
15787 esac
15788 as_fn_append CONFIG_FILES " '$ac_optarg'"
15789 ac_need_defaults=false;;
15790 --he | --h | --help | --hel | -h )
15791 $as_echo "$ac_cs_usage"; exit ;;
15792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15793 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15794 ac_cs_silent=: ;;
15796 # This is an error.
15797 -*) as_fn_error $? "unrecognized option: \`$1'
15798 Try \`$0 --help' for more information." ;;
15800 *) as_fn_append ac_config_targets " $1"
15801 ac_need_defaults=false ;;
15803 esac
15804 shift
15805 done
15807 ac_configure_extra_args=
15809 if $ac_cs_silent; then
15810 exec 6>/dev/null
15811 ac_configure_extra_args="$ac_configure_extra_args --silent"
15814 _ACEOF
15815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816 if \$ac_cs_recheck; then
15817 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15818 shift
15819 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15820 CONFIG_SHELL='$SHELL'
15821 export CONFIG_SHELL
15822 exec "\$@"
15825 _ACEOF
15826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15827 exec 5>>config.log
15829 echo
15830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15831 ## Running $as_me. ##
15832 _ASBOX
15833 $as_echo "$ac_log"
15834 } >&5
15836 _ACEOF
15837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15839 # INIT-COMMANDS
15841 extrasub_build="$extrasub_build"
15842 extrasub_host="$extrasub_host"
15843 extrasub_target="$extrasub_target"
15845 _ACEOF
15847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15849 # Handling of arguments.
15850 for ac_config_target in $ac_config_targets
15852 case $ac_config_target in
15853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15855 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15856 esac
15857 done
15860 # If the user did not use the arguments to specify the items to instantiate,
15861 # then the envvar interface is used. Set only those that are not.
15862 # We use the long form for the default assignment because of an extremely
15863 # bizarre bug on SunOS 4.1.3.
15864 if $ac_need_defaults; then
15865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15868 # Have a temporary directory for convenience. Make it in the build tree
15869 # simply because there is no reason against having it here, and in addition,
15870 # creating and moving files from /tmp can sometimes cause problems.
15871 # Hook for its removal unless debugging.
15872 # Note that there is a small window in which the directory will not be cleaned:
15873 # after its creation but before its name has been assigned to `$tmp'.
15874 $debug ||
15876 tmp= ac_tmp=
15877 trap 'exit_status=$?
15878 : "${ac_tmp:=$tmp}"
15879 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15881 trap 'as_fn_exit 1' 1 2 13 15
15883 # Create a (secure) tmp directory for tmp files.
15886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15887 test -d "$tmp"
15888 } ||
15890 tmp=./conf$$-$RANDOM
15891 (umask 077 && mkdir "$tmp")
15892 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15893 ac_tmp=$tmp
15895 # Set up the scripts for CONFIG_FILES section.
15896 # No need to generate them if there are no CONFIG_FILES.
15897 # This happens for instance with `./config.status config.h'.
15898 if test -n "$CONFIG_FILES"; then
15900 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15901 ac_cs_awk_getline=:
15902 ac_cs_awk_pipe_init=
15903 ac_cs_awk_read_file='
15904 while ((getline aline < (F[key])) > 0)
15905 print(aline)
15906 close(F[key])'
15907 ac_cs_awk_pipe_fini=
15908 else
15909 ac_cs_awk_getline=false
15910 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15911 ac_cs_awk_read_file='
15912 print "|#_!!_#|"
15913 print "cat " F[key] " &&"
15914 '$ac_cs_awk_pipe_init
15915 # The final `:' finishes the AND list.
15916 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15918 ac_cr=`echo X | tr X '\015'`
15919 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15920 # But we know of no other shell where ac_cr would be empty at this
15921 # point, so we can use a bashism as a fallback.
15922 if test "x$ac_cr" = x; then
15923 eval ac_cr=\$\'\\r\'
15925 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15926 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15927 ac_cs_awk_cr='\\r'
15928 else
15929 ac_cs_awk_cr=$ac_cr
15932 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15933 _ACEOF
15935 # Create commands to substitute file output variables.
15937 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15938 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15939 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15940 echo "_ACAWK" &&
15941 echo "_ACEOF"
15942 } >conf$$files.sh &&
15943 . ./conf$$files.sh ||
15944 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15945 rm -f conf$$files.sh
15948 echo "cat >conf$$subs.awk <<_ACEOF" &&
15949 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15950 echo "_ACEOF"
15951 } >conf$$subs.sh ||
15952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15953 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15954 ac_delim='%!_!# '
15955 for ac_last_try in false false false false false :; do
15956 . ./conf$$subs.sh ||
15957 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15959 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15960 if test $ac_delim_n = $ac_delim_num; then
15961 break
15962 elif $ac_last_try; then
15963 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15964 else
15965 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15967 done
15968 rm -f conf$$subs.sh
15970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15971 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15972 _ACEOF
15973 sed -n '
15975 s/^/S["/; s/!.*/"]=/
15978 s/^[^!]*!//
15979 :repl
15980 t repl
15981 s/'"$ac_delim"'$//
15982 t delim
15985 s/\(.\{148\}\)..*/\1/
15986 t more1
15987 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15990 b repl
15991 :more1
15992 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15995 s/.\{148\}//
15996 t nl
15997 :delim
15999 s/\(.\{148\}\)..*/\1/
16000 t more2
16001 s/["\\]/\\&/g; s/^/"/; s/$/"/
16004 :more2
16005 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16008 s/.\{148\}//
16009 t delim
16010 ' <conf$$subs.awk | sed '
16011 /^[^""]/{
16013 s/\n//
16015 ' >>$CONFIG_STATUS || ac_write_fail=1
16016 rm -f conf$$subs.awk
16017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16018 _ACAWK
16019 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16020 for (key in S) S_is_set[key] = 1
16021 FS = "\a"
16022 \$ac_cs_awk_pipe_init
16025 line = $ 0
16026 nfields = split(line, field, "@")
16027 substed = 0
16028 len = length(field[1])
16029 for (i = 2; i < nfields; i++) {
16030 key = field[i]
16031 keylen = length(key)
16032 if (S_is_set[key]) {
16033 value = S[key]
16034 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16035 len += length(value) + length(field[++i])
16036 substed = 1
16037 } else
16038 len += 1 + keylen
16040 if (nfields == 3 && !substed) {
16041 key = field[2]
16042 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16043 \$ac_cs_awk_read_file
16044 next
16047 print line
16049 \$ac_cs_awk_pipe_fini
16050 _ACAWK
16051 _ACEOF
16052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16053 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16054 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16055 else
16057 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16058 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16059 _ACEOF
16061 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16062 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16063 # trailing colons and then remove the whole line if VPATH becomes empty
16064 # (actually we leave an empty line to preserve line numbers).
16065 if test "x$srcdir" = x.; then
16066 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16068 s///
16069 s/^/:/
16070 s/[ ]*$/:/
16071 s/:\$(srcdir):/:/g
16072 s/:\${srcdir}:/:/g
16073 s/:@srcdir@:/:/g
16074 s/^:*//
16075 s/:*$//
16077 s/\(=[ ]*\).*/\1/
16079 s/\n//
16080 s/^[^=]*=[ ]*$//
16084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16085 fi # test -n "$CONFIG_FILES"
16088 eval set X " :F $CONFIG_FILES "
16089 shift
16090 for ac_tag
16092 case $ac_tag in
16093 :[FHLC]) ac_mode=$ac_tag; continue;;
16094 esac
16095 case $ac_mode$ac_tag in
16096 :[FHL]*:*);;
16097 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16098 :[FH]-) ac_tag=-:-;;
16099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16100 esac
16101 ac_save_IFS=$IFS
16102 IFS=:
16103 set x $ac_tag
16104 IFS=$ac_save_IFS
16105 shift
16106 ac_file=$1
16107 shift
16109 case $ac_mode in
16110 :L) ac_source=$1;;
16111 :[FH])
16112 ac_file_inputs=
16113 for ac_f
16115 case $ac_f in
16116 -) ac_f="$ac_tmp/stdin";;
16117 *) # Look for the file first in the build tree, then in the source tree
16118 # (if the path is not absolute). The absolute path cannot be DOS-style,
16119 # because $ac_f cannot contain `:'.
16120 test -f "$ac_f" ||
16121 case $ac_f in
16122 [\\/$]*) false;;
16123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16124 esac ||
16125 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16126 esac
16127 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16128 as_fn_append ac_file_inputs " '$ac_f'"
16129 done
16131 # Let's still pretend it is `configure' which instantiates (i.e., don't
16132 # use $as_me), people would be surprised to read:
16133 # /* config.h. Generated by config.status. */
16134 configure_input='Generated from '`
16135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16136 `' by configure.'
16137 if test x"$ac_file" != x-; then
16138 configure_input="$ac_file. $configure_input"
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16140 $as_echo "$as_me: creating $ac_file" >&6;}
16142 # Neutralize special characters interpreted by sed in replacement strings.
16143 case $configure_input in #(
16144 *\&* | *\|* | *\\* )
16145 ac_sed_conf_input=`$as_echo "$configure_input" |
16146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16147 *) ac_sed_conf_input=$configure_input;;
16148 esac
16150 case $ac_tag in
16151 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16153 esac
16155 esac
16157 ac_dir=`$as_dirname -- "$ac_file" ||
16158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16159 X"$ac_file" : 'X\(//\)[^/]' \| \
16160 X"$ac_file" : 'X\(//\)$' \| \
16161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16162 $as_echo X"$ac_file" |
16163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16164 s//\1/
16167 /^X\(\/\/\)[^/].*/{
16168 s//\1/
16171 /^X\(\/\/\)$/{
16172 s//\1/
16175 /^X\(\/\).*/{
16176 s//\1/
16179 s/.*/./; q'`
16180 as_dir="$ac_dir"; as_fn_mkdir_p
16181 ac_builddir=.
16183 case "$ac_dir" in
16184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16186 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16187 # A ".." for each directory in $ac_dir_suffix.
16188 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16189 case $ac_top_builddir_sub in
16190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16192 esac ;;
16193 esac
16194 ac_abs_top_builddir=$ac_pwd
16195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16196 # for backward compatibility:
16197 ac_top_builddir=$ac_top_build_prefix
16199 case $srcdir in
16200 .) # We are building in place.
16201 ac_srcdir=.
16202 ac_top_srcdir=$ac_top_builddir_sub
16203 ac_abs_top_srcdir=$ac_pwd ;;
16204 [\\/]* | ?:[\\/]* ) # Absolute name.
16205 ac_srcdir=$srcdir$ac_dir_suffix;
16206 ac_top_srcdir=$srcdir
16207 ac_abs_top_srcdir=$srcdir ;;
16208 *) # Relative name.
16209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16210 ac_top_srcdir=$ac_top_build_prefix$srcdir
16211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16212 esac
16213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16216 case $ac_mode in
16219 # CONFIG_FILE
16222 case $INSTALL in
16223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16224 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16225 esac
16226 _ACEOF
16228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229 # If the template does not know about datarootdir, expand it.
16230 # FIXME: This hack should be removed a few years after 2.60.
16231 ac_datarootdir_hack=; ac_datarootdir_seen=
16232 ac_sed_dataroot='
16233 /datarootdir/ {
16237 /@datadir@/p
16238 /@docdir@/p
16239 /@infodir@/p
16240 /@localedir@/p
16241 /@mandir@/p'
16242 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16243 *datarootdir*) ac_datarootdir_seen=yes;;
16244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16246 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16247 _ACEOF
16248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249 ac_datarootdir_hack='
16250 s&@datadir@&$datadir&g
16251 s&@docdir@&$docdir&g
16252 s&@infodir@&$infodir&g
16253 s&@localedir@&$localedir&g
16254 s&@mandir@&$mandir&g
16255 s&\\\${datarootdir}&$datarootdir&g' ;;
16256 esac
16257 _ACEOF
16259 # Neutralize VPATH when `$srcdir' = `.'.
16260 # Shell code in configure.ac might set extrasub.
16261 # FIXME: do we really want to maintain this feature?
16262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16263 ac_sed_extra="$ac_vpsub
16264 $extrasub
16265 _ACEOF
16266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16269 s|@configure_input@|$ac_sed_conf_input|;t t
16270 s&@top_builddir@&$ac_top_builddir_sub&;t t
16271 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16272 s&@srcdir@&$ac_srcdir&;t t
16273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16274 s&@top_srcdir@&$ac_top_srcdir&;t t
16275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16276 s&@builddir@&$ac_builddir&;t t
16277 s&@abs_builddir@&$ac_abs_builddir&;t t
16278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16279 s&@INSTALL@&$ac_INSTALL&;t t
16280 $ac_datarootdir_hack
16282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16283 if $ac_cs_awk_getline; then
16284 $AWK -f "$ac_tmp/subs.awk"
16285 else
16286 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16287 fi \
16288 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16290 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16291 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16293 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16295 which seems to be undefined. Please make sure it is defined" >&5
16296 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16297 which seems to be undefined. Please make sure it is defined" >&2;}
16299 rm -f "$ac_tmp/stdin"
16300 case $ac_file in
16301 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16302 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16303 esac \
16304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16309 esac
16312 case $ac_file$ac_mode in
16313 "Makefile":F) sed "$extrasub_build" Makefile |
16314 sed "$extrasub_host" |
16315 sed "$extrasub_target" > mf$$
16316 mv -f mf$$ Makefile ;;
16318 esac
16319 done # for ac_tag
16322 as_fn_exit 0
16323 _ACEOF
16324 ac_clean_files=$ac_clean_files_save
16326 test $ac_write_fail = 0 ||
16327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16330 # configure is writing to config.log, and then calls config.status.
16331 # config.status does its own redirection, appending to config.log.
16332 # Unfortunately, on DOS this fails, as config.log is still kept open
16333 # by configure, so config.status won't be able to write to it; its
16334 # output is simply discarded. So we exec the FD to /dev/null,
16335 # effectively closing config.log, so it can be properly (re)opened and
16336 # appended to by config.status. When coming back to configure, we
16337 # need to make the FD available again.
16338 if test "$no_create" != yes; then
16339 ac_cs_success=:
16340 ac_config_status_args=
16341 test "$silent" = yes &&
16342 ac_config_status_args="$ac_config_status_args --quiet"
16343 exec 5>/dev/null
16344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16345 exec 5>>config.log
16346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16347 # would make configure fail if this is the last instruction.
16348 $ac_cs_success || as_fn_exit 1
16350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}