GCC: Pass --plugin to AR and RANLIB
[deliverable/binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
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
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
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
225 fi
226 fi
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
236
237
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
258 fi
259
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."
271 fi
272 exit 1
273 fi
274 fi
275 fi
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
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
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 ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
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/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
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"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
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 ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
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 ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
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 ()
409 {
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
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
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
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
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
436 fi
437
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/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
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
463
464
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 '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
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; }
487
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
498 }
499
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;;
509 *)
510 ECHO_N='-n';;
511 esac
512
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
519 fi
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'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
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
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
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'"
552
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'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
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`
564
565 #
566 # Initializations.
567 #
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=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 RANLIB_PLUGIN_OPTION
620 AR_PLUGIN_OPTION
621 READELF
622 OBJDUMP
623 OBJCOPY
624 WINDMC
625 WINDRES
626 STRIP
627 RANLIB
628 NM
629 LIPO
630 LD
631 DLLTOOL
632 AS
633 AR
634 RUNTEST
635 EXPECT
636 MAKEINFO
637 FLEX
638 LEX
639 M4
640 BISON
641 YACC
642 WINDRES_FOR_BUILD
643 WINDMC_FOR_BUILD
644 RANLIB_FOR_BUILD
645 NM_FOR_BUILD
646 LD_FOR_BUILD
647 LDFLAGS_FOR_BUILD
648 GOC_FOR_BUILD
649 GFORTRAN_FOR_BUILD
650 DLLTOOL_FOR_BUILD
651 CXX_FOR_BUILD
652 CXXFLAGS_FOR_BUILD
653 CFLAGS_FOR_BUILD
654 CC_FOR_BUILD
655 AS_FOR_BUILD
656 AR_FOR_BUILD
657 target_configdirs
658 configdirs
659 build_configdirs
660 INSTALL_GDB_TK
661 GDB_TK
662 CONFIGURE_GDB_TK
663 build_tooldir
664 tooldir
665 GCC_SHLIB_SUBDIR
666 RPATH_ENVVAR
667 target_configargs
668 host_configargs
669 build_configargs
670 BUILD_CONFIG
671 LDFLAGS_FOR_TARGET
672 CXXFLAGS_FOR_TARGET
673 CFLAGS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
676 get_gcc_base_ver
677 extra_host_zlib_configure_flags
678 extra_host_libiberty_configure_flags
679 stage1_languages
680 host_shared
681 extra_linker_plugin_flags
682 extra_linker_plugin_configure_flags
683 islinc
684 isllibs
685 poststage1_ldflags
686 poststage1_libs
687 stage1_ldflags
688 stage1_libs
689 extra_isl_gmp_configure_flags
690 extra_mpc_mpfr_configure_flags
691 extra_mpc_gmp_configure_flags
692 extra_mpfr_configure_flags
693 gmpinc
694 gmplibs
695 do_compare
696 GNATMAKE
697 GNATBIND
698 ac_ct_CXX
699 CXXFLAGS
700 CXX
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 extra_liboffloadmic_configure_flags
709 target_subdir
710 host_subdir
711 build_subdir
712 build_libsubdir
713 AWK
714 SED
715 LN_S
716 LN
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_os
721 target_vendor
722 target_cpu
723 target
724 host_os
725 host_vendor
726 host_cpu
727 host
728 target_noncanonical
729 host_noncanonical
730 build_noncanonical
731 build_os
732 build_vendor
733 build_cpu
734 build
735 TOPLEVEL_CONFIGURE_ARGUMENTS
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files='serialization_dependencies
775 host_makefile_frag
776 target_makefile_frag
777 alphaieee_frag
778 ospace_frag'
779 ac_user_opts='
780 enable_option_checking
781 with_build_libsubdir
782 with_system_zlib
783 enable_as_accelerator_for
784 enable_offload_targets
785 enable_gold
786 enable_ld
787 enable_compressed_debug_sections
788 enable_libquadmath
789 enable_libquadmath_support
790 enable_libada
791 enable_libssp
792 enable_libstdcxx
793 enable_liboffloadmic
794 enable_bootstrap
795 with_mpc
796 with_mpc_include
797 with_mpc_lib
798 with_mpfr_dir
799 with_mpfr
800 with_mpfr_include
801 with_mpfr_lib
802 with_gmp_dir
803 with_gmp
804 with_gmp_include
805 with_gmp_lib
806 with_stage1_libs
807 with_static_standard_libraries
808 with_stage1_ldflags
809 with_boot_libs
810 with_boot_ldflags
811 with_isl
812 with_isl_include
813 with_isl_lib
814 enable_isl_version_check
815 enable_lto
816 enable_linker_plugin_configure_flags
817 enable_linker_plugin_flags
818 enable_host_shared
819 enable_stage1_languages
820 enable_objc_gc
821 with_target_bdw_gc
822 with_target_bdw_gc_include
823 with_target_bdw_gc_lib
824 with_gcc_major_version_only
825 with_build_sysroot
826 with_debug_prefix_map
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 '
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 CXX
844 CXXFLAGS
845 CCC
846 build_configargs
847 host_configargs
848 target_configargs
849 AR
850 AS
851 DLLTOOL
852 LD
853 LIPO
854 NM
855 RANLIB
856 STRIP
857 WINDRES
858 WINDMC
859 OBJCOPY
860 OBJDUMP
861 READELF
862 CC_FOR_TARGET
863 CXX_FOR_TARGET
864 GCC_FOR_TARGET
865 GFORTRAN_FOR_TARGET
866 GOC_FOR_TARGET
867 AR_FOR_TARGET
868 AS_FOR_TARGET
869 DLLTOOL_FOR_TARGET
870 LD_FOR_TARGET
871 LIPO_FOR_TARGET
872 NM_FOR_TARGET
873 OBJCOPY_FOR_TARGET
874 OBJDUMP_FOR_TARGET
875 RANLIB_FOR_TARGET
876 READELF_FOR_TARGET
877 STRIP_FOR_TARGET
878 WINDRES_FOR_TARGET
879 WINDMC_FOR_TARGET'
880
881
882 # Initialize some variables set by options.
883 ac_init_help=
884 ac_init_version=false
885 ac_unrecognized_opts=
886 ac_unrecognized_sep=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
889 cache_file=/dev/null
890 exec_prefix=NONE
891 no_create=
892 no_recursion=
893 prefix=NONE
894 program_prefix=NONE
895 program_suffix=NONE
896 program_transform_name=s,x,x,
897 silent=
898 site=
899 srcdir=
900 verbose=
901 x_includes=NONE
902 x_libraries=NONE
903
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
929
930 ac_prev=
931 ac_dashdash=
932 for ac_option
933 do
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
937 ac_prev=
938 continue
939 fi
940
941 case $ac_option in
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *=) ac_optarg= ;;
944 *) ac_optarg=yes ;;
945 esac
946
947 # Accept the important Cygnus configure options, so we can diagnose typos.
948
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
957
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
972
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
977
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1010
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information"
1267 ;;
1268
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 ;;
1286
1287 esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error $? "missing argument to $ac_option"
1293 fi
1294
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301 fi
1302
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1308 do
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1323
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $? "working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $? "pwd does not report name of working directory"
1352
1353
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
1381 srcdir=$ac_confdir
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 srcdir=..
1384 fi
1385 else
1386 ac_srcdir_defaulted=no
1387 fi
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391 fi
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395 pwd)`
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399 fi
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1403 case $srcdir in
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 esac
1406 case $srcdir in
1407 *" "*)
1408 as_fn_error $? "path to source, $srcdir, contains spaces"
1409 ;;
1410 esac
1411 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1412
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures this package to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1481
1482 cat <<\_ACEOF
1483
1484 Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497
1498 cat <<\_ACEOF
1499
1500 Optional Features:
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-as-accelerator-for=ARG
1505 build as offload target compiler. Specify offload
1506 host triple by ARG
1507 --enable-offload-targets=LIST
1508 enable offloading to devices from comma-separated
1509 LIST of TARGET[=DIR]. Use optional path to find
1510 offload target compiler during the build
1511 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1512 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1513 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1514 Enable compressed debug sections for gas, gold or ld
1515 by default
1516 --disable-libquadmath do not build libquadmath directory
1517 --disable-libquadmath-support
1518 disable libquadmath support for Fortran
1519 --enable-libada build libada directory
1520 --enable-libssp build libssp directory
1521 --disable-libstdcxx do not build libstdc++-v3 directory
1522 --enable-liboffloadmic=ARG
1523 build liboffloadmic [ARG={no,host,target}]
1524 --enable-bootstrap enable bootstrapping [yes if native build]
1525 --disable-isl-version-check
1526 disable check for isl version
1527 --enable-lto enable link time optimization support
1528 --enable-linker-plugin-configure-flags=FLAGS
1529 additional flags for configuring linker plugins
1530 [none]
1531 --enable-linker-plugin-flags=FLAGS
1532 additional flags for configuring and building linker
1533 plugins [none]
1534 --enable-host-shared build host code as shared libraries
1535 --enable-stage1-languages[=all]
1536 choose additional languages to build during stage1.
1537 Mostly useful for compiler development
1538 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1539 Objective-C runtime
1540 --enable-vtable-verify Enable vtable verification feature
1541 --enable-serial-[{host,target,build}-]configure
1542 force sequential configuration of sub-packages for
1543 the host, target or build machine, or all
1544 sub-packages
1545 --enable-maintainer-mode
1546 enable make rules and dependencies not useful (and
1547 sometimes confusing) to the casual installer
1548 --enable-stage1-checking[=all]
1549 choose additional checking for stage1 of the
1550 compiler
1551 --enable-werror enable -Werror in bootstrap stage2 and later
1552
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-build-libsubdir=DIR Directory where to find libraries for build system
1557 --with-system-zlib use installed libz
1558 --with-mpc=PATH specify prefix directory for installed MPC package.
1559 Equivalent to --with-mpc-include=PATH/include plus
1560 --with-mpc-lib=PATH/lib
1561 --with-mpc-include=PATH specify directory for installed MPC include files
1562 --with-mpc-lib=PATH specify directory for the installed MPC library
1563 --with-mpfr-dir=PATH this option has been REMOVED
1564 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1565 Equivalent to --with-mpfr-include=PATH/include plus
1566 --with-mpfr-lib=PATH/lib
1567 --with-mpfr-include=PATH
1568 specify directory for installed MPFR include files
1569 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1570 --with-gmp-dir=PATH this option has been REMOVED
1571 --with-gmp=PATH specify prefix directory for the installed GMP
1572 package. Equivalent to
1573 --with-gmp-include=PATH/include plus
1574 --with-gmp-lib=PATH/lib
1575 --with-gmp-include=PATH specify directory for installed GMP include files
1576 --with-gmp-lib=PATH specify directory for the installed GMP library
1577 --with-stage1-libs=LIBS libraries for stage1
1578 --with-static-standard-libraries
1579 use -static-libstdc++ and -static-libgcc
1580 (default=auto)
1581 --with-stage1-ldflags=FLAGS
1582 linker flags for stage1
1583 --with-boot-libs=LIBS libraries for stage2 and later
1584 --with-boot-ldflags=FLAGS
1585 linker flags for stage2 and later
1586 --with-isl=PATH Specify prefix directory for the installed isl
1587 package. Equivalent to
1588 --with-isl-include=PATH/include plus
1589 --with-isl-lib=PATH/lib
1590 --with-isl-include=PATH Specify directory for installed isl include files
1591 --with-isl-lib=PATH Specify the directory for the installed isl library
1592 --with-target-bdw-gc=PATHLIST
1593 specify prefix directory for installed bdw-gc
1594 package. Equivalent to
1595 --with-target-bdw-gc-include=PATH/include plus
1596 --with-target-bdw-gc-lib=PATH/lib
1597 --with-target-bdw-gc-include=PATHLIST
1598 specify directories for installed bdw-gc include
1599 files
1600 --with-target-bdw-gc-lib=PATHLIST
1601 specify directories for installed bdw-gc library
1602 --with-gcc-major-version-only
1603 use only GCC major number in filesystem paths
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-build-config='NAME NAME2...'
1609 use config/NAME.mk build configuration
1610 --with-build-time-tools=PATH
1611 use given path to find target tools during the build
1612
1613 Some influential environment variables:
1614 CC C compiler command
1615 CFLAGS C compiler flags
1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1617 nonstandard directory <lib dir>
1618 LIBS libraries to pass to the linker, e.g. -l<library>
1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1621 CXX C++ compiler command
1622 CXXFLAGS C++ compiler flags
1623 build_configargs
1624 additional configure arguments for build directories
1625 host_configargs
1626 additional configure arguments for host directories
1627 target_configargs
1628 additional configure arguments for target directories
1629 AR AR for the host
1630 AS AS for the host
1631 DLLTOOL DLLTOOL for the host
1632 LD LD for the host
1633 LIPO LIPO for the host
1634 NM NM for the host
1635 RANLIB RANLIB for the host
1636 STRIP STRIP for the host
1637 WINDRES WINDRES for the host
1638 WINDMC WINDMC for the host
1639 OBJCOPY OBJCOPY for the host
1640 OBJDUMP OBJDUMP for the host
1641 READELF READELF for the host
1642 CC_FOR_TARGET
1643 CC for the target
1644 CXX_FOR_TARGET
1645 CXX for the target
1646 GCC_FOR_TARGET
1647 GCC for the target
1648 GFORTRAN_FOR_TARGET
1649 GFORTRAN for the target
1650 GOC_FOR_TARGET
1651 GOC for the target
1652 AR_FOR_TARGET
1653 AR for the target
1654 AS_FOR_TARGET
1655 AS for the target
1656 DLLTOOL_FOR_TARGET
1657 DLLTOOL for the target
1658 LD_FOR_TARGET
1659 LD for the target
1660 LIPO_FOR_TARGET
1661 LIPO for the target
1662 NM_FOR_TARGET
1663 NM for the target
1664 OBJCOPY_FOR_TARGET
1665 OBJCOPY for the target
1666 OBJDUMP_FOR_TARGET
1667 OBJDUMP for the target
1668 RANLIB_FOR_TARGET
1669 RANLIB for the target
1670 READELF_FOR_TARGET
1671 READELF for the target
1672 STRIP_FOR_TARGET
1673 STRIP for the target
1674 WINDRES_FOR_TARGET
1675 WINDRES for the target
1676 WINDMC_FOR_TARGET
1677 WINDMC for the target
1678
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1681
1682 Report bugs to the package provider.
1683 _ACEOF
1684 ac_status=$?
1685 fi
1686
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692 continue
1693 ac_builddir=.
1694
1695 case "$ac_dir" in
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *)
1698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704 esac ;;
1705 esac
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1710
1711 case $srcdir in
1712 .) # We are building in place.
1713 ac_srcdir=.
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
1717 ac_srcdir=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1720 *) # Relative name.
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 esac
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726
1727 cd "$ac_dir" || { ac_status=$?; continue; }
1728 # Check for guested configure.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1735 else
1736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 fi || ac_status=$?
1738 cd "$ac_pwd" || { ac_status=$?; break; }
1739 done
1740 fi
1741
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1744 cat <<\_ACEOF
1745 configure
1746 generated by GNU Autoconf 2.69
1747
1748 Copyright (C) 2012 Free Software Foundation, Inc.
1749 This configure script is free software; the Free Software Foundation
1750 gives unlimited permission to copy, distribute and modify it.
1751 _ACEOF
1752 exit
1753 fi
1754
1755 ## ------------------------ ##
1756 ## Autoconf initialization. ##
1757 ## ------------------------ ##
1758
1759 # ac_fn_c_try_compile LINENO
1760 # --------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_compile ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext
1766 if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_compile
1796
1797 # ac_fn_cxx_try_compile LINENO
1798 # ----------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829 fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_cxx_try_compile
1834
1835 # ac_fn_cxx_try_link LINENO
1836 # -------------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_cxx_try_link ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1855 fi
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_cxx_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 test -x conftest$ac_exeext
1863 }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 ac_retval=1
1870 fi
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879 } # ac_fn_cxx_try_link
1880
1881 # ac_fn_c_try_link LINENO
1882 # -----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_link ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1
1916 fi
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_c_try_link
1926 cat >config.log <<_ACEOF
1927 This file contains any messages produced by compilers while
1928 running configure, to aid debugging if configure makes a mistake.
1929
1930 It was created by $as_me, which was
1931 generated by GNU Autoconf 2.69. Invocation command line was
1932
1933 $ $0 $@
1934
1935 _ACEOF
1936 exec 5>>config.log
1937 {
1938 cat <<_ASUNAME
1939 ## --------- ##
1940 ## Platform. ##
1941 ## --------- ##
1942
1943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1948
1949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1950 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1951
1952 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1953 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1955 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1956 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1957 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1958 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1959
1960 _ASUNAME
1961
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 $as_echo "PATH: $as_dir"
1968 done
1969 IFS=$as_save_IFS
1970
1971 } >&5
1972
1973 cat >&5 <<_ACEOF
1974
1975
1976 ## ----------- ##
1977 ## Core tests. ##
1978 ## ----------- ##
1979
1980 _ACEOF
1981
1982
1983 # Keep a trace of the command line.
1984 # Strip out --no-create and --no-recursion so they do not pile up.
1985 # Strip out --silent because we don't want to record it for future runs.
1986 # Also quote any args containing shell meta-characters.
1987 # Make two passes to allow for proper duplicate-argument suppression.
1988 ac_configure_args=
1989 ac_configure_args0=
1990 ac_configure_args1=
1991 ac_must_keep_next=false
1992 for ac_pass in 1 2
1993 do
1994 for ac_arg
1995 do
1996 case $ac_arg in
1997 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1999 | -silent | --silent | --silen | --sile | --sil)
2000 continue ;;
2001 *\'*)
2002 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2003 esac
2004 case $ac_pass in
2005 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2006 2)
2007 as_fn_append ac_configure_args1 " '$ac_arg'"
2008 if test $ac_must_keep_next = true; then
2009 ac_must_keep_next=false # Got value, back to normal.
2010 else
2011 case $ac_arg in
2012 *=* | --config-cache | -C | -disable-* | --disable-* \
2013 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2014 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2015 | -with-* | --with-* | -without-* | --without-* | --x)
2016 case "$ac_configure_args0 " in
2017 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2018 esac
2019 ;;
2020 -* ) ac_must_keep_next=true ;;
2021 esac
2022 fi
2023 as_fn_append ac_configure_args " '$ac_arg'"
2024 ;;
2025 esac
2026 done
2027 done
2028 { ac_configure_args0=; unset ac_configure_args0;}
2029 { ac_configure_args1=; unset ac_configure_args1;}
2030
2031 # When interrupted or exit'd, cleanup temporary files, and complete
2032 # config.log. We remove comments because anyway the quotes in there
2033 # would cause problems or look ugly.
2034 # WARNING: Use '\'' to represent an apostrophe within the trap.
2035 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2036 trap 'exit_status=$?
2037 # Save into config.log some information that might help in debugging.
2038 {
2039 echo
2040
2041 $as_echo "## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##"
2044 echo
2045 # The following way of writing the cache mishandles newlines in values,
2046 (
2047 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in #(
2050 *${as_nl}*)
2051 case $ac_var in #(
2052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2054 esac
2055 case $ac_var in #(
2056 _ | IFS | as_nl) ;; #(
2057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2058 *) { eval $ac_var=; unset $ac_var;} ;;
2059 esac ;;
2060 esac
2061 done
2062 (set) 2>&1 |
2063 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2064 *${as_nl}ac_space=\ *)
2065 sed -n \
2066 "s/'\''/'\''\\\\'\'''\''/g;
2067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2068 ;; #(
2069 *)
2070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2071 ;;
2072 esac |
2073 sort
2074 )
2075 echo
2076
2077 $as_echo "## ----------------- ##
2078 ## Output variables. ##
2079 ## ----------------- ##"
2080 echo
2081 for ac_var in $ac_subst_vars
2082 do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in
2085 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086 esac
2087 $as_echo "$ac_var='\''$ac_val'\''"
2088 done | sort
2089 echo
2090
2091 if test -n "$ac_subst_files"; then
2092 $as_echo "## ------------------- ##
2093 ## File substitutions. ##
2094 ## ------------------- ##"
2095 echo
2096 for ac_var in $ac_subst_files
2097 do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in
2100 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 esac
2102 $as_echo "$ac_var='\''$ac_val'\''"
2103 done | sort
2104 echo
2105 fi
2106
2107 if test -s confdefs.h; then
2108 $as_echo "## ----------- ##
2109 ## confdefs.h. ##
2110 ## ----------- ##"
2111 echo
2112 cat confdefs.h
2113 echo
2114 fi
2115 test "$ac_signal" != 0 &&
2116 $as_echo "$as_me: caught signal $ac_signal"
2117 $as_echo "$as_me: exit $exit_status"
2118 } >&5
2119 rm -f core *.core core.conftest.* &&
2120 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2121 exit $exit_status
2122 ' 0
2123 for ac_signal in 1 2 13 15; do
2124 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2125 done
2126 ac_signal=0
2127
2128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2129 rm -f -r conftest* confdefs.h
2130
2131 $as_echo "/* confdefs.h */" > confdefs.h
2132
2133 # Predefined preprocessor variables.
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_NAME "$PACKAGE_NAME"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_STRING "$PACKAGE_STRING"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_URL "$PACKAGE_URL"
2157 _ACEOF
2158
2159
2160 # Let the site file select an alternate cache file if it wants to.
2161 # Prefer an explicitly selected file to automatically selected ones.
2162 ac_site_file1=NONE
2163 ac_site_file2=NONE
2164 if test -n "$CONFIG_SITE"; then
2165 # We do not want a PATH search for config.site.
2166 case $CONFIG_SITE in #((
2167 -*) ac_site_file1=./$CONFIG_SITE;;
2168 */*) ac_site_file1=$CONFIG_SITE;;
2169 *) ac_site_file1=./$CONFIG_SITE;;
2170 esac
2171 elif test "x$prefix" != xNONE; then
2172 ac_site_file1=$prefix/share/config.site
2173 ac_site_file2=$prefix/etc/config.site
2174 else
2175 ac_site_file1=$ac_default_prefix/share/config.site
2176 ac_site_file2=$ac_default_prefix/etc/config.site
2177 fi
2178 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2179 do
2180 test "x$ac_site_file" = xNONE && continue
2181 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2183 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2184 sed 's/^/| /' "$ac_site_file" >&5
2185 . "$ac_site_file" \
2186 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188 as_fn_error $? "failed to load site script $ac_site_file
2189 See \`config.log' for more details" "$LINENO" 5; }
2190 fi
2191 done
2192
2193 if test -r "$cache_file"; then
2194 # Some versions of bash will fail to source /dev/null (special files
2195 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2196 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2198 $as_echo "$as_me: loading cache $cache_file" >&6;}
2199 case $cache_file in
2200 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2201 *) . "./$cache_file";;
2202 esac
2203 fi
2204 else
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2206 $as_echo "$as_me: creating cache $cache_file" >&6;}
2207 >$cache_file
2208 fi
2209
2210 # Check that the precious variables saved in the cache have kept the same
2211 # value.
2212 ac_cache_corrupted=false
2213 for ac_var in $ac_precious_vars; do
2214 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2215 eval ac_new_set=\$ac_env_${ac_var}_set
2216 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2217 eval ac_new_val=\$ac_env_${ac_var}_value
2218 case $ac_old_set,$ac_new_set in
2219 set,)
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2221 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2222 ac_cache_corrupted=: ;;
2223 ,set)
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2226 ac_cache_corrupted=: ;;
2227 ,);;
2228 *)
2229 if test "x$ac_old_val" != "x$ac_new_val"; then
2230 # differences in whitespace do not lead to failure.
2231 ac_old_val_w=`echo x $ac_old_val`
2232 ac_new_val_w=`echo x $ac_new_val`
2233 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2235 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2236 ac_cache_corrupted=:
2237 else
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2239 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2240 eval $ac_var=\$ac_old_val
2241 fi
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2243 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2245 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2246 fi;;
2247 esac
2248 # Pass precious variables to config.status.
2249 if test "$ac_new_set" = set; then
2250 case $ac_new_val in
2251 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 *) ac_arg=$ac_var=$ac_new_val ;;
2253 esac
2254 case " $ac_configure_args " in
2255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2256 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2257 esac
2258 fi
2259 done
2260 if $ac_cache_corrupted; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2264 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2265 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2266 fi
2267 ## -------------------- ##
2268 ## Main body of script. ##
2269 ## -------------------- ##
2270
2271 ac_ext=c
2272 ac_cpp='$CPP $CPPFLAGS'
2273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276
2277
2278
2279
2280
2281
2282
2283
2284 progname=$0
2285 # if PWD already has a value, it is probably wrong.
2286 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2287
2288 # Export original configure arguments for use by sub-configures.
2289 # Quote arguments with shell meta charatcers.
2290 TOPLEVEL_CONFIGURE_ARGUMENTS=
2291 set -- "$progname" "$@"
2292 for ac_arg
2293 do
2294 case "$ac_arg" in
2295 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2296 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2297 # if the argument is of the form -foo=baz, quote the baz part only
2298 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2299 *) ;;
2300 esac
2301 # Add the quoted argument to the list.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2303 done
2304 if test "$silent" = yes; then
2305 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2306 fi
2307 # Remove the initial space we just introduced and, as these will be
2308 # expanded by make, quote '$'.
2309 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2310
2311
2312 # Find the build, host, and target systems.
2313 ac_aux_dir=
2314 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2315 if test -f "$ac_dir/install-sh"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/install-sh -c"
2318 break
2319 elif test -f "$ac_dir/install.sh"; then
2320 ac_aux_dir=$ac_dir
2321 ac_install_sh="$ac_aux_dir/install.sh -c"
2322 break
2323 elif test -f "$ac_dir/shtool"; then
2324 ac_aux_dir=$ac_dir
2325 ac_install_sh="$ac_aux_dir/shtool install -c"
2326 break
2327 fi
2328 done
2329 if test -z "$ac_aux_dir"; then
2330 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2331 fi
2332
2333 # These three variables are undocumented and unsupported,
2334 # and are intended to be withdrawn in a future Autoconf release.
2335 # They can cause serious problems if a builder's source tree is in a directory
2336 # whose full name contains unusual characters.
2337 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2338 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2339 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2340
2341
2342 # Make sure we can run config.sub.
2343 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2344 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2345
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2347 $as_echo_n "checking build system type... " >&6; }
2348 if ${ac_cv_build+:} false; then :
2349 $as_echo_n "(cached) " >&6
2350 else
2351 ac_build_alias=$build_alias
2352 test "x$ac_build_alias" = x &&
2353 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2354 test "x$ac_build_alias" = x &&
2355 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2356 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2358
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2361 $as_echo "$ac_cv_build" >&6; }
2362 case $ac_cv_build in
2363 *-*-*) ;;
2364 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2365 esac
2366 build=$ac_cv_build
2367 ac_save_IFS=$IFS; IFS='-'
2368 set x $ac_cv_build
2369 shift
2370 build_cpu=$1
2371 build_vendor=$2
2372 shift; shift
2373 # Remember, the first character of IFS is used to create $*,
2374 # except with old shells:
2375 build_os=$*
2376 IFS=$ac_save_IFS
2377 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2378
2379
2380 case ${build_alias} in
2381 "") build_noncanonical=${build} ;;
2382 *) build_noncanonical=${build_alias} ;;
2383 esac
2384
2385
2386
2387 case ${host_alias} in
2388 "") host_noncanonical=${build_noncanonical} ;;
2389 *) host_noncanonical=${host_alias} ;;
2390 esac
2391
2392
2393
2394 case ${target_alias} in
2395 "") target_noncanonical=${host_noncanonical} ;;
2396 *) target_noncanonical=${target_alias} ;;
2397 esac
2398
2399
2400
2401
2402 test "$host_noncanonical" = "$target_noncanonical" &&
2403 test "$program_prefix$program_suffix$program_transform_name" = \
2404 NONENONEs,x,x, &&
2405 program_transform_name=s,y,y,
2406
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2408 $as_echo_n "checking host system type... " >&6; }
2409 if ${ac_cv_host+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test "x$host_alias" = x; then
2413 ac_cv_host=$ac_cv_build
2414 else
2415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2416 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2417 fi
2418
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2421 $as_echo "$ac_cv_host" >&6; }
2422 case $ac_cv_host in
2423 *-*-*) ;;
2424 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2425 esac
2426 host=$ac_cv_host
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_host
2429 shift
2430 host_cpu=$1
2431 host_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 host_os=$*
2436 IFS=$ac_save_IFS
2437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2438
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2441 $as_echo_n "checking target system type... " >&6; }
2442 if ${ac_cv_target+:} false; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 if test "x$target_alias" = x; then
2446 ac_cv_target=$ac_cv_host
2447 else
2448 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2450 fi
2451
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2454 $as_echo "$ac_cv_target" >&6; }
2455 case $ac_cv_target in
2456 *-*-*) ;;
2457 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2458 esac
2459 target=$ac_cv_target
2460 ac_save_IFS=$IFS; IFS='-'
2461 set x $ac_cv_target
2462 shift
2463 target_cpu=$1
2464 target_vendor=$2
2465 shift; shift
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2468 target_os=$*
2469 IFS=$ac_save_IFS
2470 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2471
2472
2473 # The aliases save the names the user supplied, while $host etc.
2474 # will get canonicalized.
2475 test -n "$target_alias" &&
2476 test "$program_prefix$program_suffix$program_transform_name" = \
2477 NONENONEs,x,x, &&
2478 program_prefix=${target_alias}-
2479
2480 test "$program_prefix" != NONE &&
2481 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2482 # Use a double $ so make ignores it.
2483 test "$program_suffix" != NONE &&
2484 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2485 # Double any \ or $.
2486 # By default was `s,x,x', remove it if useless.
2487 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2488 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2489
2490
2491
2492 # Get 'install' or 'install-sh' and its variants.
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2499 # AIX /bin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 # Reject install programs that cannot install multiple files.
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2508 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2509 if test -z "$INSTALL"; then
2510 if ${ac_cv_path_install+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 # Account for people who put trailing slashes in PATH elements.
2519 case $as_dir/ in #((
2520 ./ | .// | /[cC]/* | \
2521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2523 /usr/ucb/* ) ;;
2524 *)
2525 # OSF1 and SCO ODT 3.0 have their own names for install.
2526 # Don't use installbsd from OSF since it installs stuff as root
2527 # by default.
2528 for ac_prog in ginstall scoinst install; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2531 if test $ac_prog = install &&
2532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # AIX install. It has an incompatible calling convention.
2534 :
2535 elif test $ac_prog = install &&
2536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # program-specific install script used by HP pwplus--don't use.
2538 :
2539 else
2540 rm -rf conftest.one conftest.two conftest.dir
2541 echo one > conftest.one
2542 echo two > conftest.two
2543 mkdir conftest.dir
2544 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2545 test -s conftest.one && test -s conftest.two &&
2546 test -s conftest.dir/conftest.one &&
2547 test -s conftest.dir/conftest.two
2548 then
2549 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2550 break 3
2551 fi
2552 fi
2553 fi
2554 done
2555 done
2556 ;;
2557 esac
2558
2559 done
2560 IFS=$as_save_IFS
2561
2562 rm -rf conftest.one conftest.two conftest.dir
2563
2564 fi
2565 if test "${ac_cv_path_install+set}" = set; then
2566 INSTALL=$ac_cv_path_install
2567 else
2568 # As a last resort, use the slow shell script. Don't cache a
2569 # value for INSTALL within a source directory, because that will
2570 # break other packages using the cache if that directory is
2571 # removed, or if the value is a relative name.
2572 INSTALL=$ac_install_sh
2573 fi
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2576 $as_echo "$INSTALL" >&6; }
2577
2578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2579 # It thinks the first close brace ends the variable substitution.
2580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2581
2582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2583
2584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2587 $as_echo_n "checking whether ln works... " >&6; }
2588 if ${acx_cv_prog_LN+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 rm -f conftestdata_t
2592 echo >conftestdata_f
2593 if ln conftestdata_f conftestdata_t 2>/dev/null
2594 then
2595 acx_cv_prog_LN=ln
2596 else
2597 acx_cv_prog_LN=no
2598 fi
2599 rm -f conftestdata_f conftestdata_t
2600
2601 fi
2602 if test $acx_cv_prog_LN = no; then
2603 LN="cp"
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2605 $as_echo "no, using $LN" >&6; }
2606 else
2607 LN="$acx_cv_prog_LN"
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2609 $as_echo "yes" >&6; }
2610 fi
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2613 $as_echo_n "checking whether ln -s works... " >&6; }
2614 LN_S=$as_ln_s
2615 if test "$LN_S" = "ln -s"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2620 $as_echo "no, using $LN_S" >&6; }
2621 fi
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2625 if ${ac_cv_path_SED+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2629 for ac_i in 1 2 3 4 5 6 7; do
2630 ac_script="$ac_script$as_nl$ac_script"
2631 done
2632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2633 { ac_script=; unset ac_script;}
2634 if test -z "$SED"; then
2635 ac_path_SED_found=false
2636 # Loop through the user's path and test for each of PROGNAME-LIST
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_prog in sed gsed; do
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2645 as_fn_executable_p "$ac_path_SED" || continue
2646 # Check for GNU ac_path_SED and select it if it is found.
2647 # Check for GNU $ac_path_SED
2648 case `"$ac_path_SED" --version 2>&1` in
2649 *GNU*)
2650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2651 *)
2652 ac_count=0
2653 $as_echo_n 0123456789 >"conftest.in"
2654 while :
2655 do
2656 cat "conftest.in" "conftest.in" >"conftest.tmp"
2657 mv "conftest.tmp" "conftest.in"
2658 cp "conftest.in" "conftest.nl"
2659 $as_echo '' >> "conftest.nl"
2660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2662 as_fn_arith $ac_count + 1 && ac_count=$as_val
2663 if test $ac_count -gt ${ac_path_SED_max-0}; then
2664 # Best one so far, save it but keep looking for a better one
2665 ac_cv_path_SED="$ac_path_SED"
2666 ac_path_SED_max=$ac_count
2667 fi
2668 # 10*(2^10) chars as input seems more than enough
2669 test $ac_count -gt 10 && break
2670 done
2671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2672 esac
2673
2674 $ac_path_SED_found && break 3
2675 done
2676 done
2677 done
2678 IFS=$as_save_IFS
2679 if test -z "$ac_cv_path_SED"; then
2680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2681 fi
2682 else
2683 ac_cv_path_SED=$SED
2684 fi
2685
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2688 $as_echo "$ac_cv_path_SED" >&6; }
2689 SED="$ac_cv_path_SED"
2690 rm -f conftest.sed
2691
2692 for ac_prog in gawk mawk nawk awk
2693 do
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_AWK+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$AWK"; then
2702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_AWK="$ac_prog"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 AWK=$ac_cv_prog_AWK
2722 if test -n "$AWK"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2724 $as_echo "$AWK" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731 test -n "$AWK" && break
2732 done
2733
2734
2735 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2736
2737 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2738 # a relative path.
2739 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2740 INSTALL="${srcpwd}/install-sh -c"
2741 fi
2742
2743 # Set srcdir to "." if that's what it is.
2744 # This is important for multilib support.
2745 pwd=`${PWDCMD-pwd}`
2746 if test "${pwd}" = "${srcpwd}" ; then
2747 srcdir=.
2748 fi
2749
2750 topsrcdir=$srcpwd
2751
2752 extra_host_args=
2753
2754 ### To add a new directory to the tree, first choose whether it is a target
2755 ### or a host dependent tool. Then put it into the appropriate list
2756 ### (library or tools, host or target), doing a dependency sort.
2757
2758 # Subdirs will be configured in the order listed in build_configdirs,
2759 # configdirs, or target_configdirs; see the serialization section below.
2760
2761 # Dependency sorting is only needed when *configuration* must be done in
2762 # a particular order. In all cases a dependency should be specified in
2763 # the Makefile, whether or not it's implicitly specified here.
2764
2765 # Double entries in build_configdirs, configdirs, or target_configdirs may
2766 # cause circular dependencies and break everything horribly.
2767
2768 # these library is used by various programs built for the build
2769 # environment
2770 #
2771 build_libs="build-libiberty build-libcpp"
2772
2773 # these tools are built for the build environment
2774 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2775
2776 # these libraries are used by various programs built for the host environment
2777 #f
2778 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2779
2780 # these tools are built for the host environment
2781 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2782 # know that we are building the simulator.
2783 # binutils, gas and ld appear in that order because it makes sense to run
2784 # "make check" in that particular order.
2785 # If --enable-gold is used, "gold" may replace "ld".
2786 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2787
2788 # these libraries are built for the target environment, and are built after
2789 # the host libraries and the host tools (which may be a cross compiler)
2790 # Note that libiberty is not a target library.
2791 target_libraries="target-libgcc \
2792 target-libbacktrace \
2793 target-libgloss \
2794 target-newlib \
2795 target-libgomp \
2796 target-liboffloadmic \
2797 target-libhsail-rt \
2798 target-libatomic \
2799 target-libitm \
2800 target-libstdc++-v3 \
2801 target-libsanitizer \
2802 target-libvtv \
2803 target-libssp \
2804 target-libquadmath \
2805 target-libgfortran \
2806 target-libffi \
2807 target-libobjc \
2808 target-libada \
2809 target-libgo"
2810
2811 # these tools are built using the target libraries, and are intended to
2812 # run only in the target environment
2813 #
2814 # note: any program that *uses* libraries that are in the "target_libraries"
2815 # list belongs in this list.
2816 #
2817 target_tools="target-rda"
2818
2819 ################################################################################
2820
2821 ## All tools belong in one of the four categories, and are assigned above
2822 ## We assign ${configdirs} this way to remove all embedded newlines. This
2823 ## is important because configure will choke if they ever get through.
2824 ## ${configdirs} is directories we build using the host tools.
2825 ## ${target_configdirs} is directories we build using the target tools.
2826 configdirs=`echo ${host_libs} ${host_tools}`
2827 target_configdirs=`echo ${target_libraries} ${target_tools}`
2828 build_configdirs=`echo ${build_libs} ${build_tools}`
2829
2830
2831
2832 ################################################################################
2833
2834 srcname="gnu development package"
2835
2836 # This gets set non-empty for some net releases of packages.
2837 appdirs=""
2838
2839 # Define is_cross_compiler to save on calls to 'test'.
2840 is_cross_compiler=
2841 if test x"${host}" = x"${target}" ; then
2842 is_cross_compiler=no
2843 else
2844 is_cross_compiler=yes
2845 fi
2846
2847 # Find the build and target subdir names.
2848
2849 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2850 # have matching libraries, they should use host libraries: Makefile.tpl
2851 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2852 # However, they still use the build modules, because the corresponding
2853 # host modules (e.g. bison) are only built for the host when bootstrap
2854 # finishes. So:
2855 # - build_subdir is where we find build modules, and never changes.
2856 # - build_libsubdir is where we find build libraries, and can be overridden.
2857
2858 # Prefix 'build-' so this never conflicts with target_subdir.
2859 build_subdir="build-${build_noncanonical}"
2860
2861 # Check whether --with-build-libsubdir was given.
2862 if test "${with_build_libsubdir+set}" = set; then :
2863 withval=$with_build_libsubdir; build_libsubdir="$withval"
2864 else
2865 build_libsubdir="$build_subdir"
2866 fi
2867
2868 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2869 if ( test $srcdir = . && test -d gcc ) \
2870 || test -d $srcdir/../host-${host_noncanonical}; then
2871 host_subdir="host-${host_noncanonical}"
2872 else
2873 host_subdir=.
2874 fi
2875 # No prefix.
2876 target_subdir=${target_noncanonical}
2877
2878 # Be sure to cover against remnants of an in-tree build.
2879 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2880 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2881 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2882 fi
2883
2884 # Skipdirs are removed silently.
2885 skipdirs=
2886 # Noconfigdirs are removed loudly.
2887 noconfigdirs=""
2888
2889 use_gnu_ld=
2890 # Make sure we don't let GNU ld be added if we didn't want it.
2891 if test x$with_gnu_ld = xno ; then
2892 use_gnu_ld=no
2893 noconfigdirs="$noconfigdirs ld gold"
2894 fi
2895
2896 use_gnu_as=
2897 # Make sure we don't let GNU as be added if we didn't want it.
2898 if test x$with_gnu_as = xno ; then
2899 use_gnu_as=no
2900 noconfigdirs="$noconfigdirs gas"
2901 fi
2902
2903 use_included_zlib=
2904
2905 # Check whether --with-system-zlib was given.
2906 if test "${with_system_zlib+set}" = set; then :
2907 withval=$with_system_zlib;
2908 fi
2909
2910 # Make sure we don't let ZLIB be added if we didn't want it.
2911 if test x$with_system_zlib = xyes ; then
2912 use_included_zlib=no
2913 noconfigdirs="$noconfigdirs zlib"
2914 fi
2915
2916 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2917 # is provided.
2918 if test x$with_system_readline = xyes ; then
2919 noconfigdirs="$noconfigdirs readline"
2920 fi
2921
2922 # some tools are so dependent upon X11 that if we're not building with X,
2923 # it's not even worth trying to configure, much less build, that tool.
2924
2925 case ${with_x} in
2926 yes | "") ;; # the default value for this tree is that X11 is available
2927 no)
2928 skipdirs="${skipdirs} tk itcl libgui"
2929 # We won't be able to build gdbtk without X.
2930 enable_gdbtk=no
2931 ;;
2932 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2933 esac
2934
2935 # Some are only suitable for cross toolchains.
2936 # Remove these if host=target.
2937 cross_only="target-libgloss target-newlib target-opcodes"
2938
2939 case $is_cross_compiler in
2940 no) skipdirs="${skipdirs} ${cross_only}" ;;
2941 esac
2942
2943 # If both --with-headers and --with-libs are specified, default to
2944 # --without-newlib.
2945 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2946 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2947 if test x"${with_newlib}" = x ; then
2948 with_newlib=no
2949 fi
2950 fi
2951
2952 # Recognize --with-newlib/--without-newlib.
2953 case ${with_newlib} in
2954 no) skipdirs="${skipdirs} target-newlib" ;;
2955 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2956 esac
2957
2958 # Check whether --enable-as-accelerator-for was given.
2959 if test "${enable_as_accelerator_for+set}" = set; then :
2960 enableval=$enable_as_accelerator_for;
2961 fi
2962
2963
2964 # Check whether --enable-offload-targets was given.
2965 if test "${enable_offload_targets+set}" = set; then :
2966 enableval=$enable_offload_targets;
2967 if test x"$enable_offload_targets" = x; then
2968 as_fn_error $? "no offload targets specified" "$LINENO" 5
2969 fi
2970
2971 else
2972 enable_offload_targets=
2973 fi
2974
2975
2976 # Handle --enable-gold, --enable-ld.
2977 # --disable-gold [--enable-ld]
2978 # Build only ld. Default option.
2979 # --enable-gold [--enable-ld]
2980 # Build both gold and ld. Install gold as "ld.gold", install ld
2981 # as "ld.bfd" and "ld".
2982 # --enable-gold=default [--enable-ld]
2983 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2984 # install ld as "ld.bfd".
2985 # --enable-gold[=default] --disable-ld
2986 # Build only gold, which is then installed as both "ld.gold" and "ld".
2987 # --enable-gold --enable-ld=default
2988 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2989 # and ld.bfd).
2990 # In other words, ld is default
2991 # --enable-gold=default --enable-ld=default
2992 # Error.
2993
2994 default_ld=
2995 # Check whether --enable-gold was given.
2996 if test "${enable_gold+set}" = set; then :
2997 enableval=$enable_gold; ENABLE_GOLD=$enableval
2998 else
2999 ENABLE_GOLD=no
3000 fi
3001
3002 case "${ENABLE_GOLD}" in
3003 yes|default)
3004 # Check for ELF target.
3005 is_elf=no
3006 case "${target}" in
3007 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3008 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3009 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3010 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3011 case "${target}" in
3012 *-*-linux*aout* | *-*-linux*oldld*)
3013 ;;
3014 *)
3015 is_elf=yes
3016 ;;
3017 esac
3018 esac
3019
3020 if test "$is_elf" = "yes"; then
3021 # Check for target supported by gold.
3022 case "${target}" in
3023 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3024 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3025 configdirs="$configdirs gold"
3026 if test x${ENABLE_GOLD} = xdefault; then
3027 default_ld=gold
3028 fi
3029 ENABLE_GOLD=yes
3030 ;;
3031 esac
3032 fi
3033 ;;
3034 no)
3035 ;;
3036 *)
3037 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3038 ;;
3039 esac
3040
3041 # Check whether --enable-ld was given.
3042 if test "${enable_ld+set}" = set; then :
3043 enableval=$enable_ld; ENABLE_LD=$enableval
3044 else
3045 ENABLE_LD=yes
3046 fi
3047
3048
3049 case "${ENABLE_LD}" in
3050 default)
3051 if test x${default_ld} != x; then
3052 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3053 fi
3054 ;;
3055 yes)
3056 ;;
3057 no)
3058 if test x${ENABLE_GOLD} != xyes; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3060 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3061 fi
3062 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3063 ;;
3064 *)
3065 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3066 ;;
3067 esac
3068
3069 # PR gas/19109
3070 # Decide the default method for compressing debug sections.
3071 # Provide a configure time option to override our default.
3072 # Check whether --enable-compressed_debug_sections was given.
3073 if test "${enable_compressed_debug_sections+set}" = set; then :
3074 enableval=$enable_compressed_debug_sections;
3075 if test x"$enable_compressed_debug_sections" = xyes; then
3076 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3077 fi
3078
3079 else
3080 enable_compressed_debug_sections=
3081 fi
3082
3083
3084 # Configure extra directories which are host specific
3085
3086 case "${host}" in
3087 *-cygwin*)
3088 configdirs="$configdirs libtermcap" ;;
3089 esac
3090
3091 # A target can indicate whether a language isn't supported for some reason.
3092 # Only spaces may be used in this macro; not newlines or tabs.
3093 unsupported_languages=
3094
3095 # Remove more programs from consideration, based on the host or
3096 # target this usually means that a port of the program doesn't
3097 # exist yet.
3098
3099 case "${host}" in
3100 i[3456789]86-*-msdosdjgpp*)
3101 noconfigdirs="$noconfigdirs tcl tk itcl"
3102 ;;
3103 esac
3104
3105
3106 # Check whether --enable-libquadmath was given.
3107 if test "${enable_libquadmath+set}" = set; then :
3108 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3109 else
3110 ENABLE_LIBQUADMATH=yes
3111 fi
3112
3113 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3114 noconfigdirs="$noconfigdirs target-libquadmath"
3115 fi
3116
3117
3118 # Check whether --enable-libquadmath-support was given.
3119 if test "${enable_libquadmath_support+set}" = set; then :
3120 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3121 else
3122 ENABLE_LIBQUADMATH_SUPPORT=yes
3123 fi
3124
3125 enable_libquadmath_support=
3126 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3127 enable_libquadmath_support=no
3128 fi
3129
3130
3131 # Check whether --enable-libada was given.
3132 if test "${enable_libada+set}" = set; then :
3133 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3134 else
3135 ENABLE_LIBADA=yes
3136 fi
3137
3138 if test "${ENABLE_LIBADA}" != "yes" ; then
3139 noconfigdirs="$noconfigdirs gnattools"
3140 fi
3141
3142 # Check whether --enable-libssp was given.
3143 if test "${enable_libssp+set}" = set; then :
3144 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3145 else
3146 ENABLE_LIBSSP=yes
3147 fi
3148
3149
3150 # Check whether --enable-libstdcxx was given.
3151 if test "${enable_libstdcxx+set}" = set; then :
3152 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3153 else
3154 ENABLE_LIBSTDCXX=default
3155 fi
3156
3157 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3158 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3159 fi
3160
3161 # If this is accelerator compiler and its target is intelmic we enable
3162 # target liboffloadmic by default. If this is compiler with offloading
3163 # for intelmic we enable host liboffloadmic by default. Otherwise
3164 # liboffloadmic is disabled by default.
3165 # Check whether --enable-liboffloadmic was given.
3166 if test "${enable_liboffloadmic+set}" = set; then :
3167 enableval=$enable_liboffloadmic; case "$enableval" in
3168 no | host | target)
3169 enable_liboffloadmic=$enableval ;;
3170 *)
3171 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3172 esac
3173 else
3174 if test x"$enable_as_accelerator_for" != x; then
3175 case "${target}" in
3176 *-intelmic-* | *-intelmicemul-*)
3177 enable_liboffloadmic=target
3178 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3179 ;;
3180 *)
3181 enable_liboffloadmic=no
3182 ;;
3183 esac
3184 else
3185 case "${enable_offload_targets}" in
3186 *-intelmic-* | *-intelmicemul-*)
3187 enable_liboffloadmic=host
3188 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3189 ;;
3190 *)
3191 enable_liboffloadmic=no
3192 ;;
3193 esac
3194 fi
3195 fi
3196
3197
3198
3199 # Enable libgomp by default on hosted POSIX systems, and a few others.
3200 if test x$enable_libgomp = x ; then
3201 case "${target}" in
3202 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3203 ;;
3204 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3205 ;;
3206 *-*-solaris2* | *-*-hpux11*)
3207 ;;
3208 *-*-darwin* | *-*-aix*)
3209 ;;
3210 nvptx*-*-*)
3211 ;;
3212 *)
3213 noconfigdirs="$noconfigdirs target-libgomp"
3214 ;;
3215 esac
3216 fi
3217
3218 # Disable libatomic on unsupported systems.
3219 if test -d ${srcdir}/libatomic; then
3220 if test x$enable_libatomic = x; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3222 $as_echo_n "checking for libatomic support... " >&6; }
3223 if (srcdir=${srcdir}/libatomic; \
3224 . ${srcdir}/configure.tgt; \
3225 test -n "$UNSUPPORTED")
3226 then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 noconfigdirs="$noconfigdirs target-libatomic"
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232 $as_echo "yes" >&6; }
3233 fi
3234 fi
3235 fi
3236
3237 # Disable liboffloadmic on unsupported systems.
3238 if test -d ${srcdir}/liboffloadmic; then
3239 if test x$enable_liboffloadmic != xno; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3241 $as_echo_n "checking for liboffloadmic support... " >&6; }
3242 if (srcdir=${srcdir}/liboffloadmic; \
3243 . ${srcdir}/configure.tgt; \
3244 test -n "$UNSUPPORTED")
3245 then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 noconfigdirs="$noconfigdirs target-liboffloadmic"
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3252 fi
3253 fi
3254 fi
3255
3256 # Disable libitm on unsupported systems.
3257 if test -d ${srcdir}/libitm; then
3258 if test x$enable_libitm = x; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3260 $as_echo_n "checking for libitm support... " >&6; }
3261 if (srcdir=${srcdir}/libitm; \
3262 . ${srcdir}/configure.tgt; \
3263 test -n "$UNSUPPORTED")
3264 then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 noconfigdirs="$noconfigdirs target-libitm"
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271 fi
3272 fi
3273 fi
3274
3275 # Disable libsanitizer on unsupported systems.
3276 if test -d ${srcdir}/libsanitizer; then
3277 if test x$enable_libsanitizer = x; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3279 $as_echo_n "checking for libsanitizer support... " >&6; }
3280 if (srcdir=${srcdir}/libsanitizer; \
3281 . ${srcdir}/configure.tgt; \
3282 test -n "$UNSUPPORTED")
3283 then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 noconfigdirs="$noconfigdirs target-libsanitizer"
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290 fi
3291 fi
3292 fi
3293
3294 # Disable libvtv on unsupported systems.
3295 if test -d ${srcdir}/libvtv; then
3296 if test x$enable_libvtv = x; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3298 $as_echo_n "checking for libvtv support... " >&6; }
3299 if (srcdir=${srcdir}/libvtv; \
3300 . ${srcdir}/configure.tgt; \
3301 test "$VTV_SUPPORTED" != "yes")
3302 then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 noconfigdirs="$noconfigdirs target-libvtv"
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3309 fi
3310 fi
3311 fi
3312
3313
3314 # Disable libhsail-rt on unsupported systems.
3315 if test -d ${srcdir}/libhsail-rt; then
3316 if test x$enable_libhsail_rt = x; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3318 $as_echo_n "checking for libhsail-rt support... " >&6; }
3319 if (srcdir=${srcdir}/libhsail-rt; \
3320 . ${srcdir}/configure.tgt; \
3321 test -n "$UNSUPPORTED")
3322 then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 unsupported_languages="$unsupported_languages brig"
3326 # This implicitly disables also target-libhsail-rt as it won't
3327 # get added to the build without BRIG FE.
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3331 fi
3332 fi
3333 fi
3334
3335
3336 # Disable libquadmath for some systems.
3337 case "${target}" in
3338 avr-*-*)
3339 noconfigdirs="$noconfigdirs target-libquadmath"
3340 ;;
3341 # libquadmath is unused on AIX and libquadmath build process use of
3342 # LD_LIBRARY_PATH can break AIX bootstrap.
3343 powerpc-*-aix* | rs6000-*-aix*)
3344 noconfigdirs="$noconfigdirs target-libquadmath"
3345 ;;
3346 esac
3347
3348 # Disable libssp for some systems.
3349 case "${target}" in
3350 avr-*-*)
3351 # No hosted I/O support.
3352 noconfigdirs="$noconfigdirs target-libssp"
3353 ;;
3354 powerpc-*-aix* | rs6000-*-aix*)
3355 noconfigdirs="$noconfigdirs target-libssp"
3356 ;;
3357 rl78-*-*)
3358 # libssp uses a misaligned load to trigger a fault, but the RL78
3359 # doesn't fault for those - instead, it gives a build-time error
3360 # for explicit misaligned loads.
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
3363 visium-*-*)
3364 # No hosted I/O support.
3365 noconfigdirs="$noconfigdirs target-libssp"
3366 ;;
3367 esac
3368
3369 # Disable libstdc++-v3 for some systems.
3370 # Allow user to override this if they pass --enable-libstdc++-v3
3371 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3372 case "${target}" in
3373 *-*-vxworks*)
3374 # VxWorks uses the Dinkumware C++ library.
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3376 ;;
3377 arm*-wince-pe*)
3378 # the C++ libraries don't build on top of CE's C libraries
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380 ;;
3381 avr-*-*)
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 ft32-*-*)
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 esac
3388 fi
3389
3390 # Disable Fortran for some systems.
3391 case "${target}" in
3392 mmix-*-*)
3393 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3394 unsupported_languages="$unsupported_languages fortran"
3395 ;;
3396 esac
3397
3398 # Disable libffi for some systems.
3399 case "${target}" in
3400 powerpc-*-darwin*)
3401 ;;
3402 i[3456789]86-*-darwin*)
3403 ;;
3404 x86_64-*-darwin[912]*)
3405 ;;
3406 *-*-darwin*)
3407 noconfigdirs="$noconfigdirs target-libffi"
3408 ;;
3409 *-*-netware*)
3410 noconfigdirs="$noconfigdirs target-libffi"
3411 ;;
3412 *-*-phoenix*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3414 ;;
3415 *-*-rtems*)
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 *-*-tpf*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 *-*-uclinux*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 *-*-vxworks*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 aarch64*-*-freebsd*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 alpha*-*-*vms*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 arm*-*-freebsd*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 arm-wince-pe)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 arm*-*-symbianelf*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 cris-*-* | crisv32-*-*)
3443 case "${target}" in
3444 *-*-linux*)
3445 ;;
3446 *) # See PR46792 regarding target-libffi.
3447 noconfigdirs="$noconfigdirs target-libffi";;
3448 esac
3449 ;;
3450 hppa*64*-*-hpux*)
3451 noconfigdirs="$noconfigdirs target-libffi"
3452 ;;
3453 hppa*-hp-hpux11*)
3454 ;;
3455 hppa*-*-hpux*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3457 ;;
3458 ia64*-*-*vms*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 i[3456789]86-w64-mingw*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 i[3456789]86-*-mingw*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 x86_64-*-mingw*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 mmix-*-*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 powerpc-*-aix*)
3474 ;;
3475 rs6000-*-aix*)
3476 ;;
3477 ft32-*-*)
3478 noconfigdirs="$noconfigdirs target-libffi"
3479 ;;
3480 *-*-lynxos*)
3481 noconfigdirs="$noconfigdirs target-libffi"
3482 ;;
3483 esac
3484
3485 # Disable the go frontend on systems where it is known to not work. Please keep
3486 # this in sync with contrib/config-list.mk.
3487 case "${target}" in
3488 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3489 unsupported_languages="$unsupported_languages go"
3490 ;;
3491 esac
3492
3493 # Only allow gdbserver on some systems.
3494 if test -d ${srcdir}/gdbserver; then
3495 if test x$enable_gdbserver = x; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3497 $as_echo_n "checking for gdbserver support... " >&6; }
3498 if (srcdir=${srcdir}/gdbserver; \
3499 . ${srcdir}/configure.srv; \
3500 test -n "$UNSUPPORTED")
3501 then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 noconfigdirs="$noconfigdirs gdbserver"
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507 $as_echo "yes" >&6; }
3508 fi
3509 fi
3510 fi
3511
3512 # Disable libgo for some systems where it is known to not work.
3513 # For testing, you can easily override this with --enable-libgo.
3514 if test x$enable_libgo = x; then
3515 case "${target}" in
3516 *-*-darwin*)
3517 # PR 46986
3518 noconfigdirs="$noconfigdirs target-libgo"
3519 ;;
3520 *-*-cygwin* | *-*-mingw*)
3521 noconfigdirs="$noconfigdirs target-libgo"
3522 ;;
3523 esac
3524 fi
3525
3526 # Default libgloss CPU subdirectory.
3527 libgloss_dir="$target_cpu"
3528
3529 case "${target}" in
3530 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3531 libgloss_dir=wince
3532 ;;
3533 aarch64*-*-* )
3534 libgloss_dir=aarch64
3535 ;;
3536 arm*-*-*)
3537 libgloss_dir=arm
3538 ;;
3539 cris-*-* | crisv32-*-*)
3540 libgloss_dir=cris
3541 ;;
3542 hppa*-*-*)
3543 libgloss_dir=pa
3544 ;;
3545 i[3456789]86-*-*)
3546 libgloss_dir=i386
3547 ;;
3548 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3549 libgloss_dir=m68hc11
3550 ;;
3551 m68*-*-* | fido-*-*)
3552 libgloss_dir=m68k
3553 ;;
3554 mips*-*-*)
3555 libgloss_dir=mips
3556 ;;
3557 powerpc*-*-*)
3558 libgloss_dir=rs6000
3559 ;;
3560 sparc*-*-*)
3561 libgloss_dir=sparc
3562 ;;
3563 esac
3564
3565 # Disable newlib and libgloss for various target OSes.
3566 case "${target}" in
3567 alpha*-dec-osf*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 i[3456789]86-*-linux*)
3571 # This section makes it possible to build newlib natively on linux.
3572 # If we are using a cross compiler then don't configure newlib.
3573 if test x${is_cross_compiler} != xno ; then
3574 noconfigdirs="$noconfigdirs target-newlib"
3575 fi
3576 noconfigdirs="$noconfigdirs target-libgloss"
3577 # If we are not using a cross compiler, do configure newlib.
3578 # Note however, that newlib will only be configured in this situation
3579 # if the --with-newlib option has been given, because otherwise
3580 # 'target-newlib' will appear in skipdirs.
3581 ;;
3582 i[3456789]86-*-rdos*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 sparc-*-sunos4*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 *-*-aix*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-beos*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-chorusos)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-dragonfly*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-freebsd*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-lynxos*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-mingw*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-netbsd*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-netware*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-tpf*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-uclinux*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-vxworks*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 esac
3631
3632 case "${target}" in
3633 *-*-chorusos)
3634 ;;
3635 aarch64-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
3638 ;;
3639 arm-*-darwin*)
3640 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3641 noconfigdirs="$noconfigdirs sim target-rda"
3642 ;;
3643 powerpc-*-darwin*)
3644 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3645 noconfigdirs="$noconfigdirs sim target-rda"
3646 ;;
3647 i[3456789]86-*-darwin*)
3648 noconfigdirs="$noconfigdirs ld gprof"
3649 noconfigdirs="$noconfigdirs sim target-rda"
3650 ;;
3651 x86_64-*-darwin[912]*)
3652 noconfigdirs="$noconfigdirs ld gas gprof"
3653 noconfigdirs="$noconfigdirs sim target-rda"
3654 ;;
3655 *-*-darwin*)
3656 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3657 noconfigdirs="$noconfigdirs sim target-rda"
3658 ;;
3659 *-*-dragonfly*)
3660 ;;
3661 *-*-freebsd*)
3662 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3663 && test -f /usr/local/include/gmp.h; then
3664 with_gmp=/usr/local
3665 fi
3666 ;;
3667 *-*-kaos*)
3668 # Remove unsupported stuff on all kaOS configurations.
3669 noconfigdirs="$noconfigdirs target-libgloss"
3670 ;;
3671 *-*-netbsd*)
3672 ;;
3673 *-*-netware*)
3674 ;;
3675 *-*-phoenix*)
3676 noconfigdirs="$noconfigdirs target-libgloss"
3677 ;;
3678 *-*-rtems*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 ;;
3681 # The tpf target doesn't support gdb yet.
3682 *-*-tpf*)
3683 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3684 ;;
3685 *-*-uclinux*)
3686 noconfigdirs="$noconfigdirs target-rda"
3687 ;;
3688 *-*-vxworks*)
3689 ;;
3690 alpha*-dec-osf*)
3691 # ld works, but does not support shared libraries.
3692 # gas doesn't generate exception information.
3693 noconfigdirs="$noconfigdirs gas ld"
3694 ;;
3695 alpha*-*-*vms*)
3696 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3697 ;;
3698 alpha*-*-*)
3699 # newlib is not 64 bit ready
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3703 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3704 ;;
3705 arc*-*-*)
3706 noconfigdirs="$noconfigdirs sim"
3707 ;;
3708 arm-*-pe*)
3709 noconfigdirs="$noconfigdirs target-libgloss"
3710 ;;
3711 arm-*-riscix*)
3712 noconfigdirs="$noconfigdirs ld target-libgloss"
3713 ;;
3714 avr-*-*)
3715 if test x${with_avrlibc} != xno; then
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 fi
3718 ;;
3719 c4x-*-* | tic4x-*-*)
3720 noconfigdirs="$noconfigdirs target-libgloss"
3721 ;;
3722 tic54x-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss gdb"
3724 ;;
3725 d10v-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3727 ;;
3728 d30v-*-*)
3729 noconfigdirs="$noconfigdirs gdb"
3730 ;;
3731 fr30-*-elf*)
3732 noconfigdirs="$noconfigdirs gdb"
3733 ;;
3734 ft32-*-*)
3735 noconfigdirs="$noconfigdirs target-rda gprof"
3736 ;;
3737 moxie-*-*)
3738 noconfigdirs="$noconfigdirs"
3739 ;;
3740 h8300*-*-*)
3741 noconfigdirs="$noconfigdirs target-libgloss"
3742 ;;
3743 h8500-*-*)
3744 noconfigdirs="$noconfigdirs target-libgloss"
3745 ;;
3746 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3747 ;;
3748 hppa*64*-*-hpux*)
3749 noconfigdirs="$noconfigdirs gdb"
3750 ;;
3751 hppa*-*-hpux11*)
3752 noconfigdirs="$noconfigdirs gdb ld"
3753 ;;
3754 hppa*64*-*-linux*)
3755 ;;
3756 hppa*-*-linux*)
3757 ;;
3758 hppa*-*-*elf* | \
3759 hppa*-*-lites* | \
3760 hppa*-*-openbsd* | \
3761 hppa*64*-*-*)
3762 ;;
3763 hppa*-*-pro*)
3764 ;;
3765 hppa*-*-*)
3766 noconfigdirs="$noconfigdirs ld"
3767 ;;
3768 i960-*-*)
3769 noconfigdirs="$noconfigdirs gdb"
3770 ;;
3771 ia64*-*-elf*)
3772 # No gdb support yet.
3773 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3774 ;;
3775 ia64*-**-hpux*)
3776 # No ld support yet.
3777 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3778 ;;
3779 ia64*-*-*vms*)
3780 # No ld support yet.
3781 noconfigdirs="$noconfigdirs libgui itcl ld"
3782 ;;
3783 i[3456789]86-w64-mingw*)
3784 ;;
3785 i[3456789]86-*-mingw*)
3786 target_configdirs="$target_configdirs target-winsup"
3787 ;;
3788 *-*-cygwin*)
3789 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3790 noconfigdirs="$noconfigdirs target-libgloss"
3791 # always build newlib if winsup directory is present.
3792 if test -d "$srcdir/winsup/cygwin"; then
3793 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3794 elif test -d "$srcdir/newlib"; then
3795 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3796 fi
3797 ;;
3798 i[3456789]86-*-pe)
3799 noconfigdirs="$noconfigdirs target-libgloss"
3800 ;;
3801 i[3456789]86-*-sco3.2v5*)
3802 # The linker does not yet know about weak symbols in COFF,
3803 # and is not configured to handle mixed ELF and COFF.
3804 noconfigdirs="$noconfigdirs ld target-libgloss"
3805 ;;
3806 i[3456789]86-*-sco*)
3807 noconfigdirs="$noconfigdirs gprof target-libgloss"
3808 ;;
3809 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3810 noconfigdirs="$noconfigdirs target-libgloss"
3811 ;;
3812 i[3456789]86-*-sysv4*)
3813 noconfigdirs="$noconfigdirs target-libgloss"
3814 ;;
3815 i[3456789]86-*-beos*)
3816 noconfigdirs="$noconfigdirs gdb"
3817 ;;
3818 i[3456789]86-*-rdos*)
3819 noconfigdirs="$noconfigdirs gdb"
3820 ;;
3821 mmix-*-*)
3822 noconfigdirs="$noconfigdirs gdb"
3823 ;;
3824 mt-*-*)
3825 noconfigdirs="$noconfigdirs sim"
3826 ;;
3827 nfp-*-*)
3828 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3829 noconfigdirs="$noconfigdirs $target_libraries"
3830 ;;
3831 pdp11-*-*)
3832 noconfigdirs="$noconfigdirs gdb gprof"
3833 ;;
3834 powerpc-*-aix*)
3835 # copied from rs6000-*-* entry
3836 noconfigdirs="$noconfigdirs gprof"
3837 ;;
3838 powerpc*-*-winnt* | powerpc*-*-pe*)
3839 target_configdirs="$target_configdirs target-winsup"
3840 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3841 # always build newlib.
3842 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3843 ;;
3844 # This is temporary until we can link against shared libraries
3845 powerpcle-*-solaris*)
3846 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3847 ;;
3848 powerpc-*-beos*)
3849 noconfigdirs="$noconfigdirs gdb"
3850 ;;
3851 rs6000-*-lynxos*)
3852 noconfigdirs="$noconfigdirs gprof"
3853 ;;
3854 rs6000-*-aix*)
3855 noconfigdirs="$noconfigdirs gprof"
3856 ;;
3857 rs6000-*-*)
3858 noconfigdirs="$noconfigdirs gprof"
3859 ;;
3860 m68k-apollo-*)
3861 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3862 ;;
3863 microblaze*)
3864 noconfigdirs="$noconfigdirs gprof"
3865 ;;
3866 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3867 if test x$with_newlib = xyes; then
3868 noconfigdirs="$noconfigdirs gprof"
3869 fi
3870 ;;
3871 mips*-*-irix5*)
3872 noconfigdirs="$noconfigdirs gprof target-libgloss"
3873 ;;
3874 mips*-*-irix6*)
3875 noconfigdirs="$noconfigdirs gprof target-libgloss"
3876 ;;
3877 mips*-*-bsd*)
3878 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3879 ;;
3880 mips*-*-linux*)
3881 ;;
3882 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3883 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3884 noconfigdirs="$noconfigdirs ld gas gprof"
3885 ;;
3886 mips*-*-*)
3887 noconfigdirs="$noconfigdirs gprof"
3888 ;;
3889 nvptx*-*-*)
3890 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3891 ;;
3892 sh-*-*)
3893 case "${target}" in
3894 sh*-*-elf)
3895 ;;
3896 *)
3897 noconfigdirs="$noconfigdirs target-libgloss" ;;
3898 esac
3899 ;;
3900 sparc-*-sunos4*)
3901 if test x${is_cross_compiler} = xno ; then
3902 use_gnu_ld=no
3903 fi
3904 ;;
3905 tic6x-*-*)
3906 noconfigdirs="$noconfigdirs sim"
3907 ;;
3908 tilepro*-*-* | tilegx*-*-*)
3909 noconfigdirs="$noconfigdirs sim"
3910 ;;
3911 v810-*-*)
3912 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3913 ;;
3914 vax-*-*)
3915 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3916 ;;
3917 wasm32-*-*)
3918 noconfigdirs="$noconfigdirs ld"
3919 ;;
3920 esac
3921
3922 # If we aren't building newlib, then don't build libgloss, since libgloss
3923 # depends upon some newlib header files.
3924 case "${noconfigdirs}" in
3925 *target-libgloss*) ;;
3926 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3927 esac
3928
3929 # Work in distributions that contain no compiler tools, like Autoconf.
3930 host_makefile_frag=/dev/null
3931 if test -d ${srcdir}/config ; then
3932 case "${host}" in
3933 i[3456789]86-*-msdosdjgpp*)
3934 host_makefile_frag="config/mh-djgpp"
3935 ;;
3936 *-cygwin*)
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3939 $as_echo_n "checking to see if cat works as expected... " >&6; }
3940 echo a >cygwin-cat-check
3941 if test `cat cygwin-cat-check` = a ; then
3942 rm cygwin-cat-check
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944 $as_echo "yes" >&6; }
3945 else
3946 rm cygwin-cat-check
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 as_fn_error $? "The cat command does not ignore carriage return characters.
3950 Please either mount the build directory in binary mode or run the following
3951 commands before running any configure script:
3952 set -o igncr
3953 export SHELLOPTS
3954 " "$LINENO" 5
3955 fi
3956
3957 host_makefile_frag="config/mh-cygwin"
3958 ;;
3959 *-mingw*)
3960 host_makefile_frag="config/mh-mingw"
3961 ;;
3962 alpha*-linux*)
3963 host_makefile_frag="config/mh-alpha-linux"
3964 ;;
3965 hppa*-hp-hpux10*)
3966 host_makefile_frag="config/mh-pa-hpux10"
3967 ;;
3968 hppa*-hp-hpux*)
3969 host_makefile_frag="config/mh-pa"
3970 ;;
3971 hppa*-*)
3972 host_makefile_frag="config/mh-pa"
3973 ;;
3974 *-*-darwin*)
3975 host_makefile_frag="config/mh-darwin"
3976 ;;
3977 powerpc-*-aix*)
3978 host_makefile_frag="config/mh-ppc-aix"
3979 ;;
3980 rs6000-*-aix*)
3981 host_makefile_frag="config/mh-ppc-aix"
3982 ;;
3983 esac
3984 fi
3985
3986 if test "${build}" != "${host}" ; then
3987 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3988 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3989 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3990 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3991 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3992 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3993 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3994 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3995 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3996 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3997 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3998 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3999 else
4000 AR_FOR_BUILD="\$(AR)"
4001 AS_FOR_BUILD="\$(AS)"
4002 CC_FOR_BUILD="\$(CC)"
4003 CXX_FOR_BUILD="\$(CXX)"
4004 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4005 GOC_FOR_BUILD="\$(GOC)"
4006 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4007 LD_FOR_BUILD="\$(LD)"
4008 NM_FOR_BUILD="\$(NM)"
4009 RANLIB_FOR_BUILD="\$(RANLIB)"
4010 WINDRES_FOR_BUILD="\$(WINDRES)"
4011 WINDMC_FOR_BUILD="\$(WINDMC)"
4012 fi
4013
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if ${ac_cv_prog_CC+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -n "$CC"; then
4028 ac_cv_prog_CC="$CC" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4040 fi
4041 done
4042 done
4043 IFS=$as_save_IFS
4044
4045 fi
4046 fi
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 $as_echo "$CC" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 fi
4055
4056
4057 fi
4058 if test -z "$ac_cv_prog_CC"; then
4059 ac_ct_CC=$CC
4060 # Extract the first word of "gcc", so it can be a program name with args.
4061 set dummy gcc; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$ac_ct_CC"; then
4068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_ac_ct_CC="gcc"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4080 fi
4081 done
4082 done
4083 IFS=$as_save_IFS
4084
4085 fi
4086 fi
4087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4088 if test -n "$ac_ct_CC"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4090 $as_echo "$ac_ct_CC" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 fi
4095
4096 if test "x$ac_ct_CC" = x; then
4097 CC=""
4098 else
4099 case $cross_compiling:$ac_tool_warned in
4100 yes:)
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4103 ac_tool_warned=yes ;;
4104 esac
4105 CC=$ac_ct_CC
4106 fi
4107 else
4108 CC="$ac_cv_prog_CC"
4109 fi
4110
4111 if test -z "$CC"; then
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}cc; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_CC+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$CC"; then
4121 ac_cv_prog_CC="$CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CC="${ac_tool_prefix}cc"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 CC=$ac_cv_prog_CC
4141 if test -n "$CC"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4143 $as_echo "$CC" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149
4150 fi
4151 fi
4152 if test -z "$CC"; then
4153 # Extract the first word of "cc", so it can be a program name with args.
4154 set dummy cc; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_prog_CC+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if test -n "$CC"; then
4161 ac_cv_prog_CC="$CC" # Let the user override the test.
4162 else
4163 ac_prog_rejected=no
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4172 ac_prog_rejected=yes
4173 continue
4174 fi
4175 ac_cv_prog_CC="cc"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179 done
4180 done
4181 IFS=$as_save_IFS
4182
4183 if test $ac_prog_rejected = yes; then
4184 # We found a bogon in the path, so make sure we never use it.
4185 set dummy $ac_cv_prog_CC
4186 shift
4187 if test $# != 0; then
4188 # We chose a different compiler from the bogus one.
4189 # However, it has the same basename, so the bogon will be chosen
4190 # first if we set CC to just the basename; use the full file name.
4191 shift
4192 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4193 fi
4194 fi
4195 fi
4196 fi
4197 CC=$ac_cv_prog_CC
4198 if test -n "$CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200 $as_echo "$CC" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207 fi
4208 if test -z "$CC"; then
4209 if test -n "$ac_tool_prefix"; then
4210 for ac_prog in cl.exe
4211 do
4212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if ${ac_cv_prog_CC+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC="$CC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 fi
4238 fi
4239 CC=$ac_cv_prog_CC
4240 if test -n "$CC"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4242 $as_echo "$CC" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 fi
4247
4248
4249 test -n "$CC" && break
4250 done
4251 fi
4252 if test -z "$CC"; then
4253 ac_ct_CC=$CC
4254 for ac_prog in cl.exe
4255 do
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$ac_ct_CC"; then
4264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_ac_ct_CC="$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277 done
4278 done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4286 $as_echo "$ac_ct_CC" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292
4293 test -n "$ac_ct_CC" && break
4294 done
4295
4296 if test "x$ac_ct_CC" = x; then
4297 CC=""
4298 else
4299 case $cross_compiling:$ac_tool_warned in
4300 yes:)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4303 ac_tool_warned=yes ;;
4304 esac
4305 CC=$ac_ct_CC
4306 fi
4307 fi
4308
4309 fi
4310
4311
4312 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4314 as_fn_error $? "no acceptable C compiler found in \$PATH
4315 See \`config.log' for more details" "$LINENO" 5; }
4316
4317 # Provide some information about the compiler.
4318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4319 set X $ac_compile
4320 ac_compiler=$2
4321 for ac_option in --version -v -V -qversion; do
4322 { { ac_try="$ac_compiler $ac_option >&5"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4330 ac_status=$?
4331 if test -s conftest.err; then
4332 sed '10a\
4333 ... rest of stderr output deleted ...
4334 10q' conftest.err >conftest.er1
4335 cat conftest.er1 >&5
4336 fi
4337 rm -f conftest.er1 conftest.err
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }
4340 done
4341
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344
4345 int
4346 main ()
4347 {
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 ac_clean_files_save=$ac_clean_files
4354 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4355 # Try to create an executable without -o first, disregard a.out.
4356 # It will help us diagnose broken compilers, and finding out an intuition
4357 # of exeext.
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4359 $as_echo_n "checking whether the C compiler works... " >&6; }
4360 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4361
4362 # The possible output files:
4363 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4364
4365 ac_rmfiles=
4366 for ac_file in $ac_files
4367 do
4368 case $ac_file in
4369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4370 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4371 esac
4372 done
4373 rm -f $ac_rmfiles
4374
4375 if { { ac_try="$ac_link_default"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382 (eval "$ac_link_default") 2>&5
4383 ac_status=$?
4384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; }; then :
4386 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4387 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4388 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4389 # so that the user can short-circuit this test for compilers unknown to
4390 # Autoconf.
4391 for ac_file in $ac_files ''
4392 do
4393 test -f "$ac_file" || continue
4394 case $ac_file in
4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4396 ;;
4397 [ab].out )
4398 # We found the default executable, but exeext='' is most
4399 # certainly right.
4400 break;;
4401 *.* )
4402 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4403 then :; else
4404 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4405 fi
4406 # We set ac_cv_exeext here because the later test for it is not
4407 # safe: cross compilers may not add the suffix if given an `-o'
4408 # argument, so we may need to know it at that point already.
4409 # Even if this section looks crufty: it has the advantage of
4410 # actually working.
4411 break;;
4412 * )
4413 break;;
4414 esac
4415 done
4416 test "$ac_cv_exeext" = no && ac_cv_exeext=
4417
4418 else
4419 ac_file=''
4420 fi
4421 if test -z "$ac_file"; then :
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4424 $as_echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error 77 "C compiler cannot create executables
4430 See \`config.log' for more details" "$LINENO" 5; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4433 $as_echo "yes" >&6; }
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4436 $as_echo_n "checking for C compiler default output file name... " >&6; }
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4438 $as_echo "$ac_file" >&6; }
4439 ac_exeext=$ac_cv_exeext
4440
4441 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4442 ac_clean_files=$ac_clean_files_save
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4444 $as_echo_n "checking for suffix of executables... " >&6; }
4445 if { { ac_try="$ac_link"
4446 case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 $as_echo "$ac_try_echo"; } >&5
4452 (eval "$ac_link") 2>&5
4453 ac_status=$?
4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }; then :
4456 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4457 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4458 # work properly (i.e., refer to `conftest.exe'), while it won't with
4459 # `rm'.
4460 for ac_file in conftest.exe conftest conftest.*; do
4461 test -f "$ac_file" || continue
4462 case $ac_file in
4463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4464 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4465 break;;
4466 * ) break;;
4467 esac
4468 done
4469 else
4470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4473 See \`config.log' for more details" "$LINENO" 5; }
4474 fi
4475 rm -f conftest conftest$ac_cv_exeext
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4477 $as_echo "$ac_cv_exeext" >&6; }
4478
4479 rm -f conftest.$ac_ext
4480 EXEEXT=$ac_cv_exeext
4481 ac_exeext=$EXEEXT
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #include <stdio.h>
4485 int
4486 main ()
4487 {
4488 FILE *f = fopen ("conftest.out", "w");
4489 return ferror (f) || fclose (f) != 0;
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 ac_clean_files="$ac_clean_files conftest.out"
4496 # Check that the compiler produces executables we can run. If not, either
4497 # the compiler is broken, or we cross compile.
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4499 $as_echo_n "checking whether we are cross compiling... " >&6; }
4500 if test "$cross_compiling" != yes; then
4501 { { ac_try="$ac_link"
4502 case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_link") 2>&5
4509 ac_status=$?
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }
4512 if { ac_try='./conftest$ac_cv_exeext'
4513 { { case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }; }; then
4523 cross_compiling=no
4524 else
4525 if test "$cross_compiling" = maybe; then
4526 cross_compiling=yes
4527 else
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530 as_fn_error $? "cannot run C compiled programs.
4531 If you meant to cross compile, use \`--host'.
4532 See \`config.log' for more details" "$LINENO" 5; }
4533 fi
4534 fi
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4537 $as_echo "$cross_compiling" >&6; }
4538
4539 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4540 ac_clean_files=$ac_clean_files_save
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4542 $as_echo_n "checking for suffix of object files... " >&6; }
4543 if ${ac_cv_objext+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548
4549 int
4550 main ()
4551 {
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.o conftest.obj
4558 if { { ac_try="$ac_compile"
4559 case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562 esac
4563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4564 $as_echo "$ac_try_echo"; } >&5
4565 (eval "$ac_compile") 2>&5
4566 ac_status=$?
4567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4568 test $ac_status = 0; }; then :
4569 for ac_file in conftest.o conftest.obj conftest.*; do
4570 test -f "$ac_file" || continue;
4571 case $ac_file in
4572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4574 break;;
4575 esac
4576 done
4577 else
4578 $as_echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583 as_fn_error $? "cannot compute suffix of object files: cannot compile
4584 See \`config.log' for more details" "$LINENO" 5; }
4585 fi
4586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4589 $as_echo "$ac_cv_objext" >&6; }
4590 OBJEXT=$ac_cv_objext
4591 ac_objext=$OBJEXT
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4594 if ${ac_cv_c_compiler_gnu+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599
4600 int
4601 main ()
4602 {
4603 #ifndef __GNUC__
4604 choke me
4605 #endif
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_compiler_gnu=yes
4613 else
4614 ac_compiler_gnu=no
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4618
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4621 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4622 if test $ac_compiler_gnu = yes; then
4623 GCC=yes
4624 else
4625 GCC=
4626 fi
4627 ac_test_CFLAGS=${CFLAGS+set}
4628 ac_save_CFLAGS=$CFLAGS
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4630 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4631 if ${ac_cv_prog_cc_g+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 ac_save_c_werror_flag=$ac_c_werror_flag
4635 ac_c_werror_flag=yes
4636 ac_cv_prog_cc_g=no
4637 CFLAGS="-g"
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640
4641 int
4642 main ()
4643 {
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_prog_cc_g=yes
4651 else
4652 CFLAGS=""
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655
4656 int
4657 main ()
4658 {
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665
4666 else
4667 ac_c_werror_flag=$ac_save_c_werror_flag
4668 CFLAGS="-g"
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671
4672 int
4673 main ()
4674 {
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 ac_cv_prog_cc_g=yes
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 ac_c_werror_flag=$ac_save_c_werror_flag
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4691 $as_echo "$ac_cv_prog_cc_g" >&6; }
4692 if test "$ac_test_CFLAGS" = set; then
4693 CFLAGS=$ac_save_CFLAGS
4694 elif test $ac_cv_prog_cc_g = yes; then
4695 if test "$GCC" = yes; then
4696 CFLAGS="-g -O2"
4697 else
4698 CFLAGS="-g"
4699 fi
4700 else
4701 if test "$GCC" = yes; then
4702 CFLAGS="-O2"
4703 else
4704 CFLAGS=
4705 fi
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4708 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4709 if ${ac_cv_prog_cc_c89+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 ac_cv_prog_cc_c89=no
4713 ac_save_CC=$CC
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <stdarg.h>
4717 #include <stdio.h>
4718 struct stat;
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4723 char **p;
4724 int i;
4725 {
4726 return p[i];
4727 }
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4729 {
4730 char *s;
4731 va_list v;
4732 va_start (v,p);
4733 s = g (p, va_arg (v,int));
4734 va_end (v);
4735 return s;
4736 }
4737
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4739 function prototypes and stuff, but not '\xHH' hex character constants.
4740 These don't provoke an error unfortunately, instead are silently treated
4741 as 'x'. The following induces an error, until -std is added to get
4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4743 array size at least. It's necessary to write '\x00'==0 to get something
4744 that's true only with -std. */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4746
4747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748 inside strings and character constants. */
4749 #define FOO(x) 'x'
4750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4751
4752 int test (int i, double x);
4753 struct s1 {int (*f) (int a);};
4754 struct s2 {int (*f) (double a);};
4755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756 int argc;
4757 char **argv;
4758 int
4759 main ()
4760 {
4761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4768 do
4769 CC="$ac_save_CC $ac_arg"
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_c89=$ac_arg
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext
4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
4775 done
4776 rm -f conftest.$ac_ext
4777 CC=$ac_save_CC
4778
4779 fi
4780 # AC_CACHE_VAL
4781 case "x$ac_cv_prog_cc_c89" in
4782 x)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784 $as_echo "none needed" >&6; } ;;
4785 xno)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 $as_echo "unsupported" >&6; } ;;
4788 *)
4789 CC="$CC $ac_cv_prog_cc_c89"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4792 esac
4793 if test "x$ac_cv_prog_cc_c89" != xno; then :
4794
4795 fi
4796
4797 ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803 ac_ext=cpp
4804 ac_cpp='$CXXCPP $CPPFLAGS'
4805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808 if test -z "$CXX"; then
4809 if test -n "$CCC"; then
4810 CXX=$CCC
4811 else
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4814 do
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_CXX+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$CXX"; then
4823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 CXX=$ac_cv_prog_CXX
4843 if test -n "$CXX"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845 $as_echo "$CXX" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851
4852 test -n "$CXX" && break
4853 done
4854 fi
4855 if test -z "$CXX"; then
4856 ac_ct_CXX=$CXX
4857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4858 do
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_CXX"; then
4867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_ac_ct_CXX="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887 if test -n "$ac_ct_CXX"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889 $as_echo "$ac_ct_CXX" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 test -n "$ac_ct_CXX" && break
4897 done
4898
4899 if test "x$ac_ct_CXX" = x; then
4900 CXX="g++"
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908 CXX=$ac_ct_CXX
4909 fi
4910 fi
4911
4912 fi
4913 fi
4914 # Provide some information about the compiler.
4915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4916 set X $ac_compile
4917 ac_compiler=$2
4918 for ac_option in --version -v -V -qversion; do
4919 { { ac_try="$ac_compiler $ac_option >&5"
4920 case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923 esac
4924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925 $as_echo "$ac_try_echo"; } >&5
4926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4927 ac_status=$?
4928 if test -s conftest.err; then
4929 sed '10a\
4930 ... rest of stderr output deleted ...
4931 10q' conftest.err >conftest.er1
4932 cat conftest.er1 >&5
4933 fi
4934 rm -f conftest.er1 conftest.err
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }
4937 done
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main ()
4949 {
4950 #ifndef __GNUC__
4951 choke me
4952 #endif
4953
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 if ac_fn_cxx_try_compile "$LINENO"; then :
4959 ac_compiler_gnu=yes
4960 else
4961 ac_compiler_gnu=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4969 if test $ac_compiler_gnu = yes; then
4970 GXX=yes
4971 else
4972 GXX=
4973 fi
4974 ac_test_CXXFLAGS=${CXXFLAGS+set}
4975 ac_save_CXXFLAGS=$CXXFLAGS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978 if ${ac_cv_prog_cxx_g+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982 ac_cxx_werror_flag=yes
4983 ac_cv_prog_cxx_g=no
4984 CXXFLAGS="-g"
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987
4988 int
4989 main ()
4990 {
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_cxx_try_compile "$LINENO"; then :
4997 ac_cv_prog_cxx_g=yes
4998 else
4999 CXXFLAGS=""
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002
5003 int
5004 main ()
5005 {
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_cxx_try_compile "$LINENO"; then :
5012
5013 else
5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015 CXXFLAGS="-g"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 int
5020 main ()
5021 {
5022
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_cxx_try_compile "$LINENO"; then :
5028 ac_cv_prog_cxx_g=yes
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5039 if test "$ac_test_CXXFLAGS" = set; then
5040 CXXFLAGS=$ac_save_CXXFLAGS
5041 elif test $ac_cv_prog_cxx_g = yes; then
5042 if test "$GXX" = yes; then
5043 CXXFLAGS="-g -O2"
5044 else
5045 CXXFLAGS="-g"
5046 fi
5047 else
5048 if test "$GXX" = yes; then
5049 CXXFLAGS="-O2"
5050 else
5051 CXXFLAGS=
5052 fi
5053 fi
5054 ac_ext=c
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060
5061 # We must set the default linker to the linker used by gcc for the correct
5062 # operation of libtool. If LD is not defined and we are using gcc, try to
5063 # set the LD default to the ld used by gcc.
5064 if test -z "$LD"; then
5065 if test "$GCC" = yes; then
5066 case $build in
5067 *-*-mingw*)
5068 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5069 *)
5070 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5071 esac
5072 case $gcc_prog_ld in
5073 # Accept absolute paths.
5074 [\\/]* | [A-Za-z]:[\\/]*)
5075 LD="$gcc_prog_ld" ;;
5076 esac
5077 fi
5078 fi
5079
5080 # Check whether -static-libstdc++ -static-libgcc is supported.
5081 have_static_libs=no
5082 if test "$GCC" = yes; then
5083 saved_LDFLAGS="$LDFLAGS"
5084
5085 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5087 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5088 ac_ext=cpp
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093
5094
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097
5098 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5099 #error -static-libstdc++ not implemented
5100 #endif
5101 int main() {}
5102 _ACEOF
5103 if ac_fn_cxx_try_link "$LINENO"; then :
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105 $as_echo "yes" >&6; }; have_static_libs=yes
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118
5119 LDFLAGS="$saved_LDFLAGS"
5120 fi
5121
5122
5123
5124
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5127 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_GNATBIND+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$GNATBIND"; then
5134 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 GNATBIND=$ac_cv_prog_GNATBIND
5154 if test -n "$GNATBIND"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5156 $as_echo "$GNATBIND" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163 fi
5164 if test -z "$ac_cv_prog_GNATBIND"; then
5165 ac_ct_GNATBIND=$GNATBIND
5166 # Extract the first word of "gnatbind", so it can be a program name with args.
5167 set dummy gnatbind; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$ac_ct_GNATBIND"; then
5174 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187 done
5188 done
5189 IFS=$as_save_IFS
5190
5191 fi
5192 fi
5193 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5194 if test -n "$ac_ct_GNATBIND"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5196 $as_echo "$ac_ct_GNATBIND" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201
5202 if test "x$ac_ct_GNATBIND" = x; then
5203 GNATBIND="no"
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206 yes:)
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211 GNATBIND=$ac_ct_GNATBIND
5212 fi
5213 else
5214 GNATBIND="$ac_cv_prog_GNATBIND"
5215 fi
5216
5217 if test -n "$ac_tool_prefix"; then
5218 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_GNATMAKE+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$GNATMAKE"; then
5226 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 GNATMAKE=$ac_cv_prog_GNATMAKE
5246 if test -n "$GNATMAKE"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5248 $as_echo "$GNATMAKE" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255 fi
5256 if test -z "$ac_cv_prog_GNATMAKE"; then
5257 ac_ct_GNATMAKE=$GNATMAKE
5258 # Extract the first word of "gnatmake", so it can be a program name with args.
5259 set dummy gnatmake; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 if test -n "$ac_ct_GNATMAKE"; then
5266 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5286 if test -n "$ac_ct_GNATMAKE"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5288 $as_echo "$ac_ct_GNATMAKE" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294 if test "x$ac_ct_GNATMAKE" = x; then
5295 GNATMAKE="no"
5296 else
5297 case $cross_compiling:$ac_tool_warned in
5298 yes:)
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301 ac_tool_warned=yes ;;
5302 esac
5303 GNATMAKE=$ac_ct_GNATMAKE
5304 fi
5305 else
5306 GNATMAKE="$ac_cv_prog_GNATMAKE"
5307 fi
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5310 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5311 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 cat >conftest.adb <<EOF
5315 procedure conftest is begin null; end conftest;
5316 EOF
5317 acx_cv_cc_gcc_supports_ada=no
5318 # There is a bug in old released versions of GCC which causes the
5319 # driver to exit successfully when the appropriate language module
5320 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5321 # Therefore we must check for the error message as well as an
5322 # unsuccessful exit.
5323 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5324 # given a .adb file, but produce no object file. So we must check
5325 # if an object file was really produced to guard against this.
5326 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5327 if test x"$errors" = x && test -f conftest.$ac_objext; then
5328 acx_cv_cc_gcc_supports_ada=yes
5329 fi
5330 rm -f conftest.*
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5333 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5334
5335 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5336 have_gnat=yes
5337 else
5338 have_gnat=no
5339 fi
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5342 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5343 if ${gcc_cv_prog_cmp_skip+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 echo abfoo >t1
5347 echo cdfoo >t2
5348 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5349 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5350 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5351 :
5352 else
5353 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5354 fi
5355 fi
5356 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5357 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5358 :
5359 else
5360 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5361 fi
5362 fi
5363 rm t1 t2
5364
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5367 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5368 do_compare="$gcc_cv_prog_cmp_skip"
5369
5370
5371
5372 # Check whether --enable-bootstrap was given.
5373 if test "${enable_bootstrap+set}" = set; then :
5374 enableval=$enable_bootstrap;
5375 else
5376 enable_bootstrap=default
5377 fi
5378
5379
5380 # Issue errors and warnings for invalid/strange bootstrap combinations.
5381 if test -r $srcdir/gcc/configure; then
5382 have_compiler=yes
5383 else
5384 have_compiler=no
5385 fi
5386
5387 case "$have_compiler:$host:$target:$enable_bootstrap" in
5388 *:*:*:no) ;;
5389
5390 # Default behavior. Enable bootstrap if we have a compiler
5391 # and we are in a native configuration.
5392 yes:$build:$build:default)
5393 enable_bootstrap=yes ;;
5394
5395 *:*:*:default)
5396 enable_bootstrap=no ;;
5397
5398 # We have a compiler and we are in a native configuration, bootstrap is ok
5399 yes:$build:$build:yes)
5400 ;;
5401
5402 # Other configurations, but we have a compiler. Assume the user knows
5403 # what he's doing.
5404 yes:*:*:yes)
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5406 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5407 ;;
5408
5409 # No compiler: if they passed --enable-bootstrap explicitly, fail
5410 no:*:*:yes)
5411 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5412
5413 # Fail if wrong command line
5414 *)
5415 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5416 ;;
5417 esac
5418
5419 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5420 # C++98 compiler can still start the bootstrap.
5421 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5422 CXX="$CXX -std=gnu++98"
5423 fi
5424
5425 # Used for setting $lt_cv_objdir
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5427 $as_echo_n "checking for objdir... " >&6; }
5428 if ${lt_cv_objdir+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 rm -f .libs 2>/dev/null
5432 mkdir .libs 2>/dev/null
5433 if test -d .libs; then
5434 lt_cv_objdir=.libs
5435 else
5436 # MS-DOS does not allow filenames that begin with a dot.
5437 lt_cv_objdir=_libs
5438 fi
5439 rmdir .libs 2>/dev/null
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5442 $as_echo "$lt_cv_objdir" >&6; }
5443 objdir=$lt_cv_objdir
5444
5445
5446
5447
5448
5449 cat >>confdefs.h <<_ACEOF
5450 #define LT_OBJDIR "$lt_cv_objdir/"
5451 _ACEOF
5452
5453
5454
5455 # Check for GMP, MPFR and MPC
5456 gmplibs="-lmpc -lmpfr -lgmp"
5457 gmpinc=
5458 have_gmp=no
5459
5460 # Specify a location for mpc
5461 # check for this first so it ends up on the link line before mpfr.
5462
5463 # Check whether --with-mpc was given.
5464 if test "${with_mpc+set}" = set; then :
5465 withval=$with_mpc;
5466 fi
5467
5468
5469 # Check whether --with-mpc-include was given.
5470 if test "${with_mpc_include+set}" = set; then :
5471 withval=$with_mpc_include;
5472 fi
5473
5474
5475 # Check whether --with-mpc-lib was given.
5476 if test "${with_mpc_lib+set}" = set; then :
5477 withval=$with_mpc_lib;
5478 fi
5479
5480
5481 if test "x$with_mpc" != x; then
5482 gmplibs="-L$with_mpc/lib $gmplibs"
5483 gmpinc="-I$with_mpc/include $gmpinc"
5484 fi
5485 if test "x$with_mpc_include" != x; then
5486 gmpinc="-I$with_mpc_include $gmpinc"
5487 fi
5488 if test "x$with_mpc_lib" != x; then
5489 gmplibs="-L$with_mpc_lib $gmplibs"
5490 fi
5491 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5492 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5493 gmpinc='-I$$s/mpc/src '"$gmpinc"
5494 # Do not test the mpc version. Assume that it is sufficient, since
5495 # it is in the source tree, and the library has not been built yet
5496 # but it would be included on the link line in the version check below
5497 # hence making the test fail.
5498 have_gmp=yes
5499 fi
5500
5501 # Specify a location for mpfr
5502 # check for this first so it ends up on the link line before gmp.
5503
5504 # Check whether --with-mpfr-dir was given.
5505 if test "${with_mpfr_dir+set}" = set; then :
5506 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5507 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5508 fi
5509
5510
5511
5512 # Check whether --with-mpfr was given.
5513 if test "${with_mpfr+set}" = set; then :
5514 withval=$with_mpfr;
5515 fi
5516
5517
5518 # Check whether --with-mpfr-include was given.
5519 if test "${with_mpfr_include+set}" = set; then :
5520 withval=$with_mpfr_include;
5521 fi
5522
5523
5524 # Check whether --with-mpfr-lib was given.
5525 if test "${with_mpfr_lib+set}" = set; then :
5526 withval=$with_mpfr_lib;
5527 fi
5528
5529
5530 if test "x$with_mpfr" != x; then
5531 gmplibs="-L$with_mpfr/lib $gmplibs"
5532 gmpinc="-I$with_mpfr/include $gmpinc"
5533 fi
5534 if test "x$with_mpfr_include" != x; then
5535 gmpinc="-I$with_mpfr_include $gmpinc"
5536 fi
5537 if test "x$with_mpfr_lib" != x; then
5538 gmplibs="-L$with_mpfr_lib $gmplibs"
5539 fi
5540 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5541 # MPFR v3.1.0 moved the sources into a src sub-directory.
5542 if ! test -d ${srcdir}/mpfr/src; then
5543 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5544 fi
5545 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5546 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5547 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5548 # Do not test the mpfr version. Assume that it is sufficient, since
5549 # it is in the source tree, and the library has not been built yet
5550 # but it would be included on the link line in the version check below
5551 # hence making the test fail.
5552 have_gmp=yes
5553 fi
5554
5555 # Specify a location for gmp
5556
5557 # Check whether --with-gmp-dir was given.
5558 if test "${with_gmp_dir+set}" = set; then :
5559 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5560 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5561 fi
5562
5563
5564
5565 # Check whether --with-gmp was given.
5566 if test "${with_gmp+set}" = set; then :
5567 withval=$with_gmp;
5568 fi
5569
5570
5571 # Check whether --with-gmp-include was given.
5572 if test "${with_gmp_include+set}" = set; then :
5573 withval=$with_gmp_include;
5574 fi
5575
5576
5577 # Check whether --with-gmp-lib was given.
5578 if test "${with_gmp_lib+set}" = set; then :
5579 withval=$with_gmp_lib;
5580 fi
5581
5582
5583
5584 if test "x$with_gmp" != x; then
5585 gmplibs="-L$with_gmp/lib $gmplibs"
5586 gmpinc="-I$with_gmp/include $gmpinc"
5587 fi
5588 if test "x$with_gmp_include" != x; then
5589 gmpinc="-I$with_gmp_include $gmpinc"
5590 fi
5591 if test "x$with_gmp_lib" != x; then
5592 gmplibs="-L$with_gmp_lib $gmplibs"
5593 fi
5594 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5595 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5596 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5597 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5598 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5599 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5600 # Do not test the gmp version. Assume that it is sufficient, since
5601 # it is in the source tree, and the library has not been built yet
5602 # but it would be included on the link line in the version check below
5603 # hence making the test fail.
5604 have_gmp=yes
5605 fi
5606
5607 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5608 have_gmp=yes
5609 saved_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $gmpinc"
5611 # Check for the recommended and required versions of GMP.
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5613 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5614
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include "gmp.h"
5618 int
5619 main ()
5620 {
5621
5622 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5623 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5624 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5625 choke me
5626 #endif
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <gmp.h>
5636 int
5637 main ()
5638 {
5639
5640 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5641 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5642 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5643 choke me
5644 #endif
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652 $as_echo "yes" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5655 $as_echo "buggy but acceptable" >&6; }
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }; have_gmp=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663
5664 # If we have GMP, check the MPFR version.
5665 if test x"$have_gmp" = xyes; then
5666 # Check for the recommended and required versions of MPFR.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5668 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <gmp.h>
5672 #include <mpfr.h>
5673 int
5674 main ()
5675 {
5676
5677 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5678 choke me
5679 #endif
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #include <gmp.h>
5689 #include <mpfr.h>
5690 int
5691 main ()
5692 {
5693
5694 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5695 choke me
5696 #endif
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704 $as_echo "yes" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5707 $as_echo "buggy but acceptable" >&6; }
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }; have_gmp=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716
5717 # Check for the MPC header version.
5718 if test x"$have_gmp" = xyes ; then
5719 # Check for the recommended and required versions of MPC.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5721 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <mpc.h>
5725 int
5726 main ()
5727 {
5728
5729 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5730 choke me
5731 #endif
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #include <mpc.h>
5741 int
5742 main ()
5743 {
5744
5745 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5746 choke me
5747 #endif
5748
5749 ;
5750 return 0;
5751 }
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; }
5759 fi
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
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767
5768 # Now check the MPFR library.
5769 if test x"$have_gmp" = xyes; then
5770 saved_LIBS="$LIBS"
5771 LIBS="$LIBS $gmplibs"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5773 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #include <mpc.h>
5777 int
5778 main ()
5779 {
5780
5781 mpfr_t n;
5782 mpfr_t x;
5783 mpc_t c;
5784 int t;
5785 mpfr_init (n);
5786 mpfr_init (x);
5787 mpfr_atan2 (n, n, x, GMP_RNDN);
5788 mpfr_erfc (n, x, GMP_RNDN);
5789 mpfr_subnormalize (x, t, GMP_RNDN);
5790 mpfr_clear(n);
5791 mpfr_clear(x);
5792 mpc_init2 (c, 53);
5793 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5794 mpc_cosh (c, c, MPC_RNDNN);
5795 mpc_pow (c, c, c, MPC_RNDNN);
5796 mpc_acosh (c, c, MPC_RNDNN);
5797 mpc_clear (c);
5798
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_link "$LINENO"; then :
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5805 $as_echo "yes" >&6; }
5806 else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }; have_gmp=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 LIBS="$saved_LIBS"
5813 fi
5814
5815 CFLAGS="$saved_CFLAGS"
5816
5817 # The library versions listed in the error message below should match
5818 # the HARD-minimums enforced above.
5819 if test x$have_gmp != xyes; then
5820 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5821 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5822 their locations. Source code for these libraries can be found at
5823 their respective hosting sites as well as at
5824 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5825 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5826 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5827 make sure that you have installed both the libraries and the header
5828 files. They may be located in separate packages." "$LINENO" 5
5829 fi
5830 fi
5831
5832 # Flags needed for both GMP, MPFR and/or MPC.
5833
5834
5835
5836
5837
5838
5839
5840 # Libraries to use for stage1 or when not bootstrapping.
5841
5842 # Check whether --with-stage1-libs was given.
5843 if test "${with_stage1_libs+set}" = set; then :
5844 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5845 stage1_libs=
5846 else
5847 stage1_libs=$withval
5848 fi
5849 else
5850 stage1_libs=
5851 fi
5852
5853
5854
5855 # Whether or not to use -static-libstdc++ and -static-libgcc. The
5856 # default is yes if gcc is being built; no otherwise. The reason for
5857 # this default is that gdb is sometimes linked against GNU Source
5858 # Highlight, which is a shared library that uses C++ exceptions. In
5859 # this case, -static-libstdc++ will cause crashes.
5860
5861 # Check whether --with-static-standard-libraries was given.
5862 if test "${with_static_standard_libraries+set}" = set; then :
5863 withval=$with_static_standard_libraries;
5864 else
5865 with_static_standard_libraries=auto
5866 fi
5867
5868 if test "$with_static_standard_libraries" = auto; then
5869 with_static_standard_libraries=$have_compiler
5870 fi
5871
5872 # Linker flags to use for stage1 or when not bootstrapping.
5873
5874 # Check whether --with-stage1-ldflags was given.
5875 if test "${with_stage1_ldflags+set}" = set; then :
5876 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5877 stage1_ldflags=
5878 else
5879 stage1_ldflags=$withval
5880 fi
5881 else
5882 stage1_ldflags=
5883 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5884 # if supported. But if the user explicitly specified the libraries to use,
5885 # trust that they are doing what they want.
5886 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5887 -a "$have_static_libs" = yes; then
5888 stage1_ldflags="-static-libstdc++ -static-libgcc"
5889 fi
5890 fi
5891
5892
5893
5894 # Libraries to use for stage2 and later builds.
5895
5896 # Check whether --with-boot-libs was given.
5897 if test "${with_boot_libs+set}" = set; then :
5898 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5899 poststage1_libs=
5900 else
5901 poststage1_libs=$withval
5902 fi
5903 else
5904 poststage1_libs=
5905 fi
5906
5907
5908
5909 # Linker flags to use for stage2 and later builds.
5910
5911 # Check whether --with-boot-ldflags was given.
5912 if test "${with_boot_ldflags+set}" = set; then :
5913 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5914 poststage1_ldflags=
5915 else
5916 poststage1_ldflags=$withval
5917 fi
5918 else
5919 poststage1_ldflags=
5920 # In stages 2 and 3, default to linking libstdc++ and libgcc
5921 # statically. But if the user explicitly specified the libraries to
5922 # use, trust that they are doing what they want.
5923 if test "$poststage1_libs" = ""; then
5924 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5925 fi
5926 fi
5927
5928
5929
5930 # GCC GRAPHITE dependency isl.
5931 # Basic setup is inlined here, actual checks are in config/isl.m4
5932
5933
5934 # Check whether --with-isl was given.
5935 if test "${with_isl+set}" = set; then :
5936 withval=$with_isl;
5937 fi
5938
5939
5940 # Treat --without-isl as a request to disable
5941 # GRAPHITE support and skip all following checks.
5942 if test "x$with_isl" != "xno"; then
5943 # Check for isl
5944
5945
5946 # Check whether --with-isl-include was given.
5947 if test "${with_isl_include+set}" = set; then :
5948 withval=$with_isl_include;
5949 fi
5950
5951
5952 # Check whether --with-isl-lib was given.
5953 if test "${with_isl_lib+set}" = set; then :
5954 withval=$with_isl_lib;
5955 fi
5956
5957
5958 # Check whether --enable-isl-version-check was given.
5959 if test "${enable_isl_version_check+set}" = set; then :
5960 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5961 else
5962 ENABLE_ISL_CHECK=yes
5963 fi
5964
5965
5966 # Initialize isllibs and islinc.
5967 case $with_isl in
5968 no)
5969 isllibs=
5970 islinc=
5971 ;;
5972 "" | yes)
5973 ;;
5974 *)
5975 isllibs="-L$with_isl/lib"
5976 islinc="-I$with_isl/include"
5977 ;;
5978 esac
5979 if test "x${with_isl_include}" != x ; then
5980 islinc="-I$with_isl_include"
5981 fi
5982 if test "x${with_isl_lib}" != x; then
5983 isllibs="-L$with_isl_lib"
5984 fi
5985 if test "x${islinc}" = x && test "x${isllibs}" = x \
5986 && test -d ${srcdir}/isl; then
5987 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5988 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5989 ENABLE_ISL_CHECK=no
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5991 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5992 fi
5993
5994 isllibs="${isllibs} -lisl"
5995
5996
5997
5998 if test "${ENABLE_ISL_CHECK}" = yes ; then
5999 _isl_saved_CFLAGS=$CFLAGS
6000 _isl_saved_LDFLAGS=$LDFLAGS
6001 _isl_saved_LIBS=$LIBS
6002
6003 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6004 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6005 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6006
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6008 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <isl/schedule.h>
6012 int
6013 main ()
6014 {
6015 isl_options_set_schedule_serialize_sccs (NULL, 0);
6016 ;
6017 return 0;
6018 }
6019 _ACEOF
6020 if ac_fn_c_try_link "$LINENO"; then :
6021 gcc_cv_isl=yes
6022 else
6023 gcc_cv_isl=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6028 $as_echo "$gcc_cv_isl" >&6; }
6029
6030 if test "${gcc_cv_isl}" = no ; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6032 $as_echo "required isl version is 0.15 or later" >&6; }
6033 fi
6034
6035 CFLAGS=$_isl_saved_CFLAGS
6036 LDFLAGS=$_isl_saved_LDFLAGS
6037 LIBS=$_isl_saved_LIBS
6038 fi
6039
6040
6041
6042
6043
6044
6045 if test "x${with_isl}" = xno; then
6046 graphite_requested=no
6047 elif test "x${with_isl}" != x \
6048 || test "x${with_isl_include}" != x \
6049 || test "x${with_isl_lib}" != x ; then
6050 graphite_requested=yes
6051 else
6052 graphite_requested=no
6053 fi
6054
6055
6056
6057 if test "${gcc_cv_isl}" = no ; then
6058 isllibs=
6059 islinc=
6060 fi
6061
6062 if test "${graphite_requested}" = yes \
6063 && test "x${isllibs}" = x \
6064 && test "x${islinc}" = x ; then
6065
6066 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6067 fi
6068
6069
6070 fi
6071
6072 # If the isl check failed, disable builds of in-tree variant of isl
6073 if test "x$with_isl" = xno ||
6074 test "x$gcc_cv_isl" = xno; then
6075 noconfigdirs="$noconfigdirs isl"
6076 islinc=
6077 fi
6078
6079
6080
6081
6082 # Check for LTO support.
6083 # Check whether --enable-lto was given.
6084 if test "${enable_lto+set}" = set; then :
6085 enableval=$enable_lto; enable_lto=$enableval
6086 else
6087 enable_lto=yes; default_enable_lto=yes
6088 fi
6089
6090
6091
6092
6093
6094 target_elf=no
6095 case $target in
6096 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6097 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6098 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6099 nvptx-*-none)
6100 target_elf=no
6101 ;;
6102 *)
6103 target_elf=yes
6104 ;;
6105 esac
6106
6107 if test $target_elf = yes; then :
6108 # ELF platforms build the lto-plugin always.
6109 build_lto_plugin=yes
6110
6111 else
6112 if test x"$default_enable_lto" = x"yes" ; then
6113 case $target in
6114 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6115 # On other non-ELF platforms, LTO has yet to be validated.
6116 *) enable_lto=no ;;
6117 esac
6118 else
6119 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6120 # It would also be nice to check the binutils support, but we don't
6121 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6122 # warn during gcc/ subconfigure; unless you're bootstrapping with
6123 # -flto it won't be needed until after installation anyway.
6124 case $target in
6125 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6126 *) if test x"$enable_lto" = x"yes"; then
6127 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6128 fi
6129 ;;
6130 esac
6131 fi
6132 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6133 # Build it unless LTO was explicitly disabled.
6134 case $target in
6135 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6136 *) ;;
6137 esac
6138
6139 fi
6140
6141
6142 # Check whether --enable-linker-plugin-configure-flags was given.
6143 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6144 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6145 else
6146 extra_linker_plugin_configure_flags=
6147 fi
6148
6149
6150 # Check whether --enable-linker-plugin-flags was given.
6151 if test "${enable_linker_plugin_flags+set}" = set; then :
6152 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6153 else
6154 extra_linker_plugin_flags=
6155 fi
6156
6157
6158
6159 # Enable --enable-host-shared.
6160 # Checked early to determine whether jit is an 'all' language
6161 # Check whether --enable-host-shared was given.
6162 if test "${enable_host_shared+set}" = set; then :
6163 enableval=$enable_host_shared; host_shared=$enableval
6164 else
6165 host_shared=no
6166 fi
6167
6168
6169
6170 # By default, C and C++ are the only stage 1 languages.
6171 stage1_languages=,c,
6172
6173 # Target libraries that we bootstrap.
6174 bootstrap_target_libs=,target-libgcc,
6175
6176 # Figure out what language subdirectories are present.
6177 # Look if the user specified --enable-languages="..."; if not, use
6178 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6179 # go away some day.
6180 # NB: embedded tabs in this IF block -- do not untabify
6181 if test -d ${srcdir}/gcc; then
6182 if test x"${enable_languages+set}" != xset; then
6183 if test x"${LANGUAGES+set}" = xset; then
6184 enable_languages="${LANGUAGES}"
6185 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6186 else
6187 enable_languages=default
6188 fi
6189 else
6190 if test x"${enable_languages}" = x ||
6191 test x"${enable_languages}" = xyes;
6192 then
6193 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6194 exit 1
6195 fi
6196 fi
6197 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6198
6199 # 'f95' is the old name for the 'fortran' language. We issue a warning
6200 # and make the substitution.
6201 case ,${enable_languages}, in
6202 *,f95,*)
6203 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6204 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6205 ;;
6206 esac
6207
6208 # If bootstrapping, C++ must be enabled.
6209 case ",$enable_languages,:$enable_bootstrap" in
6210 *,c++,*:*) ;;
6211 *:yes)
6212 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6213 enable_languages="${enable_languages},c++"
6214 else
6215 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6216 fi
6217 ;;
6218 esac
6219
6220 # First scan to see if an enabled language requires some other language.
6221 # We assume that a given config-lang.in will list all the language
6222 # front ends it requires, even if some are required indirectly.
6223 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6224 case ${lang_frag} in
6225 ..) ;;
6226 # The odd quoting in the next line works around
6227 # an apparent bug in bash 1.12 on linux.
6228 ${srcdir}/gcc/[*]/config-lang.in) ;;
6229 *)
6230 # From the config-lang.in, get $language, $lang_requires, and
6231 # $lang_requires_boot_languages.
6232 language=
6233 lang_requires=
6234 lang_requires_boot_languages=
6235 # set srcdir during sourcing lang_frag to the gcc dir.
6236 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6237 # polutes this shell
6238 saved_srcdir=${srcdir}
6239 srcdir=${srcdir}/gcc . ${lang_frag}
6240 srcdir=${saved_srcdir}
6241 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6242 case ,${enable_languages}, in
6243 *,$other,*) ;;
6244 *,default,*) ;;
6245 *,all,*) ;;
6246 *,$language,*)
6247 echo " \`$other' language required by \`$language'; enabling" 1>&2
6248 enable_languages="${enable_languages},${other}"
6249 ;;
6250 esac
6251 done
6252 for other in ${lang_requires_boot_languages} ; do
6253 if test "$other" != "c"; then
6254 case ,${enable_stage1_languages}, in
6255 *,$other,*) ;;
6256 *,default,*) ;;
6257 *,all,*) ;;
6258 *)
6259 case ,${enable_languages}, in
6260 *,$language,*)
6261 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6262 enable_stage1_languages="$enable_stage1_languages,${other}"
6263 ;;
6264 esac
6265 ;;
6266 esac
6267 fi
6268 done
6269 ;;
6270 esac
6271 done
6272
6273 new_enable_languages=,c,
6274
6275 # If LTO is enabled, add the LTO front end.
6276 if test "$enable_lto" = "yes" ; then
6277 case ,${enable_languages}, in
6278 *,lto,*) ;;
6279 *) enable_languages="${enable_languages},lto" ;;
6280 esac
6281 if test "${build_lto_plugin}" = "yes" ; then
6282 configdirs="$configdirs lto-plugin"
6283 fi
6284 fi
6285
6286 # If we're building an offloading compiler, add the LTO front end.
6287 if test x"$enable_as_accelerator_for" != x ; then
6288 case ,${enable_languages}, in
6289 *,lto,*) ;;
6290 *) enable_languages="${enable_languages},lto" ;;
6291 esac
6292 fi
6293
6294 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6295 potential_languages=,c,
6296
6297 enabled_target_libs=
6298 disabled_target_libs=
6299
6300 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6301 case ${lang_frag} in
6302 ..) ;;
6303 # The odd quoting in the next line works around
6304 # an apparent bug in bash 1.12 on linux.
6305 ${srcdir}/gcc/[*]/config-lang.in) ;;
6306 *)
6307 # From the config-lang.in, get $language, $target_libs,
6308 # $lang_dirs, $boot_language, and $build_by_default
6309 language=
6310 target_libs=
6311 lang_dirs=
6312 subdir_requires=
6313 boot_language=no
6314 build_by_default=yes
6315 # set srcdir during sourcing. See above about save & restore
6316 saved_srcdir=${srcdir}
6317 srcdir=${srcdir}/gcc . ${lang_frag}
6318 srcdir=${saved_srcdir}
6319 if test x${language} = x; then
6320 echo "${lang_frag} doesn't set \$language." 1>&2
6321 exit 1
6322 fi
6323
6324 if test "$language" = "c++"; then
6325 boot_language=yes
6326 fi
6327
6328 add_this_lang=no
6329 # C is always enabled, so no need to add it again
6330 if test "$language" != "c"; then
6331 case ,${enable_languages}, in
6332 *,${language},*)
6333 # Language was explicitly selected; include it
6334 add_this_lang=yes
6335 ;;
6336 *,all,*)
6337 # All languages are enabled
6338 add_this_lang=all
6339 ;;
6340 *,default,*)
6341 # 'default' was selected, select it if it is a default language
6342 add_this_lang=${build_by_default}
6343 ;;
6344 esac
6345 fi
6346
6347 # Disable languages that need other directories if these aren't available.
6348 for i in $subdir_requires; do
6349 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6350 case ${add_this_lang} in
6351 yes)
6352 # Specifically requested language; tell them.
6353 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6354 ;;
6355 all)
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6357 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6358 add_this_lang=unsupported
6359 ;;
6360 *)
6361 # Silently disable.
6362 add_this_lang=unsupported
6363 ;;
6364 esac
6365 done
6366
6367 # Disable Ada if no preexisting GNAT is available.
6368 case ${add_this_lang}:${language}:${have_gnat} in
6369 yes:ada:no)
6370 # Specifically requested language; tell them.
6371 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6372 ;;
6373 all:ada:no)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6375 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6376 add_this_lang=unsupported
6377 ;;
6378 *:ada:no)
6379 # Silently disable.
6380 add_this_lang=unsupported
6381 ;;
6382 esac
6383
6384 # Disable jit if -enable-host-shared not specified
6385 case ${add_this_lang}:${language}:${host_shared} in
6386 yes:jit:no)
6387 # PR jit/64780: explicitly specify --enable-host-shared
6388 as_fn_error $? "
6389 Enabling language \"jit\" requires --enable-host-shared.
6390
6391 --enable-host-shared typically slows the rest of the compiler down by
6392 a few %, so you must explicitly enable it.
6393
6394 If you want to build both the jit and the regular compiler, it is often
6395 best to do this via two separate configure/builds, in separate
6396 directories, to avoid imposing the performance cost of
6397 --enable-host-shared on the regular compiler." "$LINENO" 5
6398 ;;
6399 all:jit:no)
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6401 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6402 add_this_lang=unsupported
6403 ;;
6404 *:jit:no)
6405 # Silently disable.
6406 add_this_lang=unsupported
6407 ;;
6408 esac
6409
6410 # Disable a language that is unsupported by the target.
6411 case "${add_this_lang}: $unsupported_languages " in
6412 no:*) ;;
6413 unsupported:*) ;;
6414 *:*" $language "*)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6416 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6417 add_this_lang=unsupported
6418 ;;
6419 esac
6420
6421 case $add_this_lang in
6422 unsupported)
6423 # Remove language-dependent dirs.
6424 disabled_target_libs="$disabled_target_libs $target_libs"
6425 noconfigdirs="$noconfigdirs $lang_dirs"
6426 ;;
6427 no)
6428 # Remove language-dependent dirs; still show language as supported.
6429 disabled_target_libs="$disabled_target_libs $target_libs"
6430 noconfigdirs="$noconfigdirs $lang_dirs"
6431 potential_languages="${potential_languages}${language},"
6432 ;;
6433 all|yes)
6434 new_enable_languages="${new_enable_languages}${language},"
6435 potential_languages="${potential_languages}${language},"
6436 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6437 enabled_target_libs="$enabled_target_libs $target_libs"
6438 case "${boot_language}:,$enable_stage1_languages," in
6439 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6440 # Add to (comma-separated) list of stage 1 languages.
6441 case ",$stage1_languages," in
6442 *,$language,* | ,yes, | ,all,) ;;
6443 *) stage1_languages="${stage1_languages}${language}," ;;
6444 esac
6445 # We need to bootstrap any supporting libraries.
6446 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6447 ;;
6448 esac
6449 ;;
6450 esac
6451 ;;
6452 esac
6453 done
6454
6455 # Add target libraries which are only needed for disabled languages
6456 # to noconfigdirs.
6457 if test -n "$disabled_target_libs"; then
6458 for dir in $disabled_target_libs; do
6459 case " $enabled_target_libs " in
6460 *" ${dir} "*) ;;
6461 *) noconfigdirs="$noconfigdirs $dir" ;;
6462 esac
6463 done
6464 fi
6465
6466 # Check whether --enable-stage1-languages was given.
6467 if test "${enable_stage1_languages+set}" = set; then :
6468 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6469 ,no,|,,)
6470 # Set it to something that will have no effect in the loop below
6471 enable_stage1_languages=c ;;
6472 ,yes,)
6473 enable_stage1_languages=`echo $new_enable_languages | \
6474 sed -e "s/^,//" -e "s/,$//" ` ;;
6475 *,all,*)
6476 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6477 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6478 esac
6479
6480 # Add "good" languages from enable_stage1_languages to stage1_languages,
6481 # while "bad" languages go in missing_languages. Leave no duplicates.
6482 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6483 case $potential_languages in
6484 *,$i,*)
6485 case $stage1_languages in
6486 *,$i,*) ;;
6487 *) stage1_languages="$stage1_languages$i," ;;
6488 esac ;;
6489 *)
6490 case $missing_languages in
6491 *,$i,*) ;;
6492 *) missing_languages="$missing_languages$i," ;;
6493 esac ;;
6494 esac
6495 done
6496 fi
6497
6498
6499 # Remove leading/trailing commas that were added for simplicity
6500 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6501 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6502 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6503 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6504
6505 if test "x$missing_languages" != x; then
6506 as_fn_error $? "
6507 The following requested languages could not be built: ${missing_languages}
6508 Supported languages are: ${potential_languages}" "$LINENO" 5
6509 fi
6510 if test "x$new_enable_languages" != "x$enable_languages"; then
6511 echo The following languages will be built: ${new_enable_languages}
6512 enable_languages="$new_enable_languages"
6513 fi
6514
6515
6516 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6517 fi
6518
6519 # Handle --disable-<component> generically.
6520 for dir in $configdirs $build_configdirs $target_configdirs ; do
6521 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6522 varname=`echo $dirname | sed -e s/+/_/g`
6523 if eval test x\${enable_${varname}} "=" xno ; then
6524 noconfigdirs="$noconfigdirs $dir"
6525 fi
6526 done
6527
6528 # Check for Boehm's garbage collector
6529 # Check whether --enable-objc-gc was given.
6530 if test "${enable_objc_gc+set}" = set; then :
6531 enableval=$enable_objc_gc;
6532 fi
6533
6534
6535 # Check whether --with-target-bdw-gc was given.
6536 if test "${with_target_bdw_gc+set}" = set; then :
6537 withval=$with_target_bdw_gc;
6538 fi
6539
6540
6541 # Check whether --with-target-bdw-gc-include was given.
6542 if test "${with_target_bdw_gc_include+set}" = set; then :
6543 withval=$with_target_bdw_gc_include;
6544 fi
6545
6546
6547 # Check whether --with-target-bdw-gc-lib was given.
6548 if test "${with_target_bdw_gc_lib+set}" = set; then :
6549 withval=$with_target_bdw_gc_lib;
6550 fi
6551
6552
6553 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6555 $as_echo_n "checking for bdw garbage collector... " >&6; }
6556 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6558 $as_echo "using bdw-gc in default locations" >&6; }
6559 else
6560 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6561 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6562 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6563 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6566 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6567 fi
6568 fi
6569 esac
6570
6571 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6572 case ,${enable_languages}, in
6573 *,c++,*)
6574 # Disable libitm, libsanitizer if we're not building libstdc++
6575 case "${noconfigdirs}" in
6576 *target-libstdc++-v3*)
6577 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6578 ;;
6579 *) ;;
6580 esac
6581 ;;
6582 *)
6583 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6584 ;;
6585 esac
6586
6587 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6588 # $build_configdirs and $target_configdirs.
6589 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6590
6591 notsupp=""
6592 for dir in . $skipdirs $noconfigdirs ; do
6593 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6594 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6596 if test -r $srcdir/$dirname/configure ; then
6597 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598 true
6599 else
6600 notsupp="$notsupp $dir"
6601 fi
6602 fi
6603 fi
6604 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6606 if test -r $srcdir/$dirname/configure ; then
6607 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608 true
6609 else
6610 notsupp="$notsupp $dir"
6611 fi
6612 fi
6613 fi
6614 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6615 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6616 if test -r $srcdir/$dirname/configure ; then
6617 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6618 true
6619 else
6620 notsupp="$notsupp $dir"
6621 fi
6622 fi
6623 fi
6624 done
6625
6626 # Quietly strip out all directories which aren't configurable in this tree.
6627 # This relies on all configurable subdirectories being autoconfiscated, which
6628 # is now the case.
6629 build_configdirs_all="$build_configdirs"
6630 build_configdirs=
6631 for i in ${build_configdirs_all} ; do
6632 j=`echo $i | sed -e s/build-//g`
6633 if test -f ${srcdir}/$j/configure ; then
6634 build_configdirs="${build_configdirs} $i"
6635 fi
6636 done
6637
6638 configdirs_all="$configdirs"
6639 configdirs=
6640 for i in ${configdirs_all} ; do
6641 if test -f ${srcdir}/$i/configure ; then
6642 configdirs="${configdirs} $i"
6643 fi
6644 done
6645
6646 target_configdirs_all="$target_configdirs"
6647 target_configdirs=
6648 for i in ${target_configdirs_all} ; do
6649 j=`echo $i | sed -e s/target-//g`
6650 if test -f ${srcdir}/$j/configure ; then
6651 target_configdirs="${target_configdirs} $i"
6652 fi
6653 done
6654
6655 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6656 # so we have to add it after the preceding checks.
6657 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6658 then
6659 case " $configdirs " in
6660 *" libiberty "*)
6661 # If we can build libiberty, we can also build libiberty-linker-plugin.
6662 configdirs="$configdirs libiberty-linker-plugin"
6663 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6664 --with-libiberty=../libiberty-linker-plugin";;
6665 *)
6666 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6667 esac
6668 fi
6669
6670 # Sometimes we have special requirements for the host libiberty.
6671 extra_host_libiberty_configure_flags=
6672 extra_host_zlib_configure_flags=
6673 case " $configdirs " in
6674 *" lto-plugin "* | *" libcc1 "*)
6675 # When these are to be built as shared libraries, the same applies to
6676 # libiberty.
6677 extra_host_libiberty_configure_flags=--enable-shared
6678 ;;
6679 *" bfd "*)
6680 # When bfd is to be built as a shared library, the same applies to
6681 # zlib.
6682 if test "$enable_shared" = "yes"; then
6683 extra_host_zlib_configure_flags=--enable-host-shared
6684 fi
6685 ;;
6686 esac
6687
6688
6689
6690 # Produce a warning message for the subdirs we can't configure.
6691 # This isn't especially interesting in the Cygnus tree, but in the individual
6692 # FSF releases, it's important to let people know when their machine isn't
6693 # supported by the one or two programs in a package.
6694
6695 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6696 # If $appdirs is non-empty, at least one of those directories must still
6697 # be configured, or we error out. (E.g., if the gas release supports a
6698 # specified target in some subdirs but not the gas subdir, we shouldn't
6699 # pretend that all is well.)
6700 if test -n "$appdirs" ; then
6701 for dir in $appdirs ; do
6702 if test -r $dir/Makefile.in ; then
6703 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6704 appdirs=""
6705 break
6706 fi
6707 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6708 appdirs=""
6709 break
6710 fi
6711 fi
6712 done
6713 if test -n "$appdirs" ; then
6714 echo "*** This configuration is not supported by this package." 1>&2
6715 exit 1
6716 fi
6717 fi
6718 # Okay, some application will build, or we don't care to check. Still
6719 # notify of subdirs not getting built.
6720 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6721 echo " ${notsupp}" 1>&2
6722 echo " (Any other directories should still work fine.)" 1>&2
6723 fi
6724
6725 case "$host" in
6726 *msdosdjgpp*)
6727 enable_gdbtk=no ;;
6728 esac
6729
6730 # To find our prefix, in gcc_cv_tool_prefix.
6731
6732 # The user is always right.
6733 if test "${PATH_SEPARATOR+set}" != set; then
6734 echo "#! /bin/sh" >conf$$.sh
6735 echo "exit 0" >>conf$$.sh
6736 chmod +x conf$$.sh
6737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6738 PATH_SEPARATOR=';'
6739 else
6740 PATH_SEPARATOR=:
6741 fi
6742 rm -f conf$$.sh
6743 fi
6744
6745
6746 get_gcc_base_ver="cat"
6747
6748 # Check whether --with-gcc-major-version-only was given.
6749 if test "${with_gcc_major_version_only+set}" = set; then :
6750 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6751 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6752 fi
6753
6754 fi
6755
6756
6757
6758
6759
6760
6761 if test "x$exec_prefix" = xNONE; then
6762 if test "x$prefix" = xNONE; then
6763 gcc_cv_tool_prefix=$ac_default_prefix
6764 else
6765 gcc_cv_tool_prefix=$prefix
6766 fi
6767 else
6768 gcc_cv_tool_prefix=$exec_prefix
6769 fi
6770
6771 # If there is no compiler in the tree, use the PATH only. In any
6772 # case, if there is no compiler in the tree nobody should use
6773 # AS_FOR_TARGET and LD_FOR_TARGET.
6774 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6775 if test x$with_gcc_major_version_only = xyes ; then
6776 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6777 else
6778 gcc_version=`cat $srcdir/gcc/BASE-VER`
6779 fi
6780 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6783 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6784 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6785 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6786 else
6787 gcc_cv_tool_dirs=
6788 fi
6789
6790 if test x$build = x$target && test -n "$md_exec_prefix"; then
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6792 fi
6793
6794
6795
6796 copy_dirs=
6797
6798
6799 # Check whether --with-build-sysroot was given.
6800 if test "${with_build_sysroot+set}" = set; then :
6801 withval=$with_build_sysroot; if test x"$withval" != x ; then
6802 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6803 fi
6804 else
6805 SYSROOT_CFLAGS_FOR_TARGET=
6806 fi
6807
6808
6809
6810
6811 # Check whether --with-debug-prefix-map was given.
6812 if test "${with_debug_prefix_map+set}" = set; then :
6813 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6814 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6815 for debug_map in $withval; do
6816 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6817 done
6818 fi
6819 else
6820 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6821 fi
6822
6823
6824
6825 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6826 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6827 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6828 # We want to ensure that TARGET libraries (which we know are built with
6829 # gcc) are built with "-O2 -g", so include those options when setting
6830 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6831 if test "x$CFLAGS_FOR_TARGET" = x; then
6832 if test "x${is_cross_compiler}" = xyes; then
6833 CFLAGS_FOR_TARGET="-g -O2"
6834 else
6835 CFLAGS_FOR_TARGET=$CFLAGS
6836 case " $CFLAGS " in
6837 *" -O2 "*) ;;
6838 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6839 esac
6840 case " $CFLAGS " in
6841 *" -g "* | *" -g3 "*) ;;
6842 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6843 esac
6844 fi
6845 fi
6846
6847
6848 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6849 if test "x${is_cross_compiler}" = xyes; then
6850 CXXFLAGS_FOR_TARGET="-g -O2"
6851 else
6852 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6853 case " $CXXFLAGS " in
6854 *" -O2 "*) ;;
6855 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6856 esac
6857 case " $CXXFLAGS " in
6858 *" -g "* | *" -g3 "*) ;;
6859 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6860 esac
6861 fi
6862 fi
6863
6864
6865
6866
6867 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6868 # the named directory are copied to $(tooldir)/sys-include.
6869 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6870 if test x${is_cross_compiler} = xno ; then
6871 echo 1>&2 '***' --with-headers is only supported when cross compiling
6872 exit 1
6873 fi
6874 if test x"${with_headers}" != xyes ; then
6875 x=${gcc_cv_tool_prefix}
6876 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6877 fi
6878 fi
6879
6880 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6881 # the name directories are copied to $(tooldir)/lib. Multiple directories
6882 # are permitted.
6883 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6884 if test x${is_cross_compiler} = xno ; then
6885 echo 1>&2 '***' --with-libs is only supported when cross compiling
6886 exit 1
6887 fi
6888 if test x"${with_libs}" != xyes ; then
6889 # Copy the libraries in reverse order, so that files in the first named
6890 # library override files in subsequent libraries.
6891 x=${gcc_cv_tool_prefix}
6892 for l in ${with_libs}; do
6893 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6894 done
6895 fi
6896 fi
6897
6898 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6899 #
6900 # This is done by determining whether or not the appropriate directory
6901 # is available, and by checking whether or not specific configurations
6902 # have requested that this magic not happen.
6903 #
6904 # The command line options always override the explicit settings in
6905 # configure.ac, and the settings in configure.ac override this magic.
6906 #
6907 # If the default for a toolchain is to use GNU as and ld, and you don't
6908 # want to do that, then you should use the --without-gnu-as and
6909 # --without-gnu-ld options for the configure script. Similarly, if
6910 # the default is to use the included zlib and you don't want to do that,
6911 # you should use the --with-system-zlib option for the configure script.
6912
6913 if test x${use_gnu_as} = x &&
6914 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6915 with_gnu_as=yes
6916 extra_host_args="$extra_host_args --with-gnu-as"
6917 fi
6918
6919 if test x${use_gnu_ld} = x &&
6920 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6921 with_gnu_ld=yes
6922 extra_host_args="$extra_host_args --with-gnu-ld"
6923 fi
6924
6925 if test x${use_included_zlib} = x &&
6926 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6927 :
6928 else
6929 with_system_zlib=yes
6930 extra_host_args="$extra_host_args --with-system-zlib"
6931 fi
6932
6933 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6934 # can detect this case.
6935
6936 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6937 with_newlib=yes
6938 extra_host_args="$extra_host_args --with-newlib"
6939 fi
6940
6941 # Handle ${copy_dirs}
6942 set fnord ${copy_dirs}
6943 shift
6944 while test $# != 0 ; do
6945 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6946 :
6947 else
6948 echo Copying $1 to $2
6949
6950 # Use the install script to create the directory and all required
6951 # parent directories.
6952 if test -d $2 ; then
6953 :
6954 else
6955 echo >config.temp
6956 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6957 fi
6958
6959 # Copy the directory, assuming we have tar.
6960 # FIXME: Should we use B in the second tar? Not all systems support it.
6961 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6962
6963 # It is the responsibility of the user to correctly adjust all
6964 # symlinks. If somebody can figure out how to handle them correctly
6965 # here, feel free to add the code.
6966
6967 echo $1 > $2/COPIED
6968 fi
6969 shift; shift
6970 done
6971
6972 # Determine a target-dependent exec_prefix that the installed
6973 # gcc will search in. Keep this list sorted by triplet, with
6974 # the *-*-osname triplets last.
6975 md_exec_prefix=
6976 case "${target}" in
6977 i[34567]86-pc-msdosdjgpp*)
6978 md_exec_prefix=/dev/env/DJDIR/bin
6979 ;;
6980 *-*-hpux* | \
6981 *-*-nto-qnx* | \
6982 *-*-solaris2*)
6983 md_exec_prefix=/usr/ccs/bin
6984 ;;
6985 esac
6986
6987 extra_arflags_for_target=
6988 extra_nmflags_for_target=
6989 extra_ranlibflags_for_target=
6990 target_makefile_frag=/dev/null
6991 case "${target}" in
6992 spu-*-*)
6993 target_makefile_frag="config/mt-spu"
6994 ;;
6995 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6996 target_makefile_frag="config/mt-sde"
6997 ;;
6998 mipsisa*-*-elfoabi*)
6999 target_makefile_frag="config/mt-mips-elfoabi"
7000 ;;
7001 mips*-*-*linux* | mips*-*-gnu*)
7002 target_makefile_frag="config/mt-mips-gnu"
7003 ;;
7004 nios2-*-elf*)
7005 target_makefile_frag="config/mt-nios2-elf"
7006 ;;
7007 *-*-linux-android*)
7008 target_makefile_frag="config/mt-android"
7009 ;;
7010 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7011 target_makefile_frag="config/mt-gnu"
7012 ;;
7013 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7014 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7015 # commands to handle both 32-bit and 64-bit objects. These flags are
7016 # harmless if we're using GNU nm or ar.
7017 extra_arflags_for_target=" -X32_64"
7018 extra_nmflags_for_target=" -B -X32_64"
7019 ;;
7020 esac
7021
7022 alphaieee_frag=/dev/null
7023 case $target in
7024 alpha*-*-*)
7025 # This just makes sure to use the -mieee option to build target libs.
7026 # This should probably be set individually by each library.
7027 alphaieee_frag="config/mt-alphaieee"
7028 ;;
7029 esac
7030
7031 # If --enable-target-optspace always use -Os instead of -O2 to build
7032 # the target libraries, similarly if it is not specified, use -Os
7033 # on selected platforms.
7034 ospace_frag=/dev/null
7035 case "${enable_target_optspace}:${target}" in
7036 yes:*)
7037 ospace_frag="config/mt-ospace"
7038 ;;
7039 :d30v-*)
7040 ospace_frag="config/mt-d30v"
7041 ;;
7042 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7043 ospace_frag="config/mt-ospace"
7044 ;;
7045 no:* | :*)
7046 ;;
7047 *)
7048 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7049 ;;
7050 esac
7051
7052 # Some systems (e.g., one of the i386-aix systems the gas testers are
7053 # using) don't handle "\$" correctly, so don't use it here.
7054 tooldir='${exec_prefix}'/${target_noncanonical}
7055 build_tooldir=${tooldir}
7056
7057 # Create a .gdbinit file which runs the one in srcdir
7058 # and tells GDB to look there for source files.
7059
7060 if test -r ${srcdir}/.gdbinit ; then
7061 case ${srcdir} in
7062 .) ;;
7063 *) cat > ./.gdbinit <<EOF
7064 # ${NO_EDIT}
7065 dir ${srcdir}
7066 dir .
7067 source ${srcdir}/.gdbinit
7068 EOF
7069 ;;
7070 esac
7071 fi
7072
7073 # Make sure that the compiler is able to generate an executable. If it
7074 # can't, we are probably in trouble. We don't care whether we can run the
7075 # executable--we might be using a cross compiler--we only care whether it
7076 # can be created. At this point the main configure script has set CC.
7077 we_are_ok=no
7078 echo "int main () { return 0; }" > conftest.c
7079 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7080 if test $? = 0 ; then
7081 if test -s conftest || test -s conftest.exe ; then
7082 we_are_ok=yes
7083 fi
7084 fi
7085 case $we_are_ok in
7086 no)
7087 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7088 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7089 rm -f conftest*
7090 exit 1
7091 ;;
7092 esac
7093 rm -f conftest*
7094
7095 # Decide which environment variable is used to find dynamic libraries.
7096 case "${host}" in
7097 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7098 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7099 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7100 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7101 esac
7102
7103 # On systems where the dynamic library environment variable is PATH,
7104 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7105 # built executables to PATH.
7106 if test "$RPATH_ENVVAR" = PATH; then
7107 GCC_SHLIB_SUBDIR=/shlib
7108 else
7109 GCC_SHLIB_SUBDIR=
7110 fi
7111
7112 # Adjust the toplevel makefile according to whether bootstrap was selected.
7113 case $enable_bootstrap in
7114 yes)
7115 bootstrap_suffix=bootstrap
7116 BUILD_CONFIG=bootstrap-debug
7117 ;;
7118 no)
7119 bootstrap_suffix=no-bootstrap
7120 BUILD_CONFIG=
7121 ;;
7122 esac
7123
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7125 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7126
7127
7128 # Check whether --with-build-config was given.
7129 if test "${with_build_config+set}" = set; then :
7130 withval=$with_build_config; case $with_build_config in
7131 yes) with_build_config= ;;
7132 no) with_build_config= BUILD_CONFIG= ;;
7133 esac
7134 fi
7135
7136
7137 if test "x${with_build_config}" != x; then
7138 BUILD_CONFIG=$with_build_config
7139 else
7140 case $BUILD_CONFIG in
7141 bootstrap-debug)
7142 if echo "int f (void) { return 0; }" > conftest.c &&
7143 ${CC} -c conftest.c &&
7144 mv conftest.o conftest.o.g0 &&
7145 ${CC} -c -g conftest.c &&
7146 mv conftest.o conftest.o.g &&
7147 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7148 :
7149 else
7150 BUILD_CONFIG=
7151 fi
7152 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7153 ;;
7154 esac
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7157 $as_echo "$BUILD_CONFIG" >&6; }
7158
7159
7160 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7162 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7163 # Check whether --enable-vtable-verify was given.
7164 if test "${enable_vtable_verify+set}" = set; then :
7165 enableval=$enable_vtable_verify; case "$enableval" in
7166 yes) enable_vtable_verify=yes ;;
7167 no) enable_vtable_verify=no ;;
7168 *) enable_vtable_verify=no;;
7169 esac
7170 else
7171 enable_vtable_verify=no
7172 fi
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7175 $as_echo "$enable_vtable_verify" >&6; }
7176
7177 # Record target_configdirs and the configure arguments for target and
7178 # build configuration in Makefile.
7179 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7180 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7181 bootstrap_fixincludes=no
7182
7183 # If we are building libgomp, bootstrap it.
7184 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7185 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7186 fi
7187
7188 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7189 # or bootstrap-ubsan, bootstrap it.
7190 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7191 case "$BUILD_CONFIG" in
7192 *bootstrap-asan* | *bootstrap-ubsan* )
7193 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7194 bootstrap_fixincludes=yes
7195 ;;
7196 esac
7197 fi
7198
7199 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7200 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7201 test "$enable_vtable_verify" != no; then
7202 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7203 fi
7204
7205 # Determine whether gdb needs tk/tcl or not.
7206 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7207 # and in that case we want gdb to be built without tk. Ugh!
7208 # In fact I believe gdb is the *only* package directly dependent on tk,
7209 # so we should be able to put the 'maybe's in unconditionally and
7210 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7211 # 100% sure that that's safe though.
7212
7213 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7214 case "$enable_gdbtk" in
7215 no)
7216 GDB_TK="" ;;
7217 yes)
7218 GDB_TK="${gdb_tk}" ;;
7219 *)
7220 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7221 # distro. Eventually someone will fix this and move Insight, nee
7222 # gdbtk to a separate directory.
7223 if test -d ${srcdir}/gdb/gdbtk ; then
7224 GDB_TK="${gdb_tk}"
7225 else
7226 GDB_TK=""
7227 fi
7228 ;;
7229 esac
7230 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7231 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7232
7233 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7234 # else does, only include them if one of these is built. The Makefile
7235 # provides the ordering, so it's enough here to add to the list.
7236 case " ${configdirs} " in
7237 *\ gdb\ *)
7238 configdirs="${configdirs} gnulib gdbsupport"
7239 ;;
7240 *\ gdbserver\ *)
7241 configdirs="${configdirs} gnulib gdbsupport"
7242 ;;
7243 esac
7244
7245 # Strip out unwanted targets.
7246
7247 # While at that, we remove Makefiles if we were started for recursive
7248 # configuration, so that the top-level Makefile reconfigures them,
7249 # like we used to do when configure itself was recursive.
7250
7251 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7252 # but now we're fixing up the Makefile ourselves with the additional
7253 # commands passed to AC_CONFIG_FILES. Use separate variables
7254 # extrasub-{build,host,target} not because there is any reason to split
7255 # the substitutions up that way, but only to remain below the limit of
7256 # 99 commands in a script, for HP-UX sed.
7257
7258 # Do not nest @if/@endif or @unless/@endunless pairs, because
7259 # configure will not warn you at all.
7260
7261 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7262 yes:yes:*\ gold\ *:*,c++,*) ;;
7263 yes:yes:*\ gold\ *:*)
7264 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7265 ;;
7266 esac
7267
7268 extrasub_build=
7269 for module in ${build_configdirs} ; do
7270 if test -z "${no_recursion}" \
7271 && test -f ${build_subdir}/${module}/Makefile; then
7272 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7273 rm -f ${build_subdir}/${module}/Makefile
7274 fi
7275 extrasub_build="$extrasub_build
7276 /^@if build-$module\$/d
7277 /^@endif build-$module\$/d
7278 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7279 /^@if build-$module-$bootstrap_suffix\$/d
7280 /^@endif build-$module-$bootstrap_suffix\$/d
7281 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7282 done
7283 extrasub_host=
7284 for module in ${configdirs} ; do
7285 if test -z "${no_recursion}"; then
7286 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7287 if test -f ${file}; then
7288 echo 1>&2 "*** removing ${file} to force reconfigure"
7289 rm -f ${file}
7290 fi
7291 done
7292 fi
7293 case ${module},${bootstrap_fixincludes} in
7294 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7295 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7296 esac
7297 extrasub_host="$extrasub_host
7298 /^@if $module\$/d
7299 /^@endif $module\$/d
7300 /^@unless $module\$/,/^@endunless $module\$/d
7301 /^@if $module-$host_bootstrap_suffix\$/d
7302 /^@endif $module-$host_bootstrap_suffix\$/d
7303 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7304 done
7305 extrasub_target=
7306 for module in ${target_configdirs} ; do
7307 if test -z "${no_recursion}" \
7308 && test -f ${target_subdir}/${module}/Makefile; then
7309 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7310 rm -f ${target_subdir}/${module}/Makefile
7311 fi
7312
7313 # We only bootstrap target libraries listed in bootstrap_target_libs.
7314 case $bootstrap_target_libs in
7315 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7316 *) target_bootstrap_suffix=no-bootstrap ;;
7317 esac
7318
7319 extrasub_target="$extrasub_target
7320 /^@if target-$module\$/d
7321 /^@endif target-$module\$/d
7322 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7323 /^@if target-$module-$target_bootstrap_suffix\$/d
7324 /^@endif target-$module-$target_bootstrap_suffix\$/d
7325 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7326 done
7327
7328 # Do the final fixup along with target modules.
7329 extrasub_target="$extrasub_target
7330 /^@if /,/^@endif /d
7331 /^@unless /d
7332 /^@endunless /d"
7333
7334 # Create the serialization dependencies. This uses a temporary file.
7335
7336 # Check whether --enable-serial-configure was given.
7337 if test "${enable_serial_configure+set}" = set; then :
7338 enableval=$enable_serial_configure;
7339 fi
7340
7341
7342 case ${enable_serial_configure} in
7343 yes)
7344 enable_serial_build_configure=yes
7345 enable_serial_host_configure=yes
7346 enable_serial_target_configure=yes
7347 ;;
7348 esac
7349
7350 # These force 'configure's to be done one at a time, to avoid problems
7351 # with contention over a shared config.cache.
7352 rm -f serdep.tmp
7353 echo '# serdep.tmp' > serdep.tmp
7354 olditem=
7355 test "x${enable_serial_build_configure}" = xyes &&
7356 for item in ${build_configdirs} ; do
7357 case ${olditem} in
7358 "") ;;
7359 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7360 esac
7361 olditem=${item}
7362 done
7363 olditem=
7364 test "x${enable_serial_host_configure}" = xyes &&
7365 for item in ${configdirs} ; do
7366 case ${olditem} in
7367 "") ;;
7368 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7369 esac
7370 olditem=${item}
7371 done
7372 olditem=
7373 test "x${enable_serial_target_configure}" = xyes &&
7374 for item in ${target_configdirs} ; do
7375 case ${olditem} in
7376 "") ;;
7377 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7378 esac
7379 olditem=${item}
7380 done
7381 serialization_dependencies=serdep.tmp
7382
7383
7384 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7385 # target, nonopt, and variable assignments. These are the ones we
7386 # might not want to pass down to subconfigures. The exception being
7387 # --cache-file=/dev/null, which is used to turn off the use of cache
7388 # files altogether, and which should be passed on to subconfigures.
7389 # Also strip program-prefix, program-suffix, and program-transform-name,
7390 # so that we can pass down a consistent program-transform-name.
7391 baseargs=
7392 tbaseargs=
7393 keep_next=no
7394 skip_next=no
7395 eval "set -- $ac_configure_args"
7396 for ac_arg
7397 do
7398 if test X"$skip_next" = X"yes"; then
7399 skip_next=no
7400 continue
7401 fi
7402 if test X"$keep_next" = X"yes"; then
7403 case $ac_arg in
7404 *\'*)
7405 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7406 esac
7407 baseargs="$baseargs '$ac_arg'"
7408 tbaseargs="$tbaseargs '$ac_arg'"
7409 keep_next=no
7410 continue
7411 fi
7412
7413 # Handle separated arguments. Based on the logic generated by
7414 # autoconf 2.59.
7415 case $ac_arg in
7416 *=* | --config-cache | -C | -disable-* | --disable-* \
7417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7419 | -with-* | --with-* | -without-* | --without-* | --x)
7420 separate_arg=no
7421 ;;
7422 -*)
7423 separate_arg=yes
7424 ;;
7425 *)
7426 separate_arg=no
7427 ;;
7428 esac
7429
7430 skip_targ=no
7431 case $ac_arg in
7432
7433 --with-* | --without-*)
7434 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7435
7436 case $libopt in
7437 *[-_]include)
7438 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7439 ;;
7440 *[-_]lib)
7441 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7442 ;;
7443 *)
7444 lib=$libopt
7445 ;;
7446 esac
7447
7448
7449 case $lib in
7450 mpc | mpfr | gmp | isl)
7451 # If we're processing --with-$lib, --with-$lib-include or
7452 # --with-$lib-lib, for one of the libs above, and target is
7453 # different from host, don't pass the current argument to any
7454 # target library's configure.
7455 if test x$is_cross_compiler = xyes; then
7456 skip_targ=yes
7457 fi
7458 ;;
7459 esac
7460 ;;
7461 esac
7462
7463 case "$ac_arg" in
7464 --cache-file=/dev/null | \
7465 -cache-file=/dev/null )
7466 # Handled here to avoid the test to skip args below.
7467 baseargs="$baseargs '$ac_arg'"
7468 tbaseargs="$tbaseargs '$ac_arg'"
7469 # Assert: $separate_arg should always be no.
7470 keep_next=$separate_arg
7471 ;;
7472 --no*)
7473 continue
7474 ;;
7475 --c* | \
7476 --sr* | \
7477 --ho* | \
7478 --bu* | \
7479 --t* | \
7480 --program-* | \
7481 -cache_file* | \
7482 -srcdir* | \
7483 -host* | \
7484 -build* | \
7485 -target* | \
7486 -program-prefix* | \
7487 -program-suffix* | \
7488 -program-transform-name* )
7489 skip_next=$separate_arg
7490 continue
7491 ;;
7492 -*)
7493 # An option. Add it.
7494 case $ac_arg in
7495 *\'*)
7496 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7497 esac
7498 baseargs="$baseargs '$ac_arg'"
7499 if test X"$skip_targ" = Xno; then
7500 tbaseargs="$tbaseargs '$ac_arg'"
7501 fi
7502 keep_next=$separate_arg
7503 ;;
7504 *)
7505 # Either a variable assignment, or a nonopt (triplet). Don't
7506 # pass it down; let the Makefile handle this.
7507 continue
7508 ;;
7509 esac
7510 done
7511 # Remove the initial space we just introduced and, as these will be
7512 # expanded by make, quote '$'.
7513 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7514
7515 # Add in --program-transform-name, after --program-prefix and
7516 # --program-suffix have been applied to it. Autoconf has already
7517 # doubled dollar signs and backslashes in program_transform_name; we want
7518 # the backslashes un-doubled, and then the entire thing wrapped in single
7519 # quotes, because this will be expanded first by make and then by the shell.
7520 # Also, because we want to override the logic in subdir configure scripts to
7521 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7522 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7523 ${program_transform_name}
7524 EOF_SED
7525 gcc_transform_name=`cat conftestsed.out`
7526 rm -f conftestsed.out
7527 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7528 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7529 if test "$silent" = yes; then
7530 baseargs="$baseargs --silent"
7531 tbaseargs="$tbaseargs --silent"
7532 fi
7533 baseargs="$baseargs --disable-option-checking"
7534 tbaseargs="$tbaseargs --disable-option-checking"
7535
7536 # Record and document user additions to sub configure arguments.
7537
7538
7539
7540
7541 # For the build-side libraries, we just need to pretend we're native,
7542 # and not use the same cache file. Multilibs are neither needed nor
7543 # desired. We can't even use the same cache file for all build-side
7544 # libraries, as they're compiled differently; some with C, some with
7545 # C++ or with different feature-enabling options.
7546 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7547
7548 # For host modules, accept cache file option, or specification as blank.
7549 case "${cache_file}" in
7550 "") # empty
7551 cache_file_option="" ;;
7552 /* | [A-Za-z]:[\\/]* ) # absolute path
7553 cache_file_option="--cache-file=${cache_file}" ;;
7554 *) # relative path
7555 cache_file_option="--cache-file=../${cache_file}" ;;
7556 esac
7557
7558 # Host dirs don't like to share a cache file either, horribly enough.
7559 # This seems to be due to autoconf 2.5x stupidity.
7560 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7561
7562 target_configargs="$target_configargs ${tbaseargs}"
7563
7564 # Passing a --with-cross-host argument lets the target libraries know
7565 # whether they are being built with a cross-compiler or being built
7566 # native. However, it would be better to use other mechanisms to make the
7567 # sorts of decisions they want to make on this basis. Please consider
7568 # this option to be deprecated. FIXME.
7569 if test x${is_cross_compiler} = xyes ; then
7570 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7571 fi
7572
7573 # Special user-friendly check for native x86_64-linux build, if
7574 # multilib is not explicitly enabled.
7575 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7576 x86_64-*linux*:yes:$build:$build:)
7577 # Make sure we have a development environment that handles 32-bit
7578 dev64=no
7579 echo "int main () { return 0; }" > conftest.c
7580 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7581 if test $? = 0 ; then
7582 if test -s conftest || test -s conftest.exe ; then
7583 dev64=yes
7584 fi
7585 fi
7586 rm -f conftest*
7587 if test x${dev64} != xyes ; then
7588 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
7589 fi
7590 ;;
7591 esac
7592
7593 # Default to --enable-multilib.
7594 if test x${enable_multilib} = x ; then
7595 target_configargs="--enable-multilib ${target_configargs}"
7596 fi
7597
7598 # Pass --with-newlib if appropriate. Note that target_configdirs has
7599 # changed from the earlier setting of with_newlib.
7600 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7601 target_configargs="--with-newlib ${target_configargs}"
7602 fi
7603
7604 # Different target subdirs use different values of certain variables
7605 # (notably CXX). Worse, multilibs use *lots* of different values.
7606 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7607 # it doesn't automatically accept command-line overrides of them.
7608 # This means it's not safe for target subdirs to share a cache file,
7609 # which is disgusting, but there you have it. Hopefully this can be
7610 # fixed in future. It's still worthwhile to use a cache file for each
7611 # directory. I think.
7612
7613 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7614 # We need to pass --target, as newer autoconf's requires consistency
7615 # for target_alias and gcc doesn't manage it consistently.
7616 target_configargs="--cache-file=./config.cache ${target_configargs}"
7617
7618 FLAGS_FOR_TARGET=
7619 case " $target_configdirs " in
7620 *" newlib "*)
7621 case " $target_configargs " in
7622 *" --with-newlib "*)
7623 case "$target" in
7624 *-cygwin*)
7625 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7626 ;;
7627 esac
7628
7629 # If we're not building GCC, don't discard standard headers.
7630 if test -d ${srcdir}/gcc; then
7631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7632
7633 if test "${build}" != "${host}"; then
7634 # On Canadian crosses, CC_FOR_TARGET will have already been set
7635 # by `configure', so we won't have an opportunity to add -Bgcc/
7636 # to it. This is right: we don't want to search that directory
7637 # for binaries, but we want the header files in there, so add
7638 # them explicitly.
7639 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7640
7641 # Someone might think of using the pre-installed headers on
7642 # Canadian crosses, in case the installed compiler is not fully
7643 # compatible with the compiler being built. In this case, it
7644 # would be better to flag an error than risking having
7645 # incompatible object files being constructed. We can't
7646 # guarantee that an error will be flagged, but let's hope the
7647 # compiler will do it, when presented with incompatible header
7648 # files.
7649 fi
7650 fi
7651
7652 case "${target}-${is_cross_compiler}" in
7653 i[3456789]86-*-linux*-no)
7654 # Here host == target, so we don't need to build gcc,
7655 # so we don't want to discard standard headers.
7656 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7657 ;;
7658 *)
7659 # If we're building newlib, use its generic headers last, but search
7660 # for any libc-related directories first (so make it the last -B
7661 # switch).
7662 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7663
7664 # If we're building libgloss, find the startup file, simulator library
7665 # and linker script.
7666 case " $target_configdirs " in
7667 *" libgloss "*)
7668 # Look for startup file, simulator library and maybe linker script.
7669 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7670 # Look for libnosys.a in case the target needs it.
7671 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7672 # Most targets have the linker script in the source directory.
7673 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7674 ;;
7675 esac
7676 ;;
7677 esac
7678 ;;
7679 esac
7680 ;;
7681 esac
7682
7683 case "$target" in
7684 x86_64-*mingw* | *-w64-mingw*)
7685 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7686 # however, use a symlink named 'mingw' in ${prefix} .
7687 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7688 ;;
7689 *-mingw*)
7690 # MinGW can't be handled as Cygwin above since it does not use newlib.
7691 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
7692 ;;
7693 esac
7694
7695 # Allow the user to override the flags for
7696 # our build compiler if desired.
7697 if test x"${build}" = x"${host}" ; then
7698 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7699 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7700 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7701 fi
7702
7703 # On Canadian crosses, we'll be searching the right directories for
7704 # the previously-installed cross compiler, so don't bother to add
7705 # flags for directories within the install tree of the compiler
7706 # being built; programs in there won't even run.
7707 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7708 # Search for pre-installed headers if nothing else fits.
7709 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7710 fi
7711
7712 if test "x${use_gnu_ld}" = x &&
7713 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7714 # Arrange for us to find uninstalled linker scripts.
7715 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7716 fi
7717
7718 # Search for other target-specific linker scripts and such.
7719 case "${target}" in
7720 mep*)
7721 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7722 ;;
7723 esac
7724
7725 # Makefile fragments.
7726 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7727 do
7728 eval fragval=\$$frag
7729 if test $fragval != /dev/null; then
7730 eval $frag=${srcdir}/$fragval
7731 fi
7732 done
7733
7734
7735
7736
7737
7738 # Miscellanea: directories, flags, etc.
7739
7740
7741
7742
7743
7744
7745
7746
7747 # Build module lists & subconfigure args.
7748
7749
7750
7751 # Host module lists & subconfigure args.
7752
7753
7754
7755
7756 # Target module lists & subconfigure args.
7757
7758
7759
7760 # Build tools.
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777 # Generate default definitions for YACC, M4, LEX and other programs that run
7778 # on the build machine. These are used if the Makefile can't locate these
7779 # programs in objdir.
7780 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7781
7782 for ac_prog in 'bison -y' byacc yacc
7783 do
7784 # Extract the first word of "$ac_prog", so it can be a program name with args.
7785 set dummy $ac_prog; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_YACC+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 if test -n "$YACC"; then
7792 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_YACC="$ac_prog"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809 fi
7810 fi
7811 YACC=$ac_cv_prog_YACC
7812 if test -n "$YACC"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7814 $as_echo "$YACC" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821 test -n "$YACC" && break
7822 done
7823 test -n "$YACC" || YACC="$MISSING bison -y"
7824
7825 case " $build_configdirs " in
7826 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7827 esac
7828
7829 for ac_prog in bison
7830 do
7831 # Extract the first word of "$ac_prog", so it can be a program name with args.
7832 set dummy $ac_prog; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_BISON+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$BISON"; then
7839 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_BISON="$ac_prog"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852 done
7853 done
7854 IFS=$as_save_IFS
7855
7856 fi
7857 fi
7858 BISON=$ac_cv_prog_BISON
7859 if test -n "$BISON"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7861 $as_echo "$BISON" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866
7867
7868 test -n "$BISON" && break
7869 done
7870 test -n "$BISON" || BISON="$MISSING bison"
7871
7872 case " $build_configdirs " in
7873 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7874 esac
7875
7876 for ac_prog in gm4 gnum4 m4
7877 do
7878 # Extract the first word of "$ac_prog", so it can be a program name with args.
7879 set dummy $ac_prog; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_M4+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 if test -n "$M4"; then
7886 ac_cv_prog_M4="$M4" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_M4="$ac_prog"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 M4=$ac_cv_prog_M4
7906 if test -n "$M4"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7908 $as_echo "$M4" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914
7915 test -n "$M4" && break
7916 done
7917 test -n "$M4" || M4="$MISSING m4"
7918
7919 case " $build_configdirs " in
7920 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7921 esac
7922
7923 for ac_prog in flex lex
7924 do
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_LEX+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$LEX"; then
7933 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_LEX="$ac_prog"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 LEX=$ac_cv_prog_LEX
7953 if test -n "$LEX"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7955 $as_echo "$LEX" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 fi
7960
7961
7962 test -n "$LEX" && break
7963 done
7964 test -n "$LEX" || LEX="$MISSING flex"
7965
7966 case " $build_configdirs " in
7967 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7968 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7969 esac
7970
7971 for ac_prog in flex
7972 do
7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
7974 set dummy $ac_prog; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_FLEX+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$FLEX"; then
7981 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_FLEX="$ac_prog"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 FLEX=$ac_cv_prog_FLEX
8001 if test -n "$FLEX"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8003 $as_echo "$FLEX" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009
8010 test -n "$FLEX" && break
8011 done
8012 test -n "$FLEX" || FLEX="$MISSING flex"
8013
8014 case " $build_configdirs " in
8015 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8016 esac
8017
8018 for ac_prog in makeinfo
8019 do
8020 # Extract the first word of "$ac_prog", so it can be a program name with args.
8021 set dummy $ac_prog; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_MAKEINFO+:} false; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 if test -n "$MAKEINFO"; then
8028 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_MAKEINFO="$ac_prog"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 MAKEINFO=$ac_cv_prog_MAKEINFO
8048 if test -n "$MAKEINFO"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8050 $as_echo "$MAKEINFO" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057 test -n "$MAKEINFO" && break
8058 done
8059 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8060
8061 case " $build_configdirs " in
8062 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8063 *)
8064
8065 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8066 # higher, else we use the "missing" dummy.
8067 if ${MAKEINFO} --version \
8068 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8069 :
8070 else
8071 MAKEINFO="$MISSING makeinfo"
8072 fi
8073 ;;
8074
8075 esac
8076
8077 # FIXME: expect and dejagnu may become build tools?
8078
8079 for ac_prog in expect
8080 do
8081 # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_EXPECT+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$EXPECT"; then
8089 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_EXPECT="$ac_prog"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 EXPECT=$ac_cv_prog_EXPECT
8109 if test -n "$EXPECT"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8111 $as_echo "$EXPECT" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117
8118 test -n "$EXPECT" && break
8119 done
8120 test -n "$EXPECT" || EXPECT="expect"
8121
8122 case " $configdirs " in
8123 *" expect "*)
8124 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8125 ;;
8126 esac
8127
8128 for ac_prog in runtest
8129 do
8130 # Extract the first word of "$ac_prog", so it can be a program name with args.
8131 set dummy $ac_prog; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_RUNTEST+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$RUNTEST"; then
8138 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_RUNTEST="$ac_prog"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 RUNTEST=$ac_cv_prog_RUNTEST
8158 if test -n "$RUNTEST"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8160 $as_echo "$RUNTEST" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167 test -n "$RUNTEST" && break
8168 done
8169 test -n "$RUNTEST" || RUNTEST="runtest"
8170
8171 case " $configdirs " in
8172 *" dejagnu "*)
8173 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8174 ;;
8175 esac
8176
8177
8178 # Host tools.
8179 ncn_tool_prefix=
8180 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8181 ncn_target_tool_prefix=
8182 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8183
8184
8185
8186 if test -n "$AR"; then
8187 ac_cv_prog_AR=$AR
8188 elif test -n "$ac_cv_prog_AR"; then
8189 AR=$ac_cv_prog_AR
8190 fi
8191
8192 if test -n "$ac_cv_prog_AR"; then
8193 for ncn_progname in ar; do
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8195 set dummy ${ncn_progname}; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if ${ac_cv_prog_AR+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if test -n "$AR"; then
8202 ac_cv_prog_AR="$AR" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_AR="${ncn_progname}"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215 done
8216 done
8217 IFS=$as_save_IFS
8218
8219 fi
8220 fi
8221 AR=$ac_cv_prog_AR
8222 if test -n "$AR"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8224 $as_echo "$AR" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 fi
8229
8230
8231 done
8232 fi
8233
8234 for ncn_progname in ar; do
8235 if test -n "$ncn_tool_prefix"; then
8236 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8237 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_AR+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 if test -n "$AR"; then
8244 ac_cv_prog_AR="$AR" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261 fi
8262 fi
8263 AR=$ac_cv_prog_AR
8264 if test -n "$AR"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8266 $as_echo "$AR" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8270 fi
8271
8272
8273 fi
8274 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8276 set dummy ${ncn_progname}; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_AR+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 if test -n "$AR"; then
8283 ac_cv_prog_AR="$AR" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_AR="${ncn_progname}"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8295 fi
8296 done
8297 done
8298 IFS=$as_save_IFS
8299
8300 fi
8301 fi
8302 AR=$ac_cv_prog_AR
8303 if test -n "$AR"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8305 $as_echo "$AR" >&6; }
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 fi
8310
8311
8312 fi
8313 test -n "$ac_cv_prog_AR" && break
8314 done
8315
8316 if test -z "$ac_cv_prog_AR" ; then
8317 set dummy ar
8318 if test $build = $host ; then
8319 AR="$2"
8320 else
8321 AR="${ncn_tool_prefix}$2"
8322 fi
8323 fi
8324
8325
8326
8327 if test -n "$AS"; then
8328 ac_cv_prog_AS=$AS
8329 elif test -n "$ac_cv_prog_AS"; then
8330 AS=$ac_cv_prog_AS
8331 fi
8332
8333 if test -n "$ac_cv_prog_AS"; then
8334 for ncn_progname in as; do
8335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8336 set dummy ${ncn_progname}; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_AS+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 if test -n "$AS"; then
8343 ac_cv_prog_AS="$AS" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8347 do
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352 ac_cv_prog_AS="${ncn_progname}"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8355 fi
8356 done
8357 done
8358 IFS=$as_save_IFS
8359
8360 fi
8361 fi
8362 AS=$ac_cv_prog_AS
8363 if test -n "$AS"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8365 $as_echo "$AS" >&6; }
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 fi
8370
8371
8372 done
8373 fi
8374
8375 for ncn_progname in as; do
8376 if test -n "$ncn_tool_prefix"; then
8377 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8378 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AS+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$AS"; then
8385 ac_cv_prog_AS="$AS" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 AS=$ac_cv_prog_AS
8405 if test -n "$AS"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8407 $as_echo "$AS" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412
8413
8414 fi
8415 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8417 set dummy ${ncn_progname}; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if ${ac_cv_prog_AS+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 if test -n "$AS"; then
8424 ac_cv_prog_AS="$AS" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_AS="${ncn_progname}"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441 fi
8442 fi
8443 AS=$ac_cv_prog_AS
8444 if test -n "$AS"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8446 $as_echo "$AS" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 fi
8451
8452
8453 fi
8454 test -n "$ac_cv_prog_AS" && break
8455 done
8456
8457 if test -z "$ac_cv_prog_AS" ; then
8458 set dummy as
8459 if test $build = $host ; then
8460 AS="$2"
8461 else
8462 AS="${ncn_tool_prefix}$2"
8463 fi
8464 fi
8465
8466
8467
8468 if test -n "$DLLTOOL"; then
8469 ac_cv_prog_DLLTOOL=$DLLTOOL
8470 elif test -n "$ac_cv_prog_DLLTOOL"; then
8471 DLLTOOL=$ac_cv_prog_DLLTOOL
8472 fi
8473
8474 if test -n "$ac_cv_prog_DLLTOOL"; then
8475 for ncn_progname in dlltool; do
8476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8477 set dummy ${ncn_progname}; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_DLLTOOL+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test -n "$DLLTOOL"; then
8484 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_DLLTOOL="${ncn_progname}"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497 done
8498 done
8499 IFS=$as_save_IFS
8500
8501 fi
8502 fi
8503 DLLTOOL=$ac_cv_prog_DLLTOOL
8504 if test -n "$DLLTOOL"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8506 $as_echo "$DLLTOOL" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511
8512
8513 done
8514 fi
8515
8516 for ncn_progname in dlltool; do
8517 if test -n "$ncn_tool_prefix"; then
8518 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8519 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if ${ac_cv_prog_DLLTOOL+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 if test -n "$DLLTOOL"; then
8526 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8530 do
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8538 fi
8539 done
8540 done
8541 IFS=$as_save_IFS
8542
8543 fi
8544 fi
8545 DLLTOOL=$ac_cv_prog_DLLTOOL
8546 if test -n "$DLLTOOL"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8548 $as_echo "$DLLTOOL" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552 fi
8553
8554
8555 fi
8556 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8558 set dummy ${ncn_progname}; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_DLLTOOL+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$DLLTOOL"; then
8565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_DLLTOOL="${ncn_progname}"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 DLLTOOL=$ac_cv_prog_DLLTOOL
8585 if test -n "$DLLTOOL"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8587 $as_echo "$DLLTOOL" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593
8594 fi
8595 test -n "$ac_cv_prog_DLLTOOL" && break
8596 done
8597
8598 if test -z "$ac_cv_prog_DLLTOOL" ; then
8599 set dummy dlltool
8600 if test $build = $host ; then
8601 DLLTOOL="$2"
8602 else
8603 DLLTOOL="${ncn_tool_prefix}$2"
8604 fi
8605 fi
8606
8607
8608
8609 if test -n "$LD"; then
8610 ac_cv_prog_LD=$LD
8611 elif test -n "$ac_cv_prog_LD"; then
8612 LD=$ac_cv_prog_LD
8613 fi
8614
8615 if test -n "$ac_cv_prog_LD"; then
8616 for ncn_progname in ld; do
8617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8618 set dummy ${ncn_progname}; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_LD+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test -n "$LD"; then
8625 ac_cv_prog_LD="$LD" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_LD="${ncn_progname}"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 fi
8643 fi
8644 LD=$ac_cv_prog_LD
8645 if test -n "$LD"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8647 $as_echo "$LD" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8651 fi
8652
8653
8654 done
8655 fi
8656
8657 for ncn_progname in ld; do
8658 if test -n "$ncn_tool_prefix"; then
8659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8660 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if ${ac_cv_prog_LD+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 if test -n "$LD"; then
8667 ac_cv_prog_LD="$LD" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8671 do
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8676 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8679 fi
8680 done
8681 done
8682 IFS=$as_save_IFS
8683
8684 fi
8685 fi
8686 LD=$ac_cv_prog_LD
8687 if test -n "$LD"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8689 $as_echo "$LD" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8693 fi
8694
8695
8696 fi
8697 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8699 set dummy ${ncn_progname}; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_prog_LD+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 if test -n "$LD"; then
8706 ac_cv_prog_LD="$LD" # Let the user override the test.
8707 else
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8710 do
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8715 ac_cv_prog_LD="${ncn_progname}"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8718 fi
8719 done
8720 done
8721 IFS=$as_save_IFS
8722
8723 fi
8724 fi
8725 LD=$ac_cv_prog_LD
8726 if test -n "$LD"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8728 $as_echo "$LD" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733
8734
8735 fi
8736 test -n "$ac_cv_prog_LD" && break
8737 done
8738
8739 if test -z "$ac_cv_prog_LD" ; then
8740 set dummy ld
8741 if test $build = $host ; then
8742 LD="$2"
8743 else
8744 LD="${ncn_tool_prefix}$2"
8745 fi
8746 fi
8747
8748
8749
8750 if test -n "$LIPO"; then
8751 ac_cv_prog_LIPO=$LIPO
8752 elif test -n "$ac_cv_prog_LIPO"; then
8753 LIPO=$ac_cv_prog_LIPO
8754 fi
8755
8756 if test -n "$ac_cv_prog_LIPO"; then
8757 for ncn_progname in lipo; do
8758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8759 set dummy ${ncn_progname}; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_prog_LIPO+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 if test -n "$LIPO"; then
8766 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 ac_cv_prog_LIPO="${ncn_progname}"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 break 2
8778 fi
8779 done
8780 done
8781 IFS=$as_save_IFS
8782
8783 fi
8784 fi
8785 LIPO=$ac_cv_prog_LIPO
8786 if test -n "$LIPO"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8788 $as_echo "$LIPO" >&6; }
8789 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8792 fi
8793
8794
8795 done
8796 fi
8797
8798 for ncn_progname in lipo; do
8799 if test -n "$ncn_tool_prefix"; then
8800 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_LIPO+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 if test -n "$LIPO"; then
8808 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8809 else
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8812 do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8820 fi
8821 done
8822 done
8823 IFS=$as_save_IFS
8824
8825 fi
8826 fi
8827 LIPO=$ac_cv_prog_LIPO
8828 if test -n "$LIPO"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8830 $as_echo "$LIPO" >&6; }
8831 else
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8834 fi
8835
8836
8837 fi
8838 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8840 set dummy ${ncn_progname}; ac_word=$2
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842 $as_echo_n "checking for $ac_word... " >&6; }
8843 if ${ac_cv_prog_LIPO+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 if test -n "$LIPO"; then
8847 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_LIPO="${ncn_progname}"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860 done
8861 done
8862 IFS=$as_save_IFS
8863
8864 fi
8865 fi
8866 LIPO=$ac_cv_prog_LIPO
8867 if test -n "$LIPO"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8869 $as_echo "$LIPO" >&6; }
8870 else
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874
8875
8876 fi
8877 test -n "$ac_cv_prog_LIPO" && break
8878 done
8879
8880 if test -z "$ac_cv_prog_LIPO" ; then
8881 set dummy lipo
8882 if test $build = $host ; then
8883 LIPO="$2"
8884 else
8885 LIPO="${ncn_tool_prefix}$2"
8886 fi
8887 fi
8888
8889
8890
8891 if test -n "$NM"; then
8892 ac_cv_prog_NM=$NM
8893 elif test -n "$ac_cv_prog_NM"; then
8894 NM=$ac_cv_prog_NM
8895 fi
8896
8897 if test -n "$ac_cv_prog_NM"; then
8898 for ncn_progname in nm; do
8899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8900 set dummy ${ncn_progname}; ac_word=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if ${ac_cv_prog_NM+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -n "$NM"; then
8907 ac_cv_prog_NM="$NM" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8911 do
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8916 ac_cv_prog_NM="${ncn_progname}"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922 IFS=$as_save_IFS
8923
8924 fi
8925 fi
8926 NM=$ac_cv_prog_NM
8927 if test -n "$NM"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8929 $as_echo "$NM" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8933 fi
8934
8935
8936 done
8937 fi
8938
8939 for ncn_progname in nm; do
8940 if test -n "$ncn_tool_prefix"; then
8941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if ${ac_cv_prog_NM+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 if test -n "$NM"; then
8949 ac_cv_prog_NM="$NM" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8953 do
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 break 2
8961 fi
8962 done
8963 done
8964 IFS=$as_save_IFS
8965
8966 fi
8967 fi
8968 NM=$ac_cv_prog_NM
8969 if test -n "$NM"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8971 $as_echo "$NM" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8975 fi
8976
8977
8978 fi
8979 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8981 set dummy ${ncn_progname}; ac_word=$2
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 $as_echo_n "checking for $ac_word... " >&6; }
8984 if ${ac_cv_prog_NM+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 if test -n "$NM"; then
8988 ac_cv_prog_NM="$NM" # Let the user override the test.
8989 else
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8992 do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8997 ac_cv_prog_NM="${ncn_progname}"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001 done
9002 done
9003 IFS=$as_save_IFS
9004
9005 fi
9006 fi
9007 NM=$ac_cv_prog_NM
9008 if test -n "$NM"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9010 $as_echo "$NM" >&6; }
9011 else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9014 fi
9015
9016
9017 fi
9018 test -n "$ac_cv_prog_NM" && break
9019 done
9020
9021 if test -z "$ac_cv_prog_NM" ; then
9022 set dummy nm
9023 if test $build = $host ; then
9024 NM="$2"
9025 else
9026 NM="${ncn_tool_prefix}$2"
9027 fi
9028 fi
9029
9030
9031
9032 if test -n "$RANLIB"; then
9033 ac_cv_prog_RANLIB=$RANLIB
9034 elif test -n "$ac_cv_prog_RANLIB"; then
9035 RANLIB=$ac_cv_prog_RANLIB
9036 fi
9037
9038 if test -n "$ac_cv_prog_RANLIB"; then
9039 for ncn_progname in ranlib; do
9040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9041 set dummy ${ncn_progname}; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_prog_RANLIB+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 if test -n "$RANLIB"; then
9048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9049 else
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9052 do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057 ac_cv_prog_RANLIB="${ncn_progname}"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9060 fi
9061 done
9062 done
9063 IFS=$as_save_IFS
9064
9065 fi
9066 fi
9067 RANLIB=$ac_cv_prog_RANLIB
9068 if test -n "$RANLIB"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9070 $as_echo "$RANLIB" >&6; }
9071 else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9074 fi
9075
9076
9077 done
9078 fi
9079
9080 for ncn_progname in ranlib; do
9081 if test -n "$ncn_tool_prefix"; then
9082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_RANLIB+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 if test -n "$RANLIB"; then
9090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9094 do
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103 done
9104 done
9105 IFS=$as_save_IFS
9106
9107 fi
9108 fi
9109 RANLIB=$ac_cv_prog_RANLIB
9110 if test -n "$RANLIB"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9112 $as_echo "$RANLIB" >&6; }
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9116 fi
9117
9118
9119 fi
9120 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9122 set dummy ${ncn_progname}; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if ${ac_cv_prog_RANLIB+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 if test -n "$RANLIB"; then
9129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9130 else
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138 ac_cv_prog_RANLIB="${ncn_progname}"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142 done
9143 done
9144 IFS=$as_save_IFS
9145
9146 fi
9147 fi
9148 RANLIB=$ac_cv_prog_RANLIB
9149 if test -n "$RANLIB"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9151 $as_echo "$RANLIB" >&6; }
9152 else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158 fi
9159 test -n "$ac_cv_prog_RANLIB" && break
9160 done
9161
9162 if test -z "$ac_cv_prog_RANLIB" ; then
9163 RANLIB="true"
9164 fi
9165
9166
9167
9168 if test -n "$STRIP"; then
9169 ac_cv_prog_STRIP=$STRIP
9170 elif test -n "$ac_cv_prog_STRIP"; then
9171 STRIP=$ac_cv_prog_STRIP
9172 fi
9173
9174 if test -n "$ac_cv_prog_STRIP"; then
9175 for ncn_progname in strip; do
9176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9177 set dummy ${ncn_progname}; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_prog_STRIP+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 if test -n "$STRIP"; then
9184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9188 do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_STRIP="${ncn_progname}"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197 done
9198 done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 STRIP=$ac_cv_prog_STRIP
9204 if test -n "$STRIP"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9206 $as_echo "$STRIP" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211
9212
9213 done
9214 fi
9215
9216 for ncn_progname in strip; do
9217 if test -n "$ncn_tool_prefix"; then
9218 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9219 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if ${ac_cv_prog_STRIP+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 if test -n "$STRIP"; then
9226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 break 2
9238 fi
9239 done
9240 done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 STRIP=$ac_cv_prog_STRIP
9246 if test -n "$STRIP"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9248 $as_echo "$STRIP" >&6; }
9249 else
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9252 fi
9253
9254
9255 fi
9256 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9258 set dummy ${ncn_progname}; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if ${ac_cv_prog_STRIP+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 if test -n "$STRIP"; then
9265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9266 else
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9269 do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274 ac_cv_prog_STRIP="${ncn_progname}"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278 done
9279 done
9280 IFS=$as_save_IFS
9281
9282 fi
9283 fi
9284 STRIP=$ac_cv_prog_STRIP
9285 if test -n "$STRIP"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9287 $as_echo "$STRIP" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9291 fi
9292
9293
9294 fi
9295 test -n "$ac_cv_prog_STRIP" && break
9296 done
9297
9298 if test -z "$ac_cv_prog_STRIP" ; then
9299 STRIP="true"
9300 fi
9301
9302
9303
9304 if test -n "$WINDRES"; then
9305 ac_cv_prog_WINDRES=$WINDRES
9306 elif test -n "$ac_cv_prog_WINDRES"; then
9307 WINDRES=$ac_cv_prog_WINDRES
9308 fi
9309
9310 if test -n "$ac_cv_prog_WINDRES"; then
9311 for ncn_progname in windres; do
9312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9313 set dummy ${ncn_progname}; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_prog_WINDRES+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test -n "$WINDRES"; then
9320 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9321 else
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9324 do
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9329 ac_cv_prog_WINDRES="${ncn_progname}"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9332 fi
9333 done
9334 done
9335 IFS=$as_save_IFS
9336
9337 fi
9338 fi
9339 WINDRES=$ac_cv_prog_WINDRES
9340 if test -n "$WINDRES"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9342 $as_echo "$WINDRES" >&6; }
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9346 fi
9347
9348
9349 done
9350 fi
9351
9352 for ncn_progname in windres; do
9353 if test -n "$ncn_tool_prefix"; then
9354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9355 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 $as_echo_n "checking for $ac_word... " >&6; }
9358 if ${ac_cv_prog_WINDRES+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 if test -n "$WINDRES"; then
9362 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9363 else
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9366 do
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9371 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9374 fi
9375 done
9376 done
9377 IFS=$as_save_IFS
9378
9379 fi
9380 fi
9381 WINDRES=$ac_cv_prog_WINDRES
9382 if test -n "$WINDRES"; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9384 $as_echo "$WINDRES" >&6; }
9385 else
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9388 fi
9389
9390
9391 fi
9392 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9394 set dummy ${ncn_progname}; ac_word=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if ${ac_cv_prog_WINDRES+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 if test -n "$WINDRES"; then
9401 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9402 else
9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 for as_dir in $PATH
9405 do
9406 IFS=$as_save_IFS
9407 test -z "$as_dir" && as_dir=.
9408 for ac_exec_ext in '' $ac_executable_extensions; do
9409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9410 ac_cv_prog_WINDRES="${ncn_progname}"
9411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 break 2
9413 fi
9414 done
9415 done
9416 IFS=$as_save_IFS
9417
9418 fi
9419 fi
9420 WINDRES=$ac_cv_prog_WINDRES
9421 if test -n "$WINDRES"; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9423 $as_echo "$WINDRES" >&6; }
9424 else
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9427 fi
9428
9429
9430 fi
9431 test -n "$ac_cv_prog_WINDRES" && break
9432 done
9433
9434 if test -z "$ac_cv_prog_WINDRES" ; then
9435 set dummy windres
9436 if test $build = $host ; then
9437 WINDRES="$2"
9438 else
9439 WINDRES="${ncn_tool_prefix}$2"
9440 fi
9441 fi
9442
9443
9444
9445 if test -n "$WINDMC"; then
9446 ac_cv_prog_WINDMC=$WINDMC
9447 elif test -n "$ac_cv_prog_WINDMC"; then
9448 WINDMC=$ac_cv_prog_WINDMC
9449 fi
9450
9451 if test -n "$ac_cv_prog_WINDMC"; then
9452 for ncn_progname in windmc; do
9453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9454 set dummy ${ncn_progname}; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if ${ac_cv_prog_WINDMC+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 if test -n "$WINDMC"; then
9461 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9462 else
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 for as_dir in $PATH
9465 do
9466 IFS=$as_save_IFS
9467 test -z "$as_dir" && as_dir=.
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9470 ac_cv_prog_WINDMC="${ncn_progname}"
9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9472 break 2
9473 fi
9474 done
9475 done
9476 IFS=$as_save_IFS
9477
9478 fi
9479 fi
9480 WINDMC=$ac_cv_prog_WINDMC
9481 if test -n "$WINDMC"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9483 $as_echo "$WINDMC" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 fi
9488
9489
9490 done
9491 fi
9492
9493 for ncn_progname in windmc; do
9494 if test -n "$ncn_tool_prefix"; then
9495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498 $as_echo_n "checking for $ac_word... " >&6; }
9499 if ${ac_cv_prog_WINDMC+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 if test -n "$WINDMC"; then
9503 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9504 else
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9507 do
9508 IFS=$as_save_IFS
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 break 2
9515 fi
9516 done
9517 done
9518 IFS=$as_save_IFS
9519
9520 fi
9521 fi
9522 WINDMC=$ac_cv_prog_WINDMC
9523 if test -n "$WINDMC"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9525 $as_echo "$WINDMC" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529 fi
9530
9531
9532 fi
9533 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9535 set dummy ${ncn_progname}; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if ${ac_cv_prog_WINDMC+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 if test -n "$WINDMC"; then
9542 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9546 do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_WINDMC="${ncn_progname}"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555 done
9556 done
9557 IFS=$as_save_IFS
9558
9559 fi
9560 fi
9561 WINDMC=$ac_cv_prog_WINDMC
9562 if test -n "$WINDMC"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9564 $as_echo "$WINDMC" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569
9570
9571 fi
9572 test -n "$ac_cv_prog_WINDMC" && break
9573 done
9574
9575 if test -z "$ac_cv_prog_WINDMC" ; then
9576 set dummy windmc
9577 if test $build = $host ; then
9578 WINDMC="$2"
9579 else
9580 WINDMC="${ncn_tool_prefix}$2"
9581 fi
9582 fi
9583
9584
9585
9586 if test -n "$OBJCOPY"; then
9587 ac_cv_prog_OBJCOPY=$OBJCOPY
9588 elif test -n "$ac_cv_prog_OBJCOPY"; then
9589 OBJCOPY=$ac_cv_prog_OBJCOPY
9590 fi
9591
9592 if test -n "$ac_cv_prog_OBJCOPY"; then
9593 for ncn_progname in objcopy; do
9594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9595 set dummy ${ncn_progname}; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_prog_OBJCOPY+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 if test -n "$OBJCOPY"; then
9602 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9603 else
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9606 do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_prog_OBJCOPY="${ncn_progname}"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615 done
9616 done
9617 IFS=$as_save_IFS
9618
9619 fi
9620 fi
9621 OBJCOPY=$ac_cv_prog_OBJCOPY
9622 if test -n "$OBJCOPY"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9624 $as_echo "$OBJCOPY" >&6; }
9625 else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9628 fi
9629
9630
9631 done
9632 fi
9633
9634 for ncn_progname in objcopy; do
9635 if test -n "$ncn_tool_prefix"; then
9636 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9637 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if ${ac_cv_prog_OBJCOPY+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 if test -n "$OBJCOPY"; then
9644 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9645 else
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 for as_dir in $PATH
9648 do
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9653 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 break 2
9656 fi
9657 done
9658 done
9659 IFS=$as_save_IFS
9660
9661 fi
9662 fi
9663 OBJCOPY=$ac_cv_prog_OBJCOPY
9664 if test -n "$OBJCOPY"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9666 $as_echo "$OBJCOPY" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9670 fi
9671
9672
9673 fi
9674 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9676 set dummy ${ncn_progname}; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_prog_OBJCOPY+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 if test -n "$OBJCOPY"; then
9683 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9684 else
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9687 do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_OBJCOPY="${ncn_progname}"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696 done
9697 done
9698 IFS=$as_save_IFS
9699
9700 fi
9701 fi
9702 OBJCOPY=$ac_cv_prog_OBJCOPY
9703 if test -n "$OBJCOPY"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9705 $as_echo "$OBJCOPY" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9709 fi
9710
9711
9712 fi
9713 test -n "$ac_cv_prog_OBJCOPY" && break
9714 done
9715
9716 if test -z "$ac_cv_prog_OBJCOPY" ; then
9717 set dummy objcopy
9718 if test $build = $host ; then
9719 OBJCOPY="$2"
9720 else
9721 OBJCOPY="${ncn_tool_prefix}$2"
9722 fi
9723 fi
9724
9725
9726
9727 if test -n "$OBJDUMP"; then
9728 ac_cv_prog_OBJDUMP=$OBJDUMP
9729 elif test -n "$ac_cv_prog_OBJDUMP"; then
9730 OBJDUMP=$ac_cv_prog_OBJDUMP
9731 fi
9732
9733 if test -n "$ac_cv_prog_OBJDUMP"; then
9734 for ncn_progname in objdump; do
9735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9736 set dummy ${ncn_progname}; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_OBJDUMP+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 if test -n "$OBJDUMP"; then
9743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_OBJDUMP="${ncn_progname}"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756 done
9757 done
9758 IFS=$as_save_IFS
9759
9760 fi
9761 fi
9762 OBJDUMP=$ac_cv_prog_OBJDUMP
9763 if test -n "$OBJDUMP"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9765 $as_echo "$OBJDUMP" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9769 fi
9770
9771
9772 done
9773 fi
9774
9775 for ncn_progname in objdump; do
9776 if test -n "$ncn_tool_prefix"; then
9777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9778 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if ${ac_cv_prog_OBJDUMP+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 if test -n "$OBJDUMP"; then
9785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9786 else
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9789 do
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9794 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9797 fi
9798 done
9799 done
9800 IFS=$as_save_IFS
9801
9802 fi
9803 fi
9804 OBJDUMP=$ac_cv_prog_OBJDUMP
9805 if test -n "$OBJDUMP"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9807 $as_echo "$OBJDUMP" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9811 fi
9812
9813
9814 fi
9815 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9817 set dummy ${ncn_progname}; ac_word=$2
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9819 $as_echo_n "checking for $ac_word... " >&6; }
9820 if ${ac_cv_prog_OBJDUMP+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 if test -n "$OBJDUMP"; then
9824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9825 else
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833 ac_cv_prog_OBJDUMP="${ncn_progname}"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837 done
9838 done
9839 IFS=$as_save_IFS
9840
9841 fi
9842 fi
9843 OBJDUMP=$ac_cv_prog_OBJDUMP
9844 if test -n "$OBJDUMP"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9846 $as_echo "$OBJDUMP" >&6; }
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9850 fi
9851
9852
9853 fi
9854 test -n "$ac_cv_prog_OBJDUMP" && break
9855 done
9856
9857 if test -z "$ac_cv_prog_OBJDUMP" ; then
9858 set dummy objdump
9859 if test $build = $host ; then
9860 OBJDUMP="$2"
9861 else
9862 OBJDUMP="${ncn_tool_prefix}$2"
9863 fi
9864 fi
9865
9866
9867
9868 if test -n "$READELF"; then
9869 ac_cv_prog_READELF=$READELF
9870 elif test -n "$ac_cv_prog_READELF"; then
9871 READELF=$ac_cv_prog_READELF
9872 fi
9873
9874 if test -n "$ac_cv_prog_READELF"; then
9875 for ncn_progname in readelf; do
9876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9877 set dummy ${ncn_progname}; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if ${ac_cv_prog_READELF+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 if test -n "$READELF"; then
9884 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9888 do
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893 ac_cv_prog_READELF="${ncn_progname}"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9896 fi
9897 done
9898 done
9899 IFS=$as_save_IFS
9900
9901 fi
9902 fi
9903 READELF=$ac_cv_prog_READELF
9904 if test -n "$READELF"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9906 $as_echo "$READELF" >&6; }
9907 else
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 fi
9911
9912
9913 done
9914 fi
9915
9916 for ncn_progname in readelf; do
9917 if test -n "$ncn_tool_prefix"; then
9918 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9919 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if ${ac_cv_prog_READELF+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 if test -n "$READELF"; then
9926 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9927 else
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9930 do
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9938 fi
9939 done
9940 done
9941 IFS=$as_save_IFS
9942
9943 fi
9944 fi
9945 READELF=$ac_cv_prog_READELF
9946 if test -n "$READELF"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9948 $as_echo "$READELF" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9952 fi
9953
9954
9955 fi
9956 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9958 set dummy ${ncn_progname}; ac_word=$2
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960 $as_echo_n "checking for $ac_word... " >&6; }
9961 if ${ac_cv_prog_READELF+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 if test -n "$READELF"; then
9965 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9966 else
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9969 do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_prog_READELF="${ncn_progname}"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9977 fi
9978 done
9979 done
9980 IFS=$as_save_IFS
9981
9982 fi
9983 fi
9984 READELF=$ac_cv_prog_READELF
9985 if test -n "$READELF"; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9987 $as_echo "$READELF" >&6; }
9988 else
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 $as_echo "no" >&6; }
9991 fi
9992
9993
9994 fi
9995 test -n "$ac_cv_prog_READELF" && break
9996 done
9997
9998 if test -z "$ac_cv_prog_READELF" ; then
9999 set dummy readelf
10000 if test $build = $host ; then
10001 READELF="$2"
10002 else
10003 READELF="${ncn_tool_prefix}$2"
10004 fi
10005 fi
10006
10007
10008
10009
10010
10011
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10013 $as_echo_n "checking for -plugin option... " >&6; }
10014
10015 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10016 plugin_option=
10017 for plugin in $plugin_names; do
10018 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10019 if test x$plugin_so = x$plugin; then
10020 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10021 fi
10022 if test x$plugin_so != x$plugin; then
10023 plugin_option="--plugin $plugin_so"
10024 break
10025 fi
10026 done
10027 if test -n "$plugin_option"; then
10028 PLUGIN_OPTION="$plugin_option"
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10030 $as_echo "$plugin_option" >&6; }
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10034 fi
10035
10036 AR_PLUGIN_OPTION=
10037 RANLIB_PLUGIN_OPTION=
10038 if test -n "$PLUGIN_OPTION"; then
10039 if $AR --help 2>&1 | grep -q "\--plugin"; then
10040 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10041 fi
10042 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10043 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10044 fi
10045 fi
10046
10047
10048
10049 # Target tools.
10050
10051 # Check whether --with-build-time-tools was given.
10052 if test "${with_build_time_tools+set}" = set; then :
10053 withval=$with_build_time_tools; case x"$withval" in
10054 x/*) ;;
10055 *)
10056 with_build_time_tools=
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10058 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10059 ;;
10060 esac
10061 else
10062 with_build_time_tools=
10063 fi
10064
10065
10066
10067
10068 if test -n "$CC_FOR_TARGET"; then
10069 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10070 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10071 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10072 fi
10073
10074 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10075 for ncn_progname in cc gcc; do
10076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10077 set dummy ${ncn_progname}; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 if test -n "$CC_FOR_TARGET"; then
10084 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10088 do
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10096 fi
10097 done
10098 done
10099 IFS=$as_save_IFS
10100
10101 fi
10102 fi
10103 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10104 if test -n "$CC_FOR_TARGET"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10106 $as_echo "$CC_FOR_TARGET" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10110 fi
10111
10112
10113 done
10114 fi
10115
10116 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10117 for ncn_progname in cc gcc; do
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10119 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10120 if test -x $with_build_time_tools/${ncn_progname}; then
10121 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10123 $as_echo "yes" >&6; }
10124 break
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10128 fi
10129 done
10130 fi
10131
10132 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10133 for ncn_progname in cc gcc; do
10134 if test -n "$ncn_target_tool_prefix"; then
10135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10136 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 if test -n "$CC_FOR_TARGET"; then
10143 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10147 do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156 done
10157 done
10158 IFS=$as_save_IFS
10159
10160 fi
10161 fi
10162 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10163 if test -n "$CC_FOR_TARGET"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10165 $as_echo "$CC_FOR_TARGET" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169 fi
10170
10171
10172 fi
10173 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10175 set dummy ${ncn_progname}; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 if test -n "$CC_FOR_TARGET"; then
10182 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10183 else
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195 done
10196 done
10197 IFS=$as_save_IFS
10198
10199 fi
10200 fi
10201 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10202 if test -n "$CC_FOR_TARGET"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10204 $as_echo "$CC_FOR_TARGET" >&6; }
10205 else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 fi
10209
10210
10211 fi
10212 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10213 done
10214 fi
10215
10216 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10217 set dummy cc gcc
10218 if test $build = $target ; then
10219 CC_FOR_TARGET="$2"
10220 else
10221 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10222 fi
10223 else
10224 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10225 fi
10226
10227
10228
10229 if test -n "$CXX_FOR_TARGET"; then
10230 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10231 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10232 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10233 fi
10234
10235 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10236 for ncn_progname in c++ g++ cxx gxx; do
10237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10238 set dummy ${ncn_progname}; ac_word=$2
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240 $as_echo_n "checking for $ac_word... " >&6; }
10241 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 if test -n "$CXX_FOR_TARGET"; then
10245 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10246 else
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10249 do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10254 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10257 fi
10258 done
10259 done
10260 IFS=$as_save_IFS
10261
10262 fi
10263 fi
10264 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10265 if test -n "$CXX_FOR_TARGET"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10267 $as_echo "$CXX_FOR_TARGET" >&6; }
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10271 fi
10272
10273
10274 done
10275 fi
10276
10277 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10278 for ncn_progname in c++ g++ cxx gxx; do
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10280 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10281 if test -x $with_build_time_tools/${ncn_progname}; then
10282 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10284 $as_echo "yes" >&6; }
10285 break
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10289 fi
10290 done
10291 fi
10292
10293 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10294 for ncn_progname in c++ g++ cxx gxx; do
10295 if test -n "$ncn_target_tool_prefix"; then
10296 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10297 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 if test -n "$CXX_FOR_TARGET"; then
10304 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10308 do
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10316 fi
10317 done
10318 done
10319 IFS=$as_save_IFS
10320
10321 fi
10322 fi
10323 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10324 if test -n "$CXX_FOR_TARGET"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10326 $as_echo "$CXX_FOR_TARGET" >&6; }
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10330 fi
10331
10332
10333 fi
10334 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10336 set dummy ${ncn_progname}; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 $as_echo_n "checking for $ac_word... " >&6; }
10339 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 if test -n "$CXX_FOR_TARGET"; then
10343 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10344 else
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10347 do
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10355 fi
10356 done
10357 done
10358 IFS=$as_save_IFS
10359
10360 fi
10361 fi
10362 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10363 if test -n "$CXX_FOR_TARGET"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10365 $as_echo "$CXX_FOR_TARGET" >&6; }
10366 else
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10369 fi
10370
10371
10372 fi
10373 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10374 done
10375 fi
10376
10377 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10378 set dummy c++ g++ cxx gxx
10379 if test $build = $target ; then
10380 CXX_FOR_TARGET="$2"
10381 else
10382 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10383 fi
10384 else
10385 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10386 fi
10387
10388
10389
10390 if test -n "$GCC_FOR_TARGET"; then
10391 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10392 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10393 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10394 fi
10395
10396 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10397 for ncn_progname in gcc; do
10398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10399 set dummy ${ncn_progname}; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 if test -n "$GCC_FOR_TARGET"; then
10406 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10407 else
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10410 do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419 done
10420 done
10421 IFS=$as_save_IFS
10422
10423 fi
10424 fi
10425 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10426 if test -n "$GCC_FOR_TARGET"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10428 $as_echo "$GCC_FOR_TARGET" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10432 fi
10433
10434
10435 done
10436 fi
10437
10438 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10439 for ncn_progname in gcc; do
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10441 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10442 if test -x $with_build_time_tools/${ncn_progname}; then
10443 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10445 $as_echo "yes" >&6; }
10446 break
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 fi
10451 done
10452 fi
10453
10454 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10455 for ncn_progname in gcc; do
10456 if test -n "$ncn_target_tool_prefix"; then
10457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10458 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 if test -n "$GCC_FOR_TARGET"; then
10465 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10466 else
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10469 do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478 done
10479 done
10480 IFS=$as_save_IFS
10481
10482 fi
10483 fi
10484 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10485 if test -n "$GCC_FOR_TARGET"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10487 $as_echo "$GCC_FOR_TARGET" >&6; }
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10491 fi
10492
10493
10494 fi
10495 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10497 set dummy ${ncn_progname}; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 if test -n "$GCC_FOR_TARGET"; then
10504 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10505 else
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10508 do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10516 fi
10517 done
10518 done
10519 IFS=$as_save_IFS
10520
10521 fi
10522 fi
10523 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10524 if test -n "$GCC_FOR_TARGET"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10526 $as_echo "$GCC_FOR_TARGET" >&6; }
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 fi
10531
10532
10533 fi
10534 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10535 done
10536 fi
10537
10538 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10539 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10540 else
10541 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10542 fi
10543
10544
10545
10546 if test -n "$GFORTRAN_FOR_TARGET"; then
10547 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10548 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10549 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10550 fi
10551
10552 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10553 for ncn_progname in gfortran; do
10554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10555 set dummy ${ncn_progname}; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 if test -n "$GFORTRAN_FOR_TARGET"; then
10562 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10563 else
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10566 do
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10571 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10574 fi
10575 done
10576 done
10577 IFS=$as_save_IFS
10578
10579 fi
10580 fi
10581 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10582 if test -n "$GFORTRAN_FOR_TARGET"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10584 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10588 fi
10589
10590
10591 done
10592 fi
10593
10594 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10595 for ncn_progname in gfortran; do
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10597 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10598 if test -x $with_build_time_tools/${ncn_progname}; then
10599 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10601 $as_echo "yes" >&6; }
10602 break
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10606 fi
10607 done
10608 fi
10609
10610 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10611 for ncn_progname in gfortran; do
10612 if test -n "$ncn_target_tool_prefix"; then
10613 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10614 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 if test -n "$GFORTRAN_FOR_TARGET"; then
10621 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10622 else
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10625 do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634 done
10635 done
10636 IFS=$as_save_IFS
10637
10638 fi
10639 fi
10640 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10641 if test -n "$GFORTRAN_FOR_TARGET"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10643 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10647 fi
10648
10649
10650 fi
10651 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10653 set dummy ${ncn_progname}; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 if test -n "$GFORTRAN_FOR_TARGET"; then
10660 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673 done
10674 done
10675 IFS=$as_save_IFS
10676
10677 fi
10678 fi
10679 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10680 if test -n "$GFORTRAN_FOR_TARGET"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10682 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689 fi
10690 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10691 done
10692 fi
10693
10694 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10695 set dummy gfortran
10696 if test $build = $target ; then
10697 GFORTRAN_FOR_TARGET="$2"
10698 else
10699 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10700 fi
10701 else
10702 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10703 fi
10704
10705
10706
10707 if test -n "$GOC_FOR_TARGET"; then
10708 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10709 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10710 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10711 fi
10712
10713 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10714 for ncn_progname in gccgo; do
10715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10716 set dummy ${ncn_progname}; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 if test -n "$GOC_FOR_TARGET"; then
10723 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10724 else
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in $PATH
10727 do
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10732 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10735 fi
10736 done
10737 done
10738 IFS=$as_save_IFS
10739
10740 fi
10741 fi
10742 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10743 if test -n "$GOC_FOR_TARGET"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10745 $as_echo "$GOC_FOR_TARGET" >&6; }
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10749 fi
10750
10751
10752 done
10753 fi
10754
10755 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10756 for ncn_progname in gccgo; do
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10759 if test -x $with_build_time_tools/${ncn_progname}; then
10760 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10762 $as_echo "yes" >&6; }
10763 break
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767 fi
10768 done
10769 fi
10770
10771 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10772 for ncn_progname in gccgo; do
10773 if test -n "$ncn_target_tool_prefix"; then
10774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 if test -n "$GOC_FOR_TARGET"; then
10782 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10783 else
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10786 do
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10794 fi
10795 done
10796 done
10797 IFS=$as_save_IFS
10798
10799 fi
10800 fi
10801 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10802 if test -n "$GOC_FOR_TARGET"; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10804 $as_echo "$GOC_FOR_TARGET" >&6; }
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10808 fi
10809
10810
10811 fi
10812 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10814 set dummy ${ncn_progname}; ac_word=$2
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816 $as_echo_n "checking for $ac_word... " >&6; }
10817 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 if test -n "$GOC_FOR_TARGET"; then
10821 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10822 else
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834 done
10835 done
10836 IFS=$as_save_IFS
10837
10838 fi
10839 fi
10840 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10841 if test -n "$GOC_FOR_TARGET"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10843 $as_echo "$GOC_FOR_TARGET" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10847 fi
10848
10849
10850 fi
10851 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10852 done
10853 fi
10854
10855 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10856 set dummy gccgo
10857 if test $build = $target ; then
10858 GOC_FOR_TARGET="$2"
10859 else
10860 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10861 fi
10862 else
10863 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10864 fi
10865
10866
10867
10868 cat > conftest.c << \EOF
10869 #ifdef __GNUC__
10870 gcc_yay;
10871 #endif
10872 EOF
10873 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10874 have_gcc_for_target=yes
10875 else
10876 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10877 have_gcc_for_target=no
10878 fi
10879 rm conftest.c
10880
10881
10882
10883
10884 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10885 if test -n "$with_build_time_tools"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10887 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10888 if test -x $with_build_time_tools/ar; then
10889 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10890 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10892 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897 elif test $build != $host && test $have_gcc_for_target = yes; then
10898 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10899 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10900 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10901 fi
10902 fi
10903 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10904 # Extract the first word of "ar", so it can be a program name with args.
10905 set dummy ar; ac_word=$2
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10907 $as_echo_n "checking for $ac_word... " >&6; }
10908 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 case $AR_FOR_TARGET in
10912 [\\/]* | ?:[\\/]*)
10913 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10914 ;;
10915 *)
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $gcc_cv_tool_dirs
10918 do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10926 fi
10927 done
10928 done
10929 IFS=$as_save_IFS
10930
10931 ;;
10932 esac
10933 fi
10934 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10935 if test -n "$AR_FOR_TARGET"; then
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10937 $as_echo "$AR_FOR_TARGET" >&6; }
10938 else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10940 $as_echo "no" >&6; }
10941 fi
10942
10943
10944 fi
10945 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10946
10947
10948 if test -n "$AR_FOR_TARGET"; then
10949 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10950 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10951 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10952 fi
10953
10954 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10955 for ncn_progname in ar; do
10956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10957 set dummy ${ncn_progname}; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 if test -n "$AR_FOR_TARGET"; then
10964 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10965 else
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10968 do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10973 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977 done
10978 done
10979 IFS=$as_save_IFS
10980
10981 fi
10982 fi
10983 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10984 if test -n "$AR_FOR_TARGET"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10986 $as_echo "$AR_FOR_TARGET" >&6; }
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10990 fi
10991
10992
10993 done
10994 fi
10995
10996 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10997 for ncn_progname in ar; do
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10999 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11000 if test -x $with_build_time_tools/${ncn_progname}; then
11001 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11003 $as_echo "yes" >&6; }
11004 break
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009 done
11010 fi
11011
11012 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11013 for ncn_progname in ar; do
11014 if test -n "$ncn_target_tool_prefix"; then
11015 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11016 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 if test -n "$AR_FOR_TARGET"; then
11023 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11024 else
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11027 do
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11032 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11035 fi
11036 done
11037 done
11038 IFS=$as_save_IFS
11039
11040 fi
11041 fi
11042 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11043 if test -n "$AR_FOR_TARGET"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11045 $as_echo "$AR_FOR_TARGET" >&6; }
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11049 fi
11050
11051
11052 fi
11053 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11055 set dummy ${ncn_progname}; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 if test -n "$AR_FOR_TARGET"; then
11062 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11063 else
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11066 do
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11074 fi
11075 done
11076 done
11077 IFS=$as_save_IFS
11078
11079 fi
11080 fi
11081 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11082 if test -n "$AR_FOR_TARGET"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11084 $as_echo "$AR_FOR_TARGET" >&6; }
11085 else
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11088 fi
11089
11090
11091 fi
11092 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11093 done
11094 fi
11095
11096 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11097 set dummy ar
11098 if test $build = $target ; then
11099 AR_FOR_TARGET="$2"
11100 else
11101 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11102 fi
11103 else
11104 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11105 fi
11106
11107 else
11108 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11109 fi
11110
11111
11112
11113
11114 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11115 if test -n "$with_build_time_tools"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11117 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11118 if test -x $with_build_time_tools/as; then
11119 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11120 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11122 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126 fi
11127 elif test $build != $host && test $have_gcc_for_target = yes; then
11128 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11129 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11130 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11131 fi
11132 fi
11133 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11134 # Extract the first word of "as", so it can be a program name with args.
11135 set dummy as; ac_word=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 case $AS_FOR_TARGET in
11142 [\\/]* | ?:[\\/]*)
11143 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11144 ;;
11145 *)
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $gcc_cv_tool_dirs
11148 do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11153 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157 done
11158 done
11159 IFS=$as_save_IFS
11160
11161 ;;
11162 esac
11163 fi
11164 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11165 if test -n "$AS_FOR_TARGET"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11167 $as_echo "$AS_FOR_TARGET" >&6; }
11168 else
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; }
11171 fi
11172
11173
11174 fi
11175 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11176
11177
11178 if test -n "$AS_FOR_TARGET"; then
11179 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11180 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11181 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11182 fi
11183
11184 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11185 for ncn_progname in as; do
11186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11187 set dummy ${ncn_progname}; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test -n "$AS_FOR_TARGET"; then
11194 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11195 else
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11198 do
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11203 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11206 fi
11207 done
11208 done
11209 IFS=$as_save_IFS
11210
11211 fi
11212 fi
11213 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11214 if test -n "$AS_FOR_TARGET"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11216 $as_echo "$AS_FOR_TARGET" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11220 fi
11221
11222
11223 done
11224 fi
11225
11226 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11227 for ncn_progname in as; do
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11229 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11230 if test -x $with_build_time_tools/${ncn_progname}; then
11231 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11233 $as_echo "yes" >&6; }
11234 break
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11238 fi
11239 done
11240 fi
11241
11242 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11243 for ncn_progname in as; do
11244 if test -n "$ncn_target_tool_prefix"; then
11245 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11246 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 if test -n "$AS_FOR_TARGET"; then
11253 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266 done
11267 done
11268 IFS=$as_save_IFS
11269
11270 fi
11271 fi
11272 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11273 if test -n "$AS_FOR_TARGET"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11275 $as_echo "$AS_FOR_TARGET" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280
11281
11282 fi
11283 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11285 set dummy ${ncn_progname}; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 if test -n "$AS_FOR_TARGET"; then
11292 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11293 else
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11296 do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305 done
11306 done
11307 IFS=$as_save_IFS
11308
11309 fi
11310 fi
11311 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11312 if test -n "$AS_FOR_TARGET"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11314 $as_echo "$AS_FOR_TARGET" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11318 fi
11319
11320
11321 fi
11322 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11323 done
11324 fi
11325
11326 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11327 set dummy as
11328 if test $build = $target ; then
11329 AS_FOR_TARGET="$2"
11330 else
11331 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11332 fi
11333 else
11334 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11335 fi
11336
11337 else
11338 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11339 fi
11340
11341
11342
11343
11344 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11345 if test -n "$with_build_time_tools"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11347 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11348 if test -x $with_build_time_tools/dlltool; then
11349 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11350 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11352 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11356 fi
11357 elif test $build != $host && test $have_gcc_for_target = yes; then
11358 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11359 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11360 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11361 fi
11362 fi
11363 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11364 # Extract the first word of "dlltool", so it can be a program name with args.
11365 set dummy dlltool; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 $as_echo_n "checking for $ac_word... " >&6; }
11368 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 case $DLLTOOL_FOR_TARGET in
11372 [\\/]* | ?:[\\/]*)
11373 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11374 ;;
11375 *)
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $gcc_cv_tool_dirs
11378 do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387 done
11388 done
11389 IFS=$as_save_IFS
11390
11391 ;;
11392 esac
11393 fi
11394 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11395 if test -n "$DLLTOOL_FOR_TARGET"; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11397 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11401 fi
11402
11403
11404 fi
11405 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11406
11407
11408 if test -n "$DLLTOOL_FOR_TARGET"; then
11409 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11410 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11411 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11412 fi
11413
11414 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11415 for ncn_progname in dlltool; do
11416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11417 set dummy ${ncn_progname}; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 if test -n "$DLLTOOL_FOR_TARGET"; then
11424 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11425 else
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11428 do
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11436 fi
11437 done
11438 done
11439 IFS=$as_save_IFS
11440
11441 fi
11442 fi
11443 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11444 if test -n "$DLLTOOL_FOR_TARGET"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11446 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11450 fi
11451
11452
11453 done
11454 fi
11455
11456 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11457 for ncn_progname in dlltool; do
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11459 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11460 if test -x $with_build_time_tools/${ncn_progname}; then
11461 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11463 $as_echo "yes" >&6; }
11464 break
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 fi
11469 done
11470 fi
11471
11472 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11473 for ncn_progname in dlltool; do
11474 if test -n "$ncn_target_tool_prefix"; then
11475 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11476 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 if test -n "$DLLTOOL_FOR_TARGET"; then
11483 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11484 else
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11487 do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11492 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496 done
11497 done
11498 IFS=$as_save_IFS
11499
11500 fi
11501 fi
11502 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11503 if test -n "$DLLTOOL_FOR_TARGET"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11505 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 fi
11510
11511
11512 fi
11513 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11515 set dummy ${ncn_progname}; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 if test -n "$DLLTOOL_FOR_TARGET"; then
11522 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535 done
11536 done
11537 IFS=$as_save_IFS
11538
11539 fi
11540 fi
11541 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11542 if test -n "$DLLTOOL_FOR_TARGET"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11544 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 fi
11549
11550
11551 fi
11552 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11553 done
11554 fi
11555
11556 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11557 set dummy dlltool
11558 if test $build = $target ; then
11559 DLLTOOL_FOR_TARGET="$2"
11560 else
11561 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11562 fi
11563 else
11564 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11565 fi
11566
11567 else
11568 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11569 fi
11570
11571
11572
11573
11574 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11575 if test -n "$with_build_time_tools"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11577 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11578 if test -x $with_build_time_tools/ld; then
11579 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11580 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11582 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11586 fi
11587 elif test $build != $host && test $have_gcc_for_target = yes; then
11588 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11589 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11590 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11591 fi
11592 fi
11593 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11594 # Extract the first word of "ld", so it can be a program name with args.
11595 set dummy ld; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $LD_FOR_TARGET in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11604 ;;
11605 *)
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $gcc_cv_tool_dirs
11608 do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11616 fi
11617 done
11618 done
11619 IFS=$as_save_IFS
11620
11621 ;;
11622 esac
11623 fi
11624 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11625 if test -n "$LD_FOR_TARGET"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11627 $as_echo "$LD_FOR_TARGET" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11631 fi
11632
11633
11634 fi
11635 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11636
11637
11638 if test -n "$LD_FOR_TARGET"; then
11639 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11640 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11641 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11642 fi
11643
11644 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11645 for ncn_progname in ld; do
11646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11647 set dummy ${ncn_progname}; ac_word=$2
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649 $as_echo_n "checking for $ac_word... " >&6; }
11650 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 if test -n "$LD_FOR_TARGET"; then
11654 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11655 else
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11658 do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11666 fi
11667 done
11668 done
11669 IFS=$as_save_IFS
11670
11671 fi
11672 fi
11673 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11674 if test -n "$LD_FOR_TARGET"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11676 $as_echo "$LD_FOR_TARGET" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11680 fi
11681
11682
11683 done
11684 fi
11685
11686 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11687 for ncn_progname in ld; do
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11689 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11690 if test -x $with_build_time_tools/${ncn_progname}; then
11691 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11693 $as_echo "yes" >&6; }
11694 break
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698 fi
11699 done
11700 fi
11701
11702 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11703 for ncn_progname in ld; do
11704 if test -n "$ncn_target_tool_prefix"; then
11705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11706 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 if test -n "$LD_FOR_TARGET"; then
11713 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11714 else
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11717 do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726 done
11727 done
11728 IFS=$as_save_IFS
11729
11730 fi
11731 fi
11732 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11733 if test -n "$LD_FOR_TARGET"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11735 $as_echo "$LD_FOR_TARGET" >&6; }
11736 else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 fi
11740
11741
11742 fi
11743 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11745 set dummy ${ncn_progname}; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 if test -n "$LD_FOR_TARGET"; then
11752 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11753 else
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $PATH
11756 do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11761 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11764 fi
11765 done
11766 done
11767 IFS=$as_save_IFS
11768
11769 fi
11770 fi
11771 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11772 if test -n "$LD_FOR_TARGET"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11774 $as_echo "$LD_FOR_TARGET" >&6; }
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 fi
11779
11780
11781 fi
11782 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11783 done
11784 fi
11785
11786 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11787 set dummy ld
11788 if test $build = $target ; then
11789 LD_FOR_TARGET="$2"
11790 else
11791 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11792 fi
11793 else
11794 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11795 fi
11796
11797 else
11798 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11799 fi
11800
11801
11802
11803
11804 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11805 if test -n "$with_build_time_tools"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11807 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11808 if test -x $with_build_time_tools/lipo; then
11809 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11810 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11812 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817 elif test $build != $host && test $have_gcc_for_target = yes; then
11818 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11819 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11820 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11821 fi
11822 fi
11823 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11824 # Extract the first word of "lipo", so it can be a program name with args.
11825 set dummy lipo; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827 $as_echo_n "checking for $ac_word... " >&6; }
11828 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 case $LIPO_FOR_TARGET in
11832 [\\/]* | ?:[\\/]*)
11833 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11834 ;;
11835 *)
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $gcc_cv_tool_dirs
11838 do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 break 2
11846 fi
11847 done
11848 done
11849 IFS=$as_save_IFS
11850
11851 ;;
11852 esac
11853 fi
11854 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11855 if test -n "$LIPO_FOR_TARGET"; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11857 $as_echo "$LIPO_FOR_TARGET" >&6; }
11858 else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 fi
11862
11863
11864 fi
11865 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11866
11867
11868 if test -n "$LIPO_FOR_TARGET"; then
11869 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11870 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11871 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11872 fi
11873
11874 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11875 for ncn_progname in lipo; do
11876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11877 set dummy ${ncn_progname}; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if test -n "$LIPO_FOR_TARGET"; then
11884 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11888 do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897 done
11898 done
11899 IFS=$as_save_IFS
11900
11901 fi
11902 fi
11903 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11904 if test -n "$LIPO_FOR_TARGET"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11906 $as_echo "$LIPO_FOR_TARGET" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911
11912
11913 done
11914 fi
11915
11916 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11917 for ncn_progname in lipo; do
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11919 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11920 if test -x $with_build_time_tools/${ncn_progname}; then
11921 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923 $as_echo "yes" >&6; }
11924 break
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928 fi
11929 done
11930 fi
11931
11932 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11933 for ncn_progname in lipo; do
11934 if test -n "$ncn_target_tool_prefix"; then
11935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11936 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938 $as_echo_n "checking for $ac_word... " >&6; }
11939 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 if test -n "$LIPO_FOR_TARGET"; then
11943 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11944 else
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11947 do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11955 fi
11956 done
11957 done
11958 IFS=$as_save_IFS
11959
11960 fi
11961 fi
11962 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11963 if test -n "$LIPO_FOR_TARGET"; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11965 $as_echo "$LIPO_FOR_TARGET" >&6; }
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969 fi
11970
11971
11972 fi
11973 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11975 set dummy ${ncn_progname}; ac_word=$2
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11977 $as_echo_n "checking for $ac_word... " >&6; }
11978 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 if test -n "$LIPO_FOR_TARGET"; then
11982 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11983 else
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985 for as_dir in $PATH
11986 do
11987 IFS=$as_save_IFS
11988 test -z "$as_dir" && as_dir=.
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11991 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11993 break 2
11994 fi
11995 done
11996 done
11997 IFS=$as_save_IFS
11998
11999 fi
12000 fi
12001 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12002 if test -n "$LIPO_FOR_TARGET"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12004 $as_echo "$LIPO_FOR_TARGET" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009
12010
12011 fi
12012 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12013 done
12014 fi
12015
12016 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12017 set dummy lipo
12018 if test $build = $target ; then
12019 LIPO_FOR_TARGET="$2"
12020 else
12021 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12022 fi
12023 else
12024 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12025 fi
12026
12027 else
12028 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12029 fi
12030
12031
12032
12033
12034 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12035 if test -n "$with_build_time_tools"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12037 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12038 if test -x $with_build_time_tools/nm; then
12039 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12040 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12042 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12046 fi
12047 elif test $build != $host && test $have_gcc_for_target = yes; then
12048 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12049 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12050 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12051 fi
12052 fi
12053 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12054 # Extract the first word of "nm", so it can be a program name with args.
12055 set dummy nm; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 case $NM_FOR_TARGET in
12062 [\\/]* | ?:[\\/]*)
12063 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12064 ;;
12065 *)
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $gcc_cv_tool_dirs
12068 do
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12076 fi
12077 done
12078 done
12079 IFS=$as_save_IFS
12080
12081 ;;
12082 esac
12083 fi
12084 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12085 if test -n "$NM_FOR_TARGET"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12087 $as_echo "$NM_FOR_TARGET" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092
12093
12094 fi
12095 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12096
12097
12098 if test -n "$NM_FOR_TARGET"; then
12099 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12100 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12101 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12102 fi
12103
12104 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12105 for ncn_progname in nm; do
12106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12107 set dummy ${ncn_progname}; ac_word=$2
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 if test -n "$NM_FOR_TARGET"; then
12114 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12115 else
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12118 do
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12126 fi
12127 done
12128 done
12129 IFS=$as_save_IFS
12130
12131 fi
12132 fi
12133 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12134 if test -n "$NM_FOR_TARGET"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12136 $as_echo "$NM_FOR_TARGET" >&6; }
12137 else
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12140 fi
12141
12142
12143 done
12144 fi
12145
12146 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12147 for ncn_progname in nm; do
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12149 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12150 if test -x $with_build_time_tools/${ncn_progname}; then
12151 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12153 $as_echo "yes" >&6; }
12154 break
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159 done
12160 fi
12161
12162 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12163 for ncn_progname in nm; do
12164 if test -n "$ncn_target_tool_prefix"; then
12165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12166 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test -n "$NM_FOR_TARGET"; then
12173 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12177 do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12185 fi
12186 done
12187 done
12188 IFS=$as_save_IFS
12189
12190 fi
12191 fi
12192 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12193 if test -n "$NM_FOR_TARGET"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12195 $as_echo "$NM_FOR_TARGET" >&6; }
12196 else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199 fi
12200
12201
12202 fi
12203 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12205 set dummy ${ncn_progname}; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 if test -n "$NM_FOR_TARGET"; then
12212 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12213 else
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $PATH
12216 do
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12221 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 break 2
12224 fi
12225 done
12226 done
12227 IFS=$as_save_IFS
12228
12229 fi
12230 fi
12231 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12232 if test -n "$NM_FOR_TARGET"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12234 $as_echo "$NM_FOR_TARGET" >&6; }
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12238 fi
12239
12240
12241 fi
12242 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12243 done
12244 fi
12245
12246 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12247 set dummy nm
12248 if test $build = $target ; then
12249 NM_FOR_TARGET="$2"
12250 else
12251 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12252 fi
12253 else
12254 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12255 fi
12256
12257 else
12258 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12259 fi
12260
12261
12262
12263
12264 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12265 if test -n "$with_build_time_tools"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12267 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12268 if test -x $with_build_time_tools/objcopy; then
12269 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12270 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12272 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276 fi
12277 elif test $build != $host && test $have_gcc_for_target = yes; then
12278 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12279 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12280 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12281 fi
12282 fi
12283 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12284 # Extract the first word of "objcopy", so it can be a program name with args.
12285 set dummy objcopy; ac_word=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 case $OBJCOPY_FOR_TARGET in
12292 [\\/]* | ?:[\\/]*)
12293 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12294 ;;
12295 *)
12296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297 for as_dir in $gcc_cv_tool_dirs
12298 do
12299 IFS=$as_save_IFS
12300 test -z "$as_dir" && as_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
12302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12303 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 break 2
12306 fi
12307 done
12308 done
12309 IFS=$as_save_IFS
12310
12311 ;;
12312 esac
12313 fi
12314 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12315 if test -n "$OBJCOPY_FOR_TARGET"; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12317 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12321 fi
12322
12323
12324 fi
12325 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12326
12327
12328 if test -n "$OBJCOPY_FOR_TARGET"; then
12329 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12330 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12331 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12332 fi
12333
12334 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12335 for ncn_progname in objcopy; do
12336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12337 set dummy ${ncn_progname}; ac_word=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 if test -n "$OBJCOPY_FOR_TARGET"; then
12344 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12345 else
12346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347 for as_dir in $PATH
12348 do
12349 IFS=$as_save_IFS
12350 test -z "$as_dir" && as_dir=.
12351 for ac_exec_ext in '' $ac_executable_extensions; do
12352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12353 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 break 2
12356 fi
12357 done
12358 done
12359 IFS=$as_save_IFS
12360
12361 fi
12362 fi
12363 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12364 if test -n "$OBJCOPY_FOR_TARGET"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12366 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12370 fi
12371
12372
12373 done
12374 fi
12375
12376 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12377 for ncn_progname in objcopy; do
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12379 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12380 if test -x $with_build_time_tools/${ncn_progname}; then
12381 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12383 $as_echo "yes" >&6; }
12384 break
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12388 fi
12389 done
12390 fi
12391
12392 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12393 for ncn_progname in objcopy; do
12394 if test -n "$ncn_target_tool_prefix"; then
12395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12396 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398 $as_echo_n "checking for $ac_word... " >&6; }
12399 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 if test -n "$OBJCOPY_FOR_TARGET"; then
12403 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12404 else
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12407 do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12412 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12415 fi
12416 done
12417 done
12418 IFS=$as_save_IFS
12419
12420 fi
12421 fi
12422 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12423 if test -n "$OBJCOPY_FOR_TARGET"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12425 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 fi
12430
12431
12432 fi
12433 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12435 set dummy ${ncn_progname}; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test -n "$OBJCOPY_FOR_TARGET"; then
12442 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12454 fi
12455 done
12456 done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12462 if test -n "$OBJCOPY_FOR_TARGET"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12464 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 fi
12472 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12473 done
12474 fi
12475
12476 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12477 set dummy objcopy
12478 if test $build = $target ; then
12479 OBJCOPY_FOR_TARGET="$2"
12480 else
12481 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12482 fi
12483 else
12484 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12485 fi
12486
12487 else
12488 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12489 fi
12490
12491
12492
12493
12494 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12495 if test -n "$with_build_time_tools"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12497 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12498 if test -x $with_build_time_tools/objdump; then
12499 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12500 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12502 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12506 fi
12507 elif test $build != $host && test $have_gcc_for_target = yes; then
12508 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12509 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12510 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12511 fi
12512 fi
12513 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12514 # Extract the first word of "objdump", so it can be a program name with args.
12515 set dummy objdump; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 case $OBJDUMP_FOR_TARGET in
12522 [\\/]* | ?:[\\/]*)
12523 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12524 ;;
12525 *)
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $gcc_cv_tool_dirs
12528 do
12529 IFS=$as_save_IFS
12530 test -z "$as_dir" && as_dir=.
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12535 break 2
12536 fi
12537 done
12538 done
12539 IFS=$as_save_IFS
12540
12541 ;;
12542 esac
12543 fi
12544 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12545 if test -n "$OBJDUMP_FOR_TARGET"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12547 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 fi
12552
12553
12554 fi
12555 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12556
12557
12558 if test -n "$OBJDUMP_FOR_TARGET"; then
12559 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12560 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12561 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12562 fi
12563
12564 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12565 for ncn_progname in objdump; do
12566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12567 set dummy ${ncn_progname}; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 if test -n "$OBJDUMP_FOR_TARGET"; then
12574 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12575 else
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH
12578 do
12579 IFS=$as_save_IFS
12580 test -z "$as_dir" && as_dir=.
12581 for ac_exec_ext in '' $ac_executable_extensions; do
12582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12583 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585 break 2
12586 fi
12587 done
12588 done
12589 IFS=$as_save_IFS
12590
12591 fi
12592 fi
12593 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12594 if test -n "$OBJDUMP_FOR_TARGET"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12596 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12597 else
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12600 fi
12601
12602
12603 done
12604 fi
12605
12606 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12607 for ncn_progname in objdump; do
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12609 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12610 if test -x $with_build_time_tools/${ncn_progname}; then
12611 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12614 break
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12618 fi
12619 done
12620 fi
12621
12622 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12623 for ncn_progname in objdump; do
12624 if test -n "$ncn_target_tool_prefix"; then
12625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12626 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 if test -n "$OBJDUMP_FOR_TARGET"; then
12633 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12645 fi
12646 done
12647 done
12648 IFS=$as_save_IFS
12649
12650 fi
12651 fi
12652 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12653 if test -n "$OBJDUMP_FOR_TARGET"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12655 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12656 else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659 fi
12660
12661
12662 fi
12663 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12665 set dummy ${ncn_progname}; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 if test -n "$OBJDUMP_FOR_TARGET"; then
12672 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12673 else
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12676 do
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12684 fi
12685 done
12686 done
12687 IFS=$as_save_IFS
12688
12689 fi
12690 fi
12691 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12692 if test -n "$OBJDUMP_FOR_TARGET"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12694 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698 fi
12699
12700
12701 fi
12702 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12703 done
12704 fi
12705
12706 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12707 set dummy objdump
12708 if test $build = $target ; then
12709 OBJDUMP_FOR_TARGET="$2"
12710 else
12711 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12712 fi
12713 else
12714 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12715 fi
12716
12717 else
12718 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12719 fi
12720
12721
12722
12723
12724 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12725 if test -n "$with_build_time_tools"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12727 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12728 if test -x $with_build_time_tools/ranlib; then
12729 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12730 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12732 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737 elif test $build != $host && test $have_gcc_for_target = yes; then
12738 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12739 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12740 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12741 fi
12742 fi
12743 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12744 # Extract the first word of "ranlib", so it can be a program name with args.
12745 set dummy ranlib; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 case $RANLIB_FOR_TARGET in
12752 [\\/]* | ?:[\\/]*)
12753 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12754 ;;
12755 *)
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $gcc_cv_tool_dirs
12758 do
12759 IFS=$as_save_IFS
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12763 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 break 2
12766 fi
12767 done
12768 done
12769 IFS=$as_save_IFS
12770
12771 ;;
12772 esac
12773 fi
12774 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12775 if test -n "$RANLIB_FOR_TARGET"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12777 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12778 else
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12781 fi
12782
12783
12784 fi
12785 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12786
12787
12788 if test -n "$RANLIB_FOR_TARGET"; then
12789 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12790 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12791 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12792 fi
12793
12794 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12795 for ncn_progname in ranlib; do
12796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12797 set dummy ${ncn_progname}; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 if test -n "$RANLIB_FOR_TARGET"; then
12804 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12808 do
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12816 fi
12817 done
12818 done
12819 IFS=$as_save_IFS
12820
12821 fi
12822 fi
12823 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12824 if test -n "$RANLIB_FOR_TARGET"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12826 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12827 else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 fi
12831
12832
12833 done
12834 fi
12835
12836 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12837 for ncn_progname in ranlib; do
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12839 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12840 if test -x $with_build_time_tools/${ncn_progname}; then
12841 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12844 break
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 fi
12849 done
12850 fi
12851
12852 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12853 for ncn_progname in ranlib; do
12854 if test -n "$ncn_target_tool_prefix"; then
12855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12856 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 if test -n "$RANLIB_FOR_TARGET"; then
12863 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12864 else
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12867 do
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12875 fi
12876 done
12877 done
12878 IFS=$as_save_IFS
12879
12880 fi
12881 fi
12882 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12883 if test -n "$RANLIB_FOR_TARGET"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12885 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 fi
12890
12891
12892 fi
12893 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12895 set dummy ${ncn_progname}; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 if test -n "$RANLIB_FOR_TARGET"; then
12902 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12903 else
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12906 do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12911 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12914 fi
12915 done
12916 done
12917 IFS=$as_save_IFS
12918
12919 fi
12920 fi
12921 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12922 if test -n "$RANLIB_FOR_TARGET"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12924 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12928 fi
12929
12930
12931 fi
12932 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12933 done
12934 fi
12935
12936 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12937 set dummy ranlib
12938 if test $build = $target ; then
12939 RANLIB_FOR_TARGET="$2"
12940 else
12941 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12942 fi
12943 else
12944 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12945 fi
12946
12947 else
12948 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12949 fi
12950
12951
12952
12953
12954 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12955 if test -n "$with_build_time_tools"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12957 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12958 if test -x $with_build_time_tools/readelf; then
12959 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12960 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12962 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967 elif test $build != $host && test $have_gcc_for_target = yes; then
12968 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12969 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12970 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12971 fi
12972 fi
12973 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12974 # Extract the first word of "readelf", so it can be a program name with args.
12975 set dummy readelf; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977 $as_echo_n "checking for $ac_word... " >&6; }
12978 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 case $READELF_FOR_TARGET in
12982 [\\/]* | ?:[\\/]*)
12983 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12984 ;;
12985 *)
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $gcc_cv_tool_dirs
12988 do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12993 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997 done
12998 done
12999 IFS=$as_save_IFS
13000
13001 ;;
13002 esac
13003 fi
13004 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13005 if test -n "$READELF_FOR_TARGET"; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13007 $as_echo "$READELF_FOR_TARGET" >&6; }
13008 else
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13011 fi
13012
13013
13014 fi
13015 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13016
13017
13018 if test -n "$READELF_FOR_TARGET"; then
13019 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13020 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13021 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13022 fi
13023
13024 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13025 for ncn_progname in readelf; do
13026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13027 set dummy ${ncn_progname}; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 if test -n "$READELF_FOR_TARGET"; then
13034 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13038 do
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13046 fi
13047 done
13048 done
13049 IFS=$as_save_IFS
13050
13051 fi
13052 fi
13053 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13054 if test -n "$READELF_FOR_TARGET"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13056 $as_echo "$READELF_FOR_TARGET" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13060 fi
13061
13062
13063 done
13064 fi
13065
13066 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13067 for ncn_progname in readelf; do
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13069 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13070 if test -x $with_build_time_tools/${ncn_progname}; then
13071 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13073 $as_echo "yes" >&6; }
13074 break
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079 done
13080 fi
13081
13082 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13083 for ncn_progname in readelf; do
13084 if test -n "$ncn_target_tool_prefix"; then
13085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13086 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 if test -n "$READELF_FOR_TARGET"; then
13093 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13097 do
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13105 fi
13106 done
13107 done
13108 IFS=$as_save_IFS
13109
13110 fi
13111 fi
13112 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13113 if test -n "$READELF_FOR_TARGET"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13115 $as_echo "$READELF_FOR_TARGET" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119 fi
13120
13121
13122 fi
13123 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13125 set dummy ${ncn_progname}; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 if test -n "$READELF_FOR_TARGET"; then
13132 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13133 else
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13136 do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13144 fi
13145 done
13146 done
13147 IFS=$as_save_IFS
13148
13149 fi
13150 fi
13151 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13152 if test -n "$READELF_FOR_TARGET"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13154 $as_echo "$READELF_FOR_TARGET" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13158 fi
13159
13160
13161 fi
13162 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13163 done
13164 fi
13165
13166 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13167 set dummy readelf
13168 if test $build = $target ; then
13169 READELF_FOR_TARGET="$2"
13170 else
13171 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13172 fi
13173 else
13174 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13175 fi
13176
13177 else
13178 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13179 fi
13180
13181
13182
13183
13184 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13185 if test -n "$with_build_time_tools"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13187 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13188 if test -x $with_build_time_tools/strip; then
13189 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13190 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13192 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13196 fi
13197 elif test $build != $host && test $have_gcc_for_target = yes; then
13198 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13199 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13200 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13201 fi
13202 fi
13203 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13204 # Extract the first word of "strip", so it can be a program name with args.
13205 set dummy strip; ac_word=$2
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207 $as_echo_n "checking for $ac_word... " >&6; }
13208 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 case $STRIP_FOR_TARGET in
13212 [\\/]* | ?:[\\/]*)
13213 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13214 ;;
13215 *)
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $gcc_cv_tool_dirs
13218 do
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13223 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225 break 2
13226 fi
13227 done
13228 done
13229 IFS=$as_save_IFS
13230
13231 ;;
13232 esac
13233 fi
13234 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13235 if test -n "$STRIP_FOR_TARGET"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13237 $as_echo "$STRIP_FOR_TARGET" >&6; }
13238 else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 $as_echo "no" >&6; }
13241 fi
13242
13243
13244 fi
13245 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13246
13247
13248 if test -n "$STRIP_FOR_TARGET"; then
13249 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13250 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13251 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13252 fi
13253
13254 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13255 for ncn_progname in strip; do
13256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13257 set dummy ${ncn_progname}; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 if test -n "$STRIP_FOR_TARGET"; then
13264 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13268 do
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13276 fi
13277 done
13278 done
13279 IFS=$as_save_IFS
13280
13281 fi
13282 fi
13283 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13284 if test -n "$STRIP_FOR_TARGET"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13286 $as_echo "$STRIP_FOR_TARGET" >&6; }
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13290 fi
13291
13292
13293 done
13294 fi
13295
13296 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13297 for ncn_progname in strip; do
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13299 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13300 if test -x $with_build_time_tools/${ncn_progname}; then
13301 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13303 $as_echo "yes" >&6; }
13304 break
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13308 fi
13309 done
13310 fi
13311
13312 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13313 for ncn_progname in strip; do
13314 if test -n "$ncn_target_tool_prefix"; then
13315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13316 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318 $as_echo_n "checking for $ac_word... " >&6; }
13319 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 if test -n "$STRIP_FOR_TARGET"; then
13323 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13324 else
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH
13327 do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13332 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336 done
13337 done
13338 IFS=$as_save_IFS
13339
13340 fi
13341 fi
13342 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13343 if test -n "$STRIP_FOR_TARGET"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13345 $as_echo "$STRIP_FOR_TARGET" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13349 fi
13350
13351
13352 fi
13353 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13355 set dummy ${ncn_progname}; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 if test -n "$STRIP_FOR_TARGET"; then
13362 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13374 fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 fi
13380 fi
13381 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13382 if test -n "$STRIP_FOR_TARGET"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13384 $as_echo "$STRIP_FOR_TARGET" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391 fi
13392 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13393 done
13394 fi
13395
13396 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13397 set dummy strip
13398 if test $build = $target ; then
13399 STRIP_FOR_TARGET="$2"
13400 else
13401 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13402 fi
13403 else
13404 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13405 fi
13406
13407 else
13408 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13409 fi
13410
13411
13412
13413
13414 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13415 if test -n "$with_build_time_tools"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13417 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13418 if test -x $with_build_time_tools/windres; then
13419 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13420 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13422 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13426 fi
13427 elif test $build != $host && test $have_gcc_for_target = yes; then
13428 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13429 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13430 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13431 fi
13432 fi
13433 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13434 # Extract the first word of "windres", so it can be a program name with args.
13435 set dummy windres; ac_word=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437 $as_echo_n "checking for $ac_word... " >&6; }
13438 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 case $WINDRES_FOR_TARGET in
13442 [\\/]* | ?:[\\/]*)
13443 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13444 ;;
13445 *)
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $gcc_cv_tool_dirs
13448 do
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13453 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13456 fi
13457 done
13458 done
13459 IFS=$as_save_IFS
13460
13461 ;;
13462 esac
13463 fi
13464 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13465 if test -n "$WINDRES_FOR_TARGET"; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13467 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13468 else
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470 $as_echo "no" >&6; }
13471 fi
13472
13473
13474 fi
13475 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13476
13477
13478 if test -n "$WINDRES_FOR_TARGET"; then
13479 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13480 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13481 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13482 fi
13483
13484 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13485 for ncn_progname in windres; do
13486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13487 set dummy ${ncn_progname}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489 $as_echo_n "checking for $ac_word... " >&6; }
13490 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 if test -n "$WINDRES_FOR_TARGET"; then
13494 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13495 else
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13498 do
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13503 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 break 2
13506 fi
13507 done
13508 done
13509 IFS=$as_save_IFS
13510
13511 fi
13512 fi
13513 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13514 if test -n "$WINDRES_FOR_TARGET"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13516 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13517 else
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13520 fi
13521
13522
13523 done
13524 fi
13525
13526 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13527 for ncn_progname in windres; do
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13529 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13530 if test -x $with_build_time_tools/${ncn_progname}; then
13531 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13533 $as_echo "yes" >&6; }
13534 break
13535 else
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13537 $as_echo "no" >&6; }
13538 fi
13539 done
13540 fi
13541
13542 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13543 for ncn_progname in windres; do
13544 if test -n "$ncn_target_tool_prefix"; then
13545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13546 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 $as_echo_n "checking for $ac_word... " >&6; }
13549 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 if test -n "$WINDRES_FOR_TARGET"; then
13553 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13554 else
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13557 do
13558 IFS=$as_save_IFS
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
13561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13562 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 break 2
13565 fi
13566 done
13567 done
13568 IFS=$as_save_IFS
13569
13570 fi
13571 fi
13572 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13573 if test -n "$WINDRES_FOR_TARGET"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13575 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13579 fi
13580
13581
13582 fi
13583 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13585 set dummy ${ncn_progname}; ac_word=$2
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587 $as_echo_n "checking for $ac_word... " >&6; }
13588 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 if test -n "$WINDRES_FOR_TARGET"; then
13592 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13593 else
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13596 do
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13604 fi
13605 done
13606 done
13607 IFS=$as_save_IFS
13608
13609 fi
13610 fi
13611 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13612 if test -n "$WINDRES_FOR_TARGET"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13614 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13615 else
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13618 fi
13619
13620
13621 fi
13622 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13623 done
13624 fi
13625
13626 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13627 set dummy windres
13628 if test $build = $target ; then
13629 WINDRES_FOR_TARGET="$2"
13630 else
13631 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13632 fi
13633 else
13634 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13635 fi
13636
13637 else
13638 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13639 fi
13640
13641
13642
13643
13644 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13645 if test -n "$with_build_time_tools"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13647 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13648 if test -x $with_build_time_tools/windmc; then
13649 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13650 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13652 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13653 else
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655 $as_echo "no" >&6; }
13656 fi
13657 elif test $build != $host && test $have_gcc_for_target = yes; then
13658 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13659 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13660 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13661 fi
13662 fi
13663 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13664 # Extract the first word of "windmc", so it can be a program name with args.
13665 set dummy windmc; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 case $WINDMC_FOR_TARGET in
13672 [\\/]* | ?:[\\/]*)
13673 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13674 ;;
13675 *)
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $gcc_cv_tool_dirs
13678 do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13683 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13686 fi
13687 done
13688 done
13689 IFS=$as_save_IFS
13690
13691 ;;
13692 esac
13693 fi
13694 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13695 if test -n "$WINDMC_FOR_TARGET"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13697 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13698 else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 $as_echo "no" >&6; }
13701 fi
13702
13703
13704 fi
13705 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13706
13707
13708 if test -n "$WINDMC_FOR_TARGET"; then
13709 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13710 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13711 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13712 fi
13713
13714 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13715 for ncn_progname in windmc; do
13716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719 $as_echo_n "checking for $ac_word... " >&6; }
13720 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test -n "$WINDMC_FOR_TARGET"; then
13724 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13725 else
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13728 do
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13733 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13736 fi
13737 done
13738 done
13739 IFS=$as_save_IFS
13740
13741 fi
13742 fi
13743 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13744 if test -n "$WINDMC_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13746 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13747 else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13750 fi
13751
13752
13753 done
13754 fi
13755
13756 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13757 for ncn_progname in windmc; do
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13759 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13760 if test -x $with_build_time_tools/${ncn_progname}; then
13761 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13763 $as_echo "yes" >&6; }
13764 break
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13768 fi
13769 done
13770 fi
13771
13772 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13773 for ncn_progname in windmc; do
13774 if test -n "$ncn_target_tool_prefix"; then
13775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13776 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778 $as_echo_n "checking for $ac_word... " >&6; }
13779 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781 else
13782 if test -n "$WINDMC_FOR_TARGET"; then
13783 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13784 else
13785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786 for as_dir in $PATH
13787 do
13788 IFS=$as_save_IFS
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13792 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13794 break 2
13795 fi
13796 done
13797 done
13798 IFS=$as_save_IFS
13799
13800 fi
13801 fi
13802 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13803 if test -n "$WINDMC_FOR_TARGET"; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13805 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13806 else
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 fi
13810
13811
13812 fi
13813 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13815 set dummy ${ncn_progname}; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$WINDMC_FOR_TARGET"; then
13822 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13842 if test -n "$WINDMC_FOR_TARGET"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13844 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850
13851 fi
13852 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13853 done
13854 fi
13855
13856 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13857 set dummy windmc
13858 if test $build = $target ; then
13859 WINDMC_FOR_TARGET="$2"
13860 else
13861 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13862 fi
13863 else
13864 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13865 fi
13866
13867 else
13868 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13869 fi
13870
13871
13872 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13873
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13875 $as_echo_n "checking where to find the target ar... " >&6; }
13876 if test "x${build}" != "x${host}" ; then
13877 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13878 # We already found the complete path
13879 ac_dir=`dirname $AR_FOR_TARGET`
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13881 $as_echo "pre-installed in $ac_dir" >&6; }
13882 else
13883 # Canadian cross, just use what we found
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885 $as_echo "pre-installed" >&6; }
13886 fi
13887 else
13888 ok=yes
13889 case " ${configdirs} " in
13890 *" binutils "*) ;;
13891 *) ok=no ;;
13892 esac
13893
13894 if test $ok = yes; then
13895 # An in-tree tool is available and we can use it
13896 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13898 $as_echo "just compiled" >&6; }
13899 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
13901 ac_dir=`dirname $AR_FOR_TARGET`
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903 $as_echo "pre-installed in $ac_dir" >&6; }
13904 elif test "x$target" = "x$host"; then
13905 # We can use an host tool
13906 AR_FOR_TARGET='$(AR)'
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13908 $as_echo "host tool" >&6; }
13909 else
13910 # We need a cross tool
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13912 $as_echo "pre-installed" >&6; }
13913 fi
13914 fi
13915
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13917 $as_echo_n "checking where to find the target as... " >&6; }
13918 if test "x${build}" != "x${host}" ; then
13919 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13920 # We already found the complete path
13921 ac_dir=`dirname $AS_FOR_TARGET`
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13923 $as_echo "pre-installed in $ac_dir" >&6; }
13924 else
13925 # Canadian cross, just use what we found
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13927 $as_echo "pre-installed" >&6; }
13928 fi
13929 else
13930 ok=yes
13931 case " ${configdirs} " in
13932 *" gas "*) ;;
13933 *) ok=no ;;
13934 esac
13935
13936 if test $ok = yes; then
13937 # An in-tree tool is available and we can use it
13938 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13940 $as_echo "just compiled" >&6; }
13941 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
13943 ac_dir=`dirname $AS_FOR_TARGET`
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945 $as_echo "pre-installed in $ac_dir" >&6; }
13946 elif test "x$target" = "x$host"; then
13947 # We can use an host tool
13948 AS_FOR_TARGET='$(AS)'
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13950 $as_echo "host tool" >&6; }
13951 else
13952 # We need a cross tool
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954 $as_echo "pre-installed" >&6; }
13955 fi
13956 fi
13957
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13959 $as_echo_n "checking where to find the target cc... " >&6; }
13960 if test "x${build}" != "x${host}" ; then
13961 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13962 # We already found the complete path
13963 ac_dir=`dirname $CC_FOR_TARGET`
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13965 $as_echo "pre-installed in $ac_dir" >&6; }
13966 else
13967 # Canadian cross, just use what we found
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969 $as_echo "pre-installed" >&6; }
13970 fi
13971 else
13972 ok=yes
13973 case " ${configdirs} " in
13974 *" gcc "*) ;;
13975 *) ok=no ;;
13976 esac
13977
13978 if test $ok = yes; then
13979 # An in-tree tool is available and we can use it
13980 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13982 $as_echo "just compiled" >&6; }
13983 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $CC_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987 $as_echo "pre-installed in $ac_dir" >&6; }
13988 elif test "x$target" = "x$host"; then
13989 # We can use an host tool
13990 CC_FOR_TARGET='$(CC)'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13992 $as_echo "host tool" >&6; }
13993 else
13994 # We need a cross tool
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996 $as_echo "pre-installed" >&6; }
13997 fi
13998 fi
13999
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14001 $as_echo_n "checking where to find the target c++... " >&6; }
14002 if test "x${build}" != "x${host}" ; then
14003 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $CXX_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007 $as_echo "pre-installed in $ac_dir" >&6; }
14008 else
14009 # Canadian cross, just use what we found
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011 $as_echo "pre-installed" >&6; }
14012 fi
14013 else
14014 ok=yes
14015 case " ${configdirs} " in
14016 *" gcc "*) ;;
14017 *) ok=no ;;
14018 esac
14019 case ,${enable_languages}, in
14020 *,c++,*) ;;
14021 *) ok=no ;;
14022 esac
14023 if test $ok = yes; then
14024 # An in-tree tool is available and we can use it
14025 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'
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14027 $as_echo "just compiled" >&6; }
14028 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
14030 ac_dir=`dirname $CXX_FOR_TARGET`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032 $as_echo "pre-installed in $ac_dir" >&6; }
14033 elif test "x$target" = "x$host"; then
14034 # We can use an host tool
14035 CXX_FOR_TARGET='$(CXX)'
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14037 $as_echo "host tool" >&6; }
14038 else
14039 # We need a cross tool
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14041 $as_echo "pre-installed" >&6; }
14042 fi
14043 fi
14044
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14046 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14047 if test "x${build}" != "x${host}" ; then
14048 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14049 # We already found the complete path
14050 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14052 $as_echo "pre-installed in $ac_dir" >&6; }
14053 else
14054 # Canadian cross, just use what we found
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056 $as_echo "pre-installed" >&6; }
14057 fi
14058 else
14059 ok=yes
14060 case " ${configdirs} " in
14061 *" gcc "*) ;;
14062 *) ok=no ;;
14063 esac
14064 case ,${enable_languages}, in
14065 *,c++,*) ;;
14066 *) ok=no ;;
14067 esac
14068 if test $ok = yes; then
14069 # An in-tree tool is available and we can use it
14070 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'
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14072 $as_echo "just compiled" >&6; }
14073 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
14075 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077 $as_echo "pre-installed in $ac_dir" >&6; }
14078 elif test "x$target" = "x$host"; then
14079 # We can use an host tool
14080 RAW_CXX_FOR_TARGET='$(CXX)'
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14082 $as_echo "host tool" >&6; }
14083 else
14084 # We need a cross tool
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14086 $as_echo "pre-installed" >&6; }
14087 fi
14088 fi
14089
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14091 $as_echo_n "checking where to find the target dlltool... " >&6; }
14092 if test "x${build}" != "x${host}" ; then
14093 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
14095 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097 $as_echo "pre-installed in $ac_dir" >&6; }
14098 else
14099 # Canadian cross, just use what we found
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101 $as_echo "pre-installed" >&6; }
14102 fi
14103 else
14104 ok=yes
14105 case " ${configdirs} " in
14106 *" binutils "*) ;;
14107 *) ok=no ;;
14108 esac
14109
14110 if test $ok = yes; then
14111 # An in-tree tool is available and we can use it
14112 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14114 $as_echo "just compiled" >&6; }
14115 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120 elif test "x$target" = "x$host"; then
14121 # We can use an host tool
14122 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14124 $as_echo "host tool" >&6; }
14125 else
14126 # We need a cross tool
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14128 $as_echo "pre-installed" >&6; }
14129 fi
14130 fi
14131
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14133 $as_echo_n "checking where to find the target gcc... " >&6; }
14134 if test "x${build}" != "x${host}" ; then
14135 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
14137 ac_dir=`dirname $GCC_FOR_TARGET`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139 $as_echo "pre-installed in $ac_dir" >&6; }
14140 else
14141 # Canadian cross, just use what we found
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14143 $as_echo "pre-installed" >&6; }
14144 fi
14145 else
14146 ok=yes
14147 case " ${configdirs} " in
14148 *" gcc "*) ;;
14149 *) ok=no ;;
14150 esac
14151
14152 if test $ok = yes; then
14153 # An in-tree tool is available and we can use it
14154 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14156 $as_echo "just compiled" >&6; }
14157 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
14159 ac_dir=`dirname $GCC_FOR_TARGET`
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161 $as_echo "pre-installed in $ac_dir" >&6; }
14162 elif test "x$target" = "x$host"; then
14163 # We can use an host tool
14164 GCC_FOR_TARGET='$()'
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14166 $as_echo "host tool" >&6; }
14167 else
14168 # We need a cross tool
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14170 $as_echo "pre-installed" >&6; }
14171 fi
14172 fi
14173
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14175 $as_echo_n "checking where to find the target gfortran... " >&6; }
14176 if test "x${build}" != "x${host}" ; then
14177 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
14179 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181 $as_echo "pre-installed in $ac_dir" >&6; }
14182 else
14183 # Canadian cross, just use what we found
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14185 $as_echo "pre-installed" >&6; }
14186 fi
14187 else
14188 ok=yes
14189 case " ${configdirs} " in
14190 *" gcc "*) ;;
14191 *) ok=no ;;
14192 esac
14193 case ,${enable_languages}, in
14194 *,fortran,*) ;;
14195 *) ok=no ;;
14196 esac
14197 if test $ok = yes; then
14198 # An in-tree tool is available and we can use it
14199 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14201 $as_echo "just compiled" >&6; }
14202 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14203 # We already found the complete path
14204 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14206 $as_echo "pre-installed in $ac_dir" >&6; }
14207 elif test "x$target" = "x$host"; then
14208 # We can use an host tool
14209 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14211 $as_echo "host tool" >&6; }
14212 else
14213 # We need a cross tool
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14215 $as_echo "pre-installed" >&6; }
14216 fi
14217 fi
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14220 $as_echo_n "checking where to find the target gccgo... " >&6; }
14221 if test "x${build}" != "x${host}" ; then
14222 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14223 # We already found the complete path
14224 ac_dir=`dirname $GOC_FOR_TARGET`
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14226 $as_echo "pre-installed in $ac_dir" >&6; }
14227 else
14228 # Canadian cross, just use what we found
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14230 $as_echo "pre-installed" >&6; }
14231 fi
14232 else
14233 ok=yes
14234 case " ${configdirs} " in
14235 *" gcc "*) ;;
14236 *) ok=no ;;
14237 esac
14238 case ,${enable_languages}, in
14239 *,go,*) ;;
14240 *) ok=no ;;
14241 esac
14242 if test $ok = yes; then
14243 # An in-tree tool is available and we can use it
14244 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14246 $as_echo "just compiled" >&6; }
14247 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14248 # We already found the complete path
14249 ac_dir=`dirname $GOC_FOR_TARGET`
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14251 $as_echo "pre-installed in $ac_dir" >&6; }
14252 elif test "x$target" = "x$host"; then
14253 # We can use an host tool
14254 GOC_FOR_TARGET='$(GOC)'
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14256 $as_echo "host tool" >&6; }
14257 else
14258 # We need a cross tool
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260 $as_echo "pre-installed" >&6; }
14261 fi
14262 fi
14263
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14265 $as_echo_n "checking where to find the target ld... " >&6; }
14266 if test "x${build}" != "x${host}" ; then
14267 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
14269 ac_dir=`dirname $LD_FOR_TARGET`
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14271 $as_echo "pre-installed in $ac_dir" >&6; }
14272 else
14273 # Canadian cross, just use what we found
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275 $as_echo "pre-installed" >&6; }
14276 fi
14277 else
14278 ok=yes
14279 case " ${configdirs} " in
14280 *" ld "*) ;;
14281 *) ok=no ;;
14282 esac
14283
14284 if test $ok = yes; then
14285 # An in-tree tool is available and we can use it
14286 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14288 $as_echo "just compiled" >&6; }
14289 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14290 # We already found the complete path
14291 ac_dir=`dirname $LD_FOR_TARGET`
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14293 $as_echo "pre-installed in $ac_dir" >&6; }
14294 elif test "x$target" = "x$host"; then
14295 # We can use an host tool
14296 LD_FOR_TARGET='$(LD)'
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14298 $as_echo "host tool" >&6; }
14299 else
14300 # We need a cross tool
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302 $as_echo "pre-installed" >&6; }
14303 fi
14304 fi
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14307 $as_echo_n "checking where to find the target lipo... " >&6; }
14308 if test "x${build}" != "x${host}" ; then
14309 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14310 # We already found the complete path
14311 ac_dir=`dirname $LIPO_FOR_TARGET`
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14313 $as_echo "pre-installed in $ac_dir" >&6; }
14314 else
14315 # Canadian cross, just use what we found
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14317 $as_echo "pre-installed" >&6; }
14318 fi
14319 else
14320 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14321 # We already found the complete path
14322 ac_dir=`dirname $LIPO_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 LIPO_FOR_TARGET='$(LIPO)'
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; }
14334 fi
14335 fi
14336
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14338 $as_echo_n "checking where to find the target nm... " >&6; }
14339 if test "x${build}" != "x${host}" ; then
14340 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14341 # We already found the complete path
14342 ac_dir=`dirname $NM_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; }
14349 fi
14350 else
14351 ok=yes
14352 case " ${configdirs} " in
14353 *" binutils "*) ;;
14354 *) ok=no ;;
14355 esac
14356
14357 if test $ok = yes; then
14358 # An in-tree tool is available and we can use it
14359 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14361 $as_echo "just compiled" >&6; }
14362 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14363 # We already found the complete path
14364 ac_dir=`dirname $NM_FOR_TARGET`
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14366 $as_echo "pre-installed in $ac_dir" >&6; }
14367 elif test "x$target" = "x$host"; then
14368 # We can use an host tool
14369 NM_FOR_TARGET='$(NM)'
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14371 $as_echo "host tool" >&6; }
14372 else
14373 # We need a cross tool
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14375 $as_echo "pre-installed" >&6; }
14376 fi
14377 fi
14378
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14380 $as_echo_n "checking where to find the target objcopy... " >&6; }
14381 if test "x${build}" != "x${host}" ; then
14382 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14383 # We already found the complete path
14384 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14386 $as_echo "pre-installed in $ac_dir" >&6; }
14387 else
14388 # Canadian cross, just use what we found
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14390 $as_echo "pre-installed" >&6; }
14391 fi
14392 else
14393 ok=yes
14394 case " ${configdirs} " in
14395 *" binutils "*) ;;
14396 *) ok=no ;;
14397 esac
14398
14399 if test $ok = yes; then
14400 # An in-tree tool is available and we can use it
14401 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14403 $as_echo "just compiled" >&6; }
14404 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14405 # We already found the complete path
14406 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14408 $as_echo "pre-installed in $ac_dir" >&6; }
14409 elif test "x$target" = "x$host"; then
14410 # We can use an host tool
14411 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14413 $as_echo "host tool" >&6; }
14414 else
14415 # We need a cross tool
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14417 $as_echo "pre-installed" >&6; }
14418 fi
14419 fi
14420
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14422 $as_echo_n "checking where to find the target objdump... " >&6; }
14423 if test "x${build}" != "x${host}" ; then
14424 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14425 # We already found the complete path
14426 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14428 $as_echo "pre-installed in $ac_dir" >&6; }
14429 else
14430 # Canadian cross, just use what we found
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14432 $as_echo "pre-installed" >&6; }
14433 fi
14434 else
14435 ok=yes
14436 case " ${configdirs} " in
14437 *" binutils "*) ;;
14438 *) ok=no ;;
14439 esac
14440
14441 if test $ok = yes; then
14442 # An in-tree tool is available and we can use it
14443 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14445 $as_echo "just compiled" >&6; }
14446 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14447 # We already found the complete path
14448 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14450 $as_echo "pre-installed in $ac_dir" >&6; }
14451 elif test "x$target" = "x$host"; then
14452 # We can use an host tool
14453 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14455 $as_echo "host tool" >&6; }
14456 else
14457 # We need a cross tool
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14459 $as_echo "pre-installed" >&6; }
14460 fi
14461 fi
14462
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14464 $as_echo_n "checking where to find the target ranlib... " >&6; }
14465 if test "x${build}" != "x${host}" ; then
14466 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14467 # We already found the complete path
14468 ac_dir=`dirname $RANLIB_FOR_TARGET`
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14470 $as_echo "pre-installed in $ac_dir" >&6; }
14471 else
14472 # Canadian cross, just use what we found
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14474 $as_echo "pre-installed" >&6; }
14475 fi
14476 else
14477 ok=yes
14478 case " ${configdirs} " in
14479 *" binutils "*) ;;
14480 *) ok=no ;;
14481 esac
14482
14483 if test $ok = yes; then
14484 # An in-tree tool is available and we can use it
14485 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14487 $as_echo "just compiled" >&6; }
14488 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14489 # We already found the complete path
14490 ac_dir=`dirname $RANLIB_FOR_TARGET`
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14492 $as_echo "pre-installed in $ac_dir" >&6; }
14493 elif test "x$target" = "x$host"; then
14494 # We can use an host tool
14495 RANLIB_FOR_TARGET='$(RANLIB)'
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14497 $as_echo "host tool" >&6; }
14498 else
14499 # We need a cross tool
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14501 $as_echo "pre-installed" >&6; }
14502 fi
14503 fi
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14506 $as_echo_n "checking where to find the target readelf... " >&6; }
14507 if test "x${build}" != "x${host}" ; then
14508 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14509 # We already found the complete path
14510 ac_dir=`dirname $READELF_FOR_TARGET`
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14512 $as_echo "pre-installed in $ac_dir" >&6; }
14513 else
14514 # Canadian cross, just use what we found
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14516 $as_echo "pre-installed" >&6; }
14517 fi
14518 else
14519 ok=yes
14520 case " ${configdirs} " in
14521 *" binutils "*) ;;
14522 *) ok=no ;;
14523 esac
14524
14525 if test $ok = yes; then
14526 # An in-tree tool is available and we can use it
14527 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14529 $as_echo "just compiled" >&6; }
14530 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14531 # We already found the complete path
14532 ac_dir=`dirname $READELF_FOR_TARGET`
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14534 $as_echo "pre-installed in $ac_dir" >&6; }
14535 elif test "x$target" = "x$host"; then
14536 # We can use an host tool
14537 READELF_FOR_TARGET='$(READELF)'
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14539 $as_echo "host tool" >&6; }
14540 else
14541 # We need a cross tool
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14543 $as_echo "pre-installed" >&6; }
14544 fi
14545 fi
14546
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14548 $as_echo_n "checking where to find the target strip... " >&6; }
14549 if test "x${build}" != "x${host}" ; then
14550 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14551 # We already found the complete path
14552 ac_dir=`dirname $STRIP_FOR_TARGET`
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14554 $as_echo "pre-installed in $ac_dir" >&6; }
14555 else
14556 # Canadian cross, just use what we found
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14558 $as_echo "pre-installed" >&6; }
14559 fi
14560 else
14561 ok=yes
14562 case " ${configdirs} " in
14563 *" binutils "*) ;;
14564 *) ok=no ;;
14565 esac
14566
14567 if test $ok = yes; then
14568 # An in-tree tool is available and we can use it
14569 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14571 $as_echo "just compiled" >&6; }
14572 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14573 # We already found the complete path
14574 ac_dir=`dirname $STRIP_FOR_TARGET`
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14576 $as_echo "pre-installed in $ac_dir" >&6; }
14577 elif test "x$target" = "x$host"; then
14578 # We can use an host tool
14579 STRIP_FOR_TARGET='$(STRIP)'
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14581 $as_echo "host tool" >&6; }
14582 else
14583 # We need a cross tool
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14585 $as_echo "pre-installed" >&6; }
14586 fi
14587 fi
14588
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14590 $as_echo_n "checking where to find the target windres... " >&6; }
14591 if test "x${build}" != "x${host}" ; then
14592 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14593 # We already found the complete path
14594 ac_dir=`dirname $WINDRES_FOR_TARGET`
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14596 $as_echo "pre-installed in $ac_dir" >&6; }
14597 else
14598 # Canadian cross, just use what we found
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14600 $as_echo "pre-installed" >&6; }
14601 fi
14602 else
14603 ok=yes
14604 case " ${configdirs} " in
14605 *" binutils "*) ;;
14606 *) ok=no ;;
14607 esac
14608
14609 if test $ok = yes; then
14610 # An in-tree tool is available and we can use it
14611 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14613 $as_echo "just compiled" >&6; }
14614 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14615 # We already found the complete path
14616 ac_dir=`dirname $WINDRES_FOR_TARGET`
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14618 $as_echo "pre-installed in $ac_dir" >&6; }
14619 elif test "x$target" = "x$host"; then
14620 # We can use an host tool
14621 WINDRES_FOR_TARGET='$(WINDRES)'
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14623 $as_echo "host tool" >&6; }
14624 else
14625 # We need a cross tool
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14627 $as_echo "pre-installed" >&6; }
14628 fi
14629 fi
14630
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14632 $as_echo_n "checking where to find the target windmc... " >&6; }
14633 if test "x${build}" != "x${host}" ; then
14634 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14635 # We already found the complete path
14636 ac_dir=`dirname $WINDMC_FOR_TARGET`
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14638 $as_echo "pre-installed in $ac_dir" >&6; }
14639 else
14640 # Canadian cross, just use what we found
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14642 $as_echo "pre-installed" >&6; }
14643 fi
14644 else
14645 ok=yes
14646 case " ${configdirs} " in
14647 *" binutils "*) ;;
14648 *) ok=no ;;
14649 esac
14650
14651 if test $ok = yes; then
14652 # An in-tree tool is available and we can use it
14653 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14655 $as_echo "just compiled" >&6; }
14656 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14657 # We already found the complete path
14658 ac_dir=`dirname $WINDMC_FOR_TARGET`
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14660 $as_echo "pre-installed in $ac_dir" >&6; }
14661 elif test "x$target" = "x$host"; then
14662 # We can use an host tool
14663 WINDMC_FOR_TARGET='$(WINDMC)'
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14665 $as_echo "host tool" >&6; }
14666 else
14667 # We need a cross tool
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14669 $as_echo "pre-installed" >&6; }
14670 fi
14671 fi
14672
14673
14674
14675
14676
14677 # Certain tools may need extra flags.
14678 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14679 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14680 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14681
14682 # When building target libraries, except in a Canadian cross, we use
14683 # the same toolchain as the compiler we just built.
14684 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14685 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14686 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14687 if test $host = $build; then
14688 case " $configdirs " in
14689 *" gcc "*)
14690 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14691 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14692 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14693 ;;
14694 esac
14695 fi
14696
14697
14698
14699
14700
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14702 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14703 # Check whether --enable-maintainer-mode was given.
14704 if test "${enable_maintainer_mode+set}" = set; then :
14705 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14706 else
14707 USE_MAINTAINER_MODE=no
14708 fi
14709
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14711 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14712
14713
14714 if test "$USE_MAINTAINER_MODE" = yes; then
14715 MAINTAINER_MODE_TRUE=
14716 MAINTAINER_MODE_FALSE='#'
14717 else
14718 MAINTAINER_MODE_TRUE='#'
14719 MAINTAINER_MODE_FALSE=
14720 fi
14721 MAINT=$MAINTAINER_MODE_TRUE
14722
14723 # ---------------------
14724 # GCC bootstrap support
14725 # ---------------------
14726
14727 # Stage specific cflags for build.
14728 stage1_cflags="-g"
14729 case $build in
14730 vax-*-*)
14731 case ${GCC} in
14732 yes) stage1_cflags="-g -Wa,-J" ;;
14733 *) stage1_cflags="-g -J" ;;
14734 esac ;;
14735 esac
14736
14737
14738
14739 # Enable --enable-checking in stage1 of the compiler.
14740 # Check whether --enable-stage1-checking was given.
14741 if test "${enable_stage1_checking+set}" = set; then :
14742 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14743 else
14744 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14745 # For --disable-checking or implicit --enable-checking=release, avoid
14746 # setting --enable-checking=gc in the default stage1 checking for LTO
14747 # bootstraps. See PR62077.
14748 case $BUILD_CONFIG in
14749 *lto*)
14750 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14751 *)
14752 stage1_checking=--enable-checking=yes,types;;
14753 esac
14754 if test "x$enable_checking" = x && \
14755 test -d ${srcdir}/gcc && \
14756 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14757 stage1_checking=--enable-checking=yes,types,extra
14758 fi
14759 else
14760 stage1_checking=--enable-checking=$enable_checking,types
14761 fi
14762 fi
14763
14764
14765
14766 # Enable -Werror in bootstrap stage2 and later.
14767 # Check whether --enable-werror was given.
14768 if test "${enable_werror+set}" = set; then :
14769 enableval=$enable_werror;
14770 case ${enable_werror} in
14771 yes) stage2_werror_flag="--enable-werror-always" ;;
14772 *) stage2_werror_flag="" ;;
14773 esac
14774
14775 else
14776
14777 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14778 case $BUILD_CONFIG in
14779 bootstrap-debug)
14780 stage2_werror_flag="--enable-werror-always" ;;
14781 "")
14782 stage2_werror_flag="--enable-werror-always" ;;
14783 esac
14784 fi
14785
14786 fi
14787
14788
14789
14790
14791 # Specify what files to not compare during bootstrap.
14792
14793 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14794 case "$target" in
14795 hppa*64*-*-hpux*) ;;
14796 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14797 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14798 esac
14799
14800
14801 ac_config_files="$ac_config_files Makefile"
14802
14803 cat >confcache <<\_ACEOF
14804 # This file is a shell script that caches the results of configure
14805 # tests run on this system so they can be shared between configure
14806 # scripts and configure runs, see configure's option --config-cache.
14807 # It is not useful on other systems. If it contains results you don't
14808 # want to keep, you may remove or edit it.
14809 #
14810 # config.status only pays attention to the cache file if you give it
14811 # the --recheck option to rerun configure.
14812 #
14813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14815 # following values.
14816
14817 _ACEOF
14818
14819 # The following way of writing the cache mishandles newlines in values,
14820 # but we know of no workaround that is simple, portable, and efficient.
14821 # So, we kill variables containing newlines.
14822 # Ultrix sh set writes to stderr and can't be redirected directly,
14823 # and sets the high bit in the cache file unless we assign to the vars.
14824 (
14825 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14826 eval ac_val=\$$ac_var
14827 case $ac_val in #(
14828 *${as_nl}*)
14829 case $ac_var in #(
14830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14832 esac
14833 case $ac_var in #(
14834 _ | IFS | as_nl) ;; #(
14835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14836 *) { eval $ac_var=; unset $ac_var;} ;;
14837 esac ;;
14838 esac
14839 done
14840
14841 (set) 2>&1 |
14842 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14843 *${as_nl}ac_space=\ *)
14844 # `set' does not quote correctly, so add quotes: double-quote
14845 # substitution turns \\\\ into \\, and sed turns \\ into \.
14846 sed -n \
14847 "s/'/'\\\\''/g;
14848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14849 ;; #(
14850 *)
14851 # `set' quotes correctly as required by POSIX, so do not add quotes.
14852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14853 ;;
14854 esac |
14855 sort
14856 ) |
14857 sed '
14858 /^ac_cv_env_/b end
14859 t clear
14860 :clear
14861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14862 t end
14863 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14864 :end' >>confcache
14865 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14866 if test -w "$cache_file"; then
14867 if test "x$cache_file" != "x/dev/null"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14869 $as_echo "$as_me: updating cache $cache_file" >&6;}
14870 if test ! -f "$cache_file" || test -h "$cache_file"; then
14871 cat confcache >"$cache_file"
14872 else
14873 case $cache_file in #(
14874 */* | ?:*)
14875 mv -f confcache "$cache_file"$$ &&
14876 mv -f "$cache_file"$$ "$cache_file" ;; #(
14877 *)
14878 mv -f confcache "$cache_file" ;;
14879 esac
14880 fi
14881 fi
14882 else
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14884 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14885 fi
14886 fi
14887 rm -f confcache
14888
14889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14890 # Let make expand exec_prefix.
14891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14892
14893 # Transform confdefs.h into DEFS.
14894 # Protect against shell expansion while executing Makefile rules.
14895 # Protect against Makefile macro expansion.
14896 #
14897 # If the first sed substitution is executed (which looks for macros that
14898 # take arguments), then branch to the quote section. Otherwise,
14899 # look for a macro that doesn't take arguments.
14900 ac_script='
14901 :mline
14902 /\\$/{
14903 N
14904 s,\\\n,,
14905 b mline
14906 }
14907 t clear
14908 :clear
14909 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14910 t quote
14911 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14912 t quote
14913 b any
14914 :quote
14915 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14916 s/\[/\\&/g
14917 s/\]/\\&/g
14918 s/\$/$$/g
14919 H
14920 :any
14921 ${
14922 g
14923 s/^\n//
14924 s/\n/ /g
14925 p
14926 }
14927 '
14928 DEFS=`sed -n "$ac_script" confdefs.h`
14929
14930
14931 ac_libobjs=
14932 ac_ltlibobjs=
14933 U=
14934 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14935 # 1. Remove the extension, and $U if already installed.
14936 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14937 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14938 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14939 # will be set to the directory where LIBOBJS objects are built.
14940 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14941 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14942 done
14943 LIBOBJS=$ac_libobjs
14944
14945 LTLIBOBJS=$ac_ltlibobjs
14946
14947
14948
14949 : "${CONFIG_STATUS=./config.status}"
14950 ac_write_fail=0
14951 ac_clean_files_save=$ac_clean_files
14952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14954 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14955 as_write_fail=0
14956 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14957 #! $SHELL
14958 # Generated by $as_me.
14959 # Run this file to recreate the current configuration.
14960 # Compiler output produced by configure, useful for debugging
14961 # configure, is in config.log if it exists.
14962
14963 debug=false
14964 ac_cs_recheck=false
14965 ac_cs_silent=false
14966
14967 SHELL=\${CONFIG_SHELL-$SHELL}
14968 export SHELL
14969 _ASEOF
14970 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14971 ## -------------------- ##
14972 ## M4sh Initialization. ##
14973 ## -------------------- ##
14974
14975 # Be more Bourne compatible
14976 DUALCASE=1; export DUALCASE # for MKS sh
14977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14978 emulate sh
14979 NULLCMD=:
14980 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14981 # is contrary to our usage. Disable this feature.
14982 alias -g '${1+"$@"}'='"$@"'
14983 setopt NO_GLOB_SUBST
14984 else
14985 case `(set -o) 2>/dev/null` in #(
14986 *posix*) :
14987 set -o posix ;; #(
14988 *) :
14989 ;;
14990 esac
14991 fi
14992
14993
14994 as_nl='
14995 '
14996 export as_nl
14997 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14998 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15001 # Prefer a ksh shell builtin over an external printf program on Solaris,
15002 # but without wasting forks for bash or zsh.
15003 if test -z "$BASH_VERSION$ZSH_VERSION" \
15004 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15005 as_echo='print -r --'
15006 as_echo_n='print -rn --'
15007 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15008 as_echo='printf %s\n'
15009 as_echo_n='printf %s'
15010 else
15011 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15012 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15013 as_echo_n='/usr/ucb/echo -n'
15014 else
15015 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15016 as_echo_n_body='eval
15017 arg=$1;
15018 case $arg in #(
15019 *"$as_nl"*)
15020 expr "X$arg" : "X\\(.*\\)$as_nl";
15021 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15022 esac;
15023 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15024 '
15025 export as_echo_n_body
15026 as_echo_n='sh -c $as_echo_n_body as_echo'
15027 fi
15028 export as_echo_body
15029 as_echo='sh -c $as_echo_body as_echo'
15030 fi
15031
15032 # The user is always right.
15033 if test "${PATH_SEPARATOR+set}" != set; then
15034 PATH_SEPARATOR=:
15035 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15036 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15037 PATH_SEPARATOR=';'
15038 }
15039 fi
15040
15041
15042 # IFS
15043 # We need space, tab and new line, in precisely that order. Quoting is
15044 # there to prevent editors from complaining about space-tab.
15045 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15046 # splitting by setting IFS to empty value.)
15047 IFS=" "" $as_nl"
15048
15049 # Find who we are. Look in the path if we contain no directory separator.
15050 as_myself=
15051 case $0 in #((
15052 *[\\/]* ) as_myself=$0 ;;
15053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15054 for as_dir in $PATH
15055 do
15056 IFS=$as_save_IFS
15057 test -z "$as_dir" && as_dir=.
15058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15059 done
15060 IFS=$as_save_IFS
15061
15062 ;;
15063 esac
15064 # We did not find ourselves, most probably we were run as `sh COMMAND'
15065 # in which case we are not to be found in the path.
15066 if test "x$as_myself" = x; then
15067 as_myself=$0
15068 fi
15069 if test ! -f "$as_myself"; then
15070 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15071 exit 1
15072 fi
15073
15074 # Unset variables that we do not need and which cause bugs (e.g. in
15075 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15076 # suppresses any "Segmentation fault" message there. '((' could
15077 # trigger a bug in pdksh 5.2.14.
15078 for as_var in BASH_ENV ENV MAIL MAILPATH
15079 do eval test x\${$as_var+set} = xset \
15080 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15081 done
15082 PS1='$ '
15083 PS2='> '
15084 PS4='+ '
15085
15086 # NLS nuisances.
15087 LC_ALL=C
15088 export LC_ALL
15089 LANGUAGE=C
15090 export LANGUAGE
15091
15092 # CDPATH.
15093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15094
15095
15096 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15097 # ----------------------------------------
15098 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15099 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15100 # script with STATUS, using 1 if that was 0.
15101 as_fn_error ()
15102 {
15103 as_status=$1; test $as_status -eq 0 && as_status=1
15104 if test "$4"; then
15105 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15106 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15107 fi
15108 $as_echo "$as_me: error: $2" >&2
15109 as_fn_exit $as_status
15110 } # as_fn_error
15111
15112
15113 # as_fn_set_status STATUS
15114 # -----------------------
15115 # Set $? to STATUS, without forking.
15116 as_fn_set_status ()
15117 {
15118 return $1
15119 } # as_fn_set_status
15120
15121 # as_fn_exit STATUS
15122 # -----------------
15123 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15124 as_fn_exit ()
15125 {
15126 set +e
15127 as_fn_set_status $1
15128 exit $1
15129 } # as_fn_exit
15130
15131 # as_fn_unset VAR
15132 # ---------------
15133 # Portably unset VAR.
15134 as_fn_unset ()
15135 {
15136 { eval $1=; unset $1;}
15137 }
15138 as_unset=as_fn_unset
15139 # as_fn_append VAR VALUE
15140 # ----------------------
15141 # Append the text in VALUE to the end of the definition contained in VAR. Take
15142 # advantage of any shell optimizations that allow amortized linear growth over
15143 # repeated appends, instead of the typical quadratic growth present in naive
15144 # implementations.
15145 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15146 eval 'as_fn_append ()
15147 {
15148 eval $1+=\$2
15149 }'
15150 else
15151 as_fn_append ()
15152 {
15153 eval $1=\$$1\$2
15154 }
15155 fi # as_fn_append
15156
15157 # as_fn_arith ARG...
15158 # ------------------
15159 # Perform arithmetic evaluation on the ARGs, and store the result in the
15160 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15161 # must be portable across $(()) and expr.
15162 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15163 eval 'as_fn_arith ()
15164 {
15165 as_val=$(( $* ))
15166 }'
15167 else
15168 as_fn_arith ()
15169 {
15170 as_val=`expr "$@" || test $? -eq 1`
15171 }
15172 fi # as_fn_arith
15173
15174
15175 if expr a : '\(a\)' >/dev/null 2>&1 &&
15176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15177 as_expr=expr
15178 else
15179 as_expr=false
15180 fi
15181
15182 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15183 as_basename=basename
15184 else
15185 as_basename=false
15186 fi
15187
15188 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15189 as_dirname=dirname
15190 else
15191 as_dirname=false
15192 fi
15193
15194 as_me=`$as_basename -- "$0" ||
15195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15196 X"$0" : 'X\(//\)$' \| \
15197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15198 $as_echo X/"$0" |
15199 sed '/^.*\/\([^/][^/]*\)\/*$/{
15200 s//\1/
15201 q
15202 }
15203 /^X\/\(\/\/\)$/{
15204 s//\1/
15205 q
15206 }
15207 /^X\/\(\/\).*/{
15208 s//\1/
15209 q
15210 }
15211 s/.*/./; q'`
15212
15213 # Avoid depending upon Character Ranges.
15214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15217 as_cr_digits='0123456789'
15218 as_cr_alnum=$as_cr_Letters$as_cr_digits
15219
15220 ECHO_C= ECHO_N= ECHO_T=
15221 case `echo -n x` in #(((((
15222 -n*)
15223 case `echo 'xy\c'` in
15224 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15225 xy) ECHO_C='\c';;
15226 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15227 ECHO_T=' ';;
15228 esac;;
15229 *)
15230 ECHO_N='-n';;
15231 esac
15232
15233 rm -f conf$$ conf$$.exe conf$$.file
15234 if test -d conf$$.dir; then
15235 rm -f conf$$.dir/conf$$.file
15236 else
15237 rm -f conf$$.dir
15238 mkdir conf$$.dir 2>/dev/null
15239 fi
15240 if (echo >conf$$.file) 2>/dev/null; then
15241 if ln -s conf$$.file conf$$ 2>/dev/null; then
15242 as_ln_s='ln -s'
15243 # ... but there are two gotchas:
15244 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15245 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15246 # In both cases, we have to default to `cp -pR'.
15247 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15248 as_ln_s='cp -pR'
15249 elif ln conf$$.file conf$$ 2>/dev/null; then
15250 as_ln_s=ln
15251 else
15252 as_ln_s='cp -pR'
15253 fi
15254 else
15255 as_ln_s='cp -pR'
15256 fi
15257 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15258 rmdir conf$$.dir 2>/dev/null
15259
15260
15261 # as_fn_mkdir_p
15262 # -------------
15263 # Create "$as_dir" as a directory, including parents if necessary.
15264 as_fn_mkdir_p ()
15265 {
15266
15267 case $as_dir in #(
15268 -*) as_dir=./$as_dir;;
15269 esac
15270 test -d "$as_dir" || eval $as_mkdir_p || {
15271 as_dirs=
15272 while :; do
15273 case $as_dir in #(
15274 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15275 *) as_qdir=$as_dir;;
15276 esac
15277 as_dirs="'$as_qdir' $as_dirs"
15278 as_dir=`$as_dirname -- "$as_dir" ||
15279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15280 X"$as_dir" : 'X\(//\)[^/]' \| \
15281 X"$as_dir" : 'X\(//\)$' \| \
15282 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15283 $as_echo X"$as_dir" |
15284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15285 s//\1/
15286 q
15287 }
15288 /^X\(\/\/\)[^/].*/{
15289 s//\1/
15290 q
15291 }
15292 /^X\(\/\/\)$/{
15293 s//\1/
15294 q
15295 }
15296 /^X\(\/\).*/{
15297 s//\1/
15298 q
15299 }
15300 s/.*/./; q'`
15301 test -d "$as_dir" && break
15302 done
15303 test -z "$as_dirs" || eval "mkdir $as_dirs"
15304 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15305
15306
15307 } # as_fn_mkdir_p
15308 if mkdir -p . 2>/dev/null; then
15309 as_mkdir_p='mkdir -p "$as_dir"'
15310 else
15311 test -d ./-p && rmdir ./-p
15312 as_mkdir_p=false
15313 fi
15314
15315
15316 # as_fn_executable_p FILE
15317 # -----------------------
15318 # Test if FILE is an executable regular file.
15319 as_fn_executable_p ()
15320 {
15321 test -f "$1" && test -x "$1"
15322 } # as_fn_executable_p
15323 as_test_x='test -x'
15324 as_executable_p=as_fn_executable_p
15325
15326 # Sed expression to map a string onto a valid CPP name.
15327 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15328
15329 # Sed expression to map a string onto a valid variable name.
15330 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15331
15332
15333 exec 6>&1
15334 ## ----------------------------------- ##
15335 ## Main body of $CONFIG_STATUS script. ##
15336 ## ----------------------------------- ##
15337 _ASEOF
15338 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15339
15340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15341 # Save the log message, to keep $0 and so on meaningful, and to
15342 # report actual input values of CONFIG_FILES etc. instead of their
15343 # values after options handling.
15344 ac_log="
15345 This file was extended by $as_me, which was
15346 generated by GNU Autoconf 2.69. Invocation command line was
15347
15348 CONFIG_FILES = $CONFIG_FILES
15349 CONFIG_HEADERS = $CONFIG_HEADERS
15350 CONFIG_LINKS = $CONFIG_LINKS
15351 CONFIG_COMMANDS = $CONFIG_COMMANDS
15352 $ $0 $@
15353
15354 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15355 "
15356
15357 _ACEOF
15358
15359 case $ac_config_files in *"
15360 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15361 esac
15362
15363
15364
15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15366 # Files that config.status was made for.
15367 config_files="$ac_config_files"
15368
15369 _ACEOF
15370
15371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372 ac_cs_usage="\
15373 \`$as_me' instantiates files and other configuration actions
15374 from templates according to the current configuration. Unless the files
15375 and actions are specified as TAGs, all are instantiated by default.
15376
15377 Usage: $0 [OPTION]... [TAG]...
15378
15379 -h, --help print this help, then exit
15380 -V, --version print version number and configuration settings, then exit
15381 --config print configuration, then exit
15382 -q, --quiet, --silent
15383 do not print progress messages
15384 -d, --debug don't remove temporary files
15385 --recheck update $as_me by reconfiguring in the same conditions
15386 --file=FILE[:TEMPLATE]
15387 instantiate the configuration file FILE
15388
15389 Configuration files:
15390 $config_files
15391
15392 Report bugs to the package provider."
15393
15394 _ACEOF
15395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15396 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15397 ac_cs_version="\\
15398 config.status
15399 configured by $0, generated by GNU Autoconf 2.69,
15400 with options \\"\$ac_cs_config\\"
15401
15402 Copyright (C) 2012 Free Software Foundation, Inc.
15403 This config.status script is free software; the Free Software Foundation
15404 gives unlimited permission to copy, distribute and modify it."
15405
15406 ac_pwd='$ac_pwd'
15407 srcdir='$srcdir'
15408 INSTALL='$INSTALL'
15409 AWK='$AWK'
15410 test -n "\$AWK" || AWK=awk
15411 _ACEOF
15412
15413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15414 # The default lists apply if the user does not specify any file.
15415 ac_need_defaults=:
15416 while test $# != 0
15417 do
15418 case $1 in
15419 --*=?*)
15420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15422 ac_shift=:
15423 ;;
15424 --*=)
15425 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15426 ac_optarg=
15427 ac_shift=:
15428 ;;
15429 *)
15430 ac_option=$1
15431 ac_optarg=$2
15432 ac_shift=shift
15433 ;;
15434 esac
15435
15436 case $ac_option in
15437 # Handling of the options.
15438 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15439 ac_cs_recheck=: ;;
15440 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15441 $as_echo "$ac_cs_version"; exit ;;
15442 --config | --confi | --conf | --con | --co | --c )
15443 $as_echo "$ac_cs_config"; exit ;;
15444 --debug | --debu | --deb | --de | --d | -d )
15445 debug=: ;;
15446 --file | --fil | --fi | --f )
15447 $ac_shift
15448 case $ac_optarg in
15449 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15450 '') as_fn_error $? "missing file argument" ;;
15451 esac
15452 as_fn_append CONFIG_FILES " '$ac_optarg'"
15453 ac_need_defaults=false;;
15454 --he | --h | --help | --hel | -h )
15455 $as_echo "$ac_cs_usage"; exit ;;
15456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15458 ac_cs_silent=: ;;
15459
15460 # This is an error.
15461 -*) as_fn_error $? "unrecognized option: \`$1'
15462 Try \`$0 --help' for more information." ;;
15463
15464 *) as_fn_append ac_config_targets " $1"
15465 ac_need_defaults=false ;;
15466
15467 esac
15468 shift
15469 done
15470
15471 ac_configure_extra_args=
15472
15473 if $ac_cs_silent; then
15474 exec 6>/dev/null
15475 ac_configure_extra_args="$ac_configure_extra_args --silent"
15476 fi
15477
15478 _ACEOF
15479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15480 if \$ac_cs_recheck; then
15481 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15482 shift
15483 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15484 CONFIG_SHELL='$SHELL'
15485 export CONFIG_SHELL
15486 exec "\$@"
15487 fi
15488
15489 _ACEOF
15490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15491 exec 5>>config.log
15492 {
15493 echo
15494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15495 ## Running $as_me. ##
15496 _ASBOX
15497 $as_echo "$ac_log"
15498 } >&5
15499
15500 _ACEOF
15501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502 #
15503 # INIT-COMMANDS
15504 #
15505 extrasub_build="$extrasub_build"
15506 extrasub_host="$extrasub_host"
15507 extrasub_target="$extrasub_target"
15508
15509 _ACEOF
15510
15511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15512
15513 # Handling of arguments.
15514 for ac_config_target in $ac_config_targets
15515 do
15516 case $ac_config_target in
15517 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15518
15519 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15520 esac
15521 done
15522
15523
15524 # If the user did not use the arguments to specify the items to instantiate,
15525 # then the envvar interface is used. Set only those that are not.
15526 # We use the long form for the default assignment because of an extremely
15527 # bizarre bug on SunOS 4.1.3.
15528 if $ac_need_defaults; then
15529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15530 fi
15531
15532 # Have a temporary directory for convenience. Make it in the build tree
15533 # simply because there is no reason against having it here, and in addition,
15534 # creating and moving files from /tmp can sometimes cause problems.
15535 # Hook for its removal unless debugging.
15536 # Note that there is a small window in which the directory will not be cleaned:
15537 # after its creation but before its name has been assigned to `$tmp'.
15538 $debug ||
15539 {
15540 tmp= ac_tmp=
15541 trap 'exit_status=$?
15542 : "${ac_tmp:=$tmp}"
15543 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15544 ' 0
15545 trap 'as_fn_exit 1' 1 2 13 15
15546 }
15547 # Create a (secure) tmp directory for tmp files.
15548
15549 {
15550 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15551 test -d "$tmp"
15552 } ||
15553 {
15554 tmp=./conf$$-$RANDOM
15555 (umask 077 && mkdir "$tmp")
15556 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15557 ac_tmp=$tmp
15558
15559 # Set up the scripts for CONFIG_FILES section.
15560 # No need to generate them if there are no CONFIG_FILES.
15561 # This happens for instance with `./config.status config.h'.
15562 if test -n "$CONFIG_FILES"; then
15563
15564 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15565 ac_cs_awk_getline=:
15566 ac_cs_awk_pipe_init=
15567 ac_cs_awk_read_file='
15568 while ((getline aline < (F[key])) > 0)
15569 print(aline)
15570 close(F[key])'
15571 ac_cs_awk_pipe_fini=
15572 else
15573 ac_cs_awk_getline=false
15574 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15575 ac_cs_awk_read_file='
15576 print "|#_!!_#|"
15577 print "cat " F[key] " &&"
15578 '$ac_cs_awk_pipe_init
15579 # The final `:' finishes the AND list.
15580 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15581 fi
15582 ac_cr=`echo X | tr X '\015'`
15583 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15584 # But we know of no other shell where ac_cr would be empty at this
15585 # point, so we can use a bashism as a fallback.
15586 if test "x$ac_cr" = x; then
15587 eval ac_cr=\$\'\\r\'
15588 fi
15589 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15590 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15591 ac_cs_awk_cr='\\r'
15592 else
15593 ac_cs_awk_cr=$ac_cr
15594 fi
15595
15596 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15597 _ACEOF
15598
15599 # Create commands to substitute file output variables.
15600 {
15601 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15602 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15603 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15604 echo "_ACAWK" &&
15605 echo "_ACEOF"
15606 } >conf$$files.sh &&
15607 . ./conf$$files.sh ||
15608 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15609 rm -f conf$$files.sh
15610
15611 {
15612 echo "cat >conf$$subs.awk <<_ACEOF" &&
15613 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15614 echo "_ACEOF"
15615 } >conf$$subs.sh ||
15616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15617 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15618 ac_delim='%!_!# '
15619 for ac_last_try in false false false false false :; do
15620 . ./conf$$subs.sh ||
15621 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15622
15623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15624 if test $ac_delim_n = $ac_delim_num; then
15625 break
15626 elif $ac_last_try; then
15627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15628 else
15629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15630 fi
15631 done
15632 rm -f conf$$subs.sh
15633
15634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15635 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15636 _ACEOF
15637 sed -n '
15638 h
15639 s/^/S["/; s/!.*/"]=/
15640 p
15641 g
15642 s/^[^!]*!//
15643 :repl
15644 t repl
15645 s/'"$ac_delim"'$//
15646 t delim
15647 :nl
15648 h
15649 s/\(.\{148\}\)..*/\1/
15650 t more1
15651 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15652 p
15653 n
15654 b repl
15655 :more1
15656 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15657 p
15658 g
15659 s/.\{148\}//
15660 t nl
15661 :delim
15662 h
15663 s/\(.\{148\}\)..*/\1/
15664 t more2
15665 s/["\\]/\\&/g; s/^/"/; s/$/"/
15666 p
15667 b
15668 :more2
15669 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15670 p
15671 g
15672 s/.\{148\}//
15673 t delim
15674 ' <conf$$subs.awk | sed '
15675 /^[^""]/{
15676 N
15677 s/\n//
15678 }
15679 ' >>$CONFIG_STATUS || ac_write_fail=1
15680 rm -f conf$$subs.awk
15681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15682 _ACAWK
15683 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15684 for (key in S) S_is_set[key] = 1
15685 FS = "\a"
15686 \$ac_cs_awk_pipe_init
15687 }
15688 {
15689 line = $ 0
15690 nfields = split(line, field, "@")
15691 substed = 0
15692 len = length(field[1])
15693 for (i = 2; i < nfields; i++) {
15694 key = field[i]
15695 keylen = length(key)
15696 if (S_is_set[key]) {
15697 value = S[key]
15698 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15699 len += length(value) + length(field[++i])
15700 substed = 1
15701 } else
15702 len += 1 + keylen
15703 }
15704 if (nfields == 3 && !substed) {
15705 key = field[2]
15706 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15707 \$ac_cs_awk_read_file
15708 next
15709 }
15710 }
15711 print line
15712 }
15713 \$ac_cs_awk_pipe_fini
15714 _ACAWK
15715 _ACEOF
15716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15719 else
15720 cat
15721 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15722 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15723 _ACEOF
15724
15725 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15726 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15727 # trailing colons and then remove the whole line if VPATH becomes empty
15728 # (actually we leave an empty line to preserve line numbers).
15729 if test "x$srcdir" = x.; then
15730 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15731 h
15732 s///
15733 s/^/:/
15734 s/[ ]*$/:/
15735 s/:\$(srcdir):/:/g
15736 s/:\${srcdir}:/:/g
15737 s/:@srcdir@:/:/g
15738 s/^:*//
15739 s/:*$//
15740 x
15741 s/\(=[ ]*\).*/\1/
15742 G
15743 s/\n//
15744 s/^[^=]*=[ ]*$//
15745 }'
15746 fi
15747
15748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15749 fi # test -n "$CONFIG_FILES"
15750
15751
15752 eval set X " :F $CONFIG_FILES "
15753 shift
15754 for ac_tag
15755 do
15756 case $ac_tag in
15757 :[FHLC]) ac_mode=$ac_tag; continue;;
15758 esac
15759 case $ac_mode$ac_tag in
15760 :[FHL]*:*);;
15761 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15762 :[FH]-) ac_tag=-:-;;
15763 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15764 esac
15765 ac_save_IFS=$IFS
15766 IFS=:
15767 set x $ac_tag
15768 IFS=$ac_save_IFS
15769 shift
15770 ac_file=$1
15771 shift
15772
15773 case $ac_mode in
15774 :L) ac_source=$1;;
15775 :[FH])
15776 ac_file_inputs=
15777 for ac_f
15778 do
15779 case $ac_f in
15780 -) ac_f="$ac_tmp/stdin";;
15781 *) # Look for the file first in the build tree, then in the source tree
15782 # (if the path is not absolute). The absolute path cannot be DOS-style,
15783 # because $ac_f cannot contain `:'.
15784 test -f "$ac_f" ||
15785 case $ac_f in
15786 [\\/$]*) false;;
15787 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15788 esac ||
15789 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15790 esac
15791 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15792 as_fn_append ac_file_inputs " '$ac_f'"
15793 done
15794
15795 # Let's still pretend it is `configure' which instantiates (i.e., don't
15796 # use $as_me), people would be surprised to read:
15797 # /* config.h. Generated by config.status. */
15798 configure_input='Generated from '`
15799 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15800 `' by configure.'
15801 if test x"$ac_file" != x-; then
15802 configure_input="$ac_file. $configure_input"
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15804 $as_echo "$as_me: creating $ac_file" >&6;}
15805 fi
15806 # Neutralize special characters interpreted by sed in replacement strings.
15807 case $configure_input in #(
15808 *\&* | *\|* | *\\* )
15809 ac_sed_conf_input=`$as_echo "$configure_input" |
15810 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15811 *) ac_sed_conf_input=$configure_input;;
15812 esac
15813
15814 case $ac_tag in
15815 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15817 esac
15818 ;;
15819 esac
15820
15821 ac_dir=`$as_dirname -- "$ac_file" ||
15822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15823 X"$ac_file" : 'X\(//\)[^/]' \| \
15824 X"$ac_file" : 'X\(//\)$' \| \
15825 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15826 $as_echo X"$ac_file" |
15827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15828 s//\1/
15829 q
15830 }
15831 /^X\(\/\/\)[^/].*/{
15832 s//\1/
15833 q
15834 }
15835 /^X\(\/\/\)$/{
15836 s//\1/
15837 q
15838 }
15839 /^X\(\/\).*/{
15840 s//\1/
15841 q
15842 }
15843 s/.*/./; q'`
15844 as_dir="$ac_dir"; as_fn_mkdir_p
15845 ac_builddir=.
15846
15847 case "$ac_dir" in
15848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15849 *)
15850 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15851 # A ".." for each directory in $ac_dir_suffix.
15852 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15853 case $ac_top_builddir_sub in
15854 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15855 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15856 esac ;;
15857 esac
15858 ac_abs_top_builddir=$ac_pwd
15859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15860 # for backward compatibility:
15861 ac_top_builddir=$ac_top_build_prefix
15862
15863 case $srcdir in
15864 .) # We are building in place.
15865 ac_srcdir=.
15866 ac_top_srcdir=$ac_top_builddir_sub
15867 ac_abs_top_srcdir=$ac_pwd ;;
15868 [\\/]* | ?:[\\/]* ) # Absolute name.
15869 ac_srcdir=$srcdir$ac_dir_suffix;
15870 ac_top_srcdir=$srcdir
15871 ac_abs_top_srcdir=$srcdir ;;
15872 *) # Relative name.
15873 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15874 ac_top_srcdir=$ac_top_build_prefix$srcdir
15875 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15876 esac
15877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15878
15879
15880 case $ac_mode in
15881 :F)
15882 #
15883 # CONFIG_FILE
15884 #
15885
15886 case $INSTALL in
15887 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15888 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15889 esac
15890 _ACEOF
15891
15892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15893 # If the template does not know about datarootdir, expand it.
15894 # FIXME: This hack should be removed a few years after 2.60.
15895 ac_datarootdir_hack=; ac_datarootdir_seen=
15896 ac_sed_dataroot='
15897 /datarootdir/ {
15898 p
15899 q
15900 }
15901 /@datadir@/p
15902 /@docdir@/p
15903 /@infodir@/p
15904 /@localedir@/p
15905 /@mandir@/p'
15906 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15907 *datarootdir*) ac_datarootdir_seen=yes;;
15908 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15910 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15911 _ACEOF
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913 ac_datarootdir_hack='
15914 s&@datadir@&$datadir&g
15915 s&@docdir@&$docdir&g
15916 s&@infodir@&$infodir&g
15917 s&@localedir@&$localedir&g
15918 s&@mandir@&$mandir&g
15919 s&\\\${datarootdir}&$datarootdir&g' ;;
15920 esac
15921 _ACEOF
15922
15923 # Neutralize VPATH when `$srcdir' = `.'.
15924 # Shell code in configure.ac might set extrasub.
15925 # FIXME: do we really want to maintain this feature?
15926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15927 ac_sed_extra="$ac_vpsub
15928 $extrasub
15929 _ACEOF
15930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15931 :t
15932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15933 s|@configure_input@|$ac_sed_conf_input|;t t
15934 s&@top_builddir@&$ac_top_builddir_sub&;t t
15935 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15936 s&@srcdir@&$ac_srcdir&;t t
15937 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15938 s&@top_srcdir@&$ac_top_srcdir&;t t
15939 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15940 s&@builddir@&$ac_builddir&;t t
15941 s&@abs_builddir@&$ac_abs_builddir&;t t
15942 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15943 s&@INSTALL@&$ac_INSTALL&;t t
15944 $ac_datarootdir_hack
15945 "
15946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15947 if $ac_cs_awk_getline; then
15948 $AWK -f "$ac_tmp/subs.awk"
15949 else
15950 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15951 fi \
15952 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15953
15954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15955 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15956 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15957 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15959 which seems to be undefined. Please make sure it is defined" >&5
15960 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15961 which seems to be undefined. Please make sure it is defined" >&2;}
15962
15963 rm -f "$ac_tmp/stdin"
15964 case $ac_file in
15965 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15966 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15967 esac \
15968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15969 ;;
15970
15971
15972
15973 esac
15974
15975
15976 case $ac_file$ac_mode in
15977 "Makefile":F) sed "$extrasub_build" Makefile |
15978 sed "$extrasub_host" |
15979 sed "$extrasub_target" > mf$$
15980 mv -f mf$$ Makefile ;;
15981
15982 esac
15983 done # for ac_tag
15984
15985
15986 as_fn_exit 0
15987 _ACEOF
15988 ac_clean_files=$ac_clean_files_save
15989
15990 test $ac_write_fail = 0 ||
15991 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15992
15993
15994 # configure is writing to config.log, and then calls config.status.
15995 # config.status does its own redirection, appending to config.log.
15996 # Unfortunately, on DOS this fails, as config.log is still kept open
15997 # by configure, so config.status won't be able to write to it; its
15998 # output is simply discarded. So we exec the FD to /dev/null,
15999 # effectively closing config.log, so it can be properly (re)opened and
16000 # appended to by config.status. When coming back to configure, we
16001 # need to make the FD available again.
16002 if test "$no_create" != yes; then
16003 ac_cs_success=:
16004 ac_config_status_args=
16005 test "$silent" = yes &&
16006 ac_config_status_args="$ac_config_status_args --quiet"
16007 exec 5>/dev/null
16008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16009 exec 5>>config.log
16010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16011 # would make configure fail if this is the last instruction.
16012 $ac_cs_success || as_fn_exit 1
16013 fi
16014 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16016 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16017 fi
16018
This page took 0.39736 seconds and 4 git commands to generate.