Cygwin: pipe: Fix incorrect write length in raw_write()
[newlib-cygwin.git] / configure
blob947715305636d3d159f66c4094c5aed322260ed4
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 runstatedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_gold
790 enable_ld
791 enable_compressed_debug_sections
792 enable_libquadmath
793 enable_libquadmath_support
794 enable_libada
795 enable_libssp
796 enable_libstdcxx
797 enable_liboffloadmic
798 enable_static_libjava
799 enable_bootstrap
800 with_mpc
801 with_mpc_include
802 with_mpc_lib
803 with_mpfr_dir
804 with_mpfr
805 with_mpfr_include
806 with_mpfr_lib
807 with_gmp_dir
808 with_gmp
809 with_gmp_include
810 with_gmp_lib
811 with_stage1_libs
812 with_stage1_ldflags
813 with_boot_libs
814 with_boot_ldflags
815 with_isl
816 with_isl_include
817 with_isl_lib
818 enable_isl_version_check
819 enable_lto
820 enable_linker_plugin_configure_flags
821 enable_linker_plugin_flags
822 enable_stage1_languages
823 enable_objc_gc
824 with_build_sysroot
825 with_debug_prefix_map
826 with_tooldir
827 with_build_config
828 enable_vtable_verify
829 enable_serial_configure
830 with_build_time_tools
831 enable_maintainer_mode
832 enable_stage1_checking
833 enable_werror
834 enable_host_shared
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
845 CXXFLAGS
847 build_configargs
848 host_configargs
849 target_configargs
852 DLLTOOL
854 LIPO
856 RANLIB
857 STRIP
858 WINDRES
859 WINDMC
860 OBJCOPY
861 OBJDUMP
862 READELF
863 CC_FOR_TARGET
864 CXX_FOR_TARGET
865 GCC_FOR_TARGET
866 GCJ_FOR_TARGET
867 GFORTRAN_FOR_TARGET
868 GOC_FOR_TARGET
869 AR_FOR_TARGET
870 AS_FOR_TARGET
871 DLLTOOL_FOR_TARGET
872 LD_FOR_TARGET
873 LIPO_FOR_TARGET
874 NM_FOR_TARGET
875 OBJCOPY_FOR_TARGET
876 OBJDUMP_FOR_TARGET
877 RANLIB_FOR_TARGET
878 READELF_FOR_TARGET
879 STRIP_FOR_TARGET
880 WINDRES_FOR_TARGET
881 WINDMC_FOR_TARGET'
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 runstatedir='${localstatedir}/run'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
933 ac_prev=
934 ac_dashdash=
935 for ac_option
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
940 ac_prev=
941 continue
944 case $ac_option in
945 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *=) ac_optarg= ;;
947 *) ac_optarg=yes ;;
948 esac
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
954 ac_dashdash=yes ;;
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
973 --config-cache | -C)
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1173 -runstatedir | --runstatedir | --runstatedi | --runstated \
1174 | --runstate | --runstat | --runsta | --runst | --runs \
1175 | --run | --ru | --r)
1176 ac_prev=runstatedir ;;
1177 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1178 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1179 | --run=* | --ru=* | --r=*)
1180 runstatedir=$ac_optarg ;;
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1299 esac
1300 done
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir runstatedir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1384 /^X\(\/\/\)$/{
1385 s//\1/
1388 /^X\(\/\).*/{
1389 s//\1/
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1397 else
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 case $srcdir in
1419 *" "*)
1420 as_fn_error $? "path to source, $srcdir, contains spaces"
1422 esac
1423 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures this package to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1493 _ACEOF
1495 cat <<\_ACEOF
1497 Program names:
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502 System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 --target=TARGET configure for building compilers for TARGET [HOST]
1506 _ACEOF
1509 if test -n "$ac_init_help"; then
1511 cat <<\_ACEOF
1513 Optional Features:
1514 --disable-option-checking ignore unrecognized --enable/--with options
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-as-accelerator-for=ARG
1518 build as offload target compiler. Specify offload
1519 host triple by ARG
1520 --enable-offload-targets=LIST
1521 enable offloading to devices from comma-separated
1522 LIST of TARGET[=DIR]. Use optional path to find
1523 offload target compiler during the build
1524 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1525 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1526 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1527 Enable compressed debug sections for gas, gold or ld
1528 by default
1529 --disable-libquadmath do not build libquadmath directory
1530 --disable-libquadmath-support
1531 disable libquadmath support for Fortran
1532 --enable-libada build libada directory
1533 --enable-libssp build libssp directory
1534 --disable-libstdcxx do not build libstdc++-v3 directory
1535 --enable-liboffloadmic=ARG
1536 build liboffloadmic [ARG={no,host,target}]
1537 --enable-static-libjava[=ARG]
1538 build static libjava [default=no]
1539 --enable-bootstrap enable bootstrapping [yes if native build]
1540 --disable-isl-version-check
1541 disable check for isl version
1542 --enable-lto enable link time optimization support
1543 --enable-linker-plugin-configure-flags=FLAGS
1544 additional flags for configuring linker plugins
1545 [none]
1546 --enable-linker-plugin-flags=FLAGS
1547 additional flags for configuring and building linker
1548 plugins [none]
1549 --enable-stage1-languages[=all]
1550 choose additional languages to build during stage1.
1551 Mostly useful for compiler development
1552 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1553 Objective-C runtime
1554 --enable-vtable-verify Enable vtable verification feature
1555 --enable-serial-[{host,target,build}-]configure
1556 force sequential configuration of sub-packages for
1557 the host, target or build machine, or all
1558 sub-packages
1559 --enable-maintainer-mode
1560 enable make rules and dependencies not useful (and
1561 sometimes confusing) to the casual installer
1562 --enable-stage1-checking[=all]
1563 choose additional checking for stage1 of the
1564 compiler
1565 --enable-werror enable -Werror in bootstrap stage2 and later
1566 --enable-host-shared build host code as shared libraries
1568 Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-build-libsubdir=DIR Directory where to find libraries for build system
1572 --with-system-zlib use installed libz
1573 --with-mpc=PATH specify prefix directory for installed MPC package.
1574 Equivalent to --with-mpc-include=PATH/include plus
1575 --with-mpc-lib=PATH/lib
1576 --with-mpc-include=PATH specify directory for installed MPC include files
1577 --with-mpc-lib=PATH specify directory for the installed MPC library
1578 --with-mpfr-dir=PATH this option has been REMOVED
1579 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1580 Equivalent to --with-mpfr-include=PATH/include plus
1581 --with-mpfr-lib=PATH/lib
1582 --with-mpfr-include=PATH
1583 specify directory for installed MPFR include files
1584 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1585 --with-gmp-dir=PATH this option has been REMOVED
1586 --with-gmp=PATH specify prefix directory for the installed GMP
1587 package. Equivalent to
1588 --with-gmp-include=PATH/include plus
1589 --with-gmp-lib=PATH/lib
1590 --with-gmp-include=PATH specify directory for installed GMP include files
1591 --with-gmp-lib=PATH specify directory for the installed GMP library
1592 --with-stage1-libs=LIBS libraries for stage1
1593 --with-stage1-ldflags=FLAGS
1594 linker flags for stage1
1595 --with-boot-libs=LIBS libraries for stage2 and later
1596 --with-boot-ldflags=FLAGS
1597 linker flags for stage2 and later
1598 --with-isl=PATH Specify prefix directory for the installed isl
1599 package. Equivalent to
1600 --with-isl-include=PATH/include plus
1601 --with-isl-lib=PATH/lib
1602 --with-isl-include=PATH Specify directory for installed isl include files
1603 --with-isl-lib=PATH Specify the directory for the installed isl library
1604 --with-build-sysroot=SYSROOT
1605 use sysroot as the system root during the build
1606 --with-debug-prefix-map='A=B C=D ...'
1607 map A to B, C to D ... in debug information
1608 --with-tooldir=PATH use given path to install target tools after build
1609 --with-build-config='NAME NAME2...'
1610 use config/NAME.mk build configuration
1611 --with-build-time-tools=PATH
1612 use given path to find target tools during the build
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CXX C++ compiler command
1623 CXXFLAGS C++ compiler flags
1624 build_configargs
1625 additional configure arguments for build directories
1626 host_configargs
1627 additional configure arguments for host directories
1628 target_configargs
1629 additional configure arguments for target directories
1630 AR AR for the host
1631 AS AS for the host
1632 DLLTOOL DLLTOOL for the host
1633 LD LD for the host
1634 LIPO LIPO for the host
1635 NM NM for the host
1636 RANLIB RANLIB for the host
1637 STRIP STRIP for the host
1638 WINDRES WINDRES for the host
1639 WINDMC WINDMC for the host
1640 OBJCOPY OBJCOPY for the host
1641 OBJDUMP OBJDUMP for the host
1642 READELF READELF for the host
1643 CC_FOR_TARGET
1644 CC for the target
1645 CXX_FOR_TARGET
1646 CXX for the target
1647 GCC_FOR_TARGET
1648 GCC for the target
1649 GCJ_FOR_TARGET
1650 GCJ for the target
1651 GFORTRAN_FOR_TARGET
1652 GFORTRAN for the target
1653 GOC_FOR_TARGET
1654 GOC for the target
1655 AR_FOR_TARGET
1656 AR for the target
1657 AS_FOR_TARGET
1658 AS for the target
1659 DLLTOOL_FOR_TARGET
1660 DLLTOOL for the target
1661 LD_FOR_TARGET
1662 LD for the target
1663 LIPO_FOR_TARGET
1664 LIPO for the target
1665 NM_FOR_TARGET
1666 NM for the target
1667 OBJCOPY_FOR_TARGET
1668 OBJCOPY for the target
1669 OBJDUMP_FOR_TARGET
1670 OBJDUMP for the target
1671 RANLIB_FOR_TARGET
1672 RANLIB for the target
1673 READELF_FOR_TARGET
1674 READELF for the target
1675 STRIP_FOR_TARGET
1676 STRIP for the target
1677 WINDRES_FOR_TARGET
1678 WINDRES for the target
1679 WINDMC_FOR_TARGET
1680 WINDMC for the target
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1685 Report bugs to the package provider.
1686 _ACEOF
1687 ac_status=$?
1690 if test "$ac_init_help" = "recursive"; then
1691 # If there are subdirs, report their specific --help.
1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693 test -d "$ac_dir" ||
1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 continue
1696 ac_builddir=.
1698 case "$ac_dir" in
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702 # A ".." for each directory in $ac_dir_suffix.
1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704 case $ac_top_builddir_sub in
1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707 esac ;;
1708 esac
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1714 case $srcdir in
1715 .) # We are building in place.
1716 ac_srcdir=.
1717 ac_top_srcdir=$ac_top_builddir_sub
1718 ac_abs_top_srcdir=$ac_pwd ;;
1719 [\\/]* | ?:[\\/]* ) # Absolute name.
1720 ac_srcdir=$srcdir$ac_dir_suffix;
1721 ac_top_srcdir=$srcdir
1722 ac_abs_top_srcdir=$srcdir ;;
1723 *) # Relative name.
1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725 ac_top_srcdir=$ac_top_build_prefix$srcdir
1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 esac
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1730 cd "$ac_dir" || { ac_status=$?; continue; }
1731 # Check for guested configure.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1738 else
1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 fi || ac_status=$?
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1742 done
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747 cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.69
1751 Copyright (C) 2012 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755 exit
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1798 } # ac_fn_c_try_compile
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 ac_retval=1
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1836 } # ac_fn_cxx_try_compile
1838 # ac_fn_cxx_try_link LINENO
1839 # -------------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_cxx_try_link ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_cxx_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 test -x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=1
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_cxx_try_link
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1929 cat >config.log <<_ACEOF
1930 This file contains any messages produced by compilers while
1931 running configure, to aid debugging if configure makes a mistake.
1933 It was created by $as_me, which was
1934 generated by GNU Autoconf 2.69. Invocation command line was
1936 $ $0 $@
1938 _ACEOF
1939 exec 5>>config.log
1941 cat <<_ASUNAME
1942 ## --------- ##
1943 ## Platform. ##
1944 ## --------- ##
1946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1953 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1955 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1956 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1958 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1959 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1960 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1961 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1963 _ASUNAME
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
1970 $as_echo "PATH: $as_dir"
1971 done
1972 IFS=$as_save_IFS
1974 } >&5
1976 cat >&5 <<_ACEOF
1979 ## ----------- ##
1980 ## Core tests. ##
1981 ## ----------- ##
1983 _ACEOF
1986 # Keep a trace of the command line.
1987 # Strip out --no-create and --no-recursion so they do not pile up.
1988 # Strip out --silent because we don't want to record it for future runs.
1989 # Also quote any args containing shell meta-characters.
1990 # Make two passes to allow for proper duplicate-argument suppression.
1991 ac_configure_args=
1992 ac_configure_args0=
1993 ac_configure_args1=
1994 ac_must_keep_next=false
1995 for ac_pass in 1 2
1997 for ac_arg
1999 case $ac_arg in
2000 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2002 | -silent | --silent | --silen | --sile | --sil)
2003 continue ;;
2004 *\'*)
2005 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 esac
2007 case $ac_pass in
2008 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2010 as_fn_append ac_configure_args1 " '$ac_arg'"
2011 if test $ac_must_keep_next = true; then
2012 ac_must_keep_next=false # Got value, back to normal.
2013 else
2014 case $ac_arg in
2015 *=* | --config-cache | -C | -disable-* | --disable-* \
2016 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2017 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2018 | -with-* | --with-* | -without-* | --without-* | --x)
2019 case "$ac_configure_args0 " in
2020 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2021 esac
2023 -* ) ac_must_keep_next=true ;;
2024 esac
2026 as_fn_append ac_configure_args " '$ac_arg'"
2028 esac
2029 done
2030 done
2031 { ac_configure_args0=; unset ac_configure_args0;}
2032 { ac_configure_args1=; unset ac_configure_args1;}
2034 # When interrupted or exit'd, cleanup temporary files, and complete
2035 # config.log. We remove comments because anyway the quotes in there
2036 # would cause problems or look ugly.
2037 # WARNING: Use '\'' to represent an apostrophe within the trap.
2038 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2039 trap 'exit_status=$?
2040 # Save into config.log some information that might help in debugging.
2042 echo
2044 $as_echo "## ---------------- ##
2045 ## Cache variables. ##
2046 ## ---------------- ##"
2047 echo
2048 # The following way of writing the cache mishandles newlines in values,
2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in #(
2053 *${as_nl}*)
2054 case $ac_var in #(
2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 esac
2058 case $ac_var in #(
2059 _ | IFS | as_nl) ;; #(
2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2061 *) { eval $ac_var=; unset $ac_var;} ;;
2062 esac ;;
2063 esac
2064 done
2065 (set) 2>&1 |
2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2067 *${as_nl}ac_space=\ *)
2068 sed -n \
2069 "s/'\''/'\''\\\\'\'''\''/g;
2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 ;; #(
2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2075 esac |
2076 sort
2078 echo
2080 $as_echo "## ----------------- ##
2081 ## Output variables. ##
2082 ## ----------------- ##"
2083 echo
2084 for ac_var in $ac_subst_vars
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2094 if test -n "$ac_subst_files"; then
2095 $as_echo "## ------------------- ##
2096 ## File substitutions. ##
2097 ## ------------------- ##"
2098 echo
2099 for ac_var in $ac_subst_files
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2110 if test -s confdefs.h; then
2111 $as_echo "## ----------- ##
2112 ## confdefs.h. ##
2113 ## ----------- ##"
2114 echo
2115 cat confdefs.h
2116 echo
2118 test "$ac_signal" != 0 &&
2119 $as_echo "$as_me: caught signal $ac_signal"
2120 $as_echo "$as_me: exit $exit_status"
2121 } >&5
2122 rm -f core *.core core.conftest.* &&
2123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2124 exit $exit_status
2126 for ac_signal in 1 2 13 15; do
2127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2128 done
2129 ac_signal=0
2131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2132 rm -f -r conftest* confdefs.h
2134 $as_echo "/* confdefs.h */" > confdefs.h
2136 # Predefined preprocessor variables.
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_NAME "$PACKAGE_NAME"
2140 _ACEOF
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2144 _ACEOF
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_STRING "$PACKAGE_STRING"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_URL "$PACKAGE_URL"
2160 _ACEOF
2163 # Let the site file select an alternate cache file if it wants to.
2164 # Prefer an explicitly selected file to automatically selected ones.
2165 ac_site_file1=NONE
2166 ac_site_file2=NONE
2167 if test -n "$CONFIG_SITE"; then
2168 # We do not want a PATH search for config.site.
2169 case $CONFIG_SITE in #((
2170 -*) ac_site_file1=./$CONFIG_SITE;;
2171 */*) ac_site_file1=$CONFIG_SITE;;
2172 *) ac_site_file1=./$CONFIG_SITE;;
2173 esac
2174 elif test "x$prefix" != xNONE; then
2175 ac_site_file1=$prefix/share/config.site
2176 ac_site_file2=$prefix/etc/config.site
2177 else
2178 ac_site_file1=$ac_default_prefix/share/config.site
2179 ac_site_file2=$ac_default_prefix/etc/config.site
2181 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2183 test "x$ac_site_file" = xNONE && continue
2184 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2186 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2187 sed 's/^/| /' "$ac_site_file" >&5
2188 . "$ac_site_file" \
2189 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191 as_fn_error $? "failed to load site script $ac_site_file
2192 See \`config.log' for more details" "$LINENO" 5; }
2194 done
2196 if test -r "$cache_file"; then
2197 # Some versions of bash will fail to source /dev/null (special files
2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2201 $as_echo "$as_me: loading cache $cache_file" >&6;}
2202 case $cache_file in
2203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204 *) . "./$cache_file";;
2205 esac
2207 else
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2209 $as_echo "$as_me: creating cache $cache_file" >&6;}
2210 >$cache_file
2213 # Check that the precious variables saved in the cache have kept the same
2214 # value.
2215 ac_cache_corrupted=false
2216 for ac_var in $ac_precious_vars; do
2217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2218 eval ac_new_set=\$ac_env_${ac_var}_set
2219 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2220 eval ac_new_val=\$ac_env_${ac_var}_value
2221 case $ac_old_set,$ac_new_set in
2222 set,)
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2224 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2225 ac_cache_corrupted=: ;;
2226 ,set)
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2228 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2229 ac_cache_corrupted=: ;;
2230 ,);;
2232 if test "x$ac_old_val" != "x$ac_new_val"; then
2233 # differences in whitespace do not lead to failure.
2234 ac_old_val_w=`echo x $ac_old_val`
2235 ac_new_val_w=`echo x $ac_new_val`
2236 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2238 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2239 ac_cache_corrupted=:
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2242 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2243 eval $ac_var=\$ac_old_val
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2246 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2248 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2249 fi;;
2250 esac
2251 # Pass precious variables to config.status.
2252 if test "$ac_new_set" = set; then
2253 case $ac_new_val in
2254 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 *) ac_arg=$ac_var=$ac_new_val ;;
2256 esac
2257 case " $ac_configure_args " in
2258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2259 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2260 esac
2262 done
2263 if $ac_cache_corrupted; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2267 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2268 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2270 ## -------------------- ##
2271 ## Main body of script. ##
2272 ## -------------------- ##
2274 ac_ext=c
2275 ac_cpp='$CPP $CPPFLAGS'
2276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287 progname=$0
2288 # if PWD already has a value, it is probably wrong.
2289 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2291 # Export original configure arguments for use by sub-configures.
2292 # Quote arguments with shell meta charatcers.
2293 TOPLEVEL_CONFIGURE_ARGUMENTS=
2294 set -- "$progname" "$@"
2295 for ac_arg
2297 case "$ac_arg" in
2298 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2299 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2300 # if the argument is of the form -foo=baz, quote the baz part only
2301 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2302 *) ;;
2303 esac
2304 # Add the quoted argument to the list.
2305 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2306 done
2307 if test "$silent" = yes; then
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2310 # Remove the initial space we just introduced and, as these will be
2311 # expanded by make, quote '$'.
2312 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2315 # Find the build, host, and target systems.
2316 ac_aux_dir=
2317 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2318 if test -f "$ac_dir/install-sh"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/install-sh -c"
2321 break
2322 elif test -f "$ac_dir/install.sh"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/install.sh -c"
2325 break
2326 elif test -f "$ac_dir/shtool"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/shtool install -c"
2329 break
2331 done
2332 if test -z "$ac_aux_dir"; then
2333 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2336 # These three variables are undocumented and unsupported,
2337 # and are intended to be withdrawn in a future Autoconf release.
2338 # They can cause serious problems if a builder's source tree is in a directory
2339 # whose full name contains unusual characters.
2340 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2341 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2342 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2345 # Make sure we can run config.sub.
2346 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2347 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2350 $as_echo_n "checking build system type... " >&6; }
2351 if ${ac_cv_build+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 ac_build_alias=$build_alias
2355 test "x$ac_build_alias" = x &&
2356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2357 test "x$ac_build_alias" = x &&
2358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2364 $as_echo "$ac_cv_build" >&6; }
2365 case $ac_cv_build in
2366 *-*-*) ;;
2367 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2368 esac
2369 build=$ac_cv_build
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_build
2372 shift
2373 build_cpu=$1
2374 build_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 build_os=$*
2379 IFS=$ac_save_IFS
2380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2383 case ${build_alias} in
2384 "") build_noncanonical=${build} ;;
2385 *) build_noncanonical=${build_alias} ;;
2386 esac
2390 case ${host_alias} in
2391 "") host_noncanonical=${build_noncanonical} ;;
2392 *) host_noncanonical=${host_alias} ;;
2393 esac
2397 case ${target_alias} in
2398 "") target_noncanonical=${host_noncanonical} ;;
2399 *) target_noncanonical=${target_alias} ;;
2400 esac
2405 test "$host_noncanonical" = "$target_noncanonical" &&
2406 test "$program_prefix$program_suffix$program_transform_name" = \
2407 NONENONEs,x,x, &&
2408 program_transform_name=s,y,y,
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2411 $as_echo_n "checking host system type... " >&6; }
2412 if ${ac_cv_host+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 if test "x$host_alias" = x; then
2416 ac_cv_host=$ac_cv_build
2417 else
2418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2424 $as_echo "$ac_cv_host" >&6; }
2425 case $ac_cv_host in
2426 *-*-*) ;;
2427 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2428 esac
2429 host=$ac_cv_host
2430 ac_save_IFS=$IFS; IFS='-'
2431 set x $ac_cv_host
2432 shift
2433 host_cpu=$1
2434 host_vendor=$2
2435 shift; shift
2436 # Remember, the first character of IFS is used to create $*,
2437 # except with old shells:
2438 host_os=$*
2439 IFS=$ac_save_IFS
2440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2444 $as_echo_n "checking target system type... " >&6; }
2445 if ${ac_cv_target+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test "x$target_alias" = x; then
2449 ac_cv_target=$ac_cv_host
2450 else
2451 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2457 $as_echo "$ac_cv_target" >&6; }
2458 case $ac_cv_target in
2459 *-*-*) ;;
2460 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2461 esac
2462 target=$ac_cv_target
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_target
2465 shift
2466 target_cpu=$1
2467 target_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 target_os=$*
2472 IFS=$ac_save_IFS
2473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2476 # The aliases save the names the user supplied, while $host etc.
2477 # will get canonicalized.
2478 test -n "$target_alias" &&
2479 test "$program_prefix$program_suffix$program_transform_name" = \
2480 NONENONEs,x,x, &&
2481 program_prefix=${target_alias}-
2483 test "$program_prefix" != NONE &&
2484 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2485 # Use a double $ so make ignores it.
2486 test "$program_suffix" != NONE &&
2487 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2488 # Double any \ or $.
2489 # By default was `s,x,x', remove it if useless.
2490 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2491 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495 # Get 'install' or 'install-sh' and its variants.
2496 # Find a good install program. We prefer a C program (faster),
2497 # so one script is as good as another. But avoid the broken or
2498 # incompatible versions:
2499 # SysV /etc/install, /usr/sbin/install
2500 # SunOS /usr/etc/install
2501 # IRIX /sbin/install
2502 # AIX /bin/install
2503 # AmigaOS /C/install, which installs bootblocks on floppy discs
2504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2507 # OS/2's system install, which has a completely different semantic
2508 # ./install, which can be erroneously created by make from ./install.sh.
2509 # Reject install programs that cannot install multiple files.
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2511 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2512 if test -z "$INSTALL"; then
2513 if ${ac_cv_path_install+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 # Account for people who put trailing slashes in PATH elements.
2522 case $as_dir/ in #((
2523 ./ | .// | /[cC]/* | \
2524 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2525 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2526 /usr/ucb/* ) ;;
2528 # OSF1 and SCO ODT 3.0 have their own names for install.
2529 # Don't use installbsd from OSF since it installs stuff as root
2530 # by default.
2531 for ac_prog in ginstall scoinst install; do
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2534 if test $ac_prog = install &&
2535 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # AIX install. It has an incompatible calling convention.
2538 elif test $ac_prog = install &&
2539 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540 # program-specific install script used by HP pwplus--don't use.
2542 else
2543 rm -rf conftest.one conftest.two conftest.dir
2544 echo one > conftest.one
2545 echo two > conftest.two
2546 mkdir conftest.dir
2547 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2548 test -s conftest.one && test -s conftest.two &&
2549 test -s conftest.dir/conftest.one &&
2550 test -s conftest.dir/conftest.two
2551 then
2552 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2553 break 3
2557 done
2558 done
2560 esac
2562 done
2563 IFS=$as_save_IFS
2565 rm -rf conftest.one conftest.two conftest.dir
2568 if test "${ac_cv_path_install+set}" = set; then
2569 INSTALL=$ac_cv_path_install
2570 else
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for INSTALL within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 INSTALL=$ac_install_sh
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2579 $as_echo "$INSTALL" >&6; }
2581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2582 # It thinks the first close brace ends the variable substitution.
2583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2590 $as_echo_n "checking whether ln works... " >&6; }
2591 if ${acx_cv_prog_LN+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 rm -f conftestdata_t
2595 echo >conftestdata_f
2596 if ln conftestdata_f conftestdata_t 2>/dev/null
2597 then
2598 acx_cv_prog_LN=ln
2599 else
2600 acx_cv_prog_LN=no
2602 rm -f conftestdata_f conftestdata_t
2605 if test $acx_cv_prog_LN = no; then
2606 LN="cp"
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2608 $as_echo "no, using $LN" >&6; }
2609 else
2610 LN="$acx_cv_prog_LN"
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612 $as_echo "yes" >&6; }
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2616 $as_echo_n "checking whether ln -s works... " >&6; }
2617 LN_S=$as_ln_s
2618 if test "$LN_S" = "ln -s"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620 $as_echo "yes" >&6; }
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2623 $as_echo "no, using $LN_S" >&6; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2627 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2628 if ${ac_cv_path_SED+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2632 for ac_i in 1 2 3 4 5 6 7; do
2633 ac_script="$ac_script$as_nl$ac_script"
2634 done
2635 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2636 { ac_script=; unset ac_script;}
2637 if test -z "$SED"; then
2638 ac_path_SED_found=false
2639 # Loop through the user's path and test for each of PROGNAME-LIST
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_prog in sed gsed; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2648 as_fn_executable_p "$ac_path_SED" || continue
2649 # Check for GNU ac_path_SED and select it if it is found.
2650 # Check for GNU $ac_path_SED
2651 case `"$ac_path_SED" --version 2>&1` in
2652 *GNU*)
2653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2655 ac_count=0
2656 $as_echo_n 0123456789 >"conftest.in"
2657 while :
2659 cat "conftest.in" "conftest.in" >"conftest.tmp"
2660 mv "conftest.tmp" "conftest.in"
2661 cp "conftest.in" "conftest.nl"
2662 $as_echo '' >> "conftest.nl"
2663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2665 as_fn_arith $ac_count + 1 && ac_count=$as_val
2666 if test $ac_count -gt ${ac_path_SED_max-0}; then
2667 # Best one so far, save it but keep looking for a better one
2668 ac_cv_path_SED="$ac_path_SED"
2669 ac_path_SED_max=$ac_count
2671 # 10*(2^10) chars as input seems more than enough
2672 test $ac_count -gt 10 && break
2673 done
2674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2675 esac
2677 $ac_path_SED_found && break 3
2678 done
2679 done
2680 done
2681 IFS=$as_save_IFS
2682 if test -z "$ac_cv_path_SED"; then
2683 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2685 else
2686 ac_cv_path_SED=$SED
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2691 $as_echo "$ac_cv_path_SED" >&6; }
2692 SED="$ac_cv_path_SED"
2693 rm -f conftest.sed
2695 for ac_prog in gawk mawk nawk awk
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_AWK+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$AWK"; then
2705 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 ac_cv_prog_AWK="$ac_prog"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2720 IFS=$as_save_IFS
2724 AWK=$ac_cv_prog_AWK
2725 if test -n "$AWK"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2727 $as_echo "$AWK" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2734 test -n "$AWK" && break
2735 done
2738 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2740 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2741 # a relative path.
2742 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2743 INSTALL="${srcpwd}/install-sh -c"
2746 # Set srcdir to "." if that's what it is.
2747 # This is important for multilib support.
2748 pwd=`${PWDCMD-pwd}`
2749 if test "${pwd}" = "${srcpwd}" ; then
2750 srcdir=.
2753 topsrcdir=$srcpwd
2755 extra_host_args=
2757 ### To add a new directory to the tree, first choose whether it is a target
2758 ### or a host dependent tool. Then put it into the appropriate list
2759 ### (library or tools, host or target), doing a dependency sort.
2761 # Subdirs will be configured in the order listed in build_configdirs,
2762 # configdirs, or target_configdirs; see the serialization section below.
2764 # Dependency sorting is only needed when *configuration* must be done in
2765 # a particular order. In all cases a dependency should be specified in
2766 # the Makefile, whether or not it's implicitly specified here.
2768 # Double entries in build_configdirs, configdirs, or target_configdirs may
2769 # cause circular dependencies and break everything horribly.
2771 # these library is used by various programs built for the build
2772 # environment
2774 build_libs="build-libiberty build-libcpp"
2776 # these tools are built for the build environment
2777 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2779 # these libraries are used by various programs built for the host environment
2781 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2783 # these tools are built for the host environment
2784 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2785 # know that we are building the simulator.
2786 # binutils, gas and ld appear in that order because it makes sense to run
2787 # "make check" in that particular order.
2788 # If --enable-gold is used, "gold" may replace "ld".
2789 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"
2791 # libgcj represents the runtime libraries only used by gcj.
2792 libgcj="target-libffi \
2793 target-zlib \
2794 target-libjava"
2796 # these libraries are built for the target environment, and are built after
2797 # the host libraries and the host tools (which may be a cross compiler)
2798 # Note that libiberty is not a target library.
2799 target_libraries="target-libgcc \
2800 target-libbacktrace \
2801 target-libgloss \
2802 target-newlib \
2803 target-libgomp \
2804 target-libcilkrts \
2805 target-liboffloadmic \
2806 target-libatomic \
2807 target-libitm \
2808 target-libstdc++-v3 \
2809 target-libsanitizer \
2810 target-libvtv \
2811 target-libmpx \
2812 target-libssp \
2813 target-libquadmath \
2814 target-libgfortran \
2815 target-boehm-gc \
2816 ${libgcj} \
2817 target-libobjc \
2818 target-libada \
2819 target-libgo"
2821 # these tools are built using the target libraries, and are intended to
2822 # run only in the target environment
2824 # note: any program that *uses* libraries that are in the "target_libraries"
2825 # list belongs in this list.
2827 target_tools="target-rda"
2829 ################################################################################
2831 ## All tools belong in one of the four categories, and are assigned above
2832 ## We assign ${configdirs} this way to remove all embedded newlines. This
2833 ## is important because configure will choke if they ever get through.
2834 ## ${configdirs} is directories we build using the host tools.
2835 ## ${target_configdirs} is directories we build using the target tools.
2836 configdirs=`echo ${host_libs} ${host_tools}`
2837 target_configdirs=`echo ${target_libraries} ${target_tools}`
2838 build_configdirs=`echo ${build_libs} ${build_tools}`
2842 ################################################################################
2844 srcname="gnu development package"
2846 # This gets set non-empty for some net releases of packages.
2847 appdirs=""
2849 # Define is_cross_compiler to save on calls to 'test'.
2850 is_cross_compiler=
2851 if test x"${host}" = x"${target}" ; then
2852 is_cross_compiler=no
2853 else
2854 is_cross_compiler=yes
2857 # Find the build and target subdir names.
2859 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2860 # have matching libraries, they should use host libraries: Makefile.tpl
2861 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2862 # However, they still use the build modules, because the corresponding
2863 # host modules (e.g. bison) are only built for the host when bootstrap
2864 # finishes. So:
2865 # - build_subdir is where we find build modules, and never changes.
2866 # - build_libsubdir is where we find build libraries, and can be overridden.
2868 # Prefix 'build-' so this never conflicts with target_subdir.
2869 build_subdir="build-${build_noncanonical}"
2871 # Check whether --with-build-libsubdir was given.
2872 if test "${with_build_libsubdir+set}" = set; then :
2873 withval=$with_build_libsubdir; build_libsubdir="$withval"
2874 else
2875 build_libsubdir="$build_subdir"
2878 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2879 if ( test $srcdir = . && test -d gcc ) \
2880 || test -d $srcdir/../host-${host_noncanonical}; then
2881 host_subdir="host-${host_noncanonical}"
2882 else
2883 host_subdir=.
2885 # No prefix.
2886 target_subdir=${target_noncanonical}
2888 # Be sure to cover against remnants of an in-tree build.
2889 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2890 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2891 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894 # Skipdirs are removed silently.
2895 skipdirs=
2896 # Noconfigdirs are removed loudly.
2897 noconfigdirs=""
2899 use_gnu_ld=
2900 # Make sure we don't let GNU ld be added if we didn't want it.
2901 if test x$with_gnu_ld = xno ; then
2902 use_gnu_ld=no
2903 noconfigdirs="$noconfigdirs ld gold"
2906 use_gnu_as=
2907 # Make sure we don't let GNU as be added if we didn't want it.
2908 if test x$with_gnu_as = xno ; then
2909 use_gnu_as=no
2910 noconfigdirs="$noconfigdirs gas"
2913 use_included_zlib=
2915 # Check whether --with-system-zlib was given.
2916 if test "${with_system_zlib+set}" = set; then :
2917 withval=$with_system_zlib;
2920 # Make sure we don't let ZLIB be added if we didn't want it.
2921 if test x$with_system_zlib = xyes ; then
2922 use_included_zlib=no
2923 noconfigdirs="$noconfigdirs zlib"
2926 # some tools are so dependent upon X11 that if we're not building with X,
2927 # it's not even worth trying to configure, much less build, that tool.
2929 case ${with_x} in
2930 yes | "") ;; # the default value for this tree is that X11 is available
2932 skipdirs="${skipdirs} tk itcl libgui"
2933 # We won't be able to build gdbtk without X.
2934 enable_gdbtk=no
2936 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2937 esac
2939 # Some are only suitable for cross toolchains.
2940 # Remove these if host=target.
2941 cross_only="target-libgloss target-newlib target-opcodes"
2943 case $is_cross_compiler in
2944 no) skipdirs="${skipdirs} ${cross_only}" ;;
2945 esac
2947 # If both --with-headers and --with-libs are specified, default to
2948 # --without-newlib.
2949 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2950 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2951 if test x"${with_newlib}" = x ; then
2952 with_newlib=no
2956 # Recognize --with-newlib/--without-newlib.
2957 case ${with_newlib} in
2958 no) skipdirs="${skipdirs} target-newlib" ;;
2959 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2960 esac
2962 # Check whether --enable-as-accelerator-for was given.
2963 if test "${enable_as_accelerator_for+set}" = set; then :
2964 enableval=$enable_as_accelerator_for;
2968 # Check whether --enable-offload-targets was given.
2969 if test "${enable_offload_targets+set}" = set; then :
2970 enableval=$enable_offload_targets;
2971 if test x"$enable_offload_targets" = x; then
2972 as_fn_error $? "no offload targets specified" "$LINENO" 5
2975 else
2976 enable_offload_targets=
2980 # Handle --enable-gold, --enable-ld.
2981 # --disable-gold [--enable-ld]
2982 # Build only ld. Default option.
2983 # --enable-gold [--enable-ld]
2984 # Build both gold and ld. Install gold as "ld.gold", install ld
2985 # as "ld.bfd" and "ld".
2986 # --enable-gold=default [--enable-ld]
2987 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2988 # install ld as "ld.bfd".
2989 # --enable-gold[=default] --disable-ld
2990 # Build only gold, which is then installed as both "ld.gold" and "ld".
2991 # --enable-gold --enable-ld=default
2992 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2993 # and ld.bfd).
2994 # In other words, ld is default
2995 # --enable-gold=default --enable-ld=default
2996 # Error.
2998 default_ld=
2999 # Check whether --enable-gold was given.
3000 if test "${enable_gold+set}" = set; then :
3001 enableval=$enable_gold; ENABLE_GOLD=$enableval
3002 else
3003 ENABLE_GOLD=no
3006 case "${ENABLE_GOLD}" in
3007 yes|default)
3008 # Check for ELF target.
3009 is_elf=no
3010 case "${target}" in
3011 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3012 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3013 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3014 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3015 case "${target}" in
3016 *-*-linux*aout* | *-*-linux*oldld*)
3019 is_elf=yes
3021 esac
3022 esac
3024 if test "$is_elf" = "yes"; then
3025 # Check for target supported by gold.
3026 case "${target}" in
3027 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3028 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3029 configdirs="$configdirs gold"
3030 if test x${ENABLE_GOLD} = xdefault; then
3031 default_ld=gold
3033 ENABLE_GOLD=yes
3035 esac
3041 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3043 esac
3045 # Check whether --enable-ld was given.
3046 if test "${enable_ld+set}" = set; then :
3047 enableval=$enable_ld; ENABLE_LD=$enableval
3048 else
3049 ENABLE_LD=yes
3053 case "${ENABLE_LD}" in
3054 default)
3055 if test x${default_ld} != x; then
3056 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3059 yes)
3062 if test x${ENABLE_GOLD} != xyes; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3064 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3066 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3071 esac
3073 # PR gas/19109
3074 # Decide the default method for compressing debug sections.
3075 # Provide a configure time option to override our default.
3076 # Check whether --enable-compressed_debug_sections was given.
3077 if test "${enable_compressed_debug_sections+set}" = set; then :
3078 enableval=$enable_compressed_debug_sections;
3079 if test x"$enable_compressed_debug_sections" = xyes; then
3080 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3083 else
3084 enable_compressed_debug_sections=
3088 # Configure extra directories which are host specific
3090 case "${host}" in
3091 *-cygwin*)
3092 configdirs="$configdirs libtermcap" ;;
3093 esac
3095 # A target can indicate whether a language isn't supported for some reason.
3096 # Only spaces may be used in this macro; not newlines or tabs.
3097 unsupported_languages=
3099 # Remove more programs from consideration, based on the host or
3100 # target this usually means that a port of the program doesn't
3101 # exist yet.
3103 case "${host}" in
3104 i[3456789]86-*-msdosdjgpp*)
3105 noconfigdirs="$noconfigdirs tcl tk itcl"
3107 esac
3110 # Check whether --enable-libquadmath was given.
3111 if test "${enable_libquadmath+set}" = set; then :
3112 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3113 else
3114 ENABLE_LIBQUADMATH=yes
3117 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3118 noconfigdirs="$noconfigdirs target-libquadmath"
3122 # Check whether --enable-libquadmath-support was given.
3123 if test "${enable_libquadmath_support+set}" = set; then :
3124 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3125 else
3126 ENABLE_LIBQUADMATH_SUPPORT=yes
3129 enable_libquadmath_support=
3130 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3131 enable_libquadmath_support=no
3135 # Check whether --enable-libada was given.
3136 if test "${enable_libada+set}" = set; then :
3137 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3138 else
3139 ENABLE_LIBADA=yes
3142 if test "${ENABLE_LIBADA}" != "yes" ; then
3143 noconfigdirs="$noconfigdirs gnattools"
3146 # Check whether --enable-libssp was given.
3147 if test "${enable_libssp+set}" = set; then :
3148 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3149 else
3150 ENABLE_LIBSSP=yes
3154 # Check whether --enable-libstdcxx was given.
3155 if test "${enable_libstdcxx+set}" = set; then :
3156 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3157 else
3158 ENABLE_LIBSTDCXX=default
3161 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3162 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165 # If this is accelerator compiler and its target is intelmic we enable
3166 # target liboffloadmic by default. If this is compiler with offloading
3167 # for intelmic we enable host liboffloadmic by default. Otherwise
3168 # liboffloadmic is disabled by default.
3169 # Check whether --enable-liboffloadmic was given.
3170 if test "${enable_liboffloadmic+set}" = set; then :
3171 enableval=$enable_liboffloadmic; case "$enableval" in
3172 no | host | target)
3173 enable_liboffloadmic=$enableval ;;
3175 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3176 esac
3177 else
3178 if test x"$enable_as_accelerator_for" != x; then
3179 case "${target}" in
3180 *-intelmic-* | *-intelmicemul-*)
3181 enable_liboffloadmic=target
3182 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 enable_liboffloadmic=no
3187 esac
3188 else
3189 case "${enable_offload_targets}" in
3190 *-intelmic-* | *-intelmicemul-*)
3191 enable_liboffloadmic=host
3192 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 enable_liboffloadmic=no
3197 esac
3203 # Save it here so that, even in case of --enable-libgcj, if the Java
3204 # front-end isn't enabled, we still get libgcj disabled.
3205 libgcj_saved=$libgcj
3206 case $enable_libgcj in
3207 yes)
3208 # If we reset it here, it won't get added to noconfigdirs in the
3209 # target-specific build rules, so it will be forcibly enabled
3210 # (unless the Java language itself isn't enabled).
3211 libgcj=
3214 # Make sure we get it printed in the list of not supported target libs.
3215 # Don't disable libffi, though, other languages use it.
3216 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3217 # Clear libgcj_saved so that even if java is enabled libffi won't be
3218 # built.
3219 libgcj_saved=
3221 esac
3223 # Check whether --enable-static-libjava was given.
3224 if test "${enable_static_libjava+set}" = set; then :
3225 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3226 else
3227 ENABLE_STATIC_LIBJAVA=no
3230 enable_static_libjava=
3231 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3232 enable_static_libjava=yes
3235 if test x$enable_static_libjava != xyes ; then
3236 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3240 # Enable libgomp by default on hosted POSIX systems, and a few others.
3241 if test x$enable_libgomp = x ; then
3242 case "${target}" in
3243 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3245 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3247 *-*-solaris2* | *-*-hpux11*)
3249 *-*-darwin* | *-*-aix*)
3251 nvptx*-*-*)
3254 noconfigdirs="$noconfigdirs target-libgomp"
3256 esac
3259 # Disable libatomic on unsupported systems.
3260 if test -d ${srcdir}/libatomic; then
3261 if test x$enable_libatomic = x; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3263 $as_echo_n "checking for libatomic support... " >&6; }
3264 if (srcdir=${srcdir}/libatomic; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-libatomic"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable libcilkrts on unsupported systems.
3279 if test -d ${srcdir}/libcilkrts; then
3280 if test x$enable_libcilkrts = x; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3282 $as_echo_n "checking for libcilkrts support... " >&6; }
3283 if (srcdir=${srcdir}/libcilkrts; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-libcilkrts"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable liboffloadmic on unsupported systems.
3298 if test -d ${srcdir}/liboffloadmic; then
3299 if test x$enable_liboffloadmic != xno; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3301 $as_echo_n "checking for liboffloadmic support... " >&6; }
3302 if (srcdir=${srcdir}/liboffloadmic; \
3303 . ${srcdir}/configure.tgt; \
3304 test -n "$UNSUPPORTED")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-liboffloadmic"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libitm on unsupported systems.
3317 if test -d ${srcdir}/libitm; then
3318 if test x$enable_libitm = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3320 $as_echo_n "checking for libitm support... " >&6; }
3321 if (srcdir=${srcdir}/libitm; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 noconfigdirs="$noconfigdirs target-libitm"
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3335 # Disable libsanitizer on unsupported systems.
3336 if test -d ${srcdir}/libsanitizer; then
3337 if test x$enable_libsanitizer = x; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3339 $as_echo_n "checking for libsanitizer support... " >&6; }
3340 if (srcdir=${srcdir}/libsanitizer; \
3341 . ${srcdir}/configure.tgt; \
3342 test -n "$UNSUPPORTED")
3343 then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 noconfigdirs="$noconfigdirs target-libsanitizer"
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3354 # Disable libvtv on unsupported systems.
3355 if test -d ${srcdir}/libvtv; then
3356 if test x$enable_libvtv = x; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3358 $as_echo_n "checking for libvtv support... " >&6; }
3359 if (srcdir=${srcdir}/libvtv; \
3360 . ${srcdir}/configure.tgt; \
3361 test "$VTV_SUPPORTED" != "yes")
3362 then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 noconfigdirs="$noconfigdirs target-libvtv"
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3374 # Enable libmpx on supported systems by request.
3375 if test -d ${srcdir}/libmpx; then
3376 if test x$enable_libmpx = x; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3378 $as_echo_n "checking for libmpx support... " >&6; }
3379 if (srcdir=${srcdir}/libmpx; \
3380 . ${srcdir}/configure.tgt; \
3381 test "$LIBMPX_SUPPORTED" != "yes")
3382 then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 noconfigdirs="$noconfigdirs target-libmpx"
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388 $as_echo "yes" >&6; }
3395 # Disable libquadmath for some systems.
3396 case "${target}" in
3397 avr-*-*)
3398 noconfigdirs="$noconfigdirs target-libquadmath"
3400 # libquadmath is unused on AIX and libquadmath build process use of
3401 # LD_LIBRARY_PATH can break AIX bootstrap.
3402 powerpc-*-aix* | rs6000-*-aix*)
3403 noconfigdirs="$noconfigdirs target-libquadmath"
3405 esac
3407 # Disable libssp for some systems.
3408 case "${target}" in
3409 avr-*-*)
3410 # No hosted I/O support.
3411 noconfigdirs="$noconfigdirs target-libssp"
3413 powerpc-*-aix* | rs6000-*-aix*)
3414 noconfigdirs="$noconfigdirs target-libssp"
3416 rl78-*-*)
3417 # libssp uses a misaligned load to trigger a fault, but the RL78
3418 # doesn't fault for those - instead, it gives a build-time error
3419 # for explicit misaligned loads.
3420 noconfigdirs="$noconfigdirs target-libssp"
3422 visium-*-*)
3423 # No hosted I/O support.
3424 noconfigdirs="$noconfigdirs target-libssp"
3426 esac
3428 # Disable libstdc++-v3 for some systems.
3429 # Allow user to override this if they pass --enable-libstdc++-v3
3430 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3431 case "${target}" in
3432 *-*-vxworks*)
3433 # VxWorks uses the Dinkumware C++ library.
3434 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3436 arm*-wince-pe*)
3437 # the C++ libraries don't build on top of CE's C libraries
3438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3440 avr-*-*)
3441 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3443 ft32-*-*)
3444 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3446 esac
3449 # Disable Fortran for some systems.
3450 case "${target}" in
3451 mmix-*-*)
3452 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3453 unsupported_languages="$unsupported_languages fortran"
3455 esac
3457 # Disable Java if libffi is not supported.
3458 case "${target}" in
3459 aarch64-*-*)
3461 alpha*-*-*)
3463 arm*-*-*)
3465 cris-*-*)
3467 frv-*-*)
3469 hppa*-*-linux*)
3471 hppa*-*-hpux*)
3473 i?86-*-*)
3475 ia64*-*-*)
3477 m32r*-*-*)
3479 m68k-*-*)
3481 mips*-*-rtems*)
3483 mips*-*-linux*)
3485 powerpc*-*-linux*)
3487 powerpc-*-darwin*)
3489 powerpc-*-aix* | rs6000-*-aix*)
3491 powerpc-*-freebsd*)
3493 powerpc64-*-freebsd*)
3495 powerpc*-*-rtems*)
3497 s390-*-* | s390x-*-*)
3499 sh-*-* | sh[34]*-*-*)
3501 sparc*-*-*)
3503 x86_64-*-*)
3505 *-*-*)
3506 unsupported_languages="$unsupported_languages java"
3508 esac
3510 # Disable Java, libgcj or related libraries for some systems.
3511 case "${target}" in
3512 powerpc-*-darwin*)
3514 i[3456789]86-*-darwin*)
3516 x86_64-*-darwin[912]*)
3518 *-*-darwin*)
3519 noconfigdirs="$noconfigdirs ${libgcj}"
3521 *-*-netware*)
3522 noconfigdirs="$noconfigdirs ${libgcj}"
3524 *-*-phoenix*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3527 *-*-rtems*)
3528 noconfigdirs="$noconfigdirs ${libgcj}"
3530 *-*-tpf*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3533 *-*-uclinux*)
3534 noconfigdirs="$noconfigdirs ${libgcj}"
3536 *-*-vxworks*)
3537 noconfigdirs="$noconfigdirs ${libgcj}"
3539 alpha*-*-*vms*)
3540 noconfigdirs="$noconfigdirs ${libgcj}"
3542 arm*-*-freebsd*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3545 arm-wince-pe)
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3548 arm*-*-symbianelf*)
3549 noconfigdirs="$noconfigdirs ${libgcj}"
3551 bfin-*-*)
3552 noconfigdirs="$noconfigdirs target-boehm-gc"
3554 cris-*-* | crisv32-*-*)
3555 unsupported_languages="$unsupported_languages java"
3556 case "${target}" in
3557 *-*-linux*)
3559 *) # See PR46792 regarding target-libffi.
3560 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3561 esac
3563 hppa*64*-*-linux*)
3564 # In this case, it's because the hppa64-linux target is for
3565 # the kernel only at this point and has no libc, and thus no
3566 # headers, crt*.o, etc., all of which are needed by these.
3567 unsupported_languages="$unsupported_languages java"
3569 hppa*64*-*-hpux*)
3570 noconfigdirs="$noconfigdirs ${libgcj}"
3572 hppa*-hp-hpux11*)
3574 hppa*-*-hpux*)
3575 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3576 # build on HP-UX 10.20.
3577 noconfigdirs="$noconfigdirs ${libgcj}"
3579 ia64*-*-*vms*)
3580 noconfigdirs="$noconfigdirs ${libgcj}"
3582 i[3456789]86-w64-mingw*)
3583 noconfigdirs="$noconfigdirs ${libgcj}"
3585 i[3456789]86-*-mingw*)
3586 noconfigdirs="$noconfigdirs ${libgcj}"
3588 x86_64-*-mingw*)
3589 noconfigdirs="$noconfigdirs ${libgcj}"
3591 mmix-*-*)
3592 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3594 powerpc-*-aix*)
3595 # copied from rs6000-*-* entry
3596 noconfigdirs="$noconfigdirs ${libgcj}"
3598 rs6000-*-aix*)
3599 noconfigdirs="$noconfigdirs ${libgcj}"
3601 ft32-*-*)
3602 noconfigdirs="$noconfigdirs ${libgcj}"
3604 *-*-lynxos*)
3605 noconfigdirs="$noconfigdirs ${libgcj}"
3607 esac
3609 # Disable the go frontend on systems where it is known to not work. Please keep
3610 # this in sync with contrib/config-list.mk.
3611 case "${target}" in
3612 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3613 unsupported_languages="$unsupported_languages go"
3615 esac
3617 # Disable libgo for some systems where it is known to not work.
3618 # For testing, you can easily override this with --enable-libgo.
3619 if test x$enable_libgo = x; then
3620 case "${target}" in
3621 *-*-darwin*)
3622 # PR 46986
3623 noconfigdirs="$noconfigdirs target-libgo"
3625 *-*-cygwin* | *-*-mingw*)
3626 noconfigdirs="$noconfigdirs target-libgo"
3628 *-*-aix*)
3629 noconfigdirs="$noconfigdirs target-libgo"
3631 esac
3634 # Default libgloss CPU subdirectory.
3635 libgloss_dir="$target_cpu"
3637 case "${target}" in
3638 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3639 libgloss_dir=wince
3641 aarch64*-*-* )
3642 libgloss_dir=aarch64
3644 arm*-*-*)
3645 libgloss_dir=arm
3647 cris-*-* | crisv32-*-*)
3648 libgloss_dir=cris
3650 hppa*-*-*)
3651 libgloss_dir=pa
3653 i[3456789]86-*-*)
3654 libgloss_dir=i386
3656 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3657 libgloss_dir=m68hc11
3659 m68*-*-* | fido-*-*)
3660 libgloss_dir=m68k
3662 mips*-*-*)
3663 libgloss_dir=mips
3665 powerpc*-*-*)
3666 libgloss_dir=rs6000
3668 sparc*-*-*)
3669 libgloss_dir=sparc
3671 esac
3673 # Disable newlib and libgloss for various target OSes.
3674 case "${target}" in
3675 alpha*-dec-osf*)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 i[3456789]86-*-linux*)
3679 # This section makes it possible to build newlib natively on linux.
3680 # If we are using a cross compiler then don't configure newlib.
3681 if test x${is_cross_compiler} != xno ; then
3682 noconfigdirs="$noconfigdirs target-newlib"
3684 noconfigdirs="$noconfigdirs target-libgloss"
3685 # If we are not using a cross compiler, do configure newlib.
3686 # Note however, that newlib will only be configured in this situation
3687 # if the --with-newlib option has been given, because otherwise
3688 # 'target-newlib' will appear in skipdirs.
3690 i[3456789]86-*-rdos*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 sparc-*-sunos4*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 *-*-aix*)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 *-*-beos*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 *-*-chorusos)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 *-*-dragonfly*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 *-*-freebsd*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 *-*-lynxos*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 *-*-mingw*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 *-*-netbsd*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 *-*-netware*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 *-*-tpf*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 *-*-uclinux*)
3733 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735 *-*-vxworks*)
3736 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 esac
3740 case "${target}" in
3741 *-*-chorusos)
3743 aarch64-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3747 arm-*-darwin*)
3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3751 powerpc-*-darwin*)
3752 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3753 noconfigdirs="$noconfigdirs sim target-rda"
3755 i[3456789]86-*-darwin*)
3756 noconfigdirs="$noconfigdirs ld gprof"
3757 noconfigdirs="$noconfigdirs sim target-rda"
3759 x86_64-*-darwin[912]*)
3760 noconfigdirs="$noconfigdirs ld gas gprof"
3761 noconfigdirs="$noconfigdirs sim target-rda"
3763 *-*-darwin*)
3764 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3765 noconfigdirs="$noconfigdirs sim target-rda"
3767 *-*-dragonfly*)
3769 *-*-freebsd*)
3770 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3771 && test -f /usr/local/include/gmp.h; then
3772 with_gmp=/usr/local
3775 *-*-kaos*)
3776 # Remove unsupported stuff on all kaOS configurations.
3777 noconfigdirs="$noconfigdirs target-libgloss"
3779 *-*-netbsd*)
3781 *-*-netware*)
3783 *-*-phoenix*)
3784 noconfigdirs="$noconfigdirs target-libgloss"
3786 *-*-rtems*)
3787 noconfigdirs="$noconfigdirs target-libgloss"
3788 # this is not caught below because this stanza matches earlier
3789 case $target in
3790 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3791 esac
3793 # The tpf target doesn't support gdb yet.
3794 *-*-tpf*)
3795 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3797 *-*-uclinux*)
3798 noconfigdirs="$noconfigdirs target-rda"
3800 *-*-vxworks*)
3802 alpha*-dec-osf*)
3803 # ld works, but does not support shared libraries.
3804 # gas doesn't generate exception information.
3805 noconfigdirs="$noconfigdirs gas ld"
3807 alpha*-*-*vms*)
3808 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3810 alpha*-*-*)
3811 # newlib is not 64 bit ready
3812 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3814 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3815 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3817 arm-*-pe*)
3818 noconfigdirs="$noconfigdirs target-libgloss"
3820 arm-*-riscix*)
3821 noconfigdirs="$noconfigdirs ld target-libgloss"
3823 avr-*-*)
3824 if test x${with_avrlibc} != xno; then
3825 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3828 c4x-*-* | tic4x-*-*)
3829 noconfigdirs="$noconfigdirs target-libgloss"
3831 tic54x-*-*)
3832 noconfigdirs="$noconfigdirs target-libgloss gdb"
3834 d10v-*-*)
3835 noconfigdirs="$noconfigdirs target-libgloss"
3837 d30v-*-*)
3838 noconfigdirs="$noconfigdirs gdb"
3840 fr30-*-elf*)
3841 noconfigdirs="$noconfigdirs gdb"
3843 ft32-*-*)
3844 noconfigdirs="$noconfigdirs target-rda gprof"
3846 moxie-*-*)
3847 noconfigdirs="$noconfigdirs"
3849 h8300*-*-*)
3850 noconfigdirs="$noconfigdirs target-libgloss"
3852 h8500-*-*)
3853 noconfigdirs="$noconfigdirs target-libgloss"
3855 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3857 hppa*64*-*-hpux*)
3858 noconfigdirs="$noconfigdirs gdb"
3860 hppa*-*-hpux11*)
3861 noconfigdirs="$noconfigdirs gdb ld"
3863 hppa*64*-*-linux*)
3865 hppa*-*-linux*)
3867 hppa*-*-*elf* | \
3868 hppa*-*-lites* | \
3869 hppa*-*-openbsd* | \
3870 hppa*64*-*-*)
3872 hppa*-*-pro*)
3874 hppa*-*-*)
3875 noconfigdirs="$noconfigdirs ld"
3877 i960-*-*)
3878 noconfigdirs="$noconfigdirs gdb"
3880 ia64*-*-elf*)
3881 # No gdb support yet.
3882 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3884 ia64*-**-hpux*)
3885 # No ld support yet.
3886 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3888 ia64*-*-*vms*)
3889 # No ld support yet.
3890 noconfigdirs="$noconfigdirs libgui itcl ld"
3892 i[3456789]86-w64-mingw*)
3894 i[3456789]86-*-mingw*)
3895 target_configdirs="$target_configdirs target-winsup"
3897 *-*-cygwin*)
3898 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3899 noconfigdirs="$noconfigdirs target-libgloss"
3900 # always build newlib if winsup directory is present.
3901 if test -d "$srcdir/winsup/cygwin"; then
3902 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3903 elif test -d "$srcdir/newlib"; then
3904 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3907 i[3456789]86-*-pe)
3908 noconfigdirs="$noconfigdirs target-libgloss"
3910 i[3456789]86-*-sco3.2v5*)
3911 # The linker does not yet know about weak symbols in COFF,
3912 # and is not configured to handle mixed ELF and COFF.
3913 noconfigdirs="$noconfigdirs ld target-libgloss"
3915 i[3456789]86-*-sco*)
3916 noconfigdirs="$noconfigdirs gprof target-libgloss"
3918 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3919 noconfigdirs="$noconfigdirs target-libgloss"
3921 i[3456789]86-*-sysv4*)
3922 noconfigdirs="$noconfigdirs target-libgloss"
3924 i[3456789]86-*-beos*)
3925 noconfigdirs="$noconfigdirs gdb"
3927 i[3456789]86-*-rdos*)
3928 noconfigdirs="$noconfigdirs gdb"
3930 mmix-*-*)
3931 noconfigdirs="$noconfigdirs gdb"
3933 mt-*-*)
3934 noconfigdirs="$noconfigdirs sim"
3936 powerpc-*-aix*)
3937 # copied from rs6000-*-* entry
3938 noconfigdirs="$noconfigdirs gprof"
3940 powerpc*-*-winnt* | powerpc*-*-pe*)
3941 target_configdirs="$target_configdirs target-winsup"
3942 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3943 # always build newlib.
3944 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3946 # This is temporary until we can link against shared libraries
3947 powerpcle-*-solaris*)
3948 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3950 powerpc-*-beos*)
3951 noconfigdirs="$noconfigdirs gdb"
3953 rs6000-*-lynxos*)
3954 noconfigdirs="$noconfigdirs gprof"
3956 rs6000-*-aix*)
3957 noconfigdirs="$noconfigdirs gprof"
3959 rs6000-*-*)
3960 noconfigdirs="$noconfigdirs gprof"
3962 m68k-apollo-*)
3963 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3965 microblaze*)
3966 noconfigdirs="$noconfigdirs gprof"
3968 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3969 if test x$with_newlib = xyes; then
3970 noconfigdirs="$noconfigdirs gprof"
3973 mips*-*-irix5*)
3974 noconfigdirs="$noconfigdirs gprof target-libgloss"
3976 mips*-*-irix6*)
3977 noconfigdirs="$noconfigdirs gprof target-libgloss"
3979 mips*-*-bsd*)
3980 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3982 mips*-*-linux*)
3984 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3985 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3986 noconfigdirs="$noconfigdirs ld gas gprof"
3988 mips*-*-*)
3989 noconfigdirs="$noconfigdirs gprof"
3991 nds32*-*-*)
3992 noconfigdirs="$noconfigdirs gdb"
3994 nvptx*-*-*)
3995 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3997 or1k*-*-*)
3998 noconfigdirs="$noconfigdirs gdb"
4000 sh-*-*)
4001 case "${target}" in
4002 sh*-*-elf)
4005 noconfigdirs="$noconfigdirs target-libgloss" ;;
4006 esac
4008 sparc-*-sunos4*)
4009 if test x${is_cross_compiler} = xno ; then
4010 use_gnu_ld=no
4013 tic6x-*-*)
4014 noconfigdirs="$noconfigdirs sim"
4016 tilepro*-*-* | tilegx*-*-*)
4017 noconfigdirs="$noconfigdirs sim"
4019 v810-*-*)
4020 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4022 vax-*-*)
4023 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4025 esac
4027 # If we aren't building newlib, then don't build libgloss, since libgloss
4028 # depends upon some newlib header files.
4029 case "${noconfigdirs}" in
4030 *target-libgloss*) ;;
4031 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4032 esac
4034 # Work in distributions that contain no compiler tools, like Autoconf.
4035 host_makefile_frag=/dev/null
4036 if test -d ${srcdir}/config ; then
4037 case "${host}" in
4038 i[3456789]86-*-msdosdjgpp*)
4039 host_makefile_frag="config/mh-djgpp"
4041 *-cygwin*)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4044 $as_echo_n "checking to see if cat works as expected... " >&6; }
4045 echo a >cygwin-cat-check
4046 if test `cat cygwin-cat-check` = a ; then
4047 rm cygwin-cat-check
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4049 $as_echo "yes" >&6; }
4050 else
4051 rm cygwin-cat-check
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 as_fn_error $? "The cat command does not ignore carriage return characters.
4055 Please either mount the build directory in binary mode or run the following
4056 commands before running any configure script:
4057 set -o igncr
4058 export SHELLOPTS
4059 " "$LINENO" 5
4062 host_makefile_frag="config/mh-cygwin"
4064 *-mingw*)
4065 host_makefile_frag="config/mh-mingw"
4067 alpha*-linux*)
4068 host_makefile_frag="config/mh-alpha-linux"
4070 hppa*-hp-hpux10*)
4071 host_makefile_frag="config/mh-pa-hpux10"
4073 hppa*-hp-hpux*)
4074 host_makefile_frag="config/mh-pa"
4076 hppa*-*)
4077 host_makefile_frag="config/mh-pa"
4079 *-*-darwin*)
4080 host_makefile_frag="config/mh-darwin"
4082 powerpc-*-aix*)
4083 host_makefile_frag="config/mh-ppc-aix"
4085 rs6000-*-aix*)
4086 host_makefile_frag="config/mh-ppc-aix"
4088 esac
4091 if test "${build}" != "${host}" ; then
4092 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4093 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4094 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4095 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4096 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4097 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4098 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4099 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4100 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4101 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4102 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4103 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4104 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4105 else
4106 AR_FOR_BUILD="\$(AR)"
4107 AS_FOR_BUILD="\$(AS)"
4108 CC_FOR_BUILD="\$(CC)"
4109 CXX_FOR_BUILD="\$(CXX)"
4110 GCJ_FOR_BUILD="\$(GCJ)"
4111 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4112 GOC_FOR_BUILD="\$(GOC)"
4113 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4114 LD_FOR_BUILD="\$(LD)"
4115 NM_FOR_BUILD="\$(NM)"
4116 RANLIB_FOR_BUILD="\$(RANLIB)"
4117 WINDRES_FOR_BUILD="\$(WINDRES)"
4118 WINDMC_FOR_BUILD="\$(WINDMC)"
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_CC+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157 $as_echo "$CC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4165 if test -z "$ac_cv_prog_CC"; then
4166 ac_ct_CC=$CC
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168 set dummy gcc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_CC="gcc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4197 $as_echo "$ac_ct_CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 CC=$ac_ct_CC
4214 else
4215 CC="$ac_cv_prog_CC"
4218 if test -z "$CC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}cc; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CC+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CC="${ac_tool_prefix}cc"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4241 done
4242 done
4243 IFS=$as_save_IFS
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4259 if test -z "$CC"; then
4260 # Extract the first word of "cc", so it can be a program name with args.
4261 set dummy cc; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270 ac_prog_rejected=no
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279 ac_prog_rejected=yes
4280 continue
4282 ac_cv_prog_CC="cc"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4290 if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy $ac_cv_prog_CC
4293 shift
4294 if test $# != 0; then
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set CC to just the basename; use the full file name.
4298 shift
4299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4304 CC=$ac_cv_prog_CC
4305 if test -n "$CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4315 if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 for ac_prog in cl.exe
4319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_prog_CC+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC="$CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4342 IFS=$as_save_IFS
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4356 test -n "$CC" && break
4357 done
4359 if test -z "$CC"; then
4360 ac_ct_CC=$CC
4361 for ac_prog in cl.exe
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364 set dummy $ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_ac_ct_CC="$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4386 IFS=$as_save_IFS
4390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391 if test -n "$ac_ct_CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393 $as_echo "$ac_ct_CC" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4400 test -n "$ac_ct_CC" && break
4401 done
4403 if test "x$ac_ct_CC" = x; then
4404 CC=""
4405 else
4406 case $cross_compiling:$ac_tool_warned in
4407 yes:)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned=yes ;;
4411 esac
4412 CC=$ac_ct_CC
4419 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "no acceptable C compiler found in \$PATH
4422 See \`config.log' for more details" "$LINENO" 5; }
4424 # Provide some information about the compiler.
4425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4426 set X $ac_compile
4427 ac_compiler=$2
4428 for ac_option in --version -v -V -qversion; do
4429 { { ac_try="$ac_compiler $ac_option >&5"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4437 ac_status=$?
4438 if test -s conftest.err; then
4439 sed '10a\
4440 ... rest of stderr output deleted ...
4441 10q' conftest.err >conftest.er1
4442 cat conftest.er1 >&5
4444 rm -f conftest.er1 conftest.err
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 done
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4453 main ()
4457 return 0;
4459 _ACEOF
4460 ac_clean_files_save=$ac_clean_files
4461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4462 # Try to create an executable without -o first, disregard a.out.
4463 # It will help us diagnose broken compilers, and finding out an intuition
4464 # of exeext.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466 $as_echo_n "checking whether the C compiler works... " >&6; }
4467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4469 # The possible output files:
4470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4472 ac_rmfiles=
4473 for ac_file in $ac_files
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4478 esac
4479 done
4480 rm -f $ac_rmfiles
4482 if { { ac_try="$ac_link_default"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 $as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_link_default") 2>&5
4490 ac_status=$?
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then :
4493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4496 # so that the user can short-circuit this test for compilers unknown to
4497 # Autoconf.
4498 for ac_file in $ac_files ''
4500 test -f "$ac_file" || continue
4501 case $ac_file in
4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4504 [ab].out )
4505 # We found the default executable, but exeext='' is most
4506 # certainly right.
4507 break;;
4508 *.* )
4509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4510 then :; else
4511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 # We set ac_cv_exeext here because the later test for it is not
4514 # safe: cross compilers may not add the suffix if given an `-o'
4515 # argument, so we may need to know it at that point already.
4516 # Even if this section looks crufty: it has the advantage of
4517 # actually working.
4518 break;;
4520 break;;
4521 esac
4522 done
4523 test "$ac_cv_exeext" = no && ac_cv_exeext=
4525 else
4526 ac_file=''
4528 if test -z "$ac_file"; then :
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error 77 "C compiler cannot create executables
4537 See \`config.log' for more details" "$LINENO" 5; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543 $as_echo_n "checking for C compiler default output file name... " >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545 $as_echo "$ac_file" >&6; }
4546 ac_exeext=$ac_cv_exeext
4548 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4549 ac_clean_files=$ac_clean_files_save
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551 $as_echo_n "checking for suffix of executables... " >&6; }
4552 if { { ac_try="$ac_link"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
4560 ac_status=$?
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
4563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4565 # work properly (i.e., refer to `conftest.exe'), while it won't with
4566 # `rm'.
4567 for ac_file in conftest.exe conftest conftest.*; do
4568 test -f "$ac_file" || continue
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572 break;;
4573 * ) break;;
4574 esac
4575 done
4576 else
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4580 See \`config.log' for more details" "$LINENO" 5; }
4582 rm -f conftest conftest$ac_cv_exeext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4584 $as_echo "$ac_cv_exeext" >&6; }
4586 rm -f conftest.$ac_ext
4587 EXEEXT=$ac_cv_exeext
4588 ac_exeext=$EXEEXT
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <stdio.h>
4593 main ()
4595 FILE *f = fopen ("conftest.out", "w");
4596 return ferror (f) || fclose (f) != 0;
4599 return 0;
4601 _ACEOF
4602 ac_clean_files="$ac_clean_files conftest.out"
4603 # Check that the compiler produces executables we can run. If not, either
4604 # the compiler is broken, or we cross compile.
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606 $as_echo_n "checking whether we are cross compiling... " >&6; }
4607 if test "$cross_compiling" != yes; then
4608 { { ac_try="$ac_link"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_link") 2>&5
4616 ac_status=$?
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 if { ac_try='./conftest$ac_cv_exeext'
4620 { { case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_try") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; }; then
4630 cross_compiling=no
4631 else
4632 if test "$cross_compiling" = maybe; then
4633 cross_compiling=yes
4634 else
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error $? "cannot run C compiled programs.
4638 If you meant to cross compile, use \`--host'.
4639 See \`config.log' for more details" "$LINENO" 5; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644 $as_echo "$cross_compiling" >&6; }
4646 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4647 ac_clean_files=$ac_clean_files_save
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649 $as_echo_n "checking for suffix of object files... " >&6; }
4650 if ${ac_cv_objext+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4657 main ()
4661 return 0;
4663 _ACEOF
4664 rm -f conftest.o conftest.obj
4665 if { { ac_try="$ac_compile"
4666 case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669 esac
4670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671 $as_echo "$ac_try_echo"; } >&5
4672 (eval "$ac_compile") 2>&5
4673 ac_status=$?
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then :
4676 for ac_file in conftest.o conftest.obj conftest.*; do
4677 test -f "$ac_file" || continue;
4678 case $ac_file in
4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4681 break;;
4682 esac
4683 done
4684 else
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error $? "cannot compute suffix of object files: cannot compile
4691 See \`config.log' for more details" "$LINENO" 5; }
4693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4696 $as_echo "$ac_cv_objext" >&6; }
4697 OBJEXT=$ac_cv_objext
4698 ac_objext=$OBJEXT
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4701 if ${ac_cv_c_compiler_gnu+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4708 main ()
4710 #ifndef __GNUC__
4711 choke me
4712 #endif
4715 return 0;
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_compiler_gnu=yes
4720 else
4721 ac_compiler_gnu=no
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729 if test $ac_compiler_gnu = yes; then
4730 GCC=yes
4731 else
4732 GCC=
4734 ac_test_CFLAGS=${CFLAGS+set}
4735 ac_save_CFLAGS=$CFLAGS
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4738 if ${ac_cv_prog_cc_g+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 ac_save_c_werror_flag=$ac_c_werror_flag
4742 ac_c_werror_flag=yes
4743 ac_cv_prog_cc_g=no
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 main ()
4753 return 0;
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_prog_cc_g=yes
4758 else
4759 CFLAGS=""
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4764 main ()
4768 return 0;
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4773 else
4774 ac_c_werror_flag=$ac_save_c_werror_flag
4775 CFLAGS="-g"
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4780 main ()
4784 return 0;
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_prog_cc_g=yes
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4798 $as_echo "$ac_cv_prog_cc_g" >&6; }
4799 if test "$ac_test_CFLAGS" = set; then
4800 CFLAGS=$ac_save_CFLAGS
4801 elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4803 CFLAGS="-g -O2"
4804 else
4805 CFLAGS="-g"
4807 else
4808 if test "$GCC" = yes; then
4809 CFLAGS="-O2"
4810 else
4811 CFLAGS=
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4816 if ${ac_cv_prog_cc_c89+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 ac_cv_prog_cc_c89=no
4820 ac_save_CC=$CC
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <stdarg.h>
4824 #include <stdio.h>
4825 struct stat;
4826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827 struct buf { int x; };
4828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829 static char *e (p, i)
4830 char **p;
4831 int i;
4833 return p[i];
4835 static char *f (char * (*g) (char **, int), char **p, ...)
4837 char *s;
4838 va_list v;
4839 va_start (v,p);
4840 s = g (p, va_arg (v,int));
4841 va_end (v);
4842 return s;
4845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
4848 as 'x'. The following induces an error, until -std is added to get
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
4851 that's true only with -std. */
4852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4856 #define FOO(x) 'x'
4857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4859 int test (int i, double x);
4860 struct s1 {int (*f) (int a);};
4861 struct s2 {int (*f) (double a);};
4862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863 int argc;
4864 char **argv;
4866 main ()
4868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4870 return 0;
4872 _ACEOF
4873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4876 CC="$ac_save_CC $ac_arg"
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_prog_cc_c89=$ac_arg
4880 rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
4882 done
4883 rm -f conftest.$ac_ext
4884 CC=$ac_save_CC
4887 # AC_CACHE_VAL
4888 case "x$ac_cv_prog_cc_c89" in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891 $as_echo "none needed" >&6; } ;;
4892 xno)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894 $as_echo "unsupported" >&6; } ;;
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4899 esac
4900 if test "x$ac_cv_prog_cc_c89" != xno; then :
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 ac_ext=cpp
4911 ac_cpp='$CXXCPP $CPPFLAGS'
4912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915 if test -z "$CXX"; then
4916 if test -n "$CCC"; then
4917 CXX=$CCC
4918 else
4919 if test -n "$ac_tool_prefix"; then
4920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_CXX+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$CXX"; then
4930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 CXX=$ac_cv_prog_CXX
4950 if test -n "$CXX"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4952 $as_echo "$CXX" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 test -n "$CXX" && break
4960 done
4962 if test -z "$CXX"; then
4963 ac_ct_CXX=$CXX
4964 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4966 # Extract the first word of "$ac_prog", so it can be a program name with args.
4967 set dummy $ac_prog; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$ac_ct_CXX"; then
4974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_ac_ct_CXX="$ac_prog"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4994 if test -n "$ac_ct_CXX"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4996 $as_echo "$ac_ct_CXX" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5003 test -n "$ac_ct_CXX" && break
5004 done
5006 if test "x$ac_ct_CXX" = x; then
5007 CXX="g++"
5008 else
5009 case $cross_compiling:$ac_tool_warned in
5010 yes:)
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015 CXX=$ac_ct_CXX
5021 # Provide some information about the compiler.
5022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5023 set X $ac_compile
5024 ac_compiler=$2
5025 for ac_option in --version -v -V -qversion; do
5026 { { ac_try="$ac_compiler $ac_option >&5"
5027 case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030 esac
5031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5032 $as_echo "$ac_try_echo"; } >&5
5033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034 ac_status=$?
5035 if test -s conftest.err; then
5036 sed '10a\
5037 ... rest of stderr output deleted ...
5038 10q' conftest.err >conftest.er1
5039 cat conftest.er1 >&5
5041 rm -f conftest.er1 conftest.err
5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }
5044 done
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5047 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5048 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5055 main ()
5057 #ifndef __GNUC__
5058 choke me
5059 #endif
5062 return 0;
5064 _ACEOF
5065 if ac_fn_cxx_try_compile "$LINENO"; then :
5066 ac_compiler_gnu=yes
5067 else
5068 ac_compiler_gnu=no
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5075 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5076 if test $ac_compiler_gnu = yes; then
5077 GXX=yes
5078 else
5079 GXX=
5081 ac_test_CXXFLAGS=${CXXFLAGS+set}
5082 ac_save_CXXFLAGS=$CXXFLAGS
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5084 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5085 if ${ac_cv_prog_cxx_g+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5089 ac_cxx_werror_flag=yes
5090 ac_cv_prog_cxx_g=no
5091 CXXFLAGS="-g"
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5096 main ()
5100 return 0;
5102 _ACEOF
5103 if ac_fn_cxx_try_compile "$LINENO"; then :
5104 ac_cv_prog_cxx_g=yes
5105 else
5106 CXXFLAGS=""
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5111 main ()
5115 return 0;
5117 _ACEOF
5118 if ac_fn_cxx_try_compile "$LINENO"; then :
5120 else
5121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5122 CXXFLAGS="-g"
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5127 main ()
5131 return 0;
5133 _ACEOF
5134 if ac_fn_cxx_try_compile "$LINENO"; then :
5135 ac_cv_prog_cxx_g=yes
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5145 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5146 if test "$ac_test_CXXFLAGS" = set; then
5147 CXXFLAGS=$ac_save_CXXFLAGS
5148 elif test $ac_cv_prog_cxx_g = yes; then
5149 if test "$GXX" = yes; then
5150 CXXFLAGS="-g -O2"
5151 else
5152 CXXFLAGS="-g"
5154 else
5155 if test "$GXX" = yes; then
5156 CXXFLAGS="-O2"
5157 else
5158 CXXFLAGS=
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168 # We must set the default linker to the linker used by gcc for the correct
5169 # operation of libtool. If LD is not defined and we are using gcc, try to
5170 # set the LD default to the ld used by gcc.
5171 if test -z "$LD"; then
5172 if test "$GCC" = yes; then
5173 case $build in
5174 *-*-mingw*)
5175 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5177 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5178 esac
5179 case $gcc_prog_ld in
5180 # Accept absolute paths.
5181 [\\/]* | [A-Za-z]:[\\/]*)
5182 LD="$gcc_prog_ld" ;;
5183 esac
5187 # Check whether -static-libstdc++ -static-libgcc is supported.
5188 have_static_libs=no
5189 if test "$GCC" = yes; then
5190 saved_LDFLAGS="$LDFLAGS"
5192 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5194 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5195 ac_ext=cpp
5196 ac_cpp='$CXXCPP $CPPFLAGS'
5197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5205 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5206 #error -static-libstdc++ not implemented
5207 #endif
5208 int main() {}
5209 _ACEOF
5210 if ac_fn_cxx_try_link "$LINENO"; then :
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212 $as_echo "yes" >&6; }; have_static_libs=yes
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5217 rm -f core conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5219 ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226 LDFLAGS="$saved_LDFLAGS"
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_GNATBIND+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$GNATBIND"; then
5241 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5254 done
5255 done
5256 IFS=$as_save_IFS
5260 GNATBIND=$ac_cv_prog_GNATBIND
5261 if test -n "$GNATBIND"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5263 $as_echo "$GNATBIND" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5271 if test -z "$ac_cv_prog_GNATBIND"; then
5272 ac_ct_GNATBIND=$GNATBIND
5273 # Extract the first word of "gnatbind", so it can be a program name with args.
5274 set dummy gnatbind; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$ac_ct_GNATBIND"; then
5281 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5300 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5301 if test -n "$ac_ct_GNATBIND"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5303 $as_echo "$ac_ct_GNATBIND" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5309 if test "x$ac_ct_GNATBIND" = x; then
5310 GNATBIND="no"
5311 else
5312 case $cross_compiling:$ac_tool_warned in
5313 yes:)
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316 ac_tool_warned=yes ;;
5317 esac
5318 GNATBIND=$ac_ct_GNATBIND
5320 else
5321 GNATBIND="$ac_cv_prog_GNATBIND"
5324 if test -n "$ac_tool_prefix"; then
5325 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_GNATMAKE+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$GNATMAKE"; then
5333 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 GNATMAKE=$ac_cv_prog_GNATMAKE
5353 if test -n "$GNATMAKE"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5355 $as_echo "$GNATMAKE" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5363 if test -z "$ac_cv_prog_GNATMAKE"; then
5364 ac_ct_GNATMAKE=$GNATMAKE
5365 # Extract the first word of "gnatmake", so it can be a program name with args.
5366 set dummy gnatmake; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$ac_ct_GNATMAKE"; then
5373 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5393 if test -n "$ac_ct_GNATMAKE"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5395 $as_echo "$ac_ct_GNATMAKE" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5401 if test "x$ac_ct_GNATMAKE" = x; then
5402 GNATMAKE="no"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410 GNATMAKE=$ac_ct_GNATMAKE
5412 else
5413 GNATMAKE="$ac_cv_prog_GNATMAKE"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5417 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5418 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 cat >conftest.adb <<EOF
5422 procedure conftest is begin null; end conftest;
5424 acx_cv_cc_gcc_supports_ada=no
5425 # There is a bug in old released versions of GCC which causes the
5426 # driver to exit successfully when the appropriate language module
5427 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5428 # Therefore we must check for the error message as well as an
5429 # unsuccessful exit.
5430 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5431 # given a .adb file, but produce no object file. So we must check
5432 # if an object file was really produced to guard against this.
5433 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5434 if test x"$errors" = x && test -f conftest.$ac_objext; then
5435 acx_cv_cc_gcc_supports_ada=yes
5437 rm -f conftest.*
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5440 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5442 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5443 have_gnat=yes
5444 else
5445 have_gnat=no
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5449 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5450 if ${gcc_cv_prog_cmp_skip+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 echo abfoo >t1
5454 echo cdfoo >t2
5455 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5456 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5457 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5459 else
5460 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5463 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5464 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5466 else
5467 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5470 rm t1 t2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5474 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5475 do_compare="$gcc_cv_prog_cmp_skip"
5479 # Check whether --enable-bootstrap was given.
5480 if test "${enable_bootstrap+set}" = set; then :
5481 enableval=$enable_bootstrap;
5482 else
5483 enable_bootstrap=default
5487 # Issue errors and warnings for invalid/strange bootstrap combinations.
5488 if test -r $srcdir/gcc/configure; then
5489 have_compiler=yes
5490 else
5491 have_compiler=no
5494 case "$have_compiler:$host:$target:$enable_bootstrap" in
5495 *:*:*:no) ;;
5497 # Default behavior. Enable bootstrap if we have a compiler
5498 # and we are in a native configuration.
5499 yes:$build:$build:default)
5500 enable_bootstrap=yes ;;
5502 *:*:*:default)
5503 enable_bootstrap=no ;;
5505 # We have a compiler and we are in a native configuration, bootstrap is ok
5506 yes:$build:$build:yes)
5509 # Other configurations, but we have a compiler. Assume the user knows
5510 # what he's doing.
5511 yes:*:*:yes)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5513 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5516 # No compiler: if they passed --enable-bootstrap explicitly, fail
5517 no:*:*:yes)
5518 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5520 # Fail if wrong command line
5522 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5524 esac
5526 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5527 # C++98 compiler can still start the bootstrap.
5528 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5529 CXX="$CXX -std=gnu++98"
5532 # Used for setting $lt_cv_objdir
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5534 $as_echo_n "checking for objdir... " >&6; }
5535 if ${lt_cv_objdir+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 rm -f .libs 2>/dev/null
5539 mkdir .libs 2>/dev/null
5540 if test -d .libs; then
5541 lt_cv_objdir=.libs
5542 else
5543 # MS-DOS does not allow filenames that begin with a dot.
5544 lt_cv_objdir=_libs
5546 rmdir .libs 2>/dev/null
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5549 $as_echo "$lt_cv_objdir" >&6; }
5550 objdir=$lt_cv_objdir
5556 cat >>confdefs.h <<_ACEOF
5557 #define LT_OBJDIR "$lt_cv_objdir/"
5558 _ACEOF
5562 # Check for GMP, MPFR and MPC
5563 gmplibs="-lmpc -lmpfr -lgmp"
5564 gmpinc=
5565 have_gmp=no
5567 # Specify a location for mpc
5568 # check for this first so it ends up on the link line before mpfr.
5570 # Check whether --with-mpc was given.
5571 if test "${with_mpc+set}" = set; then :
5572 withval=$with_mpc;
5576 # Check whether --with-mpc-include was given.
5577 if test "${with_mpc_include+set}" = set; then :
5578 withval=$with_mpc_include;
5582 # Check whether --with-mpc-lib was given.
5583 if test "${with_mpc_lib+set}" = set; then :
5584 withval=$with_mpc_lib;
5588 if test "x$with_mpc" != x; then
5589 gmplibs="-L$with_mpc/lib $gmplibs"
5590 gmpinc="-I$with_mpc/include $gmpinc"
5592 if test "x$with_mpc_include" != x; then
5593 gmpinc="-I$with_mpc_include $gmpinc"
5595 if test "x$with_mpc_lib" != x; then
5596 gmplibs="-L$with_mpc_lib $gmplibs"
5598 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5599 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5600 gmpinc='-I$$s/mpc/src '"$gmpinc"
5601 # Do not test the mpc version. Assume that it is sufficient, since
5602 # it is in the source tree, and the library has not been built yet
5603 # but it would be included on the link line in the version check below
5604 # hence making the test fail.
5605 have_gmp=yes
5608 # Specify a location for mpfr
5609 # check for this first so it ends up on the link line before gmp.
5611 # Check whether --with-mpfr-dir was given.
5612 if test "${with_mpfr_dir+set}" = set; then :
5613 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5614 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5619 # Check whether --with-mpfr was given.
5620 if test "${with_mpfr+set}" = set; then :
5621 withval=$with_mpfr;
5625 # Check whether --with-mpfr-include was given.
5626 if test "${with_mpfr_include+set}" = set; then :
5627 withval=$with_mpfr_include;
5631 # Check whether --with-mpfr-lib was given.
5632 if test "${with_mpfr_lib+set}" = set; then :
5633 withval=$with_mpfr_lib;
5637 if test "x$with_mpfr" != x; then
5638 gmplibs="-L$with_mpfr/lib $gmplibs"
5639 gmpinc="-I$with_mpfr/include $gmpinc"
5641 if test "x$with_mpfr_include" != x; then
5642 gmpinc="-I$with_mpfr_include $gmpinc"
5644 if test "x$with_mpfr_lib" != x; then
5645 gmplibs="-L$with_mpfr_lib $gmplibs"
5647 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5648 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5649 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5650 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5651 # Do not test the mpfr version. Assume that it is sufficient, since
5652 # it is in the source tree, and the library has not been built yet
5653 # but it would be included on the link line in the version check below
5654 # hence making the test fail.
5655 have_gmp=yes
5658 # Specify a location for gmp
5660 # Check whether --with-gmp-dir was given.
5661 if test "${with_gmp_dir+set}" = set; then :
5662 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5663 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5668 # Check whether --with-gmp was given.
5669 if test "${with_gmp+set}" = set; then :
5670 withval=$with_gmp;
5674 # Check whether --with-gmp-include was given.
5675 if test "${with_gmp_include+set}" = set; then :
5676 withval=$with_gmp_include;
5680 # Check whether --with-gmp-lib was given.
5681 if test "${with_gmp_lib+set}" = set; then :
5682 withval=$with_gmp_lib;
5687 if test "x$with_gmp" != x; then
5688 gmplibs="-L$with_gmp/lib $gmplibs"
5689 gmpinc="-I$with_gmp/include $gmpinc"
5691 if test "x$with_gmp_include" != x; then
5692 gmpinc="-I$with_gmp_include $gmpinc"
5694 if test "x$with_gmp_lib" != x; then
5695 gmplibs="-L$with_gmp_lib $gmplibs"
5697 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5698 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5699 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5700 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5701 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5702 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5703 # Do not test the gmp version. Assume that it is sufficient, since
5704 # it is in the source tree, and the library has not been built yet
5705 # but it would be included on the link line in the version check below
5706 # hence making the test fail.
5707 have_gmp=yes
5710 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5711 have_gmp=yes
5712 saved_CFLAGS="$CFLAGS"
5713 CFLAGS="$CFLAGS $gmpinc"
5714 # Check for the recommended and required versions of GMP.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5716 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #include "gmp.h"
5722 main ()
5725 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5726 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5727 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5728 choke me
5729 #endif
5732 return 0;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <gmp.h>
5740 main ()
5743 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5744 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5745 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5746 choke me
5747 #endif
5750 return 0;
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755 $as_echo "yes" >&6; }
5756 else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5758 $as_echo "buggy but acceptable" >&6; }
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }; have_gmp=no
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 # If we have GMP, check the MPFR version.
5768 if test x"$have_gmp" = xyes; then
5769 # Check for the recommended and required versions of MPFR.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5771 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <gmp.h>
5775 #include <mpfr.h>
5777 main ()
5780 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5781 choke me
5782 #endif
5785 return 0;
5787 _ACEOF
5788 if ac_fn_c_try_compile "$LINENO"; then :
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <gmp.h>
5792 #include <mpfr.h>
5794 main ()
5797 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5798 choke me
5799 #endif
5802 return 0;
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"; then :
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807 $as_echo "yes" >&6; }
5808 else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5810 $as_echo "buggy but acceptable" >&6; }
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 else
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }; have_gmp=no
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 # Check for the MPC header version.
5821 if test x"$have_gmp" = xyes ; then
5822 # Check for the recommended and required versions of MPC.
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5824 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include <mpc.h>
5829 main ()
5832 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5833 choke me
5834 #endif
5837 return 0;
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"; then :
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #include <mpc.h>
5845 main ()
5848 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5849 choke me
5850 #endif
5853 return 0;
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then :
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5858 $as_echo "yes" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5861 $as_echo "buggy but acceptable" >&6; }
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }; have_gmp=no
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 # Now check the MPFR library.
5872 if test x"$have_gmp" = xyes; then
5873 saved_LIBS="$LIBS"
5874 LIBS="$LIBS $gmplibs"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5876 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #include <mpc.h>
5881 main ()
5884 mpfr_t n;
5885 mpfr_t x;
5886 mpc_t c;
5887 int t;
5888 mpfr_init (n);
5889 mpfr_init (x);
5890 mpfr_atan2 (n, n, x, GMP_RNDN);
5891 mpfr_erfc (n, x, GMP_RNDN);
5892 mpfr_subnormalize (x, t, GMP_RNDN);
5893 mpfr_clear(n);
5894 mpfr_clear(x);
5895 mpc_init2 (c, 53);
5896 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5897 mpc_cosh (c, c, MPC_RNDNN);
5898 mpc_pow (c, c, c, MPC_RNDNN);
5899 mpc_acosh (c, c, MPC_RNDNN);
5900 mpc_clear (c);
5903 return 0;
5905 _ACEOF
5906 if ac_fn_c_try_link "$LINENO"; then :
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5908 $as_echo "yes" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }; have_gmp=no
5913 rm -f core conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5915 LIBS="$saved_LIBS"
5918 CFLAGS="$saved_CFLAGS"
5920 # The library versions listed in the error message below should match
5921 # the HARD-minimums enforced above.
5922 if test x$have_gmp != xyes; then
5923 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5924 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5925 their locations. Source code for these libraries can be found at
5926 their respective hosting sites as well as at
5927 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5928 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5929 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5930 make sure that you have installed both the libraries and the header
5931 files. They may be located in separate packages." "$LINENO" 5
5935 # Flags needed for both GMP, MPFR and/or MPC.
5943 # Libraries to use for stage1 or when not bootstrapping.
5945 # Check whether --with-stage1-libs was given.
5946 if test "${with_stage1_libs+set}" = set; then :
5947 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5948 stage1_libs=
5949 else
5950 stage1_libs=$withval
5952 else
5953 stage1_libs=
5958 # Linker flags to use for stage1 or when not bootstrapping.
5960 # Check whether --with-stage1-ldflags was given.
5961 if test "${with_stage1_ldflags+set}" = set; then :
5962 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5963 stage1_ldflags=
5964 else
5965 stage1_ldflags=$withval
5967 else
5968 stage1_ldflags=
5969 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5970 # if supported. But if the user explicitly specified the libraries to use,
5971 # trust that they are doing what they want.
5972 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5973 stage1_ldflags="-static-libstdc++ -static-libgcc"
5979 # Libraries to use for stage2 and later builds.
5981 # Check whether --with-boot-libs was given.
5982 if test "${with_boot_libs+set}" = set; then :
5983 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5984 poststage1_libs=
5985 else
5986 poststage1_libs=$withval
5988 else
5989 poststage1_libs=
5994 # Linker flags to use for stage2 and later builds.
5996 # Check whether --with-boot-ldflags was given.
5997 if test "${with_boot_ldflags+set}" = set; then :
5998 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5999 poststage1_ldflags=
6000 else
6001 poststage1_ldflags=$withval
6003 else
6004 poststage1_ldflags=
6005 # In stages 2 and 3, default to linking libstdc++ and libgcc
6006 # statically. But if the user explicitly specified the libraries to
6007 # use, trust that they are doing what they want.
6008 if test "$poststage1_libs" = ""; then
6009 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6015 # GCC GRAPHITE dependency isl.
6016 # Basic setup is inlined here, actual checks are in config/isl.m4
6019 # Check whether --with-isl was given.
6020 if test "${with_isl+set}" = set; then :
6021 withval=$with_isl;
6025 # Treat --without-isl as a request to disable
6026 # GRAPHITE support and skip all following checks.
6027 if test "x$with_isl" != "xno"; then
6028 # Check for isl
6031 # Check whether --with-isl-include was given.
6032 if test "${with_isl_include+set}" = set; then :
6033 withval=$with_isl_include;
6037 # Check whether --with-isl-lib was given.
6038 if test "${with_isl_lib+set}" = set; then :
6039 withval=$with_isl_lib;
6043 # Check whether --enable-isl-version-check was given.
6044 if test "${enable_isl_version_check+set}" = set; then :
6045 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6046 else
6047 ENABLE_ISL_CHECK=yes
6051 # Initialize isllibs and islinc.
6052 case $with_isl in
6054 isllibs=
6055 islinc=
6057 "" | yes)
6060 isllibs="-L$with_isl/lib"
6061 islinc="-I$with_isl/include"
6063 esac
6064 if test "x${with_isl_include}" != x ; then
6065 islinc="-I$with_isl_include"
6067 if test "x${with_isl_lib}" != x; then
6068 isllibs="-L$with_isl_lib"
6070 if test "x${islinc}" = x && test "x${isllibs}" = x \
6071 && test -d ${srcdir}/isl; then
6072 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6073 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6074 ENABLE_ISL_CHECK=no
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6076 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6079 isllibs="${isllibs} -lisl"
6083 if test "${ENABLE_ISL_CHECK}" = yes ; then
6084 _isl_saved_CFLAGS=$CFLAGS
6085 _isl_saved_LDFLAGS=$LDFLAGS
6086 _isl_saved_LIBS=$LIBS
6088 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6089 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6090 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6093 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <isl/ctx.h>
6098 main ()
6100 isl_ctx_get_max_operations (isl_ctx_alloc ());
6102 return 0;
6104 _ACEOF
6105 if ac_fn_c_try_link "$LINENO"; then :
6106 gcc_cv_isl=yes
6107 else
6108 gcc_cv_isl=no
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6113 $as_echo "$gcc_cv_isl" >&6; }
6115 if test "${gcc_cv_isl}" = no ; then
6116 { $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
6117 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6121 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #include <isl/schedule.h>
6126 main ()
6128 isl_options_set_schedule_serialize_sccs (NULL, 0);
6130 return 0;
6132 _ACEOF
6133 if ac_fn_c_try_link "$LINENO"; then :
6134 ac_has_isl_options_set_schedule_serialize_sccs=yes
6135 else
6136 ac_has_isl_options_set_schedule_serialize_sccs=no
6138 rm -f core conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6141 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6143 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6144 islver="0.15"
6148 CFLAGS=$_isl_saved_CFLAGS
6149 LDFLAGS=$_isl_saved_LDFLAGS
6150 LIBS=$_isl_saved_LIBS
6158 if test "x${with_isl}" = xno; then
6159 graphite_requested=no
6160 elif test "x${with_isl}" != x \
6161 || test "x${with_isl_include}" != x \
6162 || test "x${with_isl_lib}" != x ; then
6163 graphite_requested=yes
6164 else
6165 graphite_requested=no
6170 if test "${gcc_cv_isl}" = no ; then
6171 isllibs=
6172 islinc=
6175 if test "${graphite_requested}" = yes \
6176 && test "x${isllibs}" = x \
6177 && test "x${islinc}" = x ; then
6179 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6185 # If the isl check failed, disable builds of in-tree variant of isl
6186 if test "x$with_isl" = xno ||
6187 test "x$gcc_cv_isl" = xno; then
6188 noconfigdirs="$noconfigdirs isl"
6189 islinc=
6195 # Check for LTO support.
6196 # Check whether --enable-lto was given.
6197 if test "${enable_lto+set}" = set; then :
6198 enableval=$enable_lto; enable_lto=$enableval
6199 else
6200 enable_lto=yes; default_enable_lto=yes
6207 target_elf=no
6208 case $target in
6209 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6210 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6211 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6212 nvptx-*-none)
6213 target_elf=no
6216 target_elf=yes
6218 esac
6220 if test $target_elf = yes; then :
6221 # ELF platforms build the lto-plugin always.
6222 build_lto_plugin=yes
6224 else
6225 if test x"$default_enable_lto" = x"yes" ; then
6226 case $target in
6227 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6228 # On other non-ELF platforms, LTO has yet to be validated.
6229 *) enable_lto=no ;;
6230 esac
6231 else
6232 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6233 # It would also be nice to check the binutils support, but we don't
6234 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6235 # warn during gcc/ subconfigure; unless you're bootstrapping with
6236 # -flto it won't be needed until after installation anyway.
6237 case $target in
6238 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6239 *) if test x"$enable_lto" = x"yes"; then
6240 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6243 esac
6245 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6246 # Build it unless LTO was explicitly disabled.
6247 case $target in
6248 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6249 *) ;;
6250 esac
6255 # Check whether --enable-linker-plugin-configure-flags was given.
6256 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6257 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6258 else
6259 extra_linker_plugin_configure_flags=
6263 # Check whether --enable-linker-plugin-flags was given.
6264 if test "${enable_linker_plugin_flags+set}" = set; then :
6265 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6266 else
6267 extra_linker_plugin_flags=
6273 # By default, C and C++ are the only stage 1 languages.
6274 stage1_languages=,c,
6276 # Target libraries that we bootstrap.
6277 bootstrap_target_libs=,target-libgcc,
6279 # Figure out what language subdirectories are present.
6280 # Look if the user specified --enable-languages="..."; if not, use
6281 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6282 # go away some day.
6283 # NB: embedded tabs in this IF block -- do not untabify
6284 if test -d ${srcdir}/gcc; then
6285 if test x"${enable_languages+set}" != xset; then
6286 if test x"${LANGUAGES+set}" = xset; then
6287 enable_languages="${LANGUAGES}"
6288 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6289 else
6290 enable_languages=all
6292 else
6293 if test x"${enable_languages}" = x ||
6294 test x"${enable_languages}" = xyes;
6295 then
6296 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6297 exit 1
6300 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6302 # 'f95' is the old name for the 'fortran' language. We issue a warning
6303 # and make the substitution.
6304 case ,${enable_languages}, in
6305 *,f95,*)
6306 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6307 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6309 esac
6311 # If bootstrapping, C++ must be enabled.
6312 case ",$enable_languages,:$enable_bootstrap" in
6313 *,c++,*:*) ;;
6314 *:yes)
6315 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6316 enable_languages="${enable_languages},c++"
6317 else
6318 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6321 esac
6323 # First scan to see if an enabled language requires some other language.
6324 # We assume that a given config-lang.in will list all the language
6325 # front ends it requires, even if some are required indirectly.
6326 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6327 case ${lang_frag} in
6328 ..) ;;
6329 # The odd quoting in the next line works around
6330 # an apparent bug in bash 1.12 on linux.
6331 ${srcdir}/gcc/[*]/config-lang.in) ;;
6333 # From the config-lang.in, get $language, $lang_requires, and
6334 # $lang_requires_boot_languages.
6335 language=
6336 lang_requires=
6337 lang_requires_boot_languages=
6338 . ${lang_frag}
6339 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6340 case ,${enable_languages}, in
6341 *,$other,*) ;;
6342 *,all,*) ;;
6343 *,$language,*)
6344 echo " \`$other' language required by \`$language'; enabling" 1>&2
6345 enable_languages="${enable_languages},${other}"
6347 esac
6348 done
6349 for other in ${lang_requires_boot_languages} ; do
6350 if test "$other" != "c"; then
6351 case ,${enable_stage1_languages}, in
6352 *,$other,*) ;;
6353 *,all,*) ;;
6355 case ,${enable_languages}, in
6356 *,$language,*)
6357 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6358 enable_stage1_languages="$enable_stage1_languages,${other}"
6360 esac
6362 esac
6364 done
6366 esac
6367 done
6369 new_enable_languages=,c,
6371 # If LTO is enabled, add the LTO front end.
6372 if test "$enable_lto" = "yes" ; then
6373 case ,${enable_languages}, in
6374 *,lto,*) ;;
6375 *) enable_languages="${enable_languages},lto" ;;
6376 esac
6377 if test "${build_lto_plugin}" = "yes" ; then
6378 configdirs="$configdirs lto-plugin"
6382 # If we're building an offloading compiler, add the LTO front end.
6383 if test x"$enable_as_accelerator_for" != x ; then
6384 case ,${enable_languages}, in
6385 *,lto,*) ;;
6386 *) enable_languages="${enable_languages},lto" ;;
6387 esac
6390 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6391 potential_languages=,c,
6393 enabled_target_libs=
6394 disabled_target_libs=
6396 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6397 case ${lang_frag} in
6398 ..) ;;
6399 # The odd quoting in the next line works around
6400 # an apparent bug in bash 1.12 on linux.
6401 ${srcdir}/gcc/[*]/config-lang.in) ;;
6403 # From the config-lang.in, get $language, $target_libs,
6404 # $lang_dirs, $boot_language, and $build_by_default
6405 language=
6406 target_libs=
6407 lang_dirs=
6408 subdir_requires=
6409 boot_language=no
6410 build_by_default=yes
6411 . ${lang_frag}
6412 if test x${language} = x; then
6413 echo "${lang_frag} doesn't set \$language." 1>&2
6414 exit 1
6417 if test "$language" = "c++"; then
6418 boot_language=yes
6421 add_this_lang=no
6422 case ,${enable_languages}, in
6423 *,${language},*)
6424 # Language was explicitly selected; include it
6425 # unless it is C, which is enabled by default.
6426 if test "$language" != "c"; then
6427 add_this_lang=yes
6430 *,all,*)
6431 # 'all' was selected, select it if it is a default language
6432 if test "$language" != "c"; then
6433 add_this_lang=${build_by_default}
6436 esac
6438 # Disable languages that need other directories if these aren't available.
6439 for i in $subdir_requires; do
6440 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6441 case ,${enable_languages}, in
6442 *,${language},*)
6443 # Specifically requested language; tell them.
6444 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6447 # Silently disable.
6448 add_this_lang=unsupported
6450 esac
6451 done
6453 # Disable Ada if no preexisting GNAT is available.
6454 case ,${enable_languages},:${language}:${have_gnat} in
6455 *,${language},*:ada:no)
6456 # Specifically requested language; tell them.
6457 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6459 *:ada:no)
6460 # Silently disable.
6461 add_this_lang=unsupported
6463 esac
6465 # Disable a language that is unsupported by the target.
6466 case " $unsupported_languages " in
6467 *" $language "*)
6468 add_this_lang=unsupported
6470 esac
6472 case $add_this_lang in
6473 unsupported)
6474 # Remove language-dependent dirs.
6475 disabled_target_libs="$disabled_target_libs $target_libs"
6476 noconfigdirs="$noconfigdirs $lang_dirs"
6479 # Remove language-dependent dirs; still show language as supported.
6480 disabled_target_libs="$disabled_target_libs $target_libs"
6481 noconfigdirs="$noconfigdirs $lang_dirs"
6482 potential_languages="${potential_languages}${language},"
6484 yes)
6485 new_enable_languages="${new_enable_languages}${language},"
6486 potential_languages="${potential_languages}${language},"
6487 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6488 enabled_target_libs="$enabled_target_libs $target_libs"
6489 case "${boot_language}:,$enable_stage1_languages," in
6490 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6491 # Add to (comma-separated) list of stage 1 languages.
6492 case ",$stage1_languages," in
6493 *,$language,* | ,yes, | ,all,) ;;
6494 *) stage1_languages="${stage1_languages}${language}," ;;
6495 esac
6496 # We need to bootstrap any supporting libraries.
6497 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6499 esac
6501 esac
6503 esac
6504 done
6506 # Add target libraries which are only needed for disabled languages
6507 # to noconfigdirs.
6508 if test -n "$disabled_target_libs"; then
6509 for dir in $disabled_target_libs; do
6510 case " $enabled_target_libs " in
6511 *" ${dir} "*) ;;
6512 *) noconfigdirs="$noconfigdirs $dir" ;;
6513 esac
6514 done
6517 # Check whether --enable-stage1-languages was given.
6518 if test "${enable_stage1_languages+set}" = set; then :
6519 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6520 ,no,|,,)
6521 # Set it to something that will have no effect in the loop below
6522 enable_stage1_languages=c ;;
6523 ,yes,)
6524 enable_stage1_languages=`echo $new_enable_languages | \
6525 sed -e "s/^,//" -e "s/,$//" ` ;;
6526 *,all,*)
6527 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6528 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6529 esac
6531 # Add "good" languages from enable_stage1_languages to stage1_languages,
6532 # while "bad" languages go in missing_languages. Leave no duplicates.
6533 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6534 case $potential_languages in
6535 *,$i,*)
6536 case $stage1_languages in
6537 *,$i,*) ;;
6538 *) stage1_languages="$stage1_languages$i," ;;
6539 esac ;;
6541 case $missing_languages in
6542 *,$i,*) ;;
6543 *) missing_languages="$missing_languages$i," ;;
6544 esac ;;
6545 esac
6546 done
6550 # Remove leading/trailing commas that were added for simplicity
6551 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6552 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6553 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6554 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6556 if test "x$missing_languages" != x; then
6557 as_fn_error $? "
6558 The following requested languages could not be built: ${missing_languages}
6559 Supported languages are: ${potential_languages}" "$LINENO" 5
6561 if test "x$new_enable_languages" != "x$enable_languages"; then
6562 echo The following languages will be built: ${new_enable_languages}
6563 enable_languages="$new_enable_languages"
6567 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6570 # Handle --disable-<component> generically.
6571 for dir in $configdirs $build_configdirs $target_configdirs ; do
6572 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6573 varname=`echo $dirname | sed -e s/+/_/g`
6574 if eval test x\${enable_${varname}} "=" xno ; then
6575 noconfigdirs="$noconfigdirs $dir"
6577 done
6579 # Check for Boehm's garbage collector
6580 # Check whether --enable-objc-gc was given.
6581 if test "${enable_objc_gc+set}" = set; then :
6582 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6583 *,objc,*:*:yes:*target-boehm-gc*)
6584 as_fn_error $? "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6586 esac
6590 # Make sure we only build Boehm's garbage collector if required.
6591 case ,${enable_languages},:${enable_objc_gc} in
6592 *,objc,*:yes)
6593 # Keep target-boehm-gc if requested for Objective-C.
6596 # Otherwise remove target-boehm-gc depending on target-libjava.
6597 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6598 noconfigdirs="$noconfigdirs target-boehm-gc"
6601 esac
6603 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6604 case ,${enable_languages}, in
6605 *,c++,*)
6606 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6607 case "${noconfigdirs}" in
6608 *target-libstdc++-v3*)
6609 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6611 *) ;;
6612 esac
6615 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6617 esac
6619 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6620 # $build_configdirs and $target_configdirs.
6621 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6623 notsupp=""
6624 for dir in . $skipdirs $noconfigdirs ; do
6625 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6626 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6627 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6628 if test -r $srcdir/$dirname/configure ; then
6629 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6630 true
6631 else
6632 notsupp="$notsupp $dir"
6636 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6637 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6638 if test -r $srcdir/$dirname/configure ; then
6639 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6640 true
6641 else
6642 notsupp="$notsupp $dir"
6646 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6647 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6648 if test -r $srcdir/$dirname/configure ; then
6649 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6650 true
6651 else
6652 notsupp="$notsupp $dir"
6656 done
6658 # Quietly strip out all directories which aren't configurable in this tree.
6659 # This relies on all configurable subdirectories being autoconfiscated, which
6660 # is now the case.
6661 build_configdirs_all="$build_configdirs"
6662 build_configdirs=
6663 for i in ${build_configdirs_all} ; do
6664 j=`echo $i | sed -e s/build-//g`
6665 if test -f ${srcdir}/$j/configure ; then
6666 build_configdirs="${build_configdirs} $i"
6668 done
6670 configdirs_all="$configdirs"
6671 configdirs=
6672 for i in ${configdirs_all} ; do
6673 if test -f ${srcdir}/$i/configure ; then
6674 configdirs="${configdirs} $i"
6676 done
6678 target_configdirs_all="$target_configdirs"
6679 target_configdirs=
6680 for i in ${target_configdirs_all} ; do
6681 j=`echo $i | sed -e s/target-//g`
6682 if test -f ${srcdir}/$j/configure ; then
6683 target_configdirs="${target_configdirs} $i"
6685 done
6687 # Exclude target-zlib if target-libjava isn't built.
6688 case ${target_configdirs} in
6689 *target-libjava*)
6692 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6694 esac
6696 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6697 # so we have to add it after the preceding checks.
6698 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6699 then
6700 case " $configdirs " in
6701 *" libiberty "*)
6702 # If we can build libiberty, we can also build libiberty-linker-plugin.
6703 configdirs="$configdirs libiberty-linker-plugin"
6704 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6705 --with-libiberty=../libiberty-linker-plugin";;
6707 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6708 esac
6711 # Sometimes we have special requirements for the host libiberty.
6712 extra_host_libiberty_configure_flags=
6713 extra_host_zlib_configure_flags=
6714 case " $configdirs " in
6715 *" lto-plugin "* | *" libcc1 "*)
6716 # When these are to be built as shared libraries, the same applies to
6717 # libiberty.
6718 extra_host_libiberty_configure_flags=--enable-shared
6720 *" bfd "*)
6721 # When bfd is to be built as a shared library, the same applies to
6722 # zlib.
6723 if test "$enable_shared" = "yes"; then
6724 extra_host_zlib_configure_flags=--enable-host-shared
6727 esac
6731 # Produce a warning message for the subdirs we can't configure.
6732 # This isn't especially interesting in the Cygnus tree, but in the individual
6733 # FSF releases, it's important to let people know when their machine isn't
6734 # supported by the one or two programs in a package.
6736 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6737 # If $appdirs is non-empty, at least one of those directories must still
6738 # be configured, or we error out. (E.g., if the gas release supports a
6739 # specified target in some subdirs but not the gas subdir, we shouldn't
6740 # pretend that all is well.)
6741 if test -n "$appdirs" ; then
6742 for dir in $appdirs ; do
6743 if test -r $dir/Makefile.in ; then
6744 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6745 appdirs=""
6746 break
6748 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6749 appdirs=""
6750 break
6753 done
6754 if test -n "$appdirs" ; then
6755 echo "*** This configuration is not supported by this package." 1>&2
6756 exit 1
6759 # Okay, some application will build, or we don't care to check. Still
6760 # notify of subdirs not getting built.
6761 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6762 echo " ${notsupp}" 1>&2
6763 echo " (Any other directories should still work fine.)" 1>&2
6766 case "$host" in
6767 *msdosdjgpp*)
6768 enable_gdbtk=no ;;
6769 esac
6771 # To find our prefix, in gcc_cv_tool_prefix.
6773 # The user is always right.
6774 if test "${PATH_SEPARATOR+set}" != set; then
6775 echo "#! /bin/sh" >conf$$.sh
6776 echo "exit 0" >>conf$$.sh
6777 chmod +x conf$$.sh
6778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6779 PATH_SEPARATOR=';'
6780 else
6781 PATH_SEPARATOR=:
6783 rm -f conf$$.sh
6788 if test "x$exec_prefix" = xNONE; then
6789 if test "x$prefix" = xNONE; then
6790 gcc_cv_tool_prefix=$ac_default_prefix
6791 else
6792 gcc_cv_tool_prefix=$prefix
6794 else
6795 gcc_cv_tool_prefix=$exec_prefix
6798 # If there is no compiler in the tree, use the PATH only. In any
6799 # case, if there is no compiler in the tree nobody should use
6800 # AS_FOR_TARGET and LD_FOR_TARGET.
6801 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6802 gcc_version=`cat $srcdir/gcc/BASE-VER`
6803 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6804 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6805 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6806 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6807 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6808 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6809 else
6810 gcc_cv_tool_dirs=
6813 if test x$build = x$target && test -n "$md_exec_prefix"; then
6814 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6819 copy_dirs=
6822 # Check whether --with-build-sysroot was given.
6823 if test "${with_build_sysroot+set}" = set; then :
6824 withval=$with_build_sysroot; if test x"$withval" != x ; then
6825 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6827 else
6828 SYSROOT_CFLAGS_FOR_TARGET=
6834 # Check whether --with-debug-prefix-map was given.
6835 if test "${with_debug_prefix_map+set}" = set; then :
6836 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6837 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6838 for debug_map in $withval; do
6839 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6840 done
6842 else
6843 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6848 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6849 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6850 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6851 # We want to ensure that TARGET libraries (which we know are built with
6852 # gcc) are built with "-O2 -g", so include those options when setting
6853 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6854 if test "x$CFLAGS_FOR_TARGET" = x; then
6855 if test "x${is_cross_compiler}" = xyes; then
6856 CFLAGS_FOR_TARGET="-g -O2"
6857 else
6858 CFLAGS_FOR_TARGET=$CFLAGS
6859 case " $CFLAGS " in
6860 *" -O2 "*) ;;
6861 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6862 esac
6863 case " $CFLAGS " in
6864 *" -g "* | *" -g3 "*) ;;
6865 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6866 esac
6871 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6872 if test "x${is_cross_compiler}" = xyes; then
6873 CXXFLAGS_FOR_TARGET="-g -O2"
6874 else
6875 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6876 case " $CXXFLAGS " in
6877 *" -O2 "*) ;;
6878 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6879 esac
6880 case " $CXXFLAGS " in
6881 *" -g "* | *" -g3 "*) ;;
6882 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6883 esac
6890 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6891 # the named directory are copied to $(tooldir)/sys-include.
6892 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6893 if test x${is_cross_compiler} = xno ; then
6894 echo 1>&2 '***' --with-headers is only supported when cross compiling
6895 exit 1
6897 if test x"${with_headers}" != xyes ; then
6898 x=${gcc_cv_tool_prefix}
6899 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6903 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6904 # the name directories are copied to $(tooldir)/lib. Multiple directories
6905 # are permitted.
6906 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6907 if test x${is_cross_compiler} = xno ; then
6908 echo 1>&2 '***' --with-libs is only supported when cross compiling
6909 exit 1
6911 if test x"${with_libs}" != xyes ; then
6912 # Copy the libraries in reverse order, so that files in the first named
6913 # library override files in subsequent libraries.
6914 x=${gcc_cv_tool_prefix}
6915 for l in ${with_libs}; do
6916 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6917 done
6921 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6923 # This is done by determining whether or not the appropriate directory
6924 # is available, and by checking whether or not specific configurations
6925 # have requested that this magic not happen.
6927 # The command line options always override the explicit settings in
6928 # configure.ac, and the settings in configure.ac override this magic.
6930 # If the default for a toolchain is to use GNU as and ld, and you don't
6931 # want to do that, then you should use the --without-gnu-as and
6932 # --without-gnu-ld options for the configure script. Similarly, if
6933 # the default is to use the included zlib and you don't want to do that,
6934 # you should use the --with-system-zlib option for the configure script.
6936 if test x${use_gnu_as} = x &&
6937 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6938 with_gnu_as=yes
6939 extra_host_args="$extra_host_args --with-gnu-as"
6942 if test x${use_gnu_ld} = x &&
6943 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6944 with_gnu_ld=yes
6945 extra_host_args="$extra_host_args --with-gnu-ld"
6948 if test x${use_included_zlib} = x &&
6949 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6951 else
6952 with_system_zlib=yes
6953 extra_host_args="$extra_host_args --with-system-zlib"
6956 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6957 # can detect this case.
6959 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6960 with_newlib=yes
6961 extra_host_args="$extra_host_args --with-newlib"
6964 # Handle ${copy_dirs}
6965 set fnord ${copy_dirs}
6966 shift
6967 while test $# != 0 ; do
6968 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6970 else
6971 echo Copying $1 to $2
6973 # Use the install script to create the directory and all required
6974 # parent directories.
6975 if test -d $2 ; then
6977 else
6978 echo >config.temp
6979 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6982 # Copy the directory, assuming we have tar.
6983 # FIXME: Should we use B in the second tar? Not all systems support it.
6984 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6986 # It is the responsibility of the user to correctly adjust all
6987 # symlinks. If somebody can figure out how to handle them correctly
6988 # here, feel free to add the code.
6990 echo $1 > $2/COPIED
6992 shift; shift
6993 done
6995 # Determine a target-dependent exec_prefix that the installed
6996 # gcc will search in. Keep this list sorted by triplet, with
6997 # the *-*-osname triplets last.
6998 md_exec_prefix=
6999 case "${target}" in
7000 i[34567]86-pc-msdosdjgpp*)
7001 md_exec_prefix=/dev/env/DJDIR/bin
7003 *-*-hpux* | \
7004 *-*-nto-qnx* | \
7005 *-*-solaris2*)
7006 md_exec_prefix=/usr/ccs/bin
7008 esac
7010 extra_arflags_for_target=
7011 extra_nmflags_for_target=
7012 extra_ranlibflags_for_target=
7013 target_makefile_frag=/dev/null
7014 case "${target}" in
7015 spu-*-*)
7016 target_makefile_frag="config/mt-spu"
7018 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7019 target_makefile_frag="config/mt-sde"
7021 mipsisa*-*-elfoabi*)
7022 target_makefile_frag="config/mt-mips-elfoabi"
7024 mips*-*-*linux* | mips*-*-gnu*)
7025 target_makefile_frag="config/mt-mips-gnu"
7027 nios2-*-elf*)
7028 target_makefile_frag="config/mt-nios2-elf"
7030 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7031 target_makefile_frag="config/mt-gnu"
7033 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7034 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7035 # commands to handle both 32-bit and 64-bit objects. These flags are
7036 # harmless if we're using GNU nm or ar.
7037 extra_arflags_for_target=" -X32_64"
7038 extra_nmflags_for_target=" -B -X32_64"
7040 esac
7042 alphaieee_frag=/dev/null
7043 case $target in
7044 alpha*-*-*)
7045 # This just makes sure to use the -mieee option to build target libs.
7046 # This should probably be set individually by each library.
7047 alphaieee_frag="config/mt-alphaieee"
7049 esac
7051 # If --enable-target-optspace always use -Os instead of -O2 to build
7052 # the target libraries, similarly if it is not specified, use -Os
7053 # on selected platforms.
7054 ospace_frag=/dev/null
7055 case "${enable_target_optspace}:${target}" in
7056 yes:*)
7057 ospace_frag="config/mt-ospace"
7059 :d30v-*)
7060 ospace_frag="config/mt-d30v"
7062 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7063 ospace_frag="config/mt-ospace"
7065 no:* | :*)
7068 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7070 esac
7072 # Some systems (e.g., one of the i386-aix systems the gas testers are
7073 # using) don't handle "\$" correctly, so don't use it here.
7075 # Check whether --with-tooldir was given.
7076 if test "${with_tooldir+set}" = set; then :
7077 withval=$with_tooldir; case x"$withval" in #(
7078 x/*) :
7079 ;; #(
7080 *) :
7081 as_fn_error $? "argument to --with-tooldir must be an absolute path" "$LINENO" 5 ;;
7082 esac
7084 else
7085 with_tooldir='${exec_prefix}'/${target_noncanonical}
7088 tooldir=${with_tooldir}
7089 build_tooldir=${tooldir}
7091 # Create a .gdbinit file which runs the one in srcdir
7092 # and tells GDB to look there for source files.
7094 if test -r ${srcdir}/.gdbinit ; then
7095 case ${srcdir} in
7096 .) ;;
7097 *) cat > ./.gdbinit <<EOF
7098 # ${NO_EDIT}
7099 dir ${srcdir}
7100 dir .
7101 source ${srcdir}/.gdbinit
7104 esac
7107 # Make sure that the compiler is able to generate an executable. If it
7108 # can't, we are probably in trouble. We don't care whether we can run the
7109 # executable--we might be using a cross compiler--we only care whether it
7110 # can be created. At this point the main configure script has set CC.
7111 we_are_ok=no
7112 echo "int main () { return 0; }" > conftest.c
7113 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7114 if test $? = 0 ; then
7115 if test -s conftest || test -s conftest.exe ; then
7116 we_are_ok=yes
7119 case $we_are_ok in
7121 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7122 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7123 rm -f conftest*
7124 exit 1
7126 esac
7127 rm -f conftest*
7129 # Decide which environment variable is used to find dynamic libraries.
7130 case "${host}" in
7131 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7132 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7133 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7134 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7135 esac
7137 # On systems where the dynamic library environment variable is PATH,
7138 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7139 # built executables to PATH.
7140 if test "$RPATH_ENVVAR" = PATH; then
7141 GCC_SHLIB_SUBDIR=/shlib
7142 else
7143 GCC_SHLIB_SUBDIR=
7146 # Adjust the toplevel makefile according to whether bootstrap was selected.
7147 case $enable_bootstrap in
7148 yes)
7149 bootstrap_suffix=bootstrap
7150 BUILD_CONFIG=bootstrap-debug
7153 bootstrap_suffix=no-bootstrap
7154 BUILD_CONFIG=
7156 esac
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7159 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7162 # Check whether --with-build-config was given.
7163 if test "${with_build_config+set}" = set; then :
7164 withval=$with_build_config; case $with_build_config in
7165 yes) with_build_config= ;;
7166 no) with_build_config= BUILD_CONFIG= ;;
7167 esac
7171 if test "x${with_build_config}" != x; then
7172 BUILD_CONFIG=$with_build_config
7173 else
7174 case $BUILD_CONFIG in
7175 bootstrap-debug)
7176 if echo "int f (void) { return 0; }" > conftest.c &&
7177 ${CC} -c conftest.c &&
7178 mv conftest.o conftest.o.g0 &&
7179 ${CC} -c -g conftest.c &&
7180 mv conftest.o conftest.o.g &&
7181 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7183 else
7184 BUILD_CONFIG=
7186 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7188 esac
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7191 $as_echo "$BUILD_CONFIG" >&6; }
7194 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7196 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7197 # Check whether --enable-vtable-verify was given.
7198 if test "${enable_vtable_verify+set}" = set; then :
7199 enableval=$enable_vtable_verify; case "$enableval" in
7200 yes) enable_vtable_verify=yes ;;
7201 no) enable_vtable_verify=no ;;
7202 *) enable_vtable_verify=no;;
7203 esac
7204 else
7205 enable_vtable_verify=no
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7209 $as_echo "$enable_vtable_verify" >&6; }
7211 # Record target_configdirs and the configure arguments for target and
7212 # build configuration in Makefile.
7213 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7214 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7215 bootstrap_fixincludes=no
7217 # If we are building libgomp, bootstrap it.
7218 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7219 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7222 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7223 # or bootstrap-ubsan, bootstrap it.
7224 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7225 case "$BUILD_CONFIG" in
7226 *bootstrap-asan* | *bootstrap-ubsan* )
7227 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7228 bootstrap_fixincludes=yes
7230 esac
7233 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7234 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7235 test "$enable_vtable_verify" != no; then
7236 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7239 # If we are building libmpx, bootstrap it.
7240 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7241 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7244 # Determine whether gdb needs tk/tcl or not.
7245 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7246 # and in that case we want gdb to be built without tk. Ugh!
7247 # In fact I believe gdb is the *only* package directly dependent on tk,
7248 # so we should be able to put the 'maybe's in unconditionally and
7249 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7250 # 100% sure that that's safe though.
7252 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7253 case "$enable_gdbtk" in
7255 GDB_TK="" ;;
7256 yes)
7257 GDB_TK="${gdb_tk}" ;;
7259 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7260 # distro. Eventually someone will fix this and move Insight, nee
7261 # gdbtk to a separate directory.
7262 if test -d ${srcdir}/gdb/gdbtk ; then
7263 GDB_TK="${gdb_tk}"
7264 else
7265 GDB_TK=""
7268 esac
7269 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7270 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7272 # Strip out unwanted targets.
7274 # While at that, we remove Makefiles if we were started for recursive
7275 # configuration, so that the top-level Makefile reconfigures them,
7276 # like we used to do when configure itself was recursive.
7278 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7279 # but now we're fixing up the Makefile ourselves with the additional
7280 # commands passed to AC_CONFIG_FILES. Use separate variables
7281 # extrasub-{build,host,target} not because there is any reason to split
7282 # the substitutions up that way, but only to remain below the limit of
7283 # 99 commands in a script, for HP-UX sed.
7285 # Do not nest @if/@endif or @unless/@endunless pairs, because
7286 # configure will not warn you at all.
7288 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7289 yes:yes:*\ gold\ *:*,c++,*) ;;
7290 yes:yes:*\ gold\ *:*)
7291 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7293 esac
7295 extrasub_build=
7296 for module in ${build_configdirs} ; do
7297 if test -z "${no_recursion}" \
7298 && test -f ${build_subdir}/${module}/Makefile; then
7299 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7300 rm -f ${build_subdir}/${module}/Makefile
7302 extrasub_build="$extrasub_build
7303 /^@if build-$module\$/d
7304 /^@endif build-$module\$/d
7305 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7306 /^@if build-$module-$bootstrap_suffix\$/d
7307 /^@endif build-$module-$bootstrap_suffix\$/d
7308 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7309 done
7310 extrasub_host=
7311 for module in ${configdirs} ; do
7312 if test -z "${no_recursion}"; then
7313 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7314 if test -f ${file}; then
7315 echo 1>&2 "*** removing ${file} to force reconfigure"
7316 rm -f ${file}
7318 done
7320 case ${module},${bootstrap_fixincludes} in
7321 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7322 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7323 esac
7324 extrasub_host="$extrasub_host
7325 /^@if $module\$/d
7326 /^@endif $module\$/d
7327 /^@unless $module\$/,/^@endunless $module\$/d
7328 /^@if $module-$host_bootstrap_suffix\$/d
7329 /^@endif $module-$host_bootstrap_suffix\$/d
7330 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7331 done
7332 extrasub_target=
7333 for module in ${target_configdirs} ; do
7334 if test -z "${no_recursion}" \
7335 && test -f ${target_subdir}/${module}/Makefile; then
7336 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7337 rm -f ${target_subdir}/${module}/Makefile
7340 # We only bootstrap target libraries listed in bootstrap_target_libs.
7341 case $bootstrap_target_libs in
7342 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7343 *) target_bootstrap_suffix=no-bootstrap ;;
7344 esac
7346 extrasub_target="$extrasub_target
7347 /^@if target-$module\$/d
7348 /^@endif target-$module\$/d
7349 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7350 /^@if target-$module-$target_bootstrap_suffix\$/d
7351 /^@endif target-$module-$target_bootstrap_suffix\$/d
7352 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7353 done
7355 # Do the final fixup along with target modules.
7356 extrasub_target="$extrasub_target
7357 /^@if /,/^@endif /d
7358 /^@unless /d
7359 /^@endunless /d"
7361 # Create the serialization dependencies. This uses a temporary file.
7363 # Check whether --enable-serial-configure was given.
7364 if test "${enable_serial_configure+set}" = set; then :
7365 enableval=$enable_serial_configure;
7369 case ${enable_serial_configure} in
7370 yes)
7371 enable_serial_build_configure=yes
7372 enable_serial_host_configure=yes
7373 enable_serial_target_configure=yes
7375 esac
7377 # These force 'configure's to be done one at a time, to avoid problems
7378 # with contention over a shared config.cache.
7379 rm -f serdep.tmp
7380 echo '# serdep.tmp' > serdep.tmp
7381 olditem=
7382 test "x${enable_serial_build_configure}" = xyes &&
7383 for item in ${build_configdirs} ; do
7384 case ${olditem} in
7385 "") ;;
7386 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7387 esac
7388 olditem=${item}
7389 done
7390 olditem=
7391 test "x${enable_serial_host_configure}" = xyes &&
7392 for item in ${configdirs} ; do
7393 case ${olditem} in
7394 "") ;;
7395 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7396 esac
7397 olditem=${item}
7398 done
7399 olditem=
7400 test "x${enable_serial_target_configure}" = xyes &&
7401 for item in ${target_configdirs} ; do
7402 case ${olditem} in
7403 "") ;;
7404 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7405 esac
7406 olditem=${item}
7407 done
7408 serialization_dependencies=serdep.tmp
7411 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7412 # target, nonopt, and variable assignments. These are the ones we
7413 # might not want to pass down to subconfigures. The exception being
7414 # --cache-file=/dev/null, which is used to turn off the use of cache
7415 # files altogether, and which should be passed on to subconfigures.
7416 # Also strip program-prefix, program-suffix, and program-transform-name,
7417 # so that we can pass down a consistent program-transform-name.
7418 baseargs=
7419 tbaseargs=
7420 keep_next=no
7421 skip_next=no
7422 eval "set -- $ac_configure_args"
7423 for ac_arg
7425 if test X"$skip_next" = X"yes"; then
7426 skip_next=no
7427 continue
7429 if test X"$keep_next" = X"yes"; then
7430 case $ac_arg in
7431 *\'*)
7432 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7433 esac
7434 baseargs="$baseargs '$ac_arg'"
7435 tbaseargs="$tbaseargs '$ac_arg'"
7436 keep_next=no
7437 continue
7440 # Handle separated arguments. Based on the logic generated by
7441 # autoconf 2.59.
7442 case $ac_arg in
7443 *=* | --config-cache | -C | -disable-* | --disable-* \
7444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7446 | -with-* | --with-* | -without-* | --without-* | --x)
7447 separate_arg=no
7450 separate_arg=yes
7453 separate_arg=no
7455 esac
7457 skip_targ=no
7458 case $ac_arg in
7460 --with-* | --without-*)
7461 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7463 case $libopt in
7464 *[-_]include)
7465 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7467 *[-_]lib)
7468 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7471 lib=$libopt
7473 esac
7476 case $lib in
7477 mpc | mpfr | gmp | isl)
7478 # If we're processing --with-$lib, --with-$lib-include or
7479 # --with-$lib-lib, for one of the libs above, and target is
7480 # different from host, don't pass the current argument to any
7481 # target library's configure.
7482 if test x$is_cross_compiler = xyes; then
7483 skip_targ=yes
7486 esac
7488 esac
7490 case "$ac_arg" in
7491 --cache-file=/dev/null | \
7492 -cache-file=/dev/null )
7493 # Handled here to avoid the test to skip args below.
7494 baseargs="$baseargs '$ac_arg'"
7495 tbaseargs="$tbaseargs '$ac_arg'"
7496 # Assert: $separate_arg should always be no.
7497 keep_next=$separate_arg
7499 --no*)
7500 continue
7502 --c* | \
7503 --sr* | \
7504 --ho* | \
7505 --bu* | \
7506 --t* | \
7507 --program-* | \
7508 -cache_file* | \
7509 -srcdir* | \
7510 -host* | \
7511 -build* | \
7512 -target* | \
7513 -program-prefix* | \
7514 -program-suffix* | \
7515 -program-transform-name* )
7516 skip_next=$separate_arg
7517 continue
7520 # An option. Add it.
7521 case $ac_arg in
7522 *\'*)
7523 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7524 esac
7525 baseargs="$baseargs '$ac_arg'"
7526 if test X"$skip_targ" = Xno; then
7527 tbaseargs="$tbaseargs '$ac_arg'"
7529 keep_next=$separate_arg
7532 # Either a variable assignment, or a nonopt (triplet). Don't
7533 # pass it down; let the Makefile handle this.
7534 continue
7536 esac
7537 done
7538 # Remove the initial space we just introduced and, as these will be
7539 # expanded by make, quote '$'.
7540 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7542 # Add in --program-transform-name, after --program-prefix and
7543 # --program-suffix have been applied to it. Autoconf has already
7544 # doubled dollar signs and backslashes in program_transform_name; we want
7545 # the backslashes un-doubled, and then the entire thing wrapped in single
7546 # quotes, because this will be expanded first by make and then by the shell.
7547 # Also, because we want to override the logic in subdir configure scripts to
7548 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7549 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7550 ${program_transform_name}
7551 EOF_SED
7552 gcc_transform_name=`cat conftestsed.out`
7553 rm -f conftestsed.out
7554 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7555 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7556 if test "$silent" = yes; then
7557 baseargs="$baseargs --silent"
7558 tbaseargs="$tbaseargs --silent"
7560 baseargs="$baseargs --disable-option-checking"
7561 tbaseargs="$tbaseargs --disable-option-checking"
7563 # Record and document user additions to sub configure arguments.
7568 # For the build-side libraries, we just need to pretend we're native,
7569 # and not use the same cache file. Multilibs are neither needed nor
7570 # desired. We can't even use the same cache file for all build-side
7571 # libraries, as they're compiled differently; some with C, some with
7572 # C++ or with different feature-enabling options.
7573 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7575 # For host modules, accept cache file option, or specification as blank.
7576 case "${cache_file}" in
7577 "") # empty
7578 cache_file_option="" ;;
7579 /* | [A-Za-z]:[\\/]* ) # absolute path
7580 cache_file_option="--cache-file=${cache_file}" ;;
7581 *) # relative path
7582 cache_file_option="--cache-file=../${cache_file}" ;;
7583 esac
7585 # Host dirs don't like to share a cache file either, horribly enough.
7586 # This seems to be due to autoconf 2.5x stupidity.
7587 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7589 target_configargs="$target_configargs ${tbaseargs}"
7591 # Passing a --with-cross-host argument lets the target libraries know
7592 # whether they are being built with a cross-compiler or being built
7593 # native. However, it would be better to use other mechanisms to make the
7594 # sorts of decisions they want to make on this basis. Please consider
7595 # this option to be deprecated. FIXME.
7596 if test x${is_cross_compiler} = xyes ; then
7597 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7600 # Special user-friendly check for native x86_64-linux build, if
7601 # multilib is not explicitly enabled.
7602 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7603 x86_64-*linux*:yes:$build:$build:)
7604 # Make sure we have a development environment that handles 32-bit
7605 dev64=no
7606 echo "int main () { return 0; }" > conftest.c
7607 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7608 if test $? = 0 ; then
7609 if test -s conftest || test -s conftest.exe ; then
7610 dev64=yes
7613 rm -f conftest*
7614 if test x${dev64} != xyes ; then
7615 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
7618 esac
7620 # Default to --enable-multilib.
7621 if test x${enable_multilib} = x ; then
7622 target_configargs="--enable-multilib ${target_configargs}"
7625 # Pass --with-newlib if appropriate. Note that target_configdirs has
7626 # changed from the earlier setting of with_newlib.
7627 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7628 target_configargs="--with-newlib ${target_configargs}"
7631 # Different target subdirs use different values of certain variables
7632 # (notably CXX). Worse, multilibs use *lots* of different values.
7633 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7634 # it doesn't automatically accept command-line overrides of them.
7635 # This means it's not safe for target subdirs to share a cache file,
7636 # which is disgusting, but there you have it. Hopefully this can be
7637 # fixed in future. It's still worthwhile to use a cache file for each
7638 # directory. I think.
7640 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7641 # We need to pass --target, as newer autoconf's requires consistency
7642 # for target_alias and gcc doesn't manage it consistently.
7643 target_configargs="--cache-file=./config.cache ${target_configargs}"
7645 FLAGS_FOR_TARGET=
7646 case " $target_configdirs " in
7647 *" newlib "*)
7648 case " $target_configargs " in
7649 *" --with-newlib "*)
7650 case "$target" in
7651 *-cygwin*)
7652 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7654 esac
7656 # If we're not building GCC, don't discard standard headers.
7657 if test -d ${srcdir}/gcc; then
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7660 if test "${build}" != "${host}"; then
7661 # On Canadian crosses, CC_FOR_TARGET will have already been set
7662 # by `configure', so we won't have an opportunity to add -Bgcc/
7663 # to it. This is right: we don't want to search that directory
7664 # for binaries, but we want the header files in there, so add
7665 # them explicitly.
7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7668 # Someone might think of using the pre-installed headers on
7669 # Canadian crosses, in case the installed compiler is not fully
7670 # compatible with the compiler being built. In this case, it
7671 # would be better to flag an error than risking having
7672 # incompatible object files being constructed. We can't
7673 # guarantee that an error will be flagged, but let's hope the
7674 # compiler will do it, when presented with incompatible header
7675 # files.
7679 case "${target}-${is_cross_compiler}" in
7680 i[3456789]86-*-linux*-no)
7681 # Here host == target, so we don't need to build gcc,
7682 # so we don't want to discard standard headers.
7683 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7686 # If we're building newlib, use its generic headers last, but search
7687 # for any libc-related directories first (so make it the last -B
7688 # switch).
7689 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7691 # If we're building libgloss, find the startup file, simulator library
7692 # and linker script.
7693 case " $target_configdirs " in
7694 *" libgloss "*)
7695 # Look for startup file, simulator library and maybe linker script.
7696 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7697 # Look for libnosys.a in case the target needs it.
7698 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7699 # Most targets have the linker script in the source directory.
7700 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7702 esac
7704 esac
7706 esac
7708 esac
7710 case "$target" in
7711 x86_64-*mingw* | *-w64-mingw*)
7712 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7713 # however, use a symlink named 'mingw' in ${prefix} .
7714 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7716 *-mingw*)
7717 # MinGW can't be handled as Cygwin above since it does not use newlib.
7718 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'
7720 esac
7722 # Allow the user to override the flags for
7723 # our build compiler if desired.
7724 if test x"${build}" = x"${host}" ; then
7725 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7726 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7727 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7730 # On Canadian crosses, we'll be searching the right directories for
7731 # the previously-installed cross compiler, so don't bother to add
7732 # flags for directories within the install tree of the compiler
7733 # being built; programs in there won't even run.
7734 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7735 # Search for pre-installed headers if nothing else fits.
7736 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7739 if test "x${use_gnu_ld}" = x &&
7740 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7741 # Arrange for us to find uninstalled linker scripts.
7742 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7745 # Search for other target-specific linker scripts and such.
7746 case "${target}" in
7747 mep*)
7748 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7750 esac
7752 # Makefile fragments.
7753 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7755 eval fragval=\$$frag
7756 if test $fragval != /dev/null; then
7757 eval $frag=${srcdir}/$fragval
7759 done
7765 # Miscellanea: directories, flags, etc.
7774 # Build module lists & subconfigure args.
7778 # Host module lists & subconfigure args.
7783 # Target module lists & subconfigure args.
7787 # Build tools.
7805 # Generate default definitions for YACC, M4, LEX and other programs that run
7806 # on the build machine. These are used if the Makefile can't locate these
7807 # programs in objdir.
7808 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7810 for ac_prog in 'bison -y' byacc yacc
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_YACC+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 if test -n "$YACC"; then
7820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_YACC="$ac_prog"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7833 done
7834 done
7835 IFS=$as_save_IFS
7839 YACC=$ac_cv_prog_YACC
7840 if test -n "$YACC"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7842 $as_echo "$YACC" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 test -n "$YACC" && break
7850 done
7851 test -n "$YACC" || YACC="$MISSING bison -y"
7853 case " $build_configdirs " in
7854 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7855 esac
7857 for ac_prog in bison
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_prog_BISON+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$BISON"; then
7867 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_BISON="$ac_prog"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7886 BISON=$ac_cv_prog_BISON
7887 if test -n "$BISON"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7889 $as_echo "$BISON" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7896 test -n "$BISON" && break
7897 done
7898 test -n "$BISON" || BISON="$MISSING bison"
7900 case " $build_configdirs " in
7901 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7902 esac
7904 for ac_prog in gm4 gnum4 m4
7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_M4+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 if test -n "$M4"; then
7914 ac_cv_prog_M4="$M4" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_M4="$ac_prog"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7927 done
7928 done
7929 IFS=$as_save_IFS
7933 M4=$ac_cv_prog_M4
7934 if test -n "$M4"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7936 $as_echo "$M4" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7943 test -n "$M4" && break
7944 done
7945 test -n "$M4" || M4="$MISSING m4"
7947 case " $build_configdirs " in
7948 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7949 esac
7951 for ac_prog in flex lex
7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
7954 set dummy $ac_prog; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if ${ac_cv_prog_LEX+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test -n "$LEX"; then
7961 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_prog_LEX="$ac_prog"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7974 done
7975 done
7976 IFS=$as_save_IFS
7980 LEX=$ac_cv_prog_LEX
7981 if test -n "$LEX"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7983 $as_echo "$LEX" >&6; }
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7990 test -n "$LEX" && break
7991 done
7992 test -n "$LEX" || LEX="$MISSING flex"
7994 case " $build_configdirs " in
7995 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7996 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7997 esac
7999 for ac_prog in flex
8001 # Extract the first word of "$ac_prog", so it can be a program name with args.
8002 set dummy $ac_prog; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_FLEX+:} false; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 if test -n "$FLEX"; then
8009 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_FLEX="$ac_prog"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8022 done
8023 done
8024 IFS=$as_save_IFS
8028 FLEX=$ac_cv_prog_FLEX
8029 if test -n "$FLEX"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8031 $as_echo "$FLEX" >&6; }
8032 else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8038 test -n "$FLEX" && break
8039 done
8040 test -n "$FLEX" || FLEX="$MISSING flex"
8042 case " $build_configdirs " in
8043 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8044 esac
8046 for ac_prog in makeinfo
8048 # Extract the first word of "$ac_prog", so it can be a program name with args.
8049 set dummy $ac_prog; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_prog_MAKEINFO+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 if test -n "$MAKEINFO"; then
8056 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065 ac_cv_prog_MAKEINFO="$ac_prog"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8069 done
8070 done
8071 IFS=$as_save_IFS
8075 MAKEINFO=$ac_cv_prog_MAKEINFO
8076 if test -n "$MAKEINFO"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8078 $as_echo "$MAKEINFO" >&6; }
8079 else
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8085 test -n "$MAKEINFO" && break
8086 done
8087 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8089 case " $build_configdirs " in
8090 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8093 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8094 # higher, else we use the "missing" dummy.
8095 if ${MAKEINFO} --version \
8096 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8098 else
8099 MAKEINFO="$MISSING makeinfo"
8103 esac
8105 # FIXME: expect and dejagnu may become build tools?
8107 for ac_prog in expect
8109 # Extract the first word of "$ac_prog", so it can be a program name with args.
8110 set dummy $ac_prog; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_EXPECT+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 if test -n "$EXPECT"; then
8117 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_EXPECT="$ac_prog"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8132 IFS=$as_save_IFS
8136 EXPECT=$ac_cv_prog_EXPECT
8137 if test -n "$EXPECT"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8139 $as_echo "$EXPECT" >&6; }
8140 else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8146 test -n "$EXPECT" && break
8147 done
8148 test -n "$EXPECT" || EXPECT="expect"
8150 case " $configdirs " in
8151 *" expect "*)
8152 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8154 esac
8156 for ac_prog in runtest
8158 # Extract the first word of "$ac_prog", so it can be a program name with args.
8159 set dummy $ac_prog; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if ${ac_cv_prog_RUNTEST+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 if test -n "$RUNTEST"; then
8166 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8175 ac_cv_prog_RUNTEST="$ac_prog"
8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8179 done
8180 done
8181 IFS=$as_save_IFS
8185 RUNTEST=$ac_cv_prog_RUNTEST
8186 if test -n "$RUNTEST"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8188 $as_echo "$RUNTEST" >&6; }
8189 else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8195 test -n "$RUNTEST" && break
8196 done
8197 test -n "$RUNTEST" || RUNTEST="runtest"
8199 case " $configdirs " in
8200 *" dejagnu "*)
8201 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8203 esac
8206 # Host tools.
8207 ncn_tool_prefix=
8208 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8209 ncn_target_tool_prefix=
8210 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8214 if test -n "$AR"; then
8215 ac_cv_prog_AR=$AR
8216 elif test -n "$ac_cv_prog_AR"; then
8217 AR=$ac_cv_prog_AR
8220 if test -n "$ac_cv_prog_AR"; then
8221 for ncn_progname in ar; do
8222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8223 set dummy ${ncn_progname}; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if ${ac_cv_prog_AR+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$AR"; then
8230 ac_cv_prog_AR="$AR" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_AR="${ncn_progname}"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8245 IFS=$as_save_IFS
8249 AR=$ac_cv_prog_AR
8250 if test -n "$AR"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8252 $as_echo "$AR" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8259 done
8262 for ncn_progname in ar; do
8263 if test -n "$ncn_tool_prefix"; then
8264 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8265 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_AR+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$AR"; then
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8285 done
8286 done
8287 IFS=$as_save_IFS
8291 AR=$ac_cv_prog_AR
8292 if test -n "$AR"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294 $as_echo "$AR" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8302 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8304 set dummy ${ncn_progname}; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if ${ac_cv_prog_AR+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 if test -n "$AR"; then
8311 ac_cv_prog_AR="$AR" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_AR="${ncn_progname}"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8324 done
8325 done
8326 IFS=$as_save_IFS
8330 AR=$ac_cv_prog_AR
8331 if test -n "$AR"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8333 $as_echo "$AR" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8341 test -n "$ac_cv_prog_AR" && break
8342 done
8344 if test -z "$ac_cv_prog_AR" ; then
8345 set dummy ar
8346 if test $build = $host ; then
8347 AR="$2"
8348 else
8349 AR="${ncn_tool_prefix}$2"
8355 if test -n "$AS"; then
8356 ac_cv_prog_AS=$AS
8357 elif test -n "$ac_cv_prog_AS"; then
8358 AS=$ac_cv_prog_AS
8361 if test -n "$ac_cv_prog_AS"; then
8362 for ncn_progname in as; do
8363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8364 set dummy ${ncn_progname}; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_AS+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$AS"; then
8371 ac_cv_prog_AS="$AS" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_AS="${ncn_progname}"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8384 done
8385 done
8386 IFS=$as_save_IFS
8390 AS=$ac_cv_prog_AS
8391 if test -n "$AS"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8393 $as_echo "$AS" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8400 done
8403 for ncn_progname in as; do
8404 if test -n "$ncn_tool_prefix"; then
8405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8406 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_prog_AS+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8432 AS=$ac_cv_prog_AS
8433 if test -n "$AS"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435 $as_echo "$AS" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8445 set dummy ${ncn_progname}; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_prog_AS+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 if test -n "$AS"; then
8452 ac_cv_prog_AS="$AS" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_AS="${ncn_progname}"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8465 done
8466 done
8467 IFS=$as_save_IFS
8471 AS=$ac_cv_prog_AS
8472 if test -n "$AS"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8474 $as_echo "$AS" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8482 test -n "$ac_cv_prog_AS" && break
8483 done
8485 if test -z "$ac_cv_prog_AS" ; then
8486 set dummy as
8487 if test $build = $host ; then
8488 AS="$2"
8489 else
8490 AS="${ncn_tool_prefix}$2"
8496 if test -n "$DLLTOOL"; then
8497 ac_cv_prog_DLLTOOL=$DLLTOOL
8498 elif test -n "$ac_cv_prog_DLLTOOL"; then
8499 DLLTOOL=$ac_cv_prog_DLLTOOL
8502 if test -n "$ac_cv_prog_DLLTOOL"; then
8503 for ncn_progname in dlltool; do
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8505 set dummy ${ncn_progname}; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_DLLTOOL+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$DLLTOOL"; then
8512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_DLLTOOL="${ncn_progname}"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8525 done
8526 done
8527 IFS=$as_save_IFS
8531 DLLTOOL=$ac_cv_prog_DLLTOOL
8532 if test -n "$DLLTOOL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8534 $as_echo "$DLLTOOL" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8541 done
8544 for ncn_progname in dlltool; do
8545 if test -n "$ncn_tool_prefix"; then
8546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8547 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_DLLTOOL+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8567 done
8568 done
8569 IFS=$as_save_IFS
8573 DLLTOOL=$ac_cv_prog_DLLTOOL
8574 if test -n "$DLLTOOL"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576 $as_echo "$DLLTOOL" >&6; }
8577 else
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8584 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8586 set dummy ${ncn_progname}; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_prog_DLLTOOL+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 if test -n "$DLLTOOL"; then
8593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_DLLTOOL="${ncn_progname}"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8612 DLLTOOL=$ac_cv_prog_DLLTOOL
8613 if test -n "$DLLTOOL"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8615 $as_echo "$DLLTOOL" >&6; }
8616 else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8623 test -n "$ac_cv_prog_DLLTOOL" && break
8624 done
8626 if test -z "$ac_cv_prog_DLLTOOL" ; then
8627 set dummy dlltool
8628 if test $build = $host ; then
8629 DLLTOOL="$2"
8630 else
8631 DLLTOOL="${ncn_tool_prefix}$2"
8637 if test -n "$LD"; then
8638 ac_cv_prog_LD=$LD
8639 elif test -n "$ac_cv_prog_LD"; then
8640 LD=$ac_cv_prog_LD
8643 if test -n "$ac_cv_prog_LD"; then
8644 for ncn_progname in ld; do
8645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8646 set dummy ${ncn_progname}; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_LD+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 if test -n "$LD"; then
8653 ac_cv_prog_LD="$LD" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_LD="${ncn_progname}"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8672 LD=$ac_cv_prog_LD
8673 if test -n "$LD"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8675 $as_echo "$LD" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8682 done
8685 for ncn_progname in ld; do
8686 if test -n "$ncn_tool_prefix"; then
8687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8688 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if ${ac_cv_prog_LD+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8714 LD=$ac_cv_prog_LD
8715 if test -n "$LD"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717 $as_echo "$LD" >&6; }
8718 else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8725 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8727 set dummy ${ncn_progname}; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_LD+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 if test -n "$LD"; then
8734 ac_cv_prog_LD="$LD" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_LD="${ncn_progname}"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8747 done
8748 done
8749 IFS=$as_save_IFS
8753 LD=$ac_cv_prog_LD
8754 if test -n "$LD"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8756 $as_echo "$LD" >&6; }
8757 else
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8764 test -n "$ac_cv_prog_LD" && break
8765 done
8767 if test -z "$ac_cv_prog_LD" ; then
8768 set dummy ld
8769 if test $build = $host ; then
8770 LD="$2"
8771 else
8772 LD="${ncn_tool_prefix}$2"
8778 if test -n "$LIPO"; then
8779 ac_cv_prog_LIPO=$LIPO
8780 elif test -n "$ac_cv_prog_LIPO"; then
8781 LIPO=$ac_cv_prog_LIPO
8784 if test -n "$ac_cv_prog_LIPO"; then
8785 for ncn_progname in lipo; do
8786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8787 set dummy ${ncn_progname}; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if ${ac_cv_prog_LIPO+:} false; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 if test -n "$LIPO"; then
8794 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_prog_LIPO="${ncn_progname}"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8813 LIPO=$ac_cv_prog_LIPO
8814 if test -n "$LIPO"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8816 $as_echo "$LIPO" >&6; }
8817 else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8823 done
8826 for ncn_progname in lipo; do
8827 if test -n "$ncn_tool_prefix"; then
8828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8829 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_LIPO+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8855 LIPO=$ac_cv_prog_LIPO
8856 if test -n "$LIPO"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858 $as_echo "$LIPO" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8866 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8868 set dummy ${ncn_progname}; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if ${ac_cv_prog_LIPO+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 if test -n "$LIPO"; then
8875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8876 else
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884 ac_cv_prog_LIPO="${ncn_progname}"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8888 done
8889 done
8890 IFS=$as_save_IFS
8894 LIPO=$ac_cv_prog_LIPO
8895 if test -n "$LIPO"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8897 $as_echo "$LIPO" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8905 test -n "$ac_cv_prog_LIPO" && break
8906 done
8908 if test -z "$ac_cv_prog_LIPO" ; then
8909 set dummy lipo
8910 if test $build = $host ; then
8911 LIPO="$2"
8912 else
8913 LIPO="${ncn_tool_prefix}$2"
8919 if test -n "$NM"; then
8920 ac_cv_prog_NM=$NM
8921 elif test -n "$ac_cv_prog_NM"; then
8922 NM=$ac_cv_prog_NM
8925 if test -n "$ac_cv_prog_NM"; then
8926 for ncn_progname in nm; do
8927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8928 set dummy ${ncn_progname}; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if ${ac_cv_prog_NM+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test -n "$NM"; then
8935 ac_cv_prog_NM="$NM" # Let the user override the test.
8936 else
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8944 ac_cv_prog_NM="${ncn_progname}"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8948 done
8949 done
8950 IFS=$as_save_IFS
8954 NM=$ac_cv_prog_NM
8955 if test -n "$NM"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8957 $as_echo "$NM" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8964 done
8967 for ncn_progname in nm; do
8968 if test -n "$ncn_tool_prefix"; then
8969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8970 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if ${ac_cv_prog_NM+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
8978 else
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8990 done
8991 done
8992 IFS=$as_save_IFS
8996 NM=$ac_cv_prog_NM
8997 if test -n "$NM"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999 $as_echo "$NM" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9007 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9009 set dummy ${ncn_progname}; ac_word=$2
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if ${ac_cv_prog_NM+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 if test -n "$NM"; then
9016 ac_cv_prog_NM="$NM" # Let the user override the test.
9017 else
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9025 ac_cv_prog_NM="${ncn_progname}"
9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9029 done
9030 done
9031 IFS=$as_save_IFS
9035 NM=$ac_cv_prog_NM
9036 if test -n "$NM"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9038 $as_echo "$NM" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9046 test -n "$ac_cv_prog_NM" && break
9047 done
9049 if test -z "$ac_cv_prog_NM" ; then
9050 set dummy nm
9051 if test $build = $host ; then
9052 NM="$2"
9053 else
9054 NM="${ncn_tool_prefix}$2"
9060 if test -n "$RANLIB"; then
9061 ac_cv_prog_RANLIB=$RANLIB
9062 elif test -n "$ac_cv_prog_RANLIB"; then
9063 RANLIB=$ac_cv_prog_RANLIB
9066 if test -n "$ac_cv_prog_RANLIB"; then
9067 for ncn_progname in ranlib; do
9068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9069 set dummy ${ncn_progname}; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if ${ac_cv_prog_RANLIB+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 if test -n "$RANLIB"; then
9076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9085 ac_cv_prog_RANLIB="${ncn_progname}"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9089 done
9090 done
9091 IFS=$as_save_IFS
9095 RANLIB=$ac_cv_prog_RANLIB
9096 if test -n "$RANLIB"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9098 $as_echo "$RANLIB" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9105 done
9108 for ncn_progname in ranlib; do
9109 if test -n "$ncn_tool_prefix"; then
9110 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9111 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_prog_RANLIB+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9131 done
9132 done
9133 IFS=$as_save_IFS
9137 RANLIB=$ac_cv_prog_RANLIB
9138 if test -n "$RANLIB"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140 $as_echo "$RANLIB" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9148 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150 set dummy ${ncn_progname}; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if ${ac_cv_prog_RANLIB+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 if test -n "$RANLIB"; then
9157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9158 else
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166 ac_cv_prog_RANLIB="${ncn_progname}"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168 break 2
9170 done
9171 done
9172 IFS=$as_save_IFS
9176 RANLIB=$ac_cv_prog_RANLIB
9177 if test -n "$RANLIB"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9179 $as_echo "$RANLIB" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 test -n "$ac_cv_prog_RANLIB" && break
9188 done
9190 if test -z "$ac_cv_prog_RANLIB" ; then
9191 RANLIB="true"
9196 if test -n "$STRIP"; then
9197 ac_cv_prog_STRIP=$STRIP
9198 elif test -n "$ac_cv_prog_STRIP"; then
9199 STRIP=$ac_cv_prog_STRIP
9202 if test -n "$ac_cv_prog_STRIP"; then
9203 for ncn_progname in strip; do
9204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9205 set dummy ${ncn_progname}; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if ${ac_cv_prog_STRIP+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 if test -n "$STRIP"; then
9212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9213 else
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9221 ac_cv_prog_STRIP="${ncn_progname}"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9225 done
9226 done
9227 IFS=$as_save_IFS
9231 STRIP=$ac_cv_prog_STRIP
9232 if test -n "$STRIP"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9234 $as_echo "$STRIP" >&6; }
9235 else
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9241 done
9244 for ncn_progname in strip; do
9245 if test -n "$ncn_tool_prefix"; then
9246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_prog_STRIP+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9267 done
9268 done
9269 IFS=$as_save_IFS
9273 STRIP=$ac_cv_prog_STRIP
9274 if test -n "$STRIP"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276 $as_echo "$STRIP" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9284 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286 set dummy ${ncn_progname}; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_prog_STRIP+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 if test -n "$STRIP"; then
9293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9294 else
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_STRIP="${ncn_progname}"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9306 done
9307 done
9308 IFS=$as_save_IFS
9312 STRIP=$ac_cv_prog_STRIP
9313 if test -n "$STRIP"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9315 $as_echo "$STRIP" >&6; }
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9323 test -n "$ac_cv_prog_STRIP" && break
9324 done
9326 if test -z "$ac_cv_prog_STRIP" ; then
9327 STRIP="true"
9332 if test -n "$WINDRES"; then
9333 ac_cv_prog_WINDRES=$WINDRES
9334 elif test -n "$ac_cv_prog_WINDRES"; then
9335 WINDRES=$ac_cv_prog_WINDRES
9338 if test -n "$ac_cv_prog_WINDRES"; then
9339 for ncn_progname in windres; do
9340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9341 set dummy ${ncn_progname}; ac_word=$2
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if ${ac_cv_prog_WINDRES+:} false; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 if test -n "$WINDRES"; then
9348 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9349 else
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357 ac_cv_prog_WINDRES="${ncn_progname}"
9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 break 2
9361 done
9362 done
9363 IFS=$as_save_IFS
9367 WINDRES=$ac_cv_prog_WINDRES
9368 if test -n "$WINDRES"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9370 $as_echo "$WINDRES" >&6; }
9371 else
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9377 done
9380 for ncn_progname in windres; do
9381 if test -n "$ncn_tool_prefix"; then
9382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9383 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_prog_WINDRES+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9403 done
9404 done
9405 IFS=$as_save_IFS
9409 WINDRES=$ac_cv_prog_WINDRES
9410 if test -n "$WINDRES"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412 $as_echo "$WINDRES" >&6; }
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9420 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9422 set dummy ${ncn_progname}; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_prog_WINDRES+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 if test -n "$WINDRES"; then
9429 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9430 else
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9438 ac_cv_prog_WINDRES="${ncn_progname}"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9448 WINDRES=$ac_cv_prog_WINDRES
9449 if test -n "$WINDRES"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9451 $as_echo "$WINDRES" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9459 test -n "$ac_cv_prog_WINDRES" && break
9460 done
9462 if test -z "$ac_cv_prog_WINDRES" ; then
9463 set dummy windres
9464 if test $build = $host ; then
9465 WINDRES="$2"
9466 else
9467 WINDRES="${ncn_tool_prefix}$2"
9473 if test -n "$WINDMC"; then
9474 ac_cv_prog_WINDMC=$WINDMC
9475 elif test -n "$ac_cv_prog_WINDMC"; then
9476 WINDMC=$ac_cv_prog_WINDMC
9479 if test -n "$ac_cv_prog_WINDMC"; then
9480 for ncn_progname in windmc; do
9481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9482 set dummy ${ncn_progname}; ac_word=$2
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484 $as_echo_n "checking for $ac_word... " >&6; }
9485 if ${ac_cv_prog_WINDMC+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 if test -n "$WINDMC"; then
9489 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9490 else
9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 for as_dir in $PATH
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9498 ac_cv_prog_WINDMC="${ncn_progname}"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9502 done
9503 done
9504 IFS=$as_save_IFS
9508 WINDMC=$ac_cv_prog_WINDMC
9509 if test -n "$WINDMC"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9511 $as_echo "$WINDMC" >&6; }
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9518 done
9521 for ncn_progname in windmc; do
9522 if test -n "$ncn_tool_prefix"; then
9523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9524 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if ${ac_cv_prog_WINDMC+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9532 else
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9544 done
9545 done
9546 IFS=$as_save_IFS
9550 WINDMC=$ac_cv_prog_WINDMC
9551 if test -n "$WINDMC"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553 $as_echo "$WINDMC" >&6; }
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9561 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9563 set dummy ${ncn_progname}; ac_word=$2
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565 $as_echo_n "checking for $ac_word... " >&6; }
9566 if ${ac_cv_prog_WINDMC+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 if test -n "$WINDMC"; then
9570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9571 else
9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in $PATH
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9579 ac_cv_prog_WINDMC="${ncn_progname}"
9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9583 done
9584 done
9585 IFS=$as_save_IFS
9589 WINDMC=$ac_cv_prog_WINDMC
9590 if test -n "$WINDMC"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9592 $as_echo "$WINDMC" >&6; }
9593 else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9600 test -n "$ac_cv_prog_WINDMC" && break
9601 done
9603 if test -z "$ac_cv_prog_WINDMC" ; then
9604 set dummy windmc
9605 if test $build = $host ; then
9606 WINDMC="$2"
9607 else
9608 WINDMC="${ncn_tool_prefix}$2"
9614 if test -n "$OBJCOPY"; then
9615 ac_cv_prog_OBJCOPY=$OBJCOPY
9616 elif test -n "$ac_cv_prog_OBJCOPY"; then
9617 OBJCOPY=$ac_cv_prog_OBJCOPY
9620 if test -n "$ac_cv_prog_OBJCOPY"; then
9621 for ncn_progname in objcopy; do
9622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9623 set dummy ${ncn_progname}; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_prog_OBJCOPY+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 if test -n "$OBJCOPY"; then
9630 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_prog_OBJCOPY="${ncn_progname}"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9643 done
9644 done
9645 IFS=$as_save_IFS
9649 OBJCOPY=$ac_cv_prog_OBJCOPY
9650 if test -n "$OBJCOPY"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9652 $as_echo "$OBJCOPY" >&6; }
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9659 done
9662 for ncn_progname in objcopy; do
9663 if test -n "$ncn_tool_prefix"; then
9664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9665 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_prog_OBJCOPY+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9673 else
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in $PATH
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 break 2
9685 done
9686 done
9687 IFS=$as_save_IFS
9691 OBJCOPY=$ac_cv_prog_OBJCOPY
9692 if test -n "$OBJCOPY"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694 $as_echo "$OBJCOPY" >&6; }
9695 else
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9702 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9704 set dummy ${ncn_progname}; ac_word=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if ${ac_cv_prog_OBJCOPY+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 if test -n "$OBJCOPY"; then
9711 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9720 ac_cv_prog_OBJCOPY="${ncn_progname}"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9724 done
9725 done
9726 IFS=$as_save_IFS
9730 OBJCOPY=$ac_cv_prog_OBJCOPY
9731 if test -n "$OBJCOPY"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9733 $as_echo "$OBJCOPY" >&6; }
9734 else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9741 test -n "$ac_cv_prog_OBJCOPY" && break
9742 done
9744 if test -z "$ac_cv_prog_OBJCOPY" ; then
9745 set dummy objcopy
9746 if test $build = $host ; then
9747 OBJCOPY="$2"
9748 else
9749 OBJCOPY="${ncn_tool_prefix}$2"
9755 if test -n "$OBJDUMP"; then
9756 ac_cv_prog_OBJDUMP=$OBJDUMP
9757 elif test -n "$ac_cv_prog_OBJDUMP"; then
9758 OBJDUMP=$ac_cv_prog_OBJDUMP
9761 if test -n "$ac_cv_prog_OBJDUMP"; then
9762 for ncn_progname in objdump; do
9763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9764 set dummy ${ncn_progname}; ac_word=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if ${ac_cv_prog_OBJDUMP+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 if test -n "$OBJDUMP"; then
9771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9780 ac_cv_prog_OBJDUMP="${ncn_progname}"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9784 done
9785 done
9786 IFS=$as_save_IFS
9790 OBJDUMP=$ac_cv_prog_OBJDUMP
9791 if test -n "$OBJDUMP"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9793 $as_echo "$OBJDUMP" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9800 done
9803 for ncn_progname in objdump; do
9804 if test -n "$ncn_tool_prefix"; then
9805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9806 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if ${ac_cv_prog_OBJDUMP+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9814 else
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in $PATH
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9826 done
9827 done
9828 IFS=$as_save_IFS
9832 OBJDUMP=$ac_cv_prog_OBJDUMP
9833 if test -n "$OBJDUMP"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835 $as_echo "$OBJDUMP" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9843 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9845 set dummy ${ncn_progname}; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if ${ac_cv_prog_OBJDUMP+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 if test -n "$OBJDUMP"; then
9852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9853 else
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $PATH
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_prog_OBJDUMP="${ncn_progname}"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9865 done
9866 done
9867 IFS=$as_save_IFS
9871 OBJDUMP=$ac_cv_prog_OBJDUMP
9872 if test -n "$OBJDUMP"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9874 $as_echo "$OBJDUMP" >&6; }
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9882 test -n "$ac_cv_prog_OBJDUMP" && break
9883 done
9885 if test -z "$ac_cv_prog_OBJDUMP" ; then
9886 set dummy objdump
9887 if test $build = $host ; then
9888 OBJDUMP="$2"
9889 else
9890 OBJDUMP="${ncn_tool_prefix}$2"
9896 if test -n "$READELF"; then
9897 ac_cv_prog_READELF=$READELF
9898 elif test -n "$ac_cv_prog_READELF"; then
9899 READELF=$ac_cv_prog_READELF
9902 if test -n "$ac_cv_prog_READELF"; then
9903 for ncn_progname in readelf; do
9904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9905 set dummy ${ncn_progname}; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if ${ac_cv_prog_READELF+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 if test -n "$READELF"; then
9912 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921 ac_cv_prog_READELF="${ncn_progname}"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9925 done
9926 done
9927 IFS=$as_save_IFS
9931 READELF=$ac_cv_prog_READELF
9932 if test -n "$READELF"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9934 $as_echo "$READELF" >&6; }
9935 else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9941 done
9944 for ncn_progname in readelf; do
9945 if test -n "$ncn_tool_prefix"; then
9946 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9947 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if ${ac_cv_prog_READELF+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 if test -n "$READELF"; then
9954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9955 else
9956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9967 done
9968 done
9969 IFS=$as_save_IFS
9973 READELF=$ac_cv_prog_READELF
9974 if test -n "$READELF"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9976 $as_echo "$READELF" >&6; }
9977 else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9984 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9986 set dummy ${ncn_progname}; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if ${ac_cv_prog_READELF+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 if test -n "$READELF"; then
9993 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9994 else
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002 ac_cv_prog_READELF="${ncn_progname}"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10006 done
10007 done
10008 IFS=$as_save_IFS
10012 READELF=$ac_cv_prog_READELF
10013 if test -n "$READELF"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10015 $as_echo "$READELF" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10023 test -n "$ac_cv_prog_READELF" && break
10024 done
10026 if test -z "$ac_cv_prog_READELF" ; then
10027 set dummy readelf
10028 if test $build = $host ; then
10029 READELF="$2"
10030 else
10031 READELF="${ncn_tool_prefix}$2"
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10041 $as_echo_n "checking for -plugin option... " >&6; }
10043 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10044 plugin_option=
10045 for plugin in $plugin_names; do
10046 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10047 if test x$plugin_so = x$plugin; then
10048 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10050 if test x$plugin_so != x$plugin; then
10051 plugin_option="--plugin $plugin_so"
10052 break
10054 done
10055 if test -n "$ac_tool_prefix"; then
10056 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10057 set dummy ${ac_tool_prefix}ar; ac_word=$2
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059 $as_echo_n "checking for $ac_word... " >&6; }
10060 if ${ac_cv_prog_AR+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 if test -n "$AR"; then
10064 ac_cv_prog_AR="$AR" # Let the user override the test.
10065 else
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067 for as_dir in $PATH
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10073 ac_cv_prog_AR="${ac_tool_prefix}ar"
10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10077 done
10078 done
10079 IFS=$as_save_IFS
10083 AR=$ac_cv_prog_AR
10084 if test -n "$AR"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10086 $as_echo "$AR" >&6; }
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10094 if test -z "$ac_cv_prog_AR"; then
10095 ac_ct_AR=$AR
10096 # Extract the first word of "ar", so it can be a program name with args.
10097 set dummy ar; ac_word=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 if test -n "$ac_ct_AR"; then
10104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10105 else
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_prog_ac_ct_AR="ar"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10117 done
10118 done
10119 IFS=$as_save_IFS
10123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10124 if test -n "$ac_ct_AR"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10126 $as_echo "$ac_ct_AR" >&6; }
10127 else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10132 if test "x$ac_ct_AR" = x; then
10133 AR=""
10134 else
10135 case $cross_compiling:$ac_tool_warned in
10136 yes:)
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10139 ac_tool_warned=yes ;;
10140 esac
10141 AR=$ac_ct_AR
10143 else
10144 AR="$ac_cv_prog_AR"
10147 if test "${AR}" = "" ; then
10148 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10150 touch conftest.c
10151 ${AR} $plugin_option rc conftest.a conftest.c
10152 if test "$?" != 0; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10154 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10155 plugin_option=
10157 rm -f conftest.*
10158 if test -n "$plugin_option"; then
10159 PLUGIN_OPTION="$plugin_option"
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10161 $as_echo "$plugin_option" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10167 AR_PLUGIN_OPTION=
10168 RANLIB_PLUGIN_OPTION=
10169 if test -n "$PLUGIN_OPTION"; then
10170 if $AR --help 2>&1 | grep -q "\--plugin"; then
10171 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10173 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10174 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10180 # Target tools.
10182 # Check whether --with-build-time-tools was given.
10183 if test "${with_build_time_tools+set}" = set; then :
10184 withval=$with_build_time_tools; case x"$withval" in
10185 x/*) ;;
10187 with_build_time_tools=
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10189 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10191 esac
10192 else
10193 with_build_time_tools=
10199 if test -n "$CC_FOR_TARGET"; then
10200 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10201 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10202 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10205 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10206 for ncn_progname in cc gcc; do
10207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10208 set dummy ${ncn_progname}; ac_word=$2
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 if test -n "$CC_FOR_TARGET"; then
10215 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10228 done
10229 done
10230 IFS=$as_save_IFS
10234 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10235 if test -n "$CC_FOR_TARGET"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10237 $as_echo "$CC_FOR_TARGET" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10244 done
10247 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10248 for ncn_progname in cc gcc; do
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10250 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10251 if test -x $with_build_time_tools/${ncn_progname}; then
10252 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254 $as_echo "yes" >&6; }
10255 break
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10260 done
10263 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10264 for ncn_progname in cc gcc; do
10265 if test -n "$ncn_target_tool_prefix"; then
10266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10267 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 if test -n "$CC_FOR_TARGET"; then
10274 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10287 done
10288 done
10289 IFS=$as_save_IFS
10293 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10294 if test -n "$CC_FOR_TARGET"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10296 $as_echo "$CC_FOR_TARGET" >&6; }
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10304 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10306 set dummy ${ncn_progname}; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 if test -n "$CC_FOR_TARGET"; then
10313 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10314 else
10315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10322 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10326 done
10327 done
10328 IFS=$as_save_IFS
10332 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10333 if test -n "$CC_FOR_TARGET"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10335 $as_echo "$CC_FOR_TARGET" >&6; }
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10343 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10344 done
10347 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10348 set dummy cc gcc
10349 if test $build = $target ; then
10350 CC_FOR_TARGET="$2"
10351 else
10352 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10354 else
10355 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10360 if test -n "$CXX_FOR_TARGET"; then
10361 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10362 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10363 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10366 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10367 for ncn_progname in c++ g++ cxx gxx; do
10368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10369 set dummy ${ncn_progname}; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 if test -n "$CXX_FOR_TARGET"; then
10376 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10377 else
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10385 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10389 done
10390 done
10391 IFS=$as_save_IFS
10395 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10396 if test -n "$CXX_FOR_TARGET"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10398 $as_echo "$CXX_FOR_TARGET" >&6; }
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10405 done
10408 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10409 for ncn_progname in c++ g++ cxx gxx; do
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10411 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10412 if test -x $with_build_time_tools/${ncn_progname}; then
10413 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10415 $as_echo "yes" >&6; }
10416 break
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10421 done
10424 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10425 for ncn_progname in c++ g++ cxx gxx; do
10426 if test -n "$ncn_target_tool_prefix"; then
10427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10428 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 if test -n "$CXX_FOR_TARGET"; then
10435 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10448 done
10449 done
10450 IFS=$as_save_IFS
10454 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10455 if test -n "$CXX_FOR_TARGET"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10457 $as_echo "$CXX_FOR_TARGET" >&6; }
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10465 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10467 set dummy ${ncn_progname}; ac_word=$2
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 if test -n "$CXX_FOR_TARGET"; then
10474 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10475 else
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10487 done
10488 done
10489 IFS=$as_save_IFS
10493 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10494 if test -n "$CXX_FOR_TARGET"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10496 $as_echo "$CXX_FOR_TARGET" >&6; }
10497 else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }
10504 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10505 done
10508 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10509 set dummy c++ g++ cxx gxx
10510 if test $build = $target ; then
10511 CXX_FOR_TARGET="$2"
10512 else
10513 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10515 else
10516 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10521 if test -n "$GCC_FOR_TARGET"; then
10522 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10523 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10524 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10527 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10528 for ncn_progname in gcc; do
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530 set dummy ${ncn_progname}; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 if test -n "$GCC_FOR_TARGET"; then
10537 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10538 else
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10550 done
10551 done
10552 IFS=$as_save_IFS
10556 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10557 if test -n "$GCC_FOR_TARGET"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10559 $as_echo "$GCC_FOR_TARGET" >&6; }
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10566 done
10569 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10570 for ncn_progname in gcc; do
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10572 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10573 if test -x $with_build_time_tools/${ncn_progname}; then
10574 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10576 $as_echo "yes" >&6; }
10577 break
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10582 done
10585 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10586 for ncn_progname in gcc; do
10587 if test -n "$ncn_target_tool_prefix"; then
10588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 if test -n "$GCC_FOR_TARGET"; then
10596 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10597 else
10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10605 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10609 done
10610 done
10611 IFS=$as_save_IFS
10615 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10616 if test -n "$GCC_FOR_TARGET"; then
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10618 $as_echo "$GCC_FOR_TARGET" >&6; }
10619 else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10626 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10628 set dummy ${ncn_progname}; ac_word=$2
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 $as_echo_n "checking for $ac_word... " >&6; }
10631 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 if test -n "$GCC_FOR_TARGET"; then
10635 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10636 else
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10644 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10648 done
10649 done
10650 IFS=$as_save_IFS
10654 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10655 if test -n "$GCC_FOR_TARGET"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10657 $as_echo "$GCC_FOR_TARGET" >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10665 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10666 done
10669 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10670 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10671 else
10672 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10677 if test -n "$GCJ_FOR_TARGET"; then
10678 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10679 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10680 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10683 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10684 for ncn_progname in gcj; do
10685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10686 set dummy ${ncn_progname}; ac_word=$2
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 $as_echo_n "checking for $ac_word... " >&6; }
10689 if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 if test -n "$GCJ_FOR_TARGET"; then
10693 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10694 else
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
10700 for ac_exec_ext in '' $ac_executable_extensions; do
10701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10702 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 break 2
10706 done
10707 done
10708 IFS=$as_save_IFS
10712 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10713 if test -n "$GCJ_FOR_TARGET"; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10715 $as_echo "$GCJ_FOR_TARGET" >&6; }
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10722 done
10725 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10726 for ncn_progname in gcj; do
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10728 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10729 if test -x $with_build_time_tools/${ncn_progname}; then
10730 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10732 $as_echo "yes" >&6; }
10733 break
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10738 done
10741 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10742 for ncn_progname in gcj; do
10743 if test -n "$ncn_target_tool_prefix"; then
10744 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10745 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 if test -n "$GCJ_FOR_TARGET"; then
10752 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10765 done
10766 done
10767 IFS=$as_save_IFS
10771 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10772 if test -n "$GCJ_FOR_TARGET"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10774 $as_echo "$GCJ_FOR_TARGET" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10782 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10784 set dummy ${ncn_progname}; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 if test -n "$GCJ_FOR_TARGET"; then
10791 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10792 else
10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794 for as_dir in $PATH
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10800 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10804 done
10805 done
10806 IFS=$as_save_IFS
10810 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10811 if test -n "$GCJ_FOR_TARGET"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10813 $as_echo "$GCJ_FOR_TARGET" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10821 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10822 done
10825 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10826 set dummy gcj
10827 if test $build = $target ; then
10828 GCJ_FOR_TARGET="$2"
10829 else
10830 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10832 else
10833 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10838 if test -n "$GFORTRAN_FOR_TARGET"; then
10839 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10840 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10841 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10844 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10845 for ncn_progname in gfortran; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847 set dummy ${ncn_progname}; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 if test -n "$GFORTRAN_FOR_TARGET"; then
10854 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10855 else
10856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857 for as_dir in $PATH
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10867 done
10868 done
10869 IFS=$as_save_IFS
10873 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10874 if test -n "$GFORTRAN_FOR_TARGET"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10876 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10883 done
10886 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10887 for ncn_progname in gfortran; do
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10889 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10890 if test -x $with_build_time_tools/${ncn_progname}; then
10891 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10893 $as_echo "yes" >&6; }
10894 break
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; }
10899 done
10902 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10903 for ncn_progname in gfortran; do
10904 if test -n "$ncn_target_tool_prefix"; then
10905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10906 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908 $as_echo_n "checking for $ac_word... " >&6; }
10909 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 if test -n "$GFORTRAN_FOR_TARGET"; then
10913 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10914 else
10915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916 for as_dir in $PATH
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
10921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10922 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10926 done
10927 done
10928 IFS=$as_save_IFS
10932 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10933 if test -n "$GFORTRAN_FOR_TARGET"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10935 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938 $as_echo "no" >&6; }
10943 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10945 set dummy ${ncn_progname}; ac_word=$2
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947 $as_echo_n "checking for $ac_word... " >&6; }
10948 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 if test -n "$GFORTRAN_FOR_TARGET"; then
10952 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10953 else
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10965 done
10966 done
10967 IFS=$as_save_IFS
10971 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10972 if test -n "$GFORTRAN_FOR_TARGET"; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10974 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977 $as_echo "no" >&6; }
10982 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10983 done
10986 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10987 set dummy gfortran
10988 if test $build = $target ; then
10989 GFORTRAN_FOR_TARGET="$2"
10990 else
10991 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10993 else
10994 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10999 if test -n "$GOC_FOR_TARGET"; then
11000 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11001 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11002 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11005 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11006 for ncn_progname in gccgo; do
11007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11008 set dummy ${ncn_progname}; ac_word=$2
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 $as_echo_n "checking for $ac_word... " >&6; }
11011 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 if test -n "$GOC_FOR_TARGET"; then
11015 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11016 else
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11028 done
11029 done
11030 IFS=$as_save_IFS
11034 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11035 if test -n "$GOC_FOR_TARGET"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11037 $as_echo "$GOC_FOR_TARGET" >&6; }
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11044 done
11047 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11048 for ncn_progname in gccgo; do
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11050 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11051 if test -x $with_build_time_tools/${ncn_progname}; then
11052 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054 $as_echo "yes" >&6; }
11055 break
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11060 done
11063 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11064 for ncn_progname in gccgo; do
11065 if test -n "$ncn_target_tool_prefix"; then
11066 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11067 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 if test -n "$GOC_FOR_TARGET"; then
11074 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11087 done
11088 done
11089 IFS=$as_save_IFS
11093 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11094 if test -n "$GOC_FOR_TARGET"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11096 $as_echo "$GOC_FOR_TARGET" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11104 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 if test -n "$GOC_FOR_TARGET"; then
11113 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11126 done
11127 done
11128 IFS=$as_save_IFS
11132 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11133 if test -n "$GOC_FOR_TARGET"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11135 $as_echo "$GOC_FOR_TARGET" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11143 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11144 done
11147 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11148 set dummy gccgo
11149 if test $build = $target ; then
11150 GOC_FOR_TARGET="$2"
11151 else
11152 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11154 else
11155 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11160 cat > conftest.c << \EOF
11161 #ifdef __GNUC__
11162 gcc_yay;
11163 #endif
11165 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11166 have_gcc_for_target=yes
11167 else
11168 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11169 have_gcc_for_target=no
11171 rm conftest.c
11176 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11177 if test -n "$with_build_time_tools"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11179 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11180 if test -x $with_build_time_tools/ar; then
11181 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11182 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11184 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11189 elif test $build != $host && test $have_gcc_for_target = yes; then
11190 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11191 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11192 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11195 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11196 # Extract the first word of "ar", so it can be a program name with args.
11197 set dummy ar; ac_word=$2
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199 $as_echo_n "checking for $ac_word... " >&6; }
11200 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 case $AR_FOR_TARGET in
11204 [\\/]* | ?:[\\/]*)
11205 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $gcc_cv_tool_dirs
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11219 done
11220 done
11221 IFS=$as_save_IFS
11224 esac
11226 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11227 if test -n "$AR_FOR_TARGET"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11229 $as_echo "$AR_FOR_TARGET" >&6; }
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11237 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11240 if test -n "$AR_FOR_TARGET"; then
11241 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11242 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11243 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11246 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11247 for ncn_progname in ar; do
11248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11249 set dummy ${ncn_progname}; ac_word=$2
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251 $as_echo_n "checking for $ac_word... " >&6; }
11252 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 if test -n "$AR_FOR_TARGET"; then
11256 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11257 else
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11269 done
11270 done
11271 IFS=$as_save_IFS
11275 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11276 if test -n "$AR_FOR_TARGET"; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11278 $as_echo "$AR_FOR_TARGET" >&6; }
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11285 done
11288 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11289 for ncn_progname in ar; do
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11291 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11292 if test -x $with_build_time_tools/${ncn_progname}; then
11293 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11295 $as_echo "yes" >&6; }
11296 break
11297 else
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11301 done
11304 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11305 for ncn_progname in ar; do
11306 if test -n "$ncn_target_tool_prefix"; then
11307 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11308 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310 $as_echo_n "checking for $ac_word... " >&6; }
11311 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 if test -n "$AR_FOR_TARGET"; then
11315 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11316 else
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $PATH
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11328 done
11329 done
11330 IFS=$as_save_IFS
11334 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11335 if test -n "$AR_FOR_TARGET"; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11337 $as_echo "$AR_FOR_TARGET" >&6; }
11338 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11345 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11347 set dummy ${ncn_progname}; ac_word=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 if test -n "$AR_FOR_TARGET"; then
11354 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11355 else
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11367 done
11368 done
11369 IFS=$as_save_IFS
11373 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11374 if test -n "$AR_FOR_TARGET"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11376 $as_echo "$AR_FOR_TARGET" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11384 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11385 done
11388 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11389 set dummy ar
11390 if test $build = $target ; then
11391 AR_FOR_TARGET="$2"
11392 else
11393 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11395 else
11396 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11399 else
11400 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11406 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11407 if test -n "$with_build_time_tools"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11409 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11410 if test -x $with_build_time_tools/as; then
11411 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11412 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11414 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11419 elif test $build != $host && test $have_gcc_for_target = yes; then
11420 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11421 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11422 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11425 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11426 # Extract the first word of "as", so it can be a program name with args.
11427 set dummy as; ac_word=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 $as_echo_n "checking for $ac_word... " >&6; }
11430 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 case $AS_FOR_TARGET in
11434 [\\/]* | ?:[\\/]*)
11435 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439 for as_dir in $gcc_cv_tool_dirs
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11445 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11449 done
11450 done
11451 IFS=$as_save_IFS
11454 esac
11456 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11457 if test -n "$AS_FOR_TARGET"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11459 $as_echo "$AS_FOR_TARGET" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11467 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11470 if test -n "$AS_FOR_TARGET"; then
11471 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11472 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11473 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11476 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11477 for ncn_progname in as; do
11478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11479 set dummy ${ncn_progname}; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 if test -n "$AS_FOR_TARGET"; then
11486 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11499 done
11500 done
11501 IFS=$as_save_IFS
11505 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11506 if test -n "$AS_FOR_TARGET"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11508 $as_echo "$AS_FOR_TARGET" >&6; }
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11515 done
11518 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11519 for ncn_progname in as; do
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11521 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11522 if test -x $with_build_time_tools/${ncn_progname}; then
11523 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11526 break
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11531 done
11534 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11535 for ncn_progname in as; do
11536 if test -n "$ncn_target_tool_prefix"; then
11537 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11538 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540 $as_echo_n "checking for $ac_word... " >&6; }
11541 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 if test -n "$AS_FOR_TARGET"; then
11545 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11546 else
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11554 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 break 2
11558 done
11559 done
11560 IFS=$as_save_IFS
11564 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11565 if test -n "$AS_FOR_TARGET"; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11567 $as_echo "$AS_FOR_TARGET" >&6; }
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11575 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11577 set dummy ${ncn_progname}; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 if test -n "$AS_FOR_TARGET"; then
11584 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11585 else
11586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 for as_dir in $PATH
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
11591 for ac_exec_ext in '' $ac_executable_extensions; do
11592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11593 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 break 2
11597 done
11598 done
11599 IFS=$as_save_IFS
11603 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11604 if test -n "$AS_FOR_TARGET"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11606 $as_echo "$AS_FOR_TARGET" >&6; }
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11614 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11615 done
11618 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11619 set dummy as
11620 if test $build = $target ; then
11621 AS_FOR_TARGET="$2"
11622 else
11623 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11625 else
11626 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11629 else
11630 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11636 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11637 if test -n "$with_build_time_tools"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11639 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11640 if test -x $with_build_time_tools/dlltool; then
11641 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11642 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11644 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11649 elif test $build != $host && test $have_gcc_for_target = yes; then
11650 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11651 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11652 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11655 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11656 # Extract the first word of "dlltool", so it can be a program name with args.
11657 set dummy dlltool; ac_word=$2
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659 $as_echo_n "checking for $ac_word... " >&6; }
11660 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 case $DLLTOOL_FOR_TARGET in
11664 [\\/]* | ?:[\\/]*)
11665 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669 for as_dir in $gcc_cv_tool_dirs
11671 IFS=$as_save_IFS
11672 test -z "$as_dir" && as_dir=.
11673 for ac_exec_ext in '' $ac_executable_extensions; do
11674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11675 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677 break 2
11679 done
11680 done
11681 IFS=$as_save_IFS
11684 esac
11686 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11687 if test -n "$DLLTOOL_FOR_TARGET"; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11689 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11690 else
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11697 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11700 if test -n "$DLLTOOL_FOR_TARGET"; then
11701 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11702 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11703 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11706 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11707 for ncn_progname in dlltool; do
11708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11709 set dummy ${ncn_progname}; ac_word=$2
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 if test -n "$DLLTOOL_FOR_TARGET"; then
11716 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11717 else
11718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719 for as_dir in $PATH
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
11723 for ac_exec_ext in '' $ac_executable_extensions; do
11724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11725 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727 break 2
11729 done
11730 done
11731 IFS=$as_save_IFS
11735 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11736 if test -n "$DLLTOOL_FOR_TARGET"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11738 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11745 done
11748 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11749 for ncn_progname in dlltool; do
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11751 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11752 if test -x $with_build_time_tools/${ncn_progname}; then
11753 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11755 $as_echo "yes" >&6; }
11756 break
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11761 done
11764 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11765 for ncn_progname in dlltool; do
11766 if test -n "$ncn_target_tool_prefix"; then
11767 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11768 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 if test -n "$DLLTOOL_FOR_TARGET"; then
11775 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11776 else
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11788 done
11789 done
11790 IFS=$as_save_IFS
11794 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11795 if test -n "$DLLTOOL_FOR_TARGET"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11797 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11805 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11807 set dummy ${ncn_progname}; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 if test -n "$DLLTOOL_FOR_TARGET"; then
11814 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11815 else
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11823 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11827 done
11828 done
11829 IFS=$as_save_IFS
11833 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11834 if test -n "$DLLTOOL_FOR_TARGET"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11836 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11844 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11845 done
11848 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11849 set dummy dlltool
11850 if test $build = $target ; then
11851 DLLTOOL_FOR_TARGET="$2"
11852 else
11853 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11855 else
11856 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11859 else
11860 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11866 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11867 if test -n "$with_build_time_tools"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11869 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11870 if test -x $with_build_time_tools/ld; then
11871 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11872 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11874 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11879 elif test $build != $host && test $have_gcc_for_target = yes; then
11880 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11881 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11882 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11885 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11886 # Extract the first word of "ld", so it can be a program name with args.
11887 set dummy ld; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 case $LD_FOR_TARGET in
11894 [\\/]* | ?:[\\/]*)
11895 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $gcc_cv_tool_dirs
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11905 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 break 2
11909 done
11910 done
11911 IFS=$as_save_IFS
11914 esac
11916 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11917 if test -n "$LD_FOR_TARGET"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11919 $as_echo "$LD_FOR_TARGET" >&6; }
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11927 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11930 if test -n "$LD_FOR_TARGET"; then
11931 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11932 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11933 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11936 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11937 for ncn_progname in ld; do
11938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11939 set dummy ${ncn_progname}; ac_word=$2
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941 $as_echo_n "checking for $ac_word... " >&6; }
11942 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 if test -n "$LD_FOR_TARGET"; then
11946 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11947 else
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11955 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 break 2
11959 done
11960 done
11961 IFS=$as_save_IFS
11965 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11966 if test -n "$LD_FOR_TARGET"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11968 $as_echo "$LD_FOR_TARGET" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11975 done
11978 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11979 for ncn_progname in ld; do
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11981 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11982 if test -x $with_build_time_tools/${ncn_progname}; then
11983 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985 $as_echo "yes" >&6; }
11986 break
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11991 done
11994 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11995 for ncn_progname in ld; do
11996 if test -n "$ncn_target_tool_prefix"; then
11997 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11998 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 if test -n "$LD_FOR_TARGET"; then
12005 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12006 else
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12018 done
12019 done
12020 IFS=$as_save_IFS
12024 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12025 if test -n "$LD_FOR_TARGET"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12027 $as_echo "$LD_FOR_TARGET" >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12035 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12037 set dummy ${ncn_progname}; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 $as_echo_n "checking for $ac_word... " >&6; }
12040 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 if test -n "$LD_FOR_TARGET"; then
12044 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12045 else
12046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12053 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 break 2
12057 done
12058 done
12059 IFS=$as_save_IFS
12063 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12064 if test -n "$LD_FOR_TARGET"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12066 $as_echo "$LD_FOR_TARGET" >&6; }
12067 else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12074 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12075 done
12078 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12079 set dummy ld
12080 if test $build = $target ; then
12081 LD_FOR_TARGET="$2"
12082 else
12083 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12085 else
12086 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12089 else
12090 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12096 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12097 if test -n "$with_build_time_tools"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12099 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12100 if test -x $with_build_time_tools/lipo; then
12101 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12102 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12104 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12109 elif test $build != $host && test $have_gcc_for_target = yes; then
12110 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12111 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12112 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12115 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12116 # Extract the first word of "lipo", so it can be a program name with args.
12117 set dummy lipo; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 case $LIPO_FOR_TARGET in
12124 [\\/]* | ?:[\\/]*)
12125 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $gcc_cv_tool_dirs
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12135 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 break 2
12139 done
12140 done
12141 IFS=$as_save_IFS
12144 esac
12146 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12147 if test -n "$LIPO_FOR_TARGET"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12149 $as_echo "$LIPO_FOR_TARGET" >&6; }
12150 else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12157 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12160 if test -n "$LIPO_FOR_TARGET"; then
12161 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12162 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12163 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12166 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12167 for ncn_progname in lipo; do
12168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12169 set dummy ${ncn_progname}; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 if test -n "$LIPO_FOR_TARGET"; then
12176 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12189 done
12190 done
12191 IFS=$as_save_IFS
12195 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12196 if test -n "$LIPO_FOR_TARGET"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12198 $as_echo "$LIPO_FOR_TARGET" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12205 done
12208 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12209 for ncn_progname in lipo; do
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12211 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12212 if test -x $with_build_time_tools/${ncn_progname}; then
12213 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12215 $as_echo "yes" >&6; }
12216 break
12217 else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12221 done
12224 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12225 for ncn_progname in lipo; do
12226 if test -n "$ncn_target_tool_prefix"; then
12227 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12228 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 $as_echo_n "checking for $ac_word... " >&6; }
12231 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 if test -n "$LIPO_FOR_TARGET"; then
12235 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12236 else
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12248 done
12249 done
12250 IFS=$as_save_IFS
12254 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12255 if test -n "$LIPO_FOR_TARGET"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12257 $as_echo "$LIPO_FOR_TARGET" >&6; }
12258 else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12265 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267 set dummy ${ncn_progname}; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 if test -n "$LIPO_FOR_TARGET"; then
12274 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12287 done
12288 done
12289 IFS=$as_save_IFS
12293 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12294 if test -n "$LIPO_FOR_TARGET"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12296 $as_echo "$LIPO_FOR_TARGET" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12304 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12305 done
12308 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12309 set dummy lipo
12310 if test $build = $target ; then
12311 LIPO_FOR_TARGET="$2"
12312 else
12313 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12315 else
12316 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12319 else
12320 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12326 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12327 if test -n "$with_build_time_tools"; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12329 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12330 if test -x $with_build_time_tools/nm; then
12331 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12332 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12334 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12339 elif test $build != $host && test $have_gcc_for_target = yes; then
12340 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12341 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12342 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12345 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12346 # Extract the first word of "nm", so it can be a program name with args.
12347 set dummy nm; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 case $NM_FOR_TARGET in
12354 [\\/]* | ?:[\\/]*)
12355 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $gcc_cv_tool_dirs
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12374 esac
12376 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12377 if test -n "$NM_FOR_TARGET"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12379 $as_echo "$NM_FOR_TARGET" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12387 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12390 if test -n "$NM_FOR_TARGET"; then
12391 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12392 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12393 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12396 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12397 for ncn_progname in nm; do
12398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12399 set dummy ${ncn_progname}; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -n "$NM_FOR_TARGET"; then
12406 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12407 else
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12415 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12419 done
12420 done
12421 IFS=$as_save_IFS
12425 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12426 if test -n "$NM_FOR_TARGET"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12428 $as_echo "$NM_FOR_TARGET" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12435 done
12438 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12439 for ncn_progname in nm; do
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12441 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12442 if test -x $with_build_time_tools/${ncn_progname}; then
12443 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12445 $as_echo "yes" >&6; }
12446 break
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12451 done
12454 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12455 for ncn_progname in nm; do
12456 if test -n "$ncn_target_tool_prefix"; then
12457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12458 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 if test -n "$NM_FOR_TARGET"; then
12465 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12466 else
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH
12470 IFS=$as_save_IFS
12471 test -z "$as_dir" && as_dir=.
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12474 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 break 2
12478 done
12479 done
12480 IFS=$as_save_IFS
12484 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12485 if test -n "$NM_FOR_TARGET"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12487 $as_echo "$NM_FOR_TARGET" >&6; }
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12495 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12497 set dummy ${ncn_progname}; ac_word=$2
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 $as_echo_n "checking for $ac_word... " >&6; }
12500 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 if test -n "$NM_FOR_TARGET"; then
12504 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12505 else
12506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507 for as_dir in $PATH
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
12511 for ac_exec_ext in '' $ac_executable_extensions; do
12512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12513 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 break 2
12517 done
12518 done
12519 IFS=$as_save_IFS
12523 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12524 if test -n "$NM_FOR_TARGET"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12526 $as_echo "$NM_FOR_TARGET" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12534 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12535 done
12538 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12539 set dummy nm
12540 if test $build = $target ; then
12541 NM_FOR_TARGET="$2"
12542 else
12543 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12545 else
12546 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12549 else
12550 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12556 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12557 if test -n "$with_build_time_tools"; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12559 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12560 if test -x $with_build_time_tools/objcopy; then
12561 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12562 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12564 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12569 elif test $build != $host && test $have_gcc_for_target = yes; then
12570 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12571 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12572 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12575 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12576 # Extract the first word of "objcopy", so it can be a program name with args.
12577 set dummy objcopy; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 case $OBJCOPY_FOR_TARGET in
12584 [\\/]* | ?:[\\/]*)
12585 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $gcc_cv_tool_dirs
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12599 done
12600 done
12601 IFS=$as_save_IFS
12604 esac
12606 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12607 if test -n "$OBJCOPY_FOR_TARGET"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12609 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12617 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12620 if test -n "$OBJCOPY_FOR_TARGET"; then
12621 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12622 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12623 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12626 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12627 for ncn_progname in objcopy; do
12628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12629 set dummy ${ncn_progname}; ac_word=$2
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631 $as_echo_n "checking for $ac_word... " >&6; }
12632 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 if test -n "$OBJCOPY_FOR_TARGET"; then
12636 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12637 else
12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639 for as_dir in $PATH
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
12643 for ac_exec_ext in '' $ac_executable_extensions; do
12644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12645 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 break 2
12649 done
12650 done
12651 IFS=$as_save_IFS
12655 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12656 if test -n "$OBJCOPY_FOR_TARGET"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12658 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661 $as_echo "no" >&6; }
12665 done
12668 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12669 for ncn_progname in objcopy; do
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12671 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12672 if test -x $with_build_time_tools/${ncn_progname}; then
12673 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12675 $as_echo "yes" >&6; }
12676 break
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12681 done
12684 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12685 for ncn_progname in objcopy; do
12686 if test -n "$ncn_target_tool_prefix"; then
12687 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12688 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690 $as_echo_n "checking for $ac_word... " >&6; }
12691 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if test -n "$OBJCOPY_FOR_TARGET"; then
12695 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12696 else
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12714 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12715 if test -n "$OBJCOPY_FOR_TARGET"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12717 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12725 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12727 set dummy ${ncn_progname}; ac_word=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 if test -n "$OBJCOPY_FOR_TARGET"; then
12734 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12735 else
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12747 done
12748 done
12749 IFS=$as_save_IFS
12753 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12754 if test -n "$OBJCOPY_FOR_TARGET"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12756 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12764 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12765 done
12768 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12769 set dummy objcopy
12770 if test $build = $target ; then
12771 OBJCOPY_FOR_TARGET="$2"
12772 else
12773 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12775 else
12776 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12779 else
12780 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12786 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12787 if test -n "$with_build_time_tools"; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12789 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12790 if test -x $with_build_time_tools/objdump; then
12791 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12792 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12794 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12799 elif test $build != $host && test $have_gcc_for_target = yes; then
12800 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12801 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12802 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12805 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12806 # Extract the first word of "objdump", so it can be a program name with args.
12807 set dummy objdump; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12811 $as_echo_n "(cached) " >&6
12812 else
12813 case $OBJDUMP_FOR_TARGET in
12814 [\\/]* | ?:[\\/]*)
12815 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $gcc_cv_tool_dirs
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 break 2
12829 done
12830 done
12831 IFS=$as_save_IFS
12834 esac
12836 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12837 if test -n "$OBJDUMP_FOR_TARGET"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12839 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12840 else
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12847 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12850 if test -n "$OBJDUMP_FOR_TARGET"; then
12851 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12852 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12853 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12856 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12857 for ncn_progname in objdump; do
12858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12859 set dummy ${ncn_progname}; ac_word=$2
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861 $as_echo_n "checking for $ac_word... " >&6; }
12862 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 if test -n "$OBJDUMP_FOR_TARGET"; then
12866 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12867 else
12868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869 for as_dir in $PATH
12871 IFS=$as_save_IFS
12872 test -z "$as_dir" && as_dir=.
12873 for ac_exec_ext in '' $ac_executable_extensions; do
12874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12875 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12877 break 2
12879 done
12880 done
12881 IFS=$as_save_IFS
12885 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12886 if test -n "$OBJDUMP_FOR_TARGET"; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12888 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12889 else
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12895 done
12898 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12899 for ncn_progname in objdump; do
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12901 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12902 if test -x $with_build_time_tools/${ncn_progname}; then
12903 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12905 $as_echo "yes" >&6; }
12906 break
12907 else
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12911 done
12914 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12915 for ncn_progname in objdump; do
12916 if test -n "$ncn_target_tool_prefix"; then
12917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12920 $as_echo_n "checking for $ac_word... " >&6; }
12921 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12922 $as_echo_n "(cached) " >&6
12923 else
12924 if test -n "$OBJDUMP_FOR_TARGET"; then
12925 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12926 else
12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $PATH
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12934 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 break 2
12938 done
12939 done
12940 IFS=$as_save_IFS
12944 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12945 if test -n "$OBJDUMP_FOR_TARGET"; then
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12947 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12948 else
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12955 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12957 set dummy ${ncn_progname}; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 if test -n "$OBJDUMP_FOR_TARGET"; then
12964 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12965 else
12966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967 for as_dir in $PATH
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12973 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12975 break 2
12977 done
12978 done
12979 IFS=$as_save_IFS
12983 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12984 if test -n "$OBJDUMP_FOR_TARGET"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12986 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12994 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12995 done
12998 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12999 set dummy objdump
13000 if test $build = $target ; then
13001 OBJDUMP_FOR_TARGET="$2"
13002 else
13003 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13005 else
13006 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13009 else
13010 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13016 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13017 if test -n "$with_build_time_tools"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13019 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13020 if test -x $with_build_time_tools/ranlib; then
13021 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13022 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13024 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13025 else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13029 elif test $build != $host && test $have_gcc_for_target = yes; then
13030 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13031 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13032 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13035 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13036 # Extract the first word of "ranlib", so it can be a program name with args.
13037 set dummy ranlib; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 case $RANLIB_FOR_TARGET in
13044 [\\/]* | ?:[\\/]*)
13045 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $gcc_cv_tool_dirs
13051 IFS=$as_save_IFS
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13055 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 break 2
13059 done
13060 done
13061 IFS=$as_save_IFS
13064 esac
13066 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13067 if test -n "$RANLIB_FOR_TARGET"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13069 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13077 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13080 if test -n "$RANLIB_FOR_TARGET"; then
13081 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13082 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13083 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13086 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13087 for ncn_progname in ranlib; do
13088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13089 set dummy ${ncn_progname}; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091 $as_echo_n "checking for $ac_word... " >&6; }
13092 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 if test -n "$RANLIB_FOR_TARGET"; then
13096 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13097 else
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13109 done
13110 done
13111 IFS=$as_save_IFS
13115 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13116 if test -n "$RANLIB_FOR_TARGET"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13118 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13119 else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13125 done
13128 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13129 for ncn_progname in ranlib; do
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13131 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13132 if test -x $with_build_time_tools/${ncn_progname}; then
13133 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135 $as_echo "yes" >&6; }
13136 break
13137 else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139 $as_echo "no" >&6; }
13141 done
13144 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13145 for ncn_progname in ranlib; do
13146 if test -n "$ncn_target_tool_prefix"; then
13147 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13148 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150 $as_echo_n "checking for $ac_word... " >&6; }
13151 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 if test -n "$RANLIB_FOR_TARGET"; then
13155 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13156 else
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 break 2
13168 done
13169 done
13170 IFS=$as_save_IFS
13174 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13175 if test -n "$RANLIB_FOR_TARGET"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13177 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13185 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13187 set dummy ${ncn_progname}; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 if test -n "$RANLIB_FOR_TARGET"; then
13194 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13203 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13207 done
13208 done
13209 IFS=$as_save_IFS
13213 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13214 if test -n "$RANLIB_FOR_TARGET"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13216 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13224 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13225 done
13228 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13229 set dummy ranlib
13230 if test $build = $target ; then
13231 RANLIB_FOR_TARGET="$2"
13232 else
13233 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13235 else
13236 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13239 else
13240 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13246 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13247 if test -n "$with_build_time_tools"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13249 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13250 if test -x $with_build_time_tools/readelf; then
13251 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13252 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13254 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13259 elif test $build != $host && test $have_gcc_for_target = yes; then
13260 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13261 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13262 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13265 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13266 # Extract the first word of "readelf", so it can be a program name with args.
13267 set dummy readelf; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 case $READELF_FOR_TARGET in
13274 [\\/]* | ?:[\\/]*)
13275 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $gcc_cv_tool_dirs
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13289 done
13290 done
13291 IFS=$as_save_IFS
13294 esac
13296 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13297 if test -n "$READELF_FOR_TARGET"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13299 $as_echo "$READELF_FOR_TARGET" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13307 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13310 if test -n "$READELF_FOR_TARGET"; then
13311 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13312 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13313 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13316 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13317 for ncn_progname in readelf; do
13318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13319 set dummy ${ncn_progname}; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 if test -n "$READELF_FOR_TARGET"; then
13326 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13327 else
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13335 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 break 2
13339 done
13340 done
13341 IFS=$as_save_IFS
13345 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13346 if test -n "$READELF_FOR_TARGET"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13348 $as_echo "$READELF_FOR_TARGET" >&6; }
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13355 done
13358 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13359 for ncn_progname in readelf; do
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13361 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13362 if test -x $with_build_time_tools/${ncn_progname}; then
13363 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13366 break
13367 else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13371 done
13374 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13375 for ncn_progname in readelf; do
13376 if test -n "$ncn_target_tool_prefix"; then
13377 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13378 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 $as_echo_n "checking for $ac_word... " >&6; }
13381 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 if test -n "$READELF_FOR_TARGET"; then
13385 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13386 else
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13398 done
13399 done
13400 IFS=$as_save_IFS
13404 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13405 if test -n "$READELF_FOR_TARGET"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13407 $as_echo "$READELF_FOR_TARGET" >&6; }
13408 else
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13415 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13417 set dummy ${ncn_progname}; ac_word=$2
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419 $as_echo_n "checking for $ac_word... " >&6; }
13420 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 if test -n "$READELF_FOR_TARGET"; then
13424 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13425 else
13426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427 for as_dir in $PATH
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 for ac_exec_ext in '' $ac_executable_extensions; do
13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13433 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 break 2
13437 done
13438 done
13439 IFS=$as_save_IFS
13443 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13444 if test -n "$READELF_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13446 $as_echo "$READELF_FOR_TARGET" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13454 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13455 done
13458 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13459 set dummy readelf
13460 if test $build = $target ; then
13461 READELF_FOR_TARGET="$2"
13462 else
13463 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13465 else
13466 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13469 else
13470 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13476 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13477 if test -n "$with_build_time_tools"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13479 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13480 if test -x $with_build_time_tools/strip; then
13481 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13482 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13484 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13489 elif test $build != $host && test $have_gcc_for_target = yes; then
13490 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13491 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13492 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13495 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13496 # Extract the first word of "strip", so it can be a program name with args.
13497 set dummy strip; ac_word=$2
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499 $as_echo_n "checking for $ac_word... " >&6; }
13500 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 case $STRIP_FOR_TARGET in
13504 [\\/]* | ?:[\\/]*)
13505 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $gcc_cv_tool_dirs
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13519 done
13520 done
13521 IFS=$as_save_IFS
13524 esac
13526 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13527 if test -n "$STRIP_FOR_TARGET"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13529 $as_echo "$STRIP_FOR_TARGET" >&6; }
13530 else
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13537 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13540 if test -n "$STRIP_FOR_TARGET"; then
13541 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13542 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13543 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13546 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13547 for ncn_progname in strip; do
13548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13549 set dummy ${ncn_progname}; ac_word=$2
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551 $as_echo_n "checking for $ac_word... " >&6; }
13552 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 if test -n "$STRIP_FOR_TARGET"; then
13556 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13557 else
13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13565 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 break 2
13569 done
13570 done
13571 IFS=$as_save_IFS
13575 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13576 if test -n "$STRIP_FOR_TARGET"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13578 $as_echo "$STRIP_FOR_TARGET" >&6; }
13579 else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13585 done
13588 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13589 for ncn_progname in strip; do
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13591 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13592 if test -x $with_build_time_tools/${ncn_progname}; then
13593 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13595 $as_echo "yes" >&6; }
13596 break
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13601 done
13604 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13605 for ncn_progname in strip; do
13606 if test -n "$ncn_target_tool_prefix"; then
13607 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13608 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 $as_echo_n "checking for $ac_word... " >&6; }
13611 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 if test -n "$STRIP_FOR_TARGET"; then
13615 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13616 else
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13624 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13628 done
13629 done
13630 IFS=$as_save_IFS
13634 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13635 if test -n "$STRIP_FOR_TARGET"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13637 $as_echo "$STRIP_FOR_TARGET" >&6; }
13638 else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13645 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13647 set dummy ${ncn_progname}; ac_word=$2
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649 $as_echo_n "checking for $ac_word... " >&6; }
13650 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 if test -n "$STRIP_FOR_TARGET"; then
13654 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13655 else
13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657 for as_dir in $PATH
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13663 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 break 2
13667 done
13668 done
13669 IFS=$as_save_IFS
13673 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13674 if test -n "$STRIP_FOR_TARGET"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13676 $as_echo "$STRIP_FOR_TARGET" >&6; }
13677 else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13684 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13685 done
13688 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13689 set dummy strip
13690 if test $build = $target ; then
13691 STRIP_FOR_TARGET="$2"
13692 else
13693 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13695 else
13696 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13699 else
13700 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13706 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13707 if test -n "$with_build_time_tools"; then
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13709 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13710 if test -x $with_build_time_tools/windres; then
13711 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13712 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13714 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13719 elif test $build != $host && test $have_gcc_for_target = yes; then
13720 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13721 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13722 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13725 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13726 # Extract the first word of "windres", so it can be a program name with args.
13727 set dummy windres; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 case $WINDRES_FOR_TARGET in
13734 [\\/]* | ?:[\\/]*)
13735 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $gcc_cv_tool_dirs
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13745 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 break 2
13749 done
13750 done
13751 IFS=$as_save_IFS
13754 esac
13756 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13757 if test -n "$WINDRES_FOR_TARGET"; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13759 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13760 else
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 $as_echo "no" >&6; }
13767 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13770 if test -n "$WINDRES_FOR_TARGET"; then
13771 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13772 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13773 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13776 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13777 for ncn_progname in windres; do
13778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13779 set dummy ${ncn_progname}; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781 $as_echo_n "checking for $ac_word... " >&6; }
13782 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 if test -n "$WINDRES_FOR_TARGET"; then
13786 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13787 else
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 break 2
13799 done
13800 done
13801 IFS=$as_save_IFS
13805 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13806 if test -n "$WINDRES_FOR_TARGET"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13808 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13815 done
13818 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13819 for ncn_progname in windres; do
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13821 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13822 if test -x $with_build_time_tools/${ncn_progname}; then
13823 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13826 break
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13831 done
13834 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13835 for ncn_progname in windres; do
13836 if test -n "$ncn_target_tool_prefix"; then
13837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13838 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840 $as_echo_n "checking for $ac_word... " >&6; }
13841 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 if test -n "$WINDRES_FOR_TARGET"; then
13845 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13846 else
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13854 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13858 done
13859 done
13860 IFS=$as_save_IFS
13864 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13865 if test -n "$WINDRES_FOR_TARGET"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13867 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13868 else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13875 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13877 set dummy ${ncn_progname}; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879 $as_echo_n "checking for $ac_word... " >&6; }
13880 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 if test -n "$WINDRES_FOR_TARGET"; then
13884 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13885 else
13886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887 for as_dir in $PATH
13889 IFS=$as_save_IFS
13890 test -z "$as_dir" && as_dir=.
13891 for ac_exec_ext in '' $ac_executable_extensions; do
13892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13893 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13895 break 2
13897 done
13898 done
13899 IFS=$as_save_IFS
13903 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13904 if test -n "$WINDRES_FOR_TARGET"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13906 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13907 else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13914 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13915 done
13918 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13919 set dummy windres
13920 if test $build = $target ; then
13921 WINDRES_FOR_TARGET="$2"
13922 else
13923 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13925 else
13926 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13929 else
13930 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13936 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13937 if test -n "$with_build_time_tools"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13939 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13940 if test -x $with_build_time_tools/windmc; then
13941 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13942 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13944 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13949 elif test $build != $host && test $have_gcc_for_target = yes; then
13950 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13951 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13952 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13955 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13956 # Extract the first word of "windmc", so it can be a program name with args.
13957 set dummy windmc; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 case $WINDMC_FOR_TARGET in
13964 [\\/]* | ?:[\\/]*)
13965 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969 for as_dir in $gcc_cv_tool_dirs
13971 IFS=$as_save_IFS
13972 test -z "$as_dir" && as_dir=.
13973 for ac_exec_ext in '' $ac_executable_extensions; do
13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13975 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13977 break 2
13979 done
13980 done
13981 IFS=$as_save_IFS
13984 esac
13986 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13987 if test -n "$WINDMC_FOR_TARGET"; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13989 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13990 else
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13997 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14000 if test -n "$WINDMC_FOR_TARGET"; then
14001 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14002 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14003 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14006 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14007 for ncn_progname in windmc; do
14008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14009 set dummy ${ncn_progname}; ac_word=$2
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14011 $as_echo_n "checking for $ac_word... " >&6; }
14012 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 if test -n "$WINDMC_FOR_TARGET"; then
14016 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14017 else
14018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019 for as_dir in $PATH
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14025 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 break 2
14029 done
14030 done
14031 IFS=$as_save_IFS
14035 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14036 if test -n "$WINDMC_FOR_TARGET"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14038 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14039 else
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 $as_echo "no" >&6; }
14045 done
14048 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14049 for ncn_progname in windmc; do
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14051 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14052 if test -x $with_build_time_tools/${ncn_progname}; then
14053 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14055 $as_echo "yes" >&6; }
14056 break
14057 else
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059 $as_echo "no" >&6; }
14061 done
14064 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14065 for ncn_progname in windmc; do
14066 if test -n "$ncn_target_tool_prefix"; then
14067 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14068 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070 $as_echo_n "checking for $ac_word... " >&6; }
14071 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14072 $as_echo_n "(cached) " >&6
14073 else
14074 if test -n "$WINDMC_FOR_TARGET"; then
14075 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14076 else
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
14083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14084 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14086 break 2
14088 done
14089 done
14090 IFS=$as_save_IFS
14094 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14095 if test -n "$WINDMC_FOR_TARGET"; then
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14097 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14098 else
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100 $as_echo "no" >&6; }
14105 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14107 set dummy ${ncn_progname}; ac_word=$2
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109 $as_echo_n "checking for $ac_word... " >&6; }
14110 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 if test -n "$WINDMC_FOR_TARGET"; then
14114 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14115 else
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 break 2
14127 done
14128 done
14129 IFS=$as_save_IFS
14133 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14134 if test -n "$WINDMC_FOR_TARGET"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14136 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14137 else
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14144 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14145 done
14148 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14149 set dummy windmc
14150 if test $build = $target ; then
14151 WINDMC_FOR_TARGET="$2"
14152 else
14153 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14155 else
14156 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14159 else
14160 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14164 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14167 $as_echo_n "checking where to find the target ar... " >&6; }
14168 if test "x${build}" != "x${host}" ; then
14169 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
14171 ac_dir=`dirname $AR_FOR_TARGET`
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173 $as_echo "pre-installed in $ac_dir" >&6; }
14174 else
14175 # Canadian cross, just use what we found
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14177 $as_echo "pre-installed" >&6; }
14179 else
14180 ok=yes
14181 case " ${configdirs} " in
14182 *" binutils "*) ;;
14183 *) ok=no ;;
14184 esac
14186 if test $ok = yes; then
14187 # An in-tree tool is available and we can use it
14188 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14190 $as_echo "just compiled" >&6; }
14191 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14192 # We already found the complete path
14193 ac_dir=`dirname $AR_FOR_TARGET`
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14195 $as_echo "pre-installed in $ac_dir" >&6; }
14196 elif test "x$target" = "x$host"; then
14197 # We can use an host tool
14198 AR_FOR_TARGET='$(AR)'
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14200 $as_echo "host tool" >&6; }
14201 else
14202 # We need a cross tool
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14204 $as_echo "pre-installed" >&6; }
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14209 $as_echo_n "checking where to find the target as... " >&6; }
14210 if test "x${build}" != "x${host}" ; then
14211 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14212 # We already found the complete path
14213 ac_dir=`dirname $AS_FOR_TARGET`
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14215 $as_echo "pre-installed in $ac_dir" >&6; }
14216 else
14217 # Canadian cross, just use what we found
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14219 $as_echo "pre-installed" >&6; }
14221 else
14222 ok=yes
14223 case " ${configdirs} " in
14224 *" gas "*) ;;
14225 *) ok=no ;;
14226 esac
14228 if test $ok = yes; then
14229 # An in-tree tool is available and we can use it
14230 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14232 $as_echo "just compiled" >&6; }
14233 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14234 # We already found the complete path
14235 ac_dir=`dirname $AS_FOR_TARGET`
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14237 $as_echo "pre-installed in $ac_dir" >&6; }
14238 elif test "x$target" = "x$host"; then
14239 # We can use an host tool
14240 AS_FOR_TARGET='$(AS)'
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14242 $as_echo "host tool" >&6; }
14243 else
14244 # We need a cross tool
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14246 $as_echo "pre-installed" >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14251 $as_echo_n "checking where to find the target cc... " >&6; }
14252 if test "x${build}" != "x${host}" ; then
14253 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14254 # We already found the complete path
14255 ac_dir=`dirname $CC_FOR_TARGET`
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14257 $as_echo "pre-installed in $ac_dir" >&6; }
14258 else
14259 # Canadian cross, just use what we found
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14261 $as_echo "pre-installed" >&6; }
14263 else
14264 ok=yes
14265 case " ${configdirs} " in
14266 *" gcc "*) ;;
14267 *) ok=no ;;
14268 esac
14270 if test $ok = yes; then
14271 # An in-tree tool is available and we can use it
14272 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14274 $as_echo "just compiled" >&6; }
14275 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14276 # We already found the complete path
14277 ac_dir=`dirname $CC_FOR_TARGET`
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14279 $as_echo "pre-installed in $ac_dir" >&6; }
14280 elif test "x$target" = "x$host"; then
14281 # We can use an host tool
14282 CC_FOR_TARGET='$(CC)'
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14284 $as_echo "host tool" >&6; }
14285 else
14286 # We need a cross tool
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14288 $as_echo "pre-installed" >&6; }
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14293 $as_echo_n "checking where to find the target c++... " >&6; }
14294 if test "x${build}" != "x${host}" ; then
14295 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14296 # We already found the complete path
14297 ac_dir=`dirname $CXX_FOR_TARGET`
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14299 $as_echo "pre-installed in $ac_dir" >&6; }
14300 else
14301 # Canadian cross, just use what we found
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14303 $as_echo "pre-installed" >&6; }
14305 else
14306 ok=yes
14307 case " ${configdirs} " in
14308 *" gcc "*) ;;
14309 *) ok=no ;;
14310 esac
14311 case ,${enable_languages}, in
14312 *,c++,*) ;;
14313 *) ok=no ;;
14314 esac
14315 if test $ok = yes; then
14316 # An in-tree tool is available and we can use it
14317 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'
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14319 $as_echo "just compiled" >&6; }
14320 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14321 # We already found the complete path
14322 ac_dir=`dirname $CXX_FOR_TARGET`
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14324 $as_echo "pre-installed in $ac_dir" >&6; }
14325 elif test "x$target" = "x$host"; then
14326 # We can use an host tool
14327 CXX_FOR_TARGET='$(CXX)'
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14329 $as_echo "host tool" >&6; }
14330 else
14331 # We need a cross tool
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333 $as_echo "pre-installed" >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14338 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14339 if test "x${build}" != "x${host}" ; then
14340 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14341 # We already found the complete path
14342 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14344 $as_echo "pre-installed in $ac_dir" >&6; }
14345 else
14346 # Canadian cross, just use what we found
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14348 $as_echo "pre-installed" >&6; }
14350 else
14351 ok=yes
14352 case " ${configdirs} " in
14353 *" gcc "*) ;;
14354 *) ok=no ;;
14355 esac
14356 case ,${enable_languages}, in
14357 *,c++,*) ;;
14358 *) ok=no ;;
14359 esac
14360 if test $ok = yes; then
14361 # An in-tree tool is available and we can use it
14362 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'
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14364 $as_echo "just compiled" >&6; }
14365 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14366 # We already found the complete path
14367 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14369 $as_echo "pre-installed in $ac_dir" >&6; }
14370 elif test "x$target" = "x$host"; then
14371 # We can use an host tool
14372 RAW_CXX_FOR_TARGET='$(CXX)'
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14374 $as_echo "host tool" >&6; }
14375 else
14376 # We need a cross tool
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378 $as_echo "pre-installed" >&6; }
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14383 $as_echo_n "checking where to find the target dlltool... " >&6; }
14384 if test "x${build}" != "x${host}" ; then
14385 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14386 # We already found the complete path
14387 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14389 $as_echo "pre-installed in $ac_dir" >&6; }
14390 else
14391 # Canadian cross, just use what we found
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393 $as_echo "pre-installed" >&6; }
14395 else
14396 ok=yes
14397 case " ${configdirs} " in
14398 *" binutils "*) ;;
14399 *) ok=no ;;
14400 esac
14402 if test $ok = yes; then
14403 # An in-tree tool is available and we can use it
14404 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14406 $as_echo "just compiled" >&6; }
14407 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14408 # We already found the complete path
14409 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14411 $as_echo "pre-installed in $ac_dir" >&6; }
14412 elif test "x$target" = "x$host"; then
14413 # We can use an host tool
14414 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14416 $as_echo "host tool" >&6; }
14417 else
14418 # We need a cross tool
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14420 $as_echo "pre-installed" >&6; }
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14425 $as_echo_n "checking where to find the target gcc... " >&6; }
14426 if test "x${build}" != "x${host}" ; then
14427 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14428 # We already found the complete path
14429 ac_dir=`dirname $GCC_FOR_TARGET`
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14431 $as_echo "pre-installed in $ac_dir" >&6; }
14432 else
14433 # Canadian cross, just use what we found
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435 $as_echo "pre-installed" >&6; }
14437 else
14438 ok=yes
14439 case " ${configdirs} " in
14440 *" gcc "*) ;;
14441 *) ok=no ;;
14442 esac
14444 if test $ok = yes; then
14445 # An in-tree tool is available and we can use it
14446 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14448 $as_echo "just compiled" >&6; }
14449 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14450 # We already found the complete path
14451 ac_dir=`dirname $GCC_FOR_TARGET`
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14453 $as_echo "pre-installed in $ac_dir" >&6; }
14454 elif test "x$target" = "x$host"; then
14455 # We can use an host tool
14456 GCC_FOR_TARGET='$()'
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14458 $as_echo "host tool" >&6; }
14459 else
14460 # We need a cross tool
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14462 $as_echo "pre-installed" >&6; }
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14467 $as_echo_n "checking where to find the target gcj... " >&6; }
14468 if test "x${build}" != "x${host}" ; then
14469 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14470 # We already found the complete path
14471 ac_dir=`dirname $GCJ_FOR_TARGET`
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14473 $as_echo "pre-installed in $ac_dir" >&6; }
14474 else
14475 # Canadian cross, just use what we found
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477 $as_echo "pre-installed" >&6; }
14479 else
14480 ok=yes
14481 case " ${configdirs} " in
14482 *" gcc "*) ;;
14483 *) ok=no ;;
14484 esac
14485 case ,${enable_languages}, in
14486 *,java,*) ;;
14487 *) ok=no ;;
14488 esac
14489 if test $ok = yes; then
14490 # An in-tree tool is available and we can use it
14491 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14493 $as_echo "just compiled" >&6; }
14494 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14495 # We already found the complete path
14496 ac_dir=`dirname $GCJ_FOR_TARGET`
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14498 $as_echo "pre-installed in $ac_dir" >&6; }
14499 elif test "x$target" = "x$host"; then
14500 # We can use an host tool
14501 GCJ_FOR_TARGET='$(GCJ)'
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14503 $as_echo "host tool" >&6; }
14504 else
14505 # We need a cross tool
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14507 $as_echo "pre-installed" >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14512 $as_echo_n "checking where to find the target gfortran... " >&6; }
14513 if test "x${build}" != "x${host}" ; then
14514 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14515 # We already found the complete path
14516 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14518 $as_echo "pre-installed in $ac_dir" >&6; }
14519 else
14520 # Canadian cross, just use what we found
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522 $as_echo "pre-installed" >&6; }
14524 else
14525 ok=yes
14526 case " ${configdirs} " in
14527 *" gcc "*) ;;
14528 *) ok=no ;;
14529 esac
14530 case ,${enable_languages}, in
14531 *,fortran,*) ;;
14532 *) ok=no ;;
14533 esac
14534 if test $ok = yes; then
14535 # An in-tree tool is available and we can use it
14536 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14538 $as_echo "just compiled" >&6; }
14539 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14540 # We already found the complete path
14541 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14543 $as_echo "pre-installed in $ac_dir" >&6; }
14544 elif test "x$target" = "x$host"; then
14545 # We can use an host tool
14546 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14548 $as_echo "host tool" >&6; }
14549 else
14550 # We need a cross tool
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552 $as_echo "pre-installed" >&6; }
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14557 $as_echo_n "checking where to find the target gccgo... " >&6; }
14558 if test "x${build}" != "x${host}" ; then
14559 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14560 # We already found the complete path
14561 ac_dir=`dirname $GOC_FOR_TARGET`
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14563 $as_echo "pre-installed in $ac_dir" >&6; }
14564 else
14565 # Canadian cross, just use what we found
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567 $as_echo "pre-installed" >&6; }
14569 else
14570 ok=yes
14571 case " ${configdirs} " in
14572 *" gcc "*) ;;
14573 *) ok=no ;;
14574 esac
14575 case ,${enable_languages}, in
14576 *,go,*) ;;
14577 *) ok=no ;;
14578 esac
14579 if test $ok = yes; then
14580 # An in-tree tool is available and we can use it
14581 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14583 $as_echo "just compiled" >&6; }
14584 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14585 # We already found the complete path
14586 ac_dir=`dirname $GOC_FOR_TARGET`
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14588 $as_echo "pre-installed in $ac_dir" >&6; }
14589 elif test "x$target" = "x$host"; then
14590 # We can use an host tool
14591 GOC_FOR_TARGET='$(GOC)'
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14593 $as_echo "host tool" >&6; }
14594 else
14595 # We need a cross tool
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14597 $as_echo "pre-installed" >&6; }
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14602 $as_echo_n "checking where to find the target ld... " >&6; }
14603 if test "x${build}" != "x${host}" ; then
14604 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14605 # We already found the complete path
14606 ac_dir=`dirname $LD_FOR_TARGET`
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14608 $as_echo "pre-installed in $ac_dir" >&6; }
14609 else
14610 # Canadian cross, just use what we found
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14612 $as_echo "pre-installed" >&6; }
14614 else
14615 ok=yes
14616 case " ${configdirs} " in
14617 *" ld "*) ;;
14618 *) ok=no ;;
14619 esac
14621 if test $ok = yes; then
14622 # An in-tree tool is available and we can use it
14623 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14625 $as_echo "just compiled" >&6; }
14626 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14627 # We already found the complete path
14628 ac_dir=`dirname $LD_FOR_TARGET`
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14630 $as_echo "pre-installed in $ac_dir" >&6; }
14631 elif test "x$target" = "x$host"; then
14632 # We can use an host tool
14633 LD_FOR_TARGET='$(LD)'
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14635 $as_echo "host tool" >&6; }
14636 else
14637 # We need a cross tool
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14639 $as_echo "pre-installed" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14644 $as_echo_n "checking where to find the target lipo... " >&6; }
14645 if test "x${build}" != "x${host}" ; then
14646 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
14648 ac_dir=`dirname $LIPO_FOR_TARGET`
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650 $as_echo "pre-installed in $ac_dir" >&6; }
14651 else
14652 # Canadian cross, just use what we found
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14654 $as_echo "pre-installed" >&6; }
14656 else
14657 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
14659 ac_dir=`dirname $LIPO_FOR_TARGET`
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661 $as_echo "pre-installed in $ac_dir" >&6; }
14662 elif test "x$target" = "x$host"; then
14663 # We can use an host tool
14664 LIPO_FOR_TARGET='$(LIPO)'
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14666 $as_echo "host tool" >&6; }
14667 else
14668 # We need a cross tool
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14670 $as_echo "pre-installed" >&6; }
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14675 $as_echo_n "checking where to find the target nm... " >&6; }
14676 if test "x${build}" != "x${host}" ; then
14677 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
14679 ac_dir=`dirname $NM_FOR_TARGET`
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681 $as_echo "pre-installed in $ac_dir" >&6; }
14682 else
14683 # Canadian cross, just use what we found
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14685 $as_echo "pre-installed" >&6; }
14687 else
14688 ok=yes
14689 case " ${configdirs} " in
14690 *" binutils "*) ;;
14691 *) ok=no ;;
14692 esac
14694 if test $ok = yes; then
14695 # An in-tree tool is available and we can use it
14696 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14698 $as_echo "just compiled" >&6; }
14699 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14700 # We already found the complete path
14701 ac_dir=`dirname $NM_FOR_TARGET`
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14703 $as_echo "pre-installed in $ac_dir" >&6; }
14704 elif test "x$target" = "x$host"; then
14705 # We can use an host tool
14706 NM_FOR_TARGET='$(NM)'
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14708 $as_echo "host tool" >&6; }
14709 else
14710 # We need a cross tool
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14712 $as_echo "pre-installed" >&6; }
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14717 $as_echo_n "checking where to find the target objcopy... " >&6; }
14718 if test "x${build}" != "x${host}" ; then
14719 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
14721 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723 $as_echo "pre-installed in $ac_dir" >&6; }
14724 else
14725 # Canadian cross, just use what we found
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14727 $as_echo "pre-installed" >&6; }
14729 else
14730 ok=yes
14731 case " ${configdirs} " in
14732 *" binutils "*) ;;
14733 *) ok=no ;;
14734 esac
14736 if test $ok = yes; then
14737 # An in-tree tool is available and we can use it
14738 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14740 $as_echo "just compiled" >&6; }
14741 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14742 # We already found the complete path
14743 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14745 $as_echo "pre-installed in $ac_dir" >&6; }
14746 elif test "x$target" = "x$host"; then
14747 # We can use an host tool
14748 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14750 $as_echo "host tool" >&6; }
14751 else
14752 # We need a cross tool
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14754 $as_echo "pre-installed" >&6; }
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14759 $as_echo_n "checking where to find the target objdump... " >&6; }
14760 if test "x${build}" != "x${host}" ; then
14761 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14762 # We already found the complete path
14763 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14765 $as_echo "pre-installed in $ac_dir" >&6; }
14766 else
14767 # Canadian cross, just use what we found
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14769 $as_echo "pre-installed" >&6; }
14771 else
14772 ok=yes
14773 case " ${configdirs} " in
14774 *" binutils "*) ;;
14775 *) ok=no ;;
14776 esac
14778 if test $ok = yes; then
14779 # An in-tree tool is available and we can use it
14780 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14782 $as_echo "just compiled" >&6; }
14783 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14784 # We already found the complete path
14785 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14787 $as_echo "pre-installed in $ac_dir" >&6; }
14788 elif test "x$target" = "x$host"; then
14789 # We can use an host tool
14790 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14792 $as_echo "host tool" >&6; }
14793 else
14794 # We need a cross tool
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14796 $as_echo "pre-installed" >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14801 $as_echo_n "checking where to find the target ranlib... " >&6; }
14802 if test "x${build}" != "x${host}" ; then
14803 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14804 # We already found the complete path
14805 ac_dir=`dirname $RANLIB_FOR_TARGET`
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14807 $as_echo "pre-installed in $ac_dir" >&6; }
14808 else
14809 # Canadian cross, just use what we found
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14811 $as_echo "pre-installed" >&6; }
14813 else
14814 ok=yes
14815 case " ${configdirs} " in
14816 *" binutils "*) ;;
14817 *) ok=no ;;
14818 esac
14820 if test $ok = yes; then
14821 # An in-tree tool is available and we can use it
14822 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14824 $as_echo "just compiled" >&6; }
14825 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14826 # We already found the complete path
14827 ac_dir=`dirname $RANLIB_FOR_TARGET`
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14829 $as_echo "pre-installed in $ac_dir" >&6; }
14830 elif test "x$target" = "x$host"; then
14831 # We can use an host tool
14832 RANLIB_FOR_TARGET='$(RANLIB)'
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14834 $as_echo "host tool" >&6; }
14835 else
14836 # We need a cross tool
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14838 $as_echo "pre-installed" >&6; }
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14843 $as_echo_n "checking where to find the target readelf... " >&6; }
14844 if test "x${build}" != "x${host}" ; then
14845 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14846 # We already found the complete path
14847 ac_dir=`dirname $READELF_FOR_TARGET`
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14849 $as_echo "pre-installed in $ac_dir" >&6; }
14850 else
14851 # Canadian cross, just use what we found
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14853 $as_echo "pre-installed" >&6; }
14855 else
14856 ok=yes
14857 case " ${configdirs} " in
14858 *" binutils "*) ;;
14859 *) ok=no ;;
14860 esac
14862 if test $ok = yes; then
14863 # An in-tree tool is available and we can use it
14864 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14866 $as_echo "just compiled" >&6; }
14867 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14868 # We already found the complete path
14869 ac_dir=`dirname $READELF_FOR_TARGET`
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14871 $as_echo "pre-installed in $ac_dir" >&6; }
14872 elif test "x$target" = "x$host"; then
14873 # We can use an host tool
14874 READELF_FOR_TARGET='$(READELF)'
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14876 $as_echo "host tool" >&6; }
14877 else
14878 # We need a cross tool
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14880 $as_echo "pre-installed" >&6; }
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14885 $as_echo_n "checking where to find the target strip... " >&6; }
14886 if test "x${build}" != "x${host}" ; then
14887 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14888 # We already found the complete path
14889 ac_dir=`dirname $STRIP_FOR_TARGET`
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14891 $as_echo "pre-installed in $ac_dir" >&6; }
14892 else
14893 # Canadian cross, just use what we found
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14895 $as_echo "pre-installed" >&6; }
14897 else
14898 ok=yes
14899 case " ${configdirs} " in
14900 *" binutils "*) ;;
14901 *) ok=no ;;
14902 esac
14904 if test $ok = yes; then
14905 # An in-tree tool is available and we can use it
14906 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14908 $as_echo "just compiled" >&6; }
14909 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14910 # We already found the complete path
14911 ac_dir=`dirname $STRIP_FOR_TARGET`
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14913 $as_echo "pre-installed in $ac_dir" >&6; }
14914 elif test "x$target" = "x$host"; then
14915 # We can use an host tool
14916 STRIP_FOR_TARGET='$(STRIP)'
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14918 $as_echo "host tool" >&6; }
14919 else
14920 # We need a cross tool
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14922 $as_echo "pre-installed" >&6; }
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14927 $as_echo_n "checking where to find the target windres... " >&6; }
14928 if test "x${build}" != "x${host}" ; then
14929 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14930 # We already found the complete path
14931 ac_dir=`dirname $WINDRES_FOR_TARGET`
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14933 $as_echo "pre-installed in $ac_dir" >&6; }
14934 else
14935 # Canadian cross, just use what we found
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14937 $as_echo "pre-installed" >&6; }
14939 else
14940 ok=yes
14941 case " ${configdirs} " in
14942 *" binutils "*) ;;
14943 *) ok=no ;;
14944 esac
14946 if test $ok = yes; then
14947 # An in-tree tool is available and we can use it
14948 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14950 $as_echo "just compiled" >&6; }
14951 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14952 # We already found the complete path
14953 ac_dir=`dirname $WINDRES_FOR_TARGET`
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14955 $as_echo "pre-installed in $ac_dir" >&6; }
14956 elif test "x$target" = "x$host"; then
14957 # We can use an host tool
14958 WINDRES_FOR_TARGET='$(WINDRES)'
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14960 $as_echo "host tool" >&6; }
14961 else
14962 # We need a cross tool
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14964 $as_echo "pre-installed" >&6; }
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14969 $as_echo_n "checking where to find the target windmc... " >&6; }
14970 if test "x${build}" != "x${host}" ; then
14971 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14972 # We already found the complete path
14973 ac_dir=`dirname $WINDMC_FOR_TARGET`
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14975 $as_echo "pre-installed in $ac_dir" >&6; }
14976 else
14977 # Canadian cross, just use what we found
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14979 $as_echo "pre-installed" >&6; }
14981 else
14982 ok=yes
14983 case " ${configdirs} " in
14984 *" binutils "*) ;;
14985 *) ok=no ;;
14986 esac
14988 if test $ok = yes; then
14989 # An in-tree tool is available and we can use it
14990 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14992 $as_echo "just compiled" >&6; }
14993 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14994 # We already found the complete path
14995 ac_dir=`dirname $WINDMC_FOR_TARGET`
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14997 $as_echo "pre-installed in $ac_dir" >&6; }
14998 elif test "x$target" = "x$host"; then
14999 # We can use an host tool
15000 WINDMC_FOR_TARGET='$(WINDMC)'
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15002 $as_echo "host tool" >&6; }
15003 else
15004 # We need a cross tool
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15006 $as_echo "pre-installed" >&6; }
15014 # Certain tools may need extra flags.
15015 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15016 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15017 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15019 # When building target libraries, except in a Canadian cross, we use
15020 # the same toolchain as the compiler we just built.
15021 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15022 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15023 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15024 if test $host = $build; then
15025 case " $configdirs " in
15026 *" gcc "*)
15027 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15028 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15029 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15031 esac
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15039 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15040 # Check whether --enable-maintainer-mode was given.
15041 if test "${enable_maintainer_mode+set}" = set; then :
15042 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15043 else
15044 USE_MAINTAINER_MODE=no
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15048 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15051 if test "$USE_MAINTAINER_MODE" = yes; then
15052 MAINTAINER_MODE_TRUE=
15053 MAINTAINER_MODE_FALSE='#'
15054 else
15055 MAINTAINER_MODE_TRUE='#'
15056 MAINTAINER_MODE_FALSE=
15058 MAINT=$MAINTAINER_MODE_TRUE
15060 # ---------------------
15061 # GCC bootstrap support
15062 # ---------------------
15064 # Stage specific cflags for build.
15065 stage1_cflags="-g"
15066 case $build in
15067 vax-*-*)
15068 case ${GCC} in
15069 yes) stage1_cflags="-g -Wa,-J" ;;
15070 *) stage1_cflags="-g -J" ;;
15071 esac ;;
15072 esac
15076 # Enable --enable-checking in stage1 of the compiler.
15077 # Check whether --enable-stage1-checking was given.
15078 if test "${enable_stage1_checking+set}" = set; then :
15079 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15080 else
15081 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15082 # For --disable-checking or implicit --enable-checking=release, avoid
15083 # setting --enable-checking=gc in the default stage1 checking for LTO
15084 # bootstraps. See PR62077.
15085 case $BUILD_CONFIG in
15086 *lto*)
15087 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15089 stage1_checking=--enable-checking=yes,types;;
15090 esac
15091 if test "x$enable_checking" = x && \
15092 test -d ${srcdir}/gcc && \
15093 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15094 stage1_checking=--enable-checking=yes,types,extra
15096 else
15097 stage1_checking=--enable-checking=$enable_checking,types
15103 # Enable -Werror in bootstrap stage2 and later.
15104 # Check whether --enable-werror was given.
15105 if test "${enable_werror+set}" = set; then :
15106 enableval=$enable_werror;
15107 else
15108 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15109 enable_werror=yes
15110 else
15111 enable_werror=no
15115 case ${enable_werror} in
15116 yes) stage2_werror_flag="--enable-werror-always" ;;
15117 *) stage2_werror_flag="" ;;
15118 esac
15121 # Enable --enable-host-shared.
15122 # Check whether --enable-host-shared was given.
15123 if test "${enable_host_shared+set}" = set; then :
15124 enableval=$enable_host_shared; host_shared=$enableval
15125 else
15126 host_shared=no
15131 # PR jit/64780: Require the user to explicitly specify
15132 # --enable-host-shared if the jit is enabled, hinting
15133 # that they might want to do a separate configure/build of
15134 # the jit, to avoid users from slowing down the rest of the
15135 # compiler by enabling the jit.
15136 if test ${host_shared} = "no" ; then
15137 case "${enable_languages}" in
15138 *jit*)
15139 as_fn_error $? "
15140 Enabling language \"jit\" requires --enable-host-shared.
15142 --enable-host-shared typically slows the rest of the compiler down by
15143 a few %, so you must explicitly enable it.
15145 If you want to build both the jit and the regular compiler, it is often
15146 best to do this via two separate configure/builds, in separate
15147 directories, to avoid imposing the performance cost of
15148 --enable-host-shared on the regular compiler." "$LINENO" 5
15152 esac
15155 # Specify what files to not compare during bootstrap.
15157 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15158 case "$target" in
15159 hppa*64*-*-hpux*) ;;
15160 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
15161 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15162 esac
15165 ac_config_files="$ac_config_files Makefile"
15167 cat >confcache <<\_ACEOF
15168 # This file is a shell script that caches the results of configure
15169 # tests run on this system so they can be shared between configure
15170 # scripts and configure runs, see configure's option --config-cache.
15171 # It is not useful on other systems. If it contains results you don't
15172 # want to keep, you may remove or edit it.
15174 # config.status only pays attention to the cache file if you give it
15175 # the --recheck option to rerun configure.
15177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15179 # following values.
15181 _ACEOF
15183 # The following way of writing the cache mishandles newlines in values,
15184 # but we know of no workaround that is simple, portable, and efficient.
15185 # So, we kill variables containing newlines.
15186 # Ultrix sh set writes to stderr and can't be redirected directly,
15187 # and sets the high bit in the cache file unless we assign to the vars.
15189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15190 eval ac_val=\$$ac_var
15191 case $ac_val in #(
15192 *${as_nl}*)
15193 case $ac_var in #(
15194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15196 esac
15197 case $ac_var in #(
15198 _ | IFS | as_nl) ;; #(
15199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15200 *) { eval $ac_var=; unset $ac_var;} ;;
15201 esac ;;
15202 esac
15203 done
15205 (set) 2>&1 |
15206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15207 *${as_nl}ac_space=\ *)
15208 # `set' does not quote correctly, so add quotes: double-quote
15209 # substitution turns \\\\ into \\, and sed turns \\ into \.
15210 sed -n \
15211 "s/'/'\\\\''/g;
15212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15213 ;; #(
15215 # `set' quotes correctly as required by POSIX, so do not add quotes.
15216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15218 esac |
15219 sort
15221 sed '
15222 /^ac_cv_env_/b end
15223 t clear
15224 :clear
15225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15226 t end
15227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15228 :end' >>confcache
15229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15230 if test -w "$cache_file"; then
15231 if test "x$cache_file" != "x/dev/null"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15233 $as_echo "$as_me: updating cache $cache_file" >&6;}
15234 if test ! -f "$cache_file" || test -h "$cache_file"; then
15235 cat confcache >"$cache_file"
15236 else
15237 case $cache_file in #(
15238 */* | ?:*)
15239 mv -f confcache "$cache_file"$$ &&
15240 mv -f "$cache_file"$$ "$cache_file" ;; #(
15242 mv -f confcache "$cache_file" ;;
15243 esac
15246 else
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15251 rm -f confcache
15253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15254 # Let make expand exec_prefix.
15255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15257 # Transform confdefs.h into DEFS.
15258 # Protect against shell expansion while executing Makefile rules.
15259 # Protect against Makefile macro expansion.
15261 # If the first sed substitution is executed (which looks for macros that
15262 # take arguments), then branch to the quote section. Otherwise,
15263 # look for a macro that doesn't take arguments.
15264 ac_script='
15265 :mline
15266 /\\$/{
15268 s,\\\n,,
15269 b mline
15271 t clear
15272 :clear
15273 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15274 t quote
15275 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15276 t quote
15277 b any
15278 :quote
15279 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15280 s/\[/\\&/g
15281 s/\]/\\&/g
15282 s/\$/$$/g
15284 :any
15287 s/^\n//
15288 s/\n/ /g
15292 DEFS=`sed -n "$ac_script" confdefs.h`
15295 ac_libobjs=
15296 ac_ltlibobjs=
15298 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15299 # 1. Remove the extension, and $U if already installed.
15300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15301 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15303 # will be set to the directory where LIBOBJS objects are built.
15304 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15305 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15306 done
15307 LIBOBJS=$ac_libobjs
15309 LTLIBOBJS=$ac_ltlibobjs
15313 : "${CONFIG_STATUS=./config.status}"
15314 ac_write_fail=0
15315 ac_clean_files_save=$ac_clean_files
15316 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15318 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15319 as_write_fail=0
15320 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15321 #! $SHELL
15322 # Generated by $as_me.
15323 # Run this file to recreate the current configuration.
15324 # Compiler output produced by configure, useful for debugging
15325 # configure, is in config.log if it exists.
15327 debug=false
15328 ac_cs_recheck=false
15329 ac_cs_silent=false
15331 SHELL=\${CONFIG_SHELL-$SHELL}
15332 export SHELL
15333 _ASEOF
15334 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15335 ## -------------------- ##
15336 ## M4sh Initialization. ##
15337 ## -------------------- ##
15339 # Be more Bourne compatible
15340 DUALCASE=1; export DUALCASE # for MKS sh
15341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15342 emulate sh
15343 NULLCMD=:
15344 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15345 # is contrary to our usage. Disable this feature.
15346 alias -g '${1+"$@"}'='"$@"'
15347 setopt NO_GLOB_SUBST
15348 else
15349 case `(set -o) 2>/dev/null` in #(
15350 *posix*) :
15351 set -o posix ;; #(
15352 *) :
15354 esac
15358 as_nl='
15360 export as_nl
15361 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15362 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15364 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15365 # Prefer a ksh shell builtin over an external printf program on Solaris,
15366 # but without wasting forks for bash or zsh.
15367 if test -z "$BASH_VERSION$ZSH_VERSION" \
15368 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15369 as_echo='print -r --'
15370 as_echo_n='print -rn --'
15371 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15372 as_echo='printf %s\n'
15373 as_echo_n='printf %s'
15374 else
15375 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15376 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15377 as_echo_n='/usr/ucb/echo -n'
15378 else
15379 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15380 as_echo_n_body='eval
15381 arg=$1;
15382 case $arg in #(
15383 *"$as_nl"*)
15384 expr "X$arg" : "X\\(.*\\)$as_nl";
15385 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15386 esac;
15387 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15389 export as_echo_n_body
15390 as_echo_n='sh -c $as_echo_n_body as_echo'
15392 export as_echo_body
15393 as_echo='sh -c $as_echo_body as_echo'
15396 # The user is always right.
15397 if test "${PATH_SEPARATOR+set}" != set; then
15398 PATH_SEPARATOR=:
15399 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15400 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15401 PATH_SEPARATOR=';'
15406 # IFS
15407 # We need space, tab and new line, in precisely that order. Quoting is
15408 # there to prevent editors from complaining about space-tab.
15409 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15410 # splitting by setting IFS to empty value.)
15411 IFS=" "" $as_nl"
15413 # Find who we are. Look in the path if we contain no directory separator.
15414 as_myself=
15415 case $0 in #((
15416 *[\\/]* ) as_myself=$0 ;;
15417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH
15420 IFS=$as_save_IFS
15421 test -z "$as_dir" && as_dir=.
15422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15423 done
15424 IFS=$as_save_IFS
15427 esac
15428 # We did not find ourselves, most probably we were run as `sh COMMAND'
15429 # in which case we are not to be found in the path.
15430 if test "x$as_myself" = x; then
15431 as_myself=$0
15433 if test ! -f "$as_myself"; then
15434 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15435 exit 1
15438 # Unset variables that we do not need and which cause bugs (e.g. in
15439 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15440 # suppresses any "Segmentation fault" message there. '((' could
15441 # trigger a bug in pdksh 5.2.14.
15442 for as_var in BASH_ENV ENV MAIL MAILPATH
15443 do eval test x\${$as_var+set} = xset \
15444 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15445 done
15446 PS1='$ '
15447 PS2='> '
15448 PS4='+ '
15450 # NLS nuisances.
15451 LC_ALL=C
15452 export LC_ALL
15453 LANGUAGE=C
15454 export LANGUAGE
15456 # CDPATH.
15457 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15460 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15461 # ----------------------------------------
15462 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15463 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15464 # script with STATUS, using 1 if that was 0.
15465 as_fn_error ()
15467 as_status=$1; test $as_status -eq 0 && as_status=1
15468 if test "$4"; then
15469 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15470 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15472 $as_echo "$as_me: error: $2" >&2
15473 as_fn_exit $as_status
15474 } # as_fn_error
15477 # as_fn_set_status STATUS
15478 # -----------------------
15479 # Set $? to STATUS, without forking.
15480 as_fn_set_status ()
15482 return $1
15483 } # as_fn_set_status
15485 # as_fn_exit STATUS
15486 # -----------------
15487 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15488 as_fn_exit ()
15490 set +e
15491 as_fn_set_status $1
15492 exit $1
15493 } # as_fn_exit
15495 # as_fn_unset VAR
15496 # ---------------
15497 # Portably unset VAR.
15498 as_fn_unset ()
15500 { eval $1=; unset $1;}
15502 as_unset=as_fn_unset
15503 # as_fn_append VAR VALUE
15504 # ----------------------
15505 # Append the text in VALUE to the end of the definition contained in VAR. Take
15506 # advantage of any shell optimizations that allow amortized linear growth over
15507 # repeated appends, instead of the typical quadratic growth present in naive
15508 # implementations.
15509 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15510 eval 'as_fn_append ()
15512 eval $1+=\$2
15514 else
15515 as_fn_append ()
15517 eval $1=\$$1\$2
15519 fi # as_fn_append
15521 # as_fn_arith ARG...
15522 # ------------------
15523 # Perform arithmetic evaluation on the ARGs, and store the result in the
15524 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15525 # must be portable across $(()) and expr.
15526 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15527 eval 'as_fn_arith ()
15529 as_val=$(( $* ))
15531 else
15532 as_fn_arith ()
15534 as_val=`expr "$@" || test $? -eq 1`
15536 fi # as_fn_arith
15539 if expr a : '\(a\)' >/dev/null 2>&1 &&
15540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15541 as_expr=expr
15542 else
15543 as_expr=false
15546 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15547 as_basename=basename
15548 else
15549 as_basename=false
15552 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15553 as_dirname=dirname
15554 else
15555 as_dirname=false
15558 as_me=`$as_basename -- "$0" ||
15559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15560 X"$0" : 'X\(//\)$' \| \
15561 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15562 $as_echo X/"$0" |
15563 sed '/^.*\/\([^/][^/]*\)\/*$/{
15564 s//\1/
15567 /^X\/\(\/\/\)$/{
15568 s//\1/
15571 /^X\/\(\/\).*/{
15572 s//\1/
15575 s/.*/./; q'`
15577 # Avoid depending upon Character Ranges.
15578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15581 as_cr_digits='0123456789'
15582 as_cr_alnum=$as_cr_Letters$as_cr_digits
15584 ECHO_C= ECHO_N= ECHO_T=
15585 case `echo -n x` in #(((((
15586 -n*)
15587 case `echo 'xy\c'` in
15588 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15589 xy) ECHO_C='\c';;
15590 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15591 ECHO_T=' ';;
15592 esac;;
15594 ECHO_N='-n';;
15595 esac
15597 rm -f conf$$ conf$$.exe conf$$.file
15598 if test -d conf$$.dir; then
15599 rm -f conf$$.dir/conf$$.file
15600 else
15601 rm -f conf$$.dir
15602 mkdir conf$$.dir 2>/dev/null
15604 if (echo >conf$$.file) 2>/dev/null; then
15605 if ln -s conf$$.file conf$$ 2>/dev/null; then
15606 as_ln_s='ln -s'
15607 # ... but there are two gotchas:
15608 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15609 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15610 # In both cases, we have to default to `cp -pR'.
15611 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15612 as_ln_s='cp -pR'
15613 elif ln conf$$.file conf$$ 2>/dev/null; then
15614 as_ln_s=ln
15615 else
15616 as_ln_s='cp -pR'
15618 else
15619 as_ln_s='cp -pR'
15621 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15622 rmdir conf$$.dir 2>/dev/null
15625 # as_fn_mkdir_p
15626 # -------------
15627 # Create "$as_dir" as a directory, including parents if necessary.
15628 as_fn_mkdir_p ()
15631 case $as_dir in #(
15632 -*) as_dir=./$as_dir;;
15633 esac
15634 test -d "$as_dir" || eval $as_mkdir_p || {
15635 as_dirs=
15636 while :; do
15637 case $as_dir in #(
15638 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15639 *) as_qdir=$as_dir;;
15640 esac
15641 as_dirs="'$as_qdir' $as_dirs"
15642 as_dir=`$as_dirname -- "$as_dir" ||
15643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15644 X"$as_dir" : 'X\(//\)[^/]' \| \
15645 X"$as_dir" : 'X\(//\)$' \| \
15646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15647 $as_echo X"$as_dir" |
15648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15649 s//\1/
15652 /^X\(\/\/\)[^/].*/{
15653 s//\1/
15656 /^X\(\/\/\)$/{
15657 s//\1/
15660 /^X\(\/\).*/{
15661 s//\1/
15664 s/.*/./; q'`
15665 test -d "$as_dir" && break
15666 done
15667 test -z "$as_dirs" || eval "mkdir $as_dirs"
15668 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15671 } # as_fn_mkdir_p
15672 if mkdir -p . 2>/dev/null; then
15673 as_mkdir_p='mkdir -p "$as_dir"'
15674 else
15675 test -d ./-p && rmdir ./-p
15676 as_mkdir_p=false
15680 # as_fn_executable_p FILE
15681 # -----------------------
15682 # Test if FILE is an executable regular file.
15683 as_fn_executable_p ()
15685 test -f "$1" && test -x "$1"
15686 } # as_fn_executable_p
15687 as_test_x='test -x'
15688 as_executable_p=as_fn_executable_p
15690 # Sed expression to map a string onto a valid CPP name.
15691 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15693 # Sed expression to map a string onto a valid variable name.
15694 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15697 exec 6>&1
15698 ## ----------------------------------- ##
15699 ## Main body of $CONFIG_STATUS script. ##
15700 ## ----------------------------------- ##
15701 _ASEOF
15702 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 # Save the log message, to keep $0 and so on meaningful, and to
15706 # report actual input values of CONFIG_FILES etc. instead of their
15707 # values after options handling.
15708 ac_log="
15709 This file was extended by $as_me, which was
15710 generated by GNU Autoconf 2.69. Invocation command line was
15712 CONFIG_FILES = $CONFIG_FILES
15713 CONFIG_HEADERS = $CONFIG_HEADERS
15714 CONFIG_LINKS = $CONFIG_LINKS
15715 CONFIG_COMMANDS = $CONFIG_COMMANDS
15716 $ $0 $@
15718 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15721 _ACEOF
15723 case $ac_config_files in *"
15724 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15725 esac
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 # Files that config.status was made for.
15731 config_files="$ac_config_files"
15733 _ACEOF
15735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15736 ac_cs_usage="\
15737 \`$as_me' instantiates files and other configuration actions
15738 from templates according to the current configuration. Unless the files
15739 and actions are specified as TAGs, all are instantiated by default.
15741 Usage: $0 [OPTION]... [TAG]...
15743 -h, --help print this help, then exit
15744 -V, --version print version number and configuration settings, then exit
15745 --config print configuration, then exit
15746 -q, --quiet, --silent
15747 do not print progress messages
15748 -d, --debug don't remove temporary files
15749 --recheck update $as_me by reconfiguring in the same conditions
15750 --file=FILE[:TEMPLATE]
15751 instantiate the configuration file FILE
15753 Configuration files:
15754 $config_files
15756 Report bugs to the package provider."
15758 _ACEOF
15759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15760 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15761 ac_cs_version="\\
15762 config.status
15763 configured by $0, generated by GNU Autoconf 2.69,
15764 with options \\"\$ac_cs_config\\"
15766 Copyright (C) 2012 Free Software Foundation, Inc.
15767 This config.status script is free software; the Free Software Foundation
15768 gives unlimited permission to copy, distribute and modify it."
15770 ac_pwd='$ac_pwd'
15771 srcdir='$srcdir'
15772 INSTALL='$INSTALL'
15773 AWK='$AWK'
15774 test -n "\$AWK" || AWK=awk
15775 _ACEOF
15777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15778 # The default lists apply if the user does not specify any file.
15779 ac_need_defaults=:
15780 while test $# != 0
15782 case $1 in
15783 --*=?*)
15784 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15785 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15786 ac_shift=:
15788 --*=)
15789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15790 ac_optarg=
15791 ac_shift=:
15794 ac_option=$1
15795 ac_optarg=$2
15796 ac_shift=shift
15798 esac
15800 case $ac_option in
15801 # Handling of the options.
15802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15803 ac_cs_recheck=: ;;
15804 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15805 $as_echo "$ac_cs_version"; exit ;;
15806 --config | --confi | --conf | --con | --co | --c )
15807 $as_echo "$ac_cs_config"; exit ;;
15808 --debug | --debu | --deb | --de | --d | -d )
15809 debug=: ;;
15810 --file | --fil | --fi | --f )
15811 $ac_shift
15812 case $ac_optarg in
15813 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15814 '') as_fn_error $? "missing file argument" ;;
15815 esac
15816 as_fn_append CONFIG_FILES " '$ac_optarg'"
15817 ac_need_defaults=false;;
15818 --he | --h | --help | --hel | -h )
15819 $as_echo "$ac_cs_usage"; exit ;;
15820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15821 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15822 ac_cs_silent=: ;;
15824 # This is an error.
15825 -*) as_fn_error $? "unrecognized option: \`$1'
15826 Try \`$0 --help' for more information." ;;
15828 *) as_fn_append ac_config_targets " $1"
15829 ac_need_defaults=false ;;
15831 esac
15832 shift
15833 done
15835 ac_configure_extra_args=
15837 if $ac_cs_silent; then
15838 exec 6>/dev/null
15839 ac_configure_extra_args="$ac_configure_extra_args --silent"
15842 _ACEOF
15843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15844 if \$ac_cs_recheck; then
15845 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15846 shift
15847 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15848 CONFIG_SHELL='$SHELL'
15849 export CONFIG_SHELL
15850 exec "\$@"
15853 _ACEOF
15854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15855 exec 5>>config.log
15857 echo
15858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15859 ## Running $as_me. ##
15860 _ASBOX
15861 $as_echo "$ac_log"
15862 } >&5
15864 _ACEOF
15865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15867 # INIT-COMMANDS
15869 extrasub_build="$extrasub_build"
15870 extrasub_host="$extrasub_host"
15871 extrasub_target="$extrasub_target"
15873 _ACEOF
15875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15877 # Handling of arguments.
15878 for ac_config_target in $ac_config_targets
15880 case $ac_config_target in
15881 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15884 esac
15885 done
15888 # If the user did not use the arguments to specify the items to instantiate,
15889 # then the envvar interface is used. Set only those that are not.
15890 # We use the long form for the default assignment because of an extremely
15891 # bizarre bug on SunOS 4.1.3.
15892 if $ac_need_defaults; then
15893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15896 # Have a temporary directory for convenience. Make it in the build tree
15897 # simply because there is no reason against having it here, and in addition,
15898 # creating and moving files from /tmp can sometimes cause problems.
15899 # Hook for its removal unless debugging.
15900 # Note that there is a small window in which the directory will not be cleaned:
15901 # after its creation but before its name has been assigned to `$tmp'.
15902 $debug ||
15904 tmp= ac_tmp=
15905 trap 'exit_status=$?
15906 : "${ac_tmp:=$tmp}"
15907 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15909 trap 'as_fn_exit 1' 1 2 13 15
15911 # Create a (secure) tmp directory for tmp files.
15914 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15915 test -d "$tmp"
15916 } ||
15918 tmp=./conf$$-$RANDOM
15919 (umask 077 && mkdir "$tmp")
15920 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15921 ac_tmp=$tmp
15923 # Set up the scripts for CONFIG_FILES section.
15924 # No need to generate them if there are no CONFIG_FILES.
15925 # This happens for instance with `./config.status config.h'.
15926 if test -n "$CONFIG_FILES"; then
15928 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15929 ac_cs_awk_getline=:
15930 ac_cs_awk_pipe_init=
15931 ac_cs_awk_read_file='
15932 while ((getline aline < (F[key])) > 0)
15933 print(aline)
15934 close(F[key])'
15935 ac_cs_awk_pipe_fini=
15936 else
15937 ac_cs_awk_getline=false
15938 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15939 ac_cs_awk_read_file='
15940 print "|#_!!_#|"
15941 print "cat " F[key] " &&"
15942 '$ac_cs_awk_pipe_init
15943 # The final `:' finishes the AND list.
15944 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15946 ac_cr=`echo X | tr X '\015'`
15947 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15948 # But we know of no other shell where ac_cr would be empty at this
15949 # point, so we can use a bashism as a fallback.
15950 if test "x$ac_cr" = x; then
15951 eval ac_cr=\$\'\\r\'
15953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15955 ac_cs_awk_cr='\\r'
15956 else
15957 ac_cs_awk_cr=$ac_cr
15960 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15961 _ACEOF
15963 # Create commands to substitute file output variables.
15965 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15966 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15967 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15968 echo "_ACAWK" &&
15969 echo "_ACEOF"
15970 } >conf$$files.sh &&
15971 . ./conf$$files.sh ||
15972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15973 rm -f conf$$files.sh
15976 echo "cat >conf$$subs.awk <<_ACEOF" &&
15977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15978 echo "_ACEOF"
15979 } >conf$$subs.sh ||
15980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15982 ac_delim='%!_!# '
15983 for ac_last_try in false false false false false :; do
15984 . ./conf$$subs.sh ||
15985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15988 if test $ac_delim_n = $ac_delim_num; then
15989 break
15990 elif $ac_last_try; then
15991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15992 else
15993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15995 done
15996 rm -f conf$$subs.sh
15998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15999 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16000 _ACEOF
16001 sed -n '
16003 s/^/S["/; s/!.*/"]=/
16006 s/^[^!]*!//
16007 :repl
16008 t repl
16009 s/'"$ac_delim"'$//
16010 t delim
16013 s/\(.\{148\}\)..*/\1/
16014 t more1
16015 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16018 b repl
16019 :more1
16020 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16023 s/.\{148\}//
16024 t nl
16025 :delim
16027 s/\(.\{148\}\)..*/\1/
16028 t more2
16029 s/["\\]/\\&/g; s/^/"/; s/$/"/
16032 :more2
16033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16036 s/.\{148\}//
16037 t delim
16038 ' <conf$$subs.awk | sed '
16039 /^[^""]/{
16041 s/\n//
16043 ' >>$CONFIG_STATUS || ac_write_fail=1
16044 rm -f conf$$subs.awk
16045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16046 _ACAWK
16047 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16048 for (key in S) S_is_set[key] = 1
16049 FS = "\a"
16050 \$ac_cs_awk_pipe_init
16053 line = $ 0
16054 nfields = split(line, field, "@")
16055 substed = 0
16056 len = length(field[1])
16057 for (i = 2; i < nfields; i++) {
16058 key = field[i]
16059 keylen = length(key)
16060 if (S_is_set[key]) {
16061 value = S[key]
16062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16063 len += length(value) + length(field[++i])
16064 substed = 1
16065 } else
16066 len += 1 + keylen
16068 if (nfields == 3 && !substed) {
16069 key = field[2]
16070 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16071 \$ac_cs_awk_read_file
16072 next
16075 print line
16077 \$ac_cs_awk_pipe_fini
16078 _ACAWK
16079 _ACEOF
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16083 else
16085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16087 _ACEOF
16089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16091 # trailing colons and then remove the whole line if VPATH becomes empty
16092 # (actually we leave an empty line to preserve line numbers).
16093 if test "x$srcdir" = x.; then
16094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16096 s///
16097 s/^/:/
16098 s/[ ]*$/:/
16099 s/:\$(srcdir):/:/g
16100 s/:\${srcdir}:/:/g
16101 s/:@srcdir@:/:/g
16102 s/^:*//
16103 s/:*$//
16105 s/\(=[ ]*\).*/\1/
16107 s/\n//
16108 s/^[^=]*=[ ]*$//
16112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113 fi # test -n "$CONFIG_FILES"
16116 eval set X " :F $CONFIG_FILES "
16117 shift
16118 for ac_tag
16120 case $ac_tag in
16121 :[FHLC]) ac_mode=$ac_tag; continue;;
16122 esac
16123 case $ac_mode$ac_tag in
16124 :[FHL]*:*);;
16125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16126 :[FH]-) ac_tag=-:-;;
16127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16128 esac
16129 ac_save_IFS=$IFS
16130 IFS=:
16131 set x $ac_tag
16132 IFS=$ac_save_IFS
16133 shift
16134 ac_file=$1
16135 shift
16137 case $ac_mode in
16138 :L) ac_source=$1;;
16139 :[FH])
16140 ac_file_inputs=
16141 for ac_f
16143 case $ac_f in
16144 -) ac_f="$ac_tmp/stdin";;
16145 *) # Look for the file first in the build tree, then in the source tree
16146 # (if the path is not absolute). The absolute path cannot be DOS-style,
16147 # because $ac_f cannot contain `:'.
16148 test -f "$ac_f" ||
16149 case $ac_f in
16150 [\\/$]*) false;;
16151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16152 esac ||
16153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16154 esac
16155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16156 as_fn_append ac_file_inputs " '$ac_f'"
16157 done
16159 # Let's still pretend it is `configure' which instantiates (i.e., don't
16160 # use $as_me), people would be surprised to read:
16161 # /* config.h. Generated by config.status. */
16162 configure_input='Generated from '`
16163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16164 `' by configure.'
16165 if test x"$ac_file" != x-; then
16166 configure_input="$ac_file. $configure_input"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16168 $as_echo "$as_me: creating $ac_file" >&6;}
16170 # Neutralize special characters interpreted by sed in replacement strings.
16171 case $configure_input in #(
16172 *\&* | *\|* | *\\* )
16173 ac_sed_conf_input=`$as_echo "$configure_input" |
16174 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16175 *) ac_sed_conf_input=$configure_input;;
16176 esac
16178 case $ac_tag in
16179 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16181 esac
16183 esac
16185 ac_dir=`$as_dirname -- "$ac_file" ||
16186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16187 X"$ac_file" : 'X\(//\)[^/]' \| \
16188 X"$ac_file" : 'X\(//\)$' \| \
16189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16190 $as_echo X"$ac_file" |
16191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16192 s//\1/
16195 /^X\(\/\/\)[^/].*/{
16196 s//\1/
16199 /^X\(\/\/\)$/{
16200 s//\1/
16203 /^X\(\/\).*/{
16204 s//\1/
16207 s/.*/./; q'`
16208 as_dir="$ac_dir"; as_fn_mkdir_p
16209 ac_builddir=.
16211 case "$ac_dir" in
16212 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16215 # A ".." for each directory in $ac_dir_suffix.
16216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16217 case $ac_top_builddir_sub in
16218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16220 esac ;;
16221 esac
16222 ac_abs_top_builddir=$ac_pwd
16223 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16224 # for backward compatibility:
16225 ac_top_builddir=$ac_top_build_prefix
16227 case $srcdir in
16228 .) # We are building in place.
16229 ac_srcdir=.
16230 ac_top_srcdir=$ac_top_builddir_sub
16231 ac_abs_top_srcdir=$ac_pwd ;;
16232 [\\/]* | ?:[\\/]* ) # Absolute name.
16233 ac_srcdir=$srcdir$ac_dir_suffix;
16234 ac_top_srcdir=$srcdir
16235 ac_abs_top_srcdir=$srcdir ;;
16236 *) # Relative name.
16237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16238 ac_top_srcdir=$ac_top_build_prefix$srcdir
16239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16240 esac
16241 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16244 case $ac_mode in
16247 # CONFIG_FILE
16250 case $INSTALL in
16251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16253 esac
16254 _ACEOF
16256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16257 # If the template does not know about datarootdir, expand it.
16258 # FIXME: This hack should be removed a few years after 2.60.
16259 ac_datarootdir_hack=; ac_datarootdir_seen=
16260 ac_sed_dataroot='
16261 /datarootdir/ {
16265 /@datadir@/p
16266 /@docdir@/p
16267 /@infodir@/p
16268 /@localedir@/p
16269 /@mandir@/p'
16270 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16271 *datarootdir*) ac_datarootdir_seen=yes;;
16272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16274 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16275 _ACEOF
16276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16277 ac_datarootdir_hack='
16278 s&@datadir@&$datadir&g
16279 s&@docdir@&$docdir&g
16280 s&@infodir@&$infodir&g
16281 s&@localedir@&$localedir&g
16282 s&@mandir@&$mandir&g
16283 s&\\\${datarootdir}&$datarootdir&g' ;;
16284 esac
16285 _ACEOF
16287 # Neutralize VPATH when `$srcdir' = `.'.
16288 # Shell code in configure.ac might set extrasub.
16289 # FIXME: do we really want to maintain this feature?
16290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16291 ac_sed_extra="$ac_vpsub
16292 $extrasub
16293 _ACEOF
16294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16297 s|@configure_input@|$ac_sed_conf_input|;t t
16298 s&@top_builddir@&$ac_top_builddir_sub&;t t
16299 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16300 s&@srcdir@&$ac_srcdir&;t t
16301 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16302 s&@top_srcdir@&$ac_top_srcdir&;t t
16303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16304 s&@builddir@&$ac_builddir&;t t
16305 s&@abs_builddir@&$ac_abs_builddir&;t t
16306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16307 s&@INSTALL@&$ac_INSTALL&;t t
16308 $ac_datarootdir_hack
16310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16311 if $ac_cs_awk_getline; then
16312 $AWK -f "$ac_tmp/subs.awk"
16313 else
16314 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16315 fi \
16316 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16318 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16319 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16320 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16321 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16323 which seems to be undefined. Please make sure it is defined" >&5
16324 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16325 which seems to be undefined. Please make sure it is defined" >&2;}
16327 rm -f "$ac_tmp/stdin"
16328 case $ac_file in
16329 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16330 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16331 esac \
16332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16337 esac
16340 case $ac_file$ac_mode in
16341 "Makefile":F) sed "$extrasub_build" Makefile |
16342 sed "$extrasub_host" |
16343 sed "$extrasub_target" > mf$$
16344 mv -f mf$$ Makefile ;;
16346 esac
16347 done # for ac_tag
16350 as_fn_exit 0
16351 _ACEOF
16352 ac_clean_files=$ac_clean_files_save
16354 test $ac_write_fail = 0 ||
16355 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16358 # configure is writing to config.log, and then calls config.status.
16359 # config.status does its own redirection, appending to config.log.
16360 # Unfortunately, on DOS this fails, as config.log is still kept open
16361 # by configure, so config.status won't be able to write to it; its
16362 # output is simply discarded. So we exec the FD to /dev/null,
16363 # effectively closing config.log, so it can be properly (re)opened and
16364 # appended to by config.status. When coming back to configure, we
16365 # need to make the FD available again.
16366 if test "$no_create" != yes; then
16367 ac_cs_success=:
16368 ac_config_status_args=
16369 test "$silent" = yes &&
16370 ac_config_status_args="$ac_config_status_args --quiet"
16371 exec 5>/dev/null
16372 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16373 exec 5>>config.log
16374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16375 # would make configure fail if this is the last instruction.
16376 $ac_cs_success || as_fn_exit 1
16378 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16380 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}