configure revision 1.13 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 (at] 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 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 READELF
623 OTOOL
624 OBJDUMP
625 OBJCOPY
626 WINDMC
627 WINDRES
628 STRIP
629 RANLIB
630 NM
631 LIPO
632 LD
633 DSYMUTIL
634 DLLTOOL
635 AS
636 AR
637 RUNTEST
638 EXPECT
639 MAKEINFO
640 FLEX
641 LEX
642 M4
643 BISON
644 YACC
645 WINDRES_FOR_BUILD
646 WINDMC_FOR_BUILD
647 RANLIB_FOR_BUILD
648 NM_FOR_BUILD
649 LD_FOR_BUILD
650 LDFLAGS_FOR_BUILD
651 GDC_FOR_BUILD
652 GOC_FOR_BUILD
653 GFORTRAN_FOR_BUILD
654 DSYMUTIL_FOR_BUILD
655 DLLTOOL_FOR_BUILD
656 CXX_FOR_BUILD
657 CXXFLAGS_FOR_BUILD
658 CFLAGS_FOR_BUILD
659 CC_FOR_BUILD
660 AS_FOR_BUILD
661 AR_FOR_BUILD
662 target_configdirs
663 configdirs
664 build_configdirs
665 INSTALL_GDB_TK
666 GDB_TK
667 CONFIGURE_GDB_TK
668 build_tooldir
669 tooldir
670 GCC_SHLIB_SUBDIR
671 RPATH_ENVVAR
672 target_configargs
673 host_configargs
674 build_configargs
675 BUILD_CONFIG
676 LDFLAGS_FOR_TARGET
677 CXXFLAGS_FOR_TARGET
678 CFLAGS_FOR_TARGET
679 DEBUG_PREFIX_CFLAGS_FOR_TARGET
680 SYSROOT_CFLAGS_FOR_TARGET
681 get_gcc_base_ver
682 extra_host_zlib_configure_flags
683 extra_host_libiberty_configure_flags
684 stage1_languages
685 host_shared
686 extra_linker_plugin_flags
687 extra_linker_plugin_configure_flags
688 islinc
689 isllibs
690 poststage1_ldflags
691 poststage1_libs
692 stage1_ldflags
693 stage1_libs
694 extra_isl_gmp_configure_flags
695 extra_mpc_mpfr_configure_flags
696 extra_mpc_gmp_configure_flags
697 extra_mpfr_configure_flags
698 gmpinc
699 gmplibs
700 do_compare
701 GNATMAKE
702 GNATBIND
703 ac_ct_CXX
704 CXXFLAGS
705 CXX
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 extra_liboffloadmic_configure_flags
714 target_subdir
715 host_subdir
716 build_subdir
717 build_libsubdir
718 AWK
719 SED
720 LN_S
721 LN
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 target_noncanonical
734 host_noncanonical
735 build_noncanonical
736 build_os
737 build_vendor
738 build_cpu
739 build
740 TOPLEVEL_CONFIGURE_ARGUMENTS
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files='serialization_dependencies
780 host_makefile_frag
781 target_makefile_frag
782 alphaieee_frag
783 ospace_frag'
784 ac_user_opts='
785 enable_option_checking
786 with_build_libsubdir
787 with_system_zlib
788 enable_as_accelerator_for
789 enable_offload_targets
790 enable_gold
791 enable_ld
792 enable_compressed_debug_sections
793 enable_libquadmath
794 enable_libquadmath_support
795 enable_libada
796 enable_libssp
797 enable_libstdcxx
798 enable_liboffloadmic
799 enable_bootstrap
800 with_mpc
801 with_mpc_include
802 with_mpc_lib
803 with_mpfr_dir
804 with_mpfr
805 with_mpfr_include
806 with_mpfr_lib
807 with_gmp_dir
808 with_gmp
809 with_gmp_include
810 with_gmp_lib
811 with_stage1_libs
812 with_static_standard_libraries
813 with_stage1_ldflags
814 with_boot_libs
815 with_boot_ldflags
816 with_isl
817 with_isl_include
818 with_isl_lib
819 enable_isl_version_check
820 enable_lto
821 enable_linker_plugin_configure_flags
822 enable_linker_plugin_flags
823 enable_host_shared
824 enable_stage1_languages
825 enable_objc_gc
826 with_target_bdw_gc
827 with_target_bdw_gc_include
828 with_target_bdw_gc_lib
829 with_gcc_major_version_only
830 with_build_sysroot
831 with_debug_prefix_map
832 with_build_config
833 enable_vtable_verify
834 enable_serial_configure
835 with_build_time_tools
836 enable_maintainer_mode
837 enable_stage1_checking
838 enable_werror
839 '
840 ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CXX
849 CXXFLAGS
850 CCC
851 build_configargs
852 host_configargs
853 target_configargs
854 AR
855 AS
856 DLLTOOL
857 DSYMUTIL
858 LD
859 LIPO
860 NM
861 RANLIB
862 STRIP
863 WINDRES
864 WINDMC
865 OBJCOPY
866 OBJDUMP
867 OTOOL
868 READELF
869 CC_FOR_TARGET
870 CXX_FOR_TARGET
871 GCC_FOR_TARGET
872 GFORTRAN_FOR_TARGET
873 GOC_FOR_TARGET
874 GDC_FOR_TARGET
875 AR_FOR_TARGET
876 AS_FOR_TARGET
877 DLLTOOL_FOR_TARGET
878 DSYMUTIL_FOR_TARGET
879 LD_FOR_TARGET
880 LIPO_FOR_TARGET
881 NM_FOR_TARGET
882 OBJCOPY_FOR_TARGET
883 OBJDUMP_FOR_TARGET
884 OTOOL_FOR_TARGET
885 RANLIB_FOR_TARGET
886 READELF_FOR_TARGET
887 STRIP_FOR_TARGET
888 WINDRES_FOR_TARGET
889 WINDMC_FOR_TARGET'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
949 fi
950
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
956
957 # Accept the important Cygnus configure options, so we can diagnose typos.
958
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
967
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
982
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
987
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1185
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1196
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1201
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1206
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1213
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1218
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1221
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1224
1225 -with-* | --with-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
1240
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
1256
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1260
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1267
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1274
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1277 ;;
1278
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285 esac
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1288
1289 *)
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 ;;
1296
1297 esac
1298 done
1299
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error $? "missing argument to $ac_option"
1303 fi
1304
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1311 fi
1312
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1318 do
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1333
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1340
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1347 fi
1348 fi
1349
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353 test "$silent" = yes && exec 6>/dev/null
1354
1355
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 as_fn_error $? "working directory cannot be determined"
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 as_fn_error $? "pwd does not report name of working directory"
1362
1363
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$as_myself" ||
1369 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$as_myself" : 'X\(//\)[^/]' \| \
1371 X"$as_myself" : 'X\(//\)$' \| \
1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373 $as_echo X"$as_myself" |
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)[^/].*/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\).*/{
1387 s//\1/
1388 q
1389 }
1390 s/.*/./; q'`
1391 srcdir=$ac_confdir
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 srcdir=..
1394 fi
1395 else
1396 ac_srcdir_defaulted=no
1397 fi
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 fi
1402 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 ac_abs_confdir=`(
1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1409 fi
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 case $srcdir in
1417 *" "*)
1418 as_fn_error $? "path to source, $srcdir, contains spaces"
1419 ;;
1420 esac
1421 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1422
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 \`configure' configures this package to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 --target=TARGET configure for building compilers for TARGET [HOST]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507
1508 cat <<\_ACEOF
1509
1510 Optional Features:
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-as-accelerator-for=ARG
1515 build as offload target compiler. Specify offload
1516 host triple by ARG
1517 --enable-offload-targets=LIST
1518 enable offloading to devices from comma-separated
1519 LIST of TARGET[=DIR]. Use optional path to find
1520 offload target compiler during the build
1521 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1522 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1523 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1524 Enable compressed debug sections for gas, gold or ld
1525 by default
1526 --disable-libquadmath do not build libquadmath directory
1527 --disable-libquadmath-support
1528 disable libquadmath support for Fortran
1529 --enable-libada build libada directory
1530 --enable-libssp build libssp directory
1531 --disable-libstdcxx do not build libstdc++-v3 directory
1532 --enable-liboffloadmic=ARG
1533 build liboffloadmic [ARG={no,host,target}]
1534 --enable-bootstrap enable bootstrapping [yes if native build]
1535 --disable-isl-version-check
1536 disable check for isl version
1537 --enable-lto enable link time optimization support
1538 --enable-linker-plugin-configure-flags=FLAGS
1539 additional flags for configuring linker plugins
1540 [none]
1541 --enable-linker-plugin-flags=FLAGS
1542 additional flags for configuring and building linker
1543 plugins [none]
1544 --enable-host-shared build host code as shared libraries
1545 --enable-stage1-languages[=all]
1546 choose additional languages to build during stage1.
1547 Mostly useful for compiler development
1548 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1549 Objective-C runtime
1550 --enable-vtable-verify Enable vtable verification feature
1551 --enable-serial-[{host,target,build}-]configure
1552 force sequential configuration of sub-packages for
1553 the host, target or build machine, or all
1554 sub-packages
1555 --enable-maintainer-mode
1556 enable make rules and dependencies not useful (and
1557 sometimes confusing) to the casual installer
1558 --enable-stage1-checking[=all]
1559 choose additional checking for stage1 of the
1560 compiler
1561 --enable-werror enable -Werror in bootstrap stage2 and later
1562
1563 Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-build-libsubdir=DIR Directory where to find libraries for build system
1567 --with-system-zlib use installed libz
1568 --with-mpc=PATH specify prefix directory for installed MPC package.
1569 Equivalent to --with-mpc-include=PATH/include plus
1570 --with-mpc-lib=PATH/lib
1571 --with-mpc-include=PATH specify directory for installed MPC include files
1572 --with-mpc-lib=PATH specify directory for the installed MPC library
1573 --with-mpfr-dir=PATH this option has been REMOVED
1574 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1575 Equivalent to --with-mpfr-include=PATH/include plus
1576 --with-mpfr-lib=PATH/lib
1577 --with-mpfr-include=PATH
1578 specify directory for installed MPFR include files
1579 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1580 --with-gmp-dir=PATH this option has been REMOVED
1581 --with-gmp=PATH specify prefix directory for the installed GMP
1582 package. Equivalent to
1583 --with-gmp-include=PATH/include plus
1584 --with-gmp-lib=PATH/lib
1585 --with-gmp-include=PATH specify directory for installed GMP include files
1586 --with-gmp-lib=PATH specify directory for the installed GMP library
1587 --with-stage1-libs=LIBS libraries for stage1
1588 --with-static-standard-libraries
1589 use -static-libstdc++ and -static-libgcc
1590 (default=auto)
1591 --with-stage1-ldflags=FLAGS
1592 linker flags for stage1
1593 --with-boot-libs=LIBS libraries for stage2 and later
1594 --with-boot-ldflags=FLAGS
1595 linker flags for stage2 and later
1596 --with-isl=PATH Specify prefix directory for the installed isl
1597 package. Equivalent to
1598 --with-isl-include=PATH/include plus
1599 --with-isl-lib=PATH/lib
1600 --with-isl-include=PATH Specify directory for installed isl include files
1601 --with-isl-lib=PATH Specify the directory for the installed isl library
1602 --with-target-bdw-gc=PATHLIST
1603 specify prefix directory for installed bdw-gc
1604 package. Equivalent to
1605 --with-target-bdw-gc-include=PATH/include plus
1606 --with-target-bdw-gc-lib=PATH/lib
1607 --with-target-bdw-gc-include=PATHLIST
1608 specify directories for installed bdw-gc include
1609 files
1610 --with-target-bdw-gc-lib=PATHLIST
1611 specify directories for installed bdw-gc library
1612 --with-gcc-major-version-only
1613 use only GCC major number in filesystem paths
1614 --with-build-sysroot=SYSROOT
1615 use sysroot as the system root during the build
1616 --with-debug-prefix-map='A=B C=D ...'
1617 map A to B, C to D ... in debug information
1618 --with-build-config='NAME NAME2...'
1619 use config/NAME.mk build configuration
1620 --with-build-time-tools=PATH
1621 use given path to find target tools during the build
1622
1623 Some influential environment variables:
1624 CC C compiler command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1627 nonstandard directory <lib dir>
1628 LIBS libraries to pass to the linker, e.g. -l<library>
1629 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1630 you have headers in a nonstandard directory <include dir>
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1633 build_configargs
1634 additional configure arguments for build directories
1635 host_configargs
1636 additional configure arguments for host directories
1637 target_configargs
1638 additional configure arguments for target directories
1639 AR AR for the host
1640 AS AS for the host
1641 DLLTOOL DLLTOOL for the host
1642 DSYMUTIL DSYMUTIL for the host
1643 LD LD for the host
1644 LIPO LIPO for the host
1645 NM NM for the host
1646 RANLIB RANLIB for the host
1647 STRIP STRIP for the host
1648 WINDRES WINDRES for the host
1649 WINDMC WINDMC for the host
1650 OBJCOPY OBJCOPY for the host
1651 OBJDUMP OBJDUMP for the host
1652 OTOOL OTOOL for the host
1653 READELF READELF for the host
1654 CC_FOR_TARGET
1655 CC for the target
1656 CXX_FOR_TARGET
1657 CXX for the target
1658 GCC_FOR_TARGET
1659 GCC for the target
1660 GFORTRAN_FOR_TARGET
1661 GFORTRAN for the target
1662 GOC_FOR_TARGET
1663 GOC for the target
1664 GDC_FOR_TARGET
1665 GDC for the target
1666 AR_FOR_TARGET
1667 AR for the target
1668 AS_FOR_TARGET
1669 AS for the target
1670 DLLTOOL_FOR_TARGET
1671 DLLTOOL for the target
1672 DSYMUTIL_FOR_TARGET
1673 DSYMUTIL for the target
1674 LD_FOR_TARGET
1675 LD for the target
1676 LIPO_FOR_TARGET
1677 LIPO for the target
1678 NM_FOR_TARGET
1679 NM for the target
1680 OBJCOPY_FOR_TARGET
1681 OBJCOPY for the target
1682 OBJDUMP_FOR_TARGET
1683 OBJDUMP for the target
1684 OTOOL_FOR_TARGET
1685 OTOOL for the target
1686 RANLIB_FOR_TARGET
1687 RANLIB for the target
1688 READELF_FOR_TARGET
1689 READELF for the target
1690 STRIP_FOR_TARGET
1691 STRIP for the target
1692 WINDRES_FOR_TARGET
1693 WINDRES for the target
1694 WINDMC_FOR_TARGET
1695 WINDMC for the target
1696
1697 Use these variables to override the choices made by `configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1699
1700 Report bugs to the package provider.
1701 _ACEOF
1702 ac_status=$?
1703 fi
1704
1705 if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1707 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 continue
1711 ac_builddir=.
1712
1713 case "$ac_dir" in
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *)
1716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 esac ;;
1723 esac
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1728
1729 case $srcdir in
1730 .) # We are building in place.
1731 ac_srcdir=.
1732 ac_top_srcdir=$ac_top_builddir_sub
1733 ac_abs_top_srcdir=$ac_pwd ;;
1734 [\\/]* | ?:[\\/]* ) # Absolute name.
1735 ac_srcdir=$srcdir$ac_dir_suffix;
1736 ac_top_srcdir=$srcdir
1737 ac_abs_top_srcdir=$srcdir ;;
1738 *) # Relative name.
1739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 esac
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744
1745 cd "$ac_dir" || { ac_status=$?; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1753 else
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 fi || ac_status=$?
1756 cd "$ac_pwd" || { ac_status=$?; break; }
1757 done
1758 fi
1759
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1762 cat <<\_ACEOF
1763 configure
1764 generated by GNU Autoconf 2.69
1765
1766 Copyright (C) 2012 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770 exit
1771 fi
1772
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1776
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext
1784 if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_compile
1814
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1835 fi
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847 fi
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_cxx_try_compile
1852
1853 # ac_fn_cxx_try_link LINENO
1854 # -------------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_link ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
1880 test -x conftest$ac_exeext
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888 fi
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_cxx_try_link
1898
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_link ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 test -x conftest$ac_exeext
1927 }; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934 fi
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_link
1944 cat >config.log <<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1947
1948 It was created by $as_me, which was
1949 generated by GNU Autoconf 2.69. Invocation command line was
1950
1951 $ $0 $@
1952
1953 _ACEOF
1954 exec 5>>config.log
1955 {
1956 cat <<_ASUNAME
1957 ## --------- ##
1958 ## Platform. ##
1959 ## --------- ##
1960
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1969
1970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1977
1978 _ASUNAME
1979
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 $as_echo "PATH: $as_dir"
1986 done
1987 IFS=$as_save_IFS
1988
1989 } >&5
1990
1991 cat >&5 <<_ACEOF
1992
1993
1994 ## ----------- ##
1995 ## Core tests. ##
1996 ## ----------- ##
1997
1998 _ACEOF
1999
2000
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2006 ac_configure_args=
2007 ac_configure_args0=
2008 ac_configure_args1=
2009 ac_must_keep_next=false
2010 for ac_pass in 1 2
2011 do
2012 for ac_arg
2013 do
2014 case $ac_arg in
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2018 continue ;;
2019 *\'*)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 esac
2022 case $ac_pass in
2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2024 2)
2025 as_fn_append ac_configure_args1 " '$ac_arg'"
2026 if test $ac_must_keep_next = true; then
2027 ac_must_keep_next=false # Got value, back to normal.
2028 else
2029 case $ac_arg in
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 esac
2037 ;;
2038 -* ) ac_must_keep_next=true ;;
2039 esac
2040 fi
2041 as_fn_append ac_configure_args " '$ac_arg'"
2042 ;;
2043 esac
2044 done
2045 done
2046 { ac_configure_args0=; unset ac_configure_args0;}
2047 { ac_configure_args1=; unset ac_configure_args1;}
2048
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log. We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2056 {
2057 echo
2058
2059 $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2062 echo
2063 # The following way of writing the cache mishandles newlines in values,
2064 (
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
2080 (set) 2>&1 |
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2083 sed -n \
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
2087 *)
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089 ;;
2090 esac |
2091 sort
2092 )
2093 echo
2094
2095 $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2098 echo
2099 for ac_var in $ac_subst_vars
2100 do
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2108
2109 if test -n "$ac_subst_files"; then
2110 $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2113 echo
2114 for ac_var in $ac_subst_files
2115 do
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2123 fi
2124
2125 if test -s confdefs.h; then
2126 $as_echo "## ----------- ##
2127 ## confdefs.h. ##
2128 ## ----------- ##"
2129 echo
2130 cat confdefs.h
2131 echo
2132 fi
2133 test "$ac_signal" != 0 &&
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
2136 } >&5
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139 exit $exit_status
2140 ' 0
2141 for ac_signal in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 done
2144 ac_signal=0
2145
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2148
2149 $as_echo "/* confdefs.h */" > confdefs.h
2150
2151 # Predefined preprocessor variables.
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2175 _ACEOF
2176
2177
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 ac_site_file1=NONE
2181 ac_site_file2=NONE
2182 if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2188 esac
2189 elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2192 else
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
2195 fi
2196 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197 do
2198 test "x$ac_site_file" = xNONE && continue
2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 sed 's/^/| /' "$ac_site_file" >&5
2203 . "$ac_site_file" \
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $? "failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2208 fi
2209 done
2210
2211 if test -r "$cache_file"; then
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2217 case $cache_file in
2218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
2220 esac
2221 fi
2222 else
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2225 >$cache_file
2226 fi
2227
2228 # Check that the precious variables saved in the cache have kept the same
2229 # value.
2230 ac_cache_corrupted=false
2231 for ac_var in $ac_precious_vars; do
2232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233 eval ac_new_set=\$ac_env_${ac_var}_set
2234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235 eval ac_new_val=\$ac_env_${ac_var}_value
2236 case $ac_old_set,$ac_new_set in
2237 set,)
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240 ac_cache_corrupted=: ;;
2241 ,set)
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244 ac_cache_corrupted=: ;;
2245 ,);;
2246 *)
2247 if test "x$ac_old_val" != "x$ac_new_val"; then
2248 # differences in whitespace do not lead to failure.
2249 ac_old_val_w=`echo x $ac_old_val`
2250 ac_new_val_w=`echo x $ac_new_val`
2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 ac_cache_corrupted=:
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 eval $ac_var=\$ac_old_val
2259 fi
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2264 fi;;
2265 esac
2266 # Pass precious variables to config.status.
2267 if test "$ac_new_set" = set; then
2268 case $ac_new_val in
2269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 *) ac_arg=$ac_var=$ac_new_val ;;
2271 esac
2272 case " $ac_configure_args " in
2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275 esac
2276 fi
2277 done
2278 if $ac_cache_corrupted; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284 fi
2285 ## -------------------- ##
2286 ## Main body of script. ##
2287 ## -------------------- ##
2288
2289 ac_ext=c
2290 ac_cpp='$CPP $CPPFLAGS'
2291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294
2295
2296
2297
2298
2299
2300
2301
2302 progname=$0
2303 # if PWD already has a value, it is probably wrong.
2304 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2305
2306 # Export original configure arguments for use by sub-configures.
2307 # Quote arguments with shell meta charatcers.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS=
2309 set -- "$progname" "$@"
2310 for ac_arg
2311 do
2312 case "$ac_arg" in
2313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2314 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2315 # if the argument is of the form -foo=baz, quote the baz part only
2316 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2317 *) ;;
2318 esac
2319 # Add the quoted argument to the list.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2321 done
2322 if test "$silent" = yes; then
2323 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2324 fi
2325 # Remove the initial space we just introduced and, as these will be
2326 # expanded by make, quote '$'.
2327 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2328
2329
2330 # Find the build, host, and target systems.
2331 ac_aux_dir=
2332 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2333 if test -f "$ac_dir/install-sh"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2336 break
2337 elif test -f "$ac_dir/install.sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2340 break
2341 elif test -f "$ac_dir/shtool"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2344 break
2345 fi
2346 done
2347 if test -z "$ac_aux_dir"; then
2348 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2349 fi
2350
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2358
2359
2360 # Make sure we can run config.sub.
2361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2362 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2363
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 $as_echo_n "checking build system type... " >&6; }
2366 if ${ac_cv_build+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 ac_build_alias=$build_alias
2370 test "x$ac_build_alias" = x &&
2371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372 test "x$ac_build_alias" = x &&
2373 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2374 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2376
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2381 *-*-*) ;;
2382 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2383 esac
2384 build=$ac_cv_build
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_build
2387 shift
2388 build_cpu=$1
2389 build_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 build_os=$*
2394 IFS=$ac_save_IFS
2395 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2396
2397
2398 case ${build_alias} in
2399 "") build_noncanonical=${build} ;;
2400 *) build_noncanonical=${build_alias} ;;
2401 esac
2402
2403
2404
2405 case ${host_alias} in
2406 "") host_noncanonical=${build_noncanonical} ;;
2407 *) host_noncanonical=${host_alias} ;;
2408 esac
2409
2410
2411
2412 case ${target_alias} in
2413 "") target_noncanonical=${host_noncanonical} ;;
2414 *) target_noncanonical=${target_alias} ;;
2415 esac
2416
2417
2418
2419
2420 test "$host_noncanonical" = "$target_noncanonical" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_transform_name=s,y,y,
2424
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426 $as_echo_n "checking host system type... " >&6; }
2427 if ${ac_cv_host+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test "x$host_alias" = x; then
2431 ac_cv_host=$ac_cv_build
2432 else
2433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2435 fi
2436
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439 $as_echo "$ac_cv_host" >&6; }
2440 case $ac_cv_host in
2441 *-*-*) ;;
2442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2443 esac
2444 host=$ac_cv_host
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_host
2447 shift
2448 host_cpu=$1
2449 host_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 host_os=$*
2454 IFS=$ac_save_IFS
2455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2456
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459 $as_echo_n "checking target system type... " >&6; }
2460 if ${ac_cv_target+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test "x$target_alias" = x; then
2464 ac_cv_target=$ac_cv_host
2465 else
2466 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2468 fi
2469
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472 $as_echo "$ac_cv_target" >&6; }
2473 case $ac_cv_target in
2474 *-*-*) ;;
2475 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2476 esac
2477 target=$ac_cv_target
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_target
2480 shift
2481 target_cpu=$1
2482 target_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 target_os=$*
2487 IFS=$ac_save_IFS
2488 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2489
2490
2491 # The aliases save the names the user supplied, while $host etc.
2492 # will get canonicalized.
2493 test -n "$target_alias" &&
2494 test "$program_prefix$program_suffix$program_transform_name" = \
2495 NONENONEs,x,x, &&
2496 program_prefix=${target_alias}-
2497
2498 test "$program_prefix" != NONE &&
2499 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2500 # Use a double $ so make ignores it.
2501 test "$program_suffix" != NONE &&
2502 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2503 # Double any \ or $.
2504 # By default was `s,x,x', remove it if useless.
2505 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2506 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2507
2508
2509
2510 # Get 'install' or 'install-sh' and its variants.
2511 # Find a good install program. We prefer a C program (faster),
2512 # so one script is as good as another. But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2517 # AIX /bin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if ${ac_cv_path_install+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538 ./ | .// | /[cC]/* | \
2539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2541 /usr/ucb/* ) ;;
2542 *)
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2545 # by default.
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549 if test $ac_prog = install &&
2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2552 :
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2556 :
2557 else
2558 rm -rf conftest.one conftest.two conftest.dir
2559 echo one > conftest.one
2560 echo two > conftest.two
2561 mkdir conftest.dir
2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563 test -s conftest.one && test -s conftest.two &&
2564 test -s conftest.dir/conftest.one &&
2565 test -s conftest.dir/conftest.two
2566 then
2567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568 break 3
2569 fi
2570 fi
2571 fi
2572 done
2573 done
2574 ;;
2575 esac
2576
2577 done
2578 IFS=$as_save_IFS
2579
2580 rm -rf conftest.one conftest.two conftest.dir
2581
2582 fi
2583 if test "${ac_cv_path_install+set}" = set; then
2584 INSTALL=$ac_cv_path_install
2585 else
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for INSTALL within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 INSTALL=$ac_install_sh
2591 fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2595
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2599
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2601
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2605 $as_echo_n "checking whether ln works... " >&6; }
2606 if ${acx_cv_prog_LN+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 rm -f conftestdata_t
2610 echo >conftestdata_f
2611 if ln conftestdata_f conftestdata_t 2>/dev/null
2612 then
2613 acx_cv_prog_LN=ln
2614 else
2615 acx_cv_prog_LN=no
2616 fi
2617 rm -f conftestdata_f conftestdata_t
2618
2619 fi
2620 if test $acx_cv_prog_LN = no; then
2621 LN="cp"
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2623 $as_echo "no, using $LN" >&6; }
2624 else
2625 LN="$acx_cv_prog_LN"
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 fi
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2631 $as_echo_n "checking whether ln -s works... " >&6; }
2632 LN_S=$as_ln_s
2633 if test "$LN_S" = "ln -s"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2638 $as_echo "no, using $LN_S" >&6; }
2639 fi
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2642 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2643 if ${ac_cv_path_SED+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2647 for ac_i in 1 2 3 4 5 6 7; do
2648 ac_script="$ac_script$as_nl$ac_script"
2649 done
2650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2651 { ac_script=; unset ac_script;}
2652 if test -z "$SED"; then
2653 ac_path_SED_found=false
2654 # Loop through the user's path and test for each of PROGNAME-LIST
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_prog in sed gsed; do
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2663 as_fn_executable_p "$ac_path_SED" || continue
2664 # Check for GNU ac_path_SED and select it if it is found.
2665 # Check for GNU $ac_path_SED
2666 case `"$ac_path_SED" --version 2>&1` in
2667 *GNU*)
2668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2669 *)
2670 ac_count=0
2671 $as_echo_n 0123456789 >"conftest.in"
2672 while :
2673 do
2674 cat "conftest.in" "conftest.in" >"conftest.tmp"
2675 mv "conftest.tmp" "conftest.in"
2676 cp "conftest.in" "conftest.nl"
2677 $as_echo '' >> "conftest.nl"
2678 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2680 as_fn_arith $ac_count + 1 && ac_count=$as_val
2681 if test $ac_count -gt ${ac_path_SED_max-0}; then
2682 # Best one so far, save it but keep looking for a better one
2683 ac_cv_path_SED="$ac_path_SED"
2684 ac_path_SED_max=$ac_count
2685 fi
2686 # 10*(2^10) chars as input seems more than enough
2687 test $ac_count -gt 10 && break
2688 done
2689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2690 esac
2691
2692 $ac_path_SED_found && break 3
2693 done
2694 done
2695 done
2696 IFS=$as_save_IFS
2697 if test -z "$ac_cv_path_SED"; then
2698 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2699 fi
2700 else
2701 ac_cv_path_SED=$SED
2702 fi
2703
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2706 $as_echo "$ac_cv_path_SED" >&6; }
2707 SED="$ac_cv_path_SED"
2708 rm -f conftest.sed
2709
2710 for ac_prog in gawk mawk nawk awk
2711 do
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_AWK+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_AWK="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 AWK=$ac_cv_prog_AWK
2740 if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 $as_echo "$AWK" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 test -n "$AWK" && break
2750 done
2751
2752
2753 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754
2755 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2756 # a relative path.
2757 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2758 INSTALL="${srcpwd}/install-sh -c"
2759 fi
2760
2761 # Set srcdir to "." if that's what it is.
2762 # This is important for multilib support.
2763 pwd=`${PWDCMD-pwd}`
2764 if test "${pwd}" = "${srcpwd}" ; then
2765 srcdir=.
2766 fi
2767
2768 topsrcdir=$srcpwd
2769
2770 extra_host_args=
2771
2772 ### To add a new directory to the tree, first choose whether it is a target
2773 ### or a host dependent tool. Then put it into the appropriate list
2774 ### (library or tools, host or target), doing a dependency sort.
2775
2776 # Subdirs will be configured in the order listed in build_configdirs,
2777 # configdirs, or target_configdirs; see the serialization section below.
2778
2779 # Dependency sorting is only needed when *configuration* must be done in
2780 # a particular order. In all cases a dependency should be specified in
2781 # the Makefile, whether or not it's implicitly specified here.
2782
2783 # Double entries in build_configdirs, configdirs, or target_configdirs may
2784 # cause circular dependencies and break everything horribly.
2785
2786 # these library is used by various programs built for the build
2787 # environment
2788 #
2789 build_libs="build-libiberty build-libcpp"
2790
2791 # these tools are built for the build environment
2792 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2793
2794 # these libraries are used by various programs built for the host environment
2795 #f
2796 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2797
2798 # these tools are built for the host environment
2799 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2800 # know that we are building the simulator.
2801 # binutils, gas and ld appear in that order because it makes sense to run
2802 # "make check" in that particular order.
2803 # If --enable-gold is used, "gold" may replace "ld".
2804 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2805
2806 # these libraries are built for the target environment, and are built after
2807 # the host libraries and the host tools (which may be a cross compiler)
2808 # Note that libiberty is not a target library.
2809 target_libraries="target-libgcc \
2810 target-libbacktrace \
2811 target-libgloss \
2812 target-newlib \
2813 target-libgomp \
2814 target-liboffloadmic \
2815 target-libhsail-rt \
2816 target-libatomic \
2817 target-libitm \
2818 target-libstdc++-v3 \
2819 target-libsanitizer \
2820 target-libvtv \
2821 target-libssp \
2822 target-libquadmath \
2823 target-libgfortran \
2824 target-libffi \
2825 target-libobjc \
2826 target-libada \
2827 target-libgo \
2828 target-libphobos \
2829 target-zlib"
2830
2831 # these tools are built using the target libraries, and are intended to
2832 # run only in the target environment
2833 #
2834 # note: any program that *uses* libraries that are in the "target_libraries"
2835 # list belongs in this list.
2836 #
2837 target_tools="target-rda"
2838
2839 ################################################################################
2840
2841 ## All tools belong in one of the four categories, and are assigned above
2842 ## We assign ${configdirs} this way to remove all embedded newlines. This
2843 ## is important because configure will choke if they ever get through.
2844 ## ${configdirs} is directories we build using the host tools.
2845 ## ${target_configdirs} is directories we build using the target tools.
2846 configdirs=`echo ${host_libs} ${host_tools}`
2847 target_configdirs=`echo ${target_libraries} ${target_tools}`
2848 build_configdirs=`echo ${build_libs} ${build_tools}`
2849
2850
2851
2852 ################################################################################
2853
2854 srcname="gnu development package"
2855
2856 # This gets set non-empty for some net releases of packages.
2857 appdirs=""
2858
2859 # Define is_cross_compiler to save on calls to 'test'.
2860 is_cross_compiler=
2861 if test x"${host}" = x"${target}" ; then
2862 is_cross_compiler=no
2863 else
2864 is_cross_compiler=yes
2865 fi
2866
2867 # Find the build and target subdir names.
2868
2869 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2870 # have matching libraries, they should use host libraries: Makefile.tpl
2871 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2872 # However, they still use the build modules, because the corresponding
2873 # host modules (e.g. bison) are only built for the host when bootstrap
2874 # finishes. So:
2875 # - build_subdir is where we find build modules, and never changes.
2876 # - build_libsubdir is where we find build libraries, and can be overridden.
2877
2878 # Prefix 'build-' so this never conflicts with target_subdir.
2879 build_subdir="build-${build_noncanonical}"
2880
2881 # Check whether --with-build-libsubdir was given.
2882 if test "${with_build_libsubdir+set}" = set; then :
2883 withval=$with_build_libsubdir; build_libsubdir="$withval"
2884 else
2885 build_libsubdir="$build_subdir"
2886 fi
2887
2888 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2889 if ( test $srcdir = . && test -d gcc ) \
2890 || test -d $srcdir/../host-${host_noncanonical}; then
2891 host_subdir="host-${host_noncanonical}"
2892 else
2893 host_subdir=.
2894 fi
2895 # No prefix.
2896 target_subdir=${target_noncanonical}
2897
2898 # Be sure to cover against remnants of an in-tree build.
2899 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2900 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2901 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2902 fi
2903
2904 # Skipdirs are removed silently.
2905 skipdirs=
2906 # Noconfigdirs are removed loudly.
2907 noconfigdirs=""
2908
2909 use_gnu_ld=
2910 # Make sure we don't let GNU ld be added if we didn't want it.
2911 if test x$with_gnu_ld = xno ; then
2912 use_gnu_ld=no
2913 noconfigdirs="$noconfigdirs ld gold"
2914 fi
2915
2916 use_gnu_as=
2917 # Make sure we don't let GNU as be added if we didn't want it.
2918 if test x$with_gnu_as = xno ; then
2919 use_gnu_as=no
2920 noconfigdirs="$noconfigdirs gas"
2921 fi
2922
2923 use_included_zlib=
2924
2925 # Check whether --with-system-zlib was given.
2926 if test "${with_system_zlib+set}" = set; then :
2927 withval=$with_system_zlib;
2928 fi
2929
2930 # Make sure we don't let ZLIB be added if we didn't want it.
2931 if test x$with_system_zlib = xyes ; then
2932 use_included_zlib=no
2933 noconfigdirs="$noconfigdirs zlib"
2934 fi
2935
2936 # some tools are so dependent upon X11 that if we're not building with X,
2937 # it's not even worth trying to configure, much less build, that tool.
2938
2939 case ${with_x} in
2940 yes | "") ;; # the default value for this tree is that X11 is available
2941 no)
2942 skipdirs="${skipdirs} tk itcl libgui"
2943 # We won't be able to build gdbtk without X.
2944 enable_gdbtk=no
2945 ;;
2946 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2947 esac
2948
2949 # Some are only suitable for cross toolchains.
2950 # Remove these if host=target.
2951 cross_only="target-libgloss target-newlib target-opcodes"
2952
2953 case $is_cross_compiler in
2954 no) skipdirs="${skipdirs} ${cross_only}" ;;
2955 esac
2956
2957 # If both --with-headers and --with-libs are specified, default to
2958 # --without-newlib.
2959 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2960 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2961 if test x"${with_newlib}" = x ; then
2962 with_newlib=no
2963 fi
2964 fi
2965
2966 # Recognize --with-newlib/--without-newlib.
2967 case ${with_newlib} in
2968 no) skipdirs="${skipdirs} target-newlib" ;;
2969 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2970 esac
2971
2972 # Check whether --enable-as-accelerator-for was given.
2973 if test "${enable_as_accelerator_for+set}" = set; then :
2974 enableval=$enable_as_accelerator_for;
2975 fi
2976
2977
2978 # Check whether --enable-offload-targets was given.
2979 if test "${enable_offload_targets+set}" = set; then :
2980 enableval=$enable_offload_targets;
2981 if test x"$enable_offload_targets" = x; then
2982 as_fn_error $? "no offload targets specified" "$LINENO" 5
2983 fi
2984
2985 else
2986 enable_offload_targets=
2987 fi
2988
2989
2990 # Handle --enable-gold, --enable-ld.
2991 # --disable-gold [--enable-ld]
2992 # Build only ld. Default option.
2993 # --enable-gold [--enable-ld]
2994 # Build both gold and ld. Install gold as "ld.gold", install ld
2995 # as "ld.bfd" and "ld".
2996 # --enable-gold=default [--enable-ld]
2997 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2998 # install ld as "ld.bfd".
2999 # --enable-gold[=default] --disable-ld
3000 # Build only gold, which is then installed as both "ld.gold" and "ld".
3001 # --enable-gold --enable-ld=default
3002 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3003 # and ld.bfd).
3004 # In other words, ld is default
3005 # --enable-gold=default --enable-ld=default
3006 # Error.
3007
3008 default_ld=
3009 # Check whether --enable-gold was given.
3010 if test "${enable_gold+set}" = set; then :
3011 enableval=$enable_gold; ENABLE_GOLD=$enableval
3012 else
3013 ENABLE_GOLD=no
3014 fi
3015
3016 case "${ENABLE_GOLD}" in
3017 yes|default)
3018 # Check for ELF target.
3019 is_elf=no
3020 case "${target}" in
3021 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3022 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3023 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3024 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3025 case "${target}" in
3026 *-*-linux*aout* | *-*-linux*oldld*)
3027 ;;
3028 *)
3029 is_elf=yes
3030 ;;
3031 esac
3032 esac
3033
3034 if test "$is_elf" = "yes"; then
3035 # Check for target supported by gold.
3036 case "${target}" in
3037 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3038 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3039 configdirs="$configdirs gold"
3040 if test x${ENABLE_GOLD} = xdefault; then
3041 default_ld=gold
3042 fi
3043 ENABLE_GOLD=yes
3044 ;;
3045 esac
3046 fi
3047 ;;
3048 no)
3049 ;;
3050 *)
3051 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3052 ;;
3053 esac
3054
3055 # Check whether --enable-ld was given.
3056 if test "${enable_ld+set}" = set; then :
3057 enableval=$enable_ld; ENABLE_LD=$enableval
3058 else
3059 ENABLE_LD=yes
3060 fi
3061
3062
3063 case "${ENABLE_LD}" in
3064 default)
3065 if test x${default_ld} != x; then
3066 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3067 fi
3068 ;;
3069 yes)
3070 ;;
3071 no)
3072 if test x${ENABLE_GOLD} != xyes; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3074 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3075 fi
3076 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3077 ;;
3078 *)
3079 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3080 ;;
3081 esac
3082
3083 # PR gas/19109
3084 # Decide the default method for compressing debug sections.
3085 # Provide a configure time option to override our default.
3086 # Check whether --enable-compressed_debug_sections was given.
3087 if test "${enable_compressed_debug_sections+set}" = set; then :
3088 enableval=$enable_compressed_debug_sections;
3089 if test x"$enable_compressed_debug_sections" = xyes; then
3090 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3091 fi
3092
3093 else
3094 enable_compressed_debug_sections=
3095 fi
3096
3097
3098 # Configure extra directories which are host specific
3099
3100 case "${host}" in
3101 *-cygwin*)
3102 configdirs="$configdirs libtermcap" ;;
3103 esac
3104
3105 # A target can indicate whether a language isn't supported for some reason.
3106 # Only spaces may be used in this macro; not newlines or tabs.
3107 unsupported_languages=
3108
3109 # Remove more programs from consideration, based on the host or
3110 # target this usually means that a port of the program doesn't
3111 # exist yet.
3112
3113 case "${host}" in
3114 i[3456789]86-*-msdosdjgpp*)
3115 noconfigdirs="$noconfigdirs tcl tk itcl"
3116 ;;
3117 esac
3118
3119
3120 # Check whether --enable-libquadmath was given.
3121 if test "${enable_libquadmath+set}" = set; then :
3122 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3123 else
3124 ENABLE_LIBQUADMATH=yes
3125 fi
3126
3127 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3128 noconfigdirs="$noconfigdirs target-libquadmath"
3129 fi
3130
3131
3132 # Check whether --enable-libquadmath-support was given.
3133 if test "${enable_libquadmath_support+set}" = set; then :
3134 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3135 else
3136 ENABLE_LIBQUADMATH_SUPPORT=yes
3137 fi
3138
3139 enable_libquadmath_support=
3140 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3141 enable_libquadmath_support=no
3142 fi
3143
3144
3145 # Check whether --enable-libada was given.
3146 if test "${enable_libada+set}" = set; then :
3147 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3148 else
3149 ENABLE_LIBADA=yes
3150 fi
3151
3152 if test "${ENABLE_LIBADA}" != "yes" ; then
3153 noconfigdirs="$noconfigdirs gnattools"
3154 fi
3155
3156 # Check whether --enable-libssp was given.
3157 if test "${enable_libssp+set}" = set; then :
3158 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3159 else
3160 ENABLE_LIBSSP=yes
3161 fi
3162
3163
3164 # Check whether --enable-libstdcxx was given.
3165 if test "${enable_libstdcxx+set}" = set; then :
3166 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3167 else
3168 ENABLE_LIBSTDCXX=default
3169 fi
3170
3171 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3172 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3173 fi
3174
3175 # If this is accelerator compiler and its target is intelmic we enable
3176 # target liboffloadmic by default. If this is compiler with offloading
3177 # for intelmic we enable host liboffloadmic by default. Otherwise
3178 # liboffloadmic is disabled by default.
3179 # Check whether --enable-liboffloadmic was given.
3180 if test "${enable_liboffloadmic+set}" = set; then :
3181 enableval=$enable_liboffloadmic; case "$enableval" in
3182 no | host | target)
3183 enable_liboffloadmic=$enableval ;;
3184 *)
3185 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3186 esac
3187 else
3188 if test x"$enable_as_accelerator_for" != x; then
3189 case "${target}" in
3190 *-intelmic-* | *-intelmicemul-*)
3191 enable_liboffloadmic=target
3192 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3193 ;;
3194 *)
3195 enable_liboffloadmic=no
3196 ;;
3197 esac
3198 else
3199 case "${enable_offload_targets}" in
3200 *-intelmic-* | *-intelmicemul-*)
3201 enable_liboffloadmic=host
3202 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3203 ;;
3204 *)
3205 enable_liboffloadmic=no
3206 ;;
3207 esac
3208 fi
3209 fi
3210
3211
3212
3213 # Enable libgomp by default on hosted POSIX systems, and a few others.
3214 if test x$enable_libgomp = x ; then
3215 case "${target}" in
3216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3217 ;;
3218 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3219 ;;
3220 *-*-solaris2* | *-*-hpux11*)
3221 ;;
3222 *-*-darwin* | *-*-aix*)
3223 ;;
3224 nvptx*-*-* | amdgcn*-*-*)
3225 ;;
3226 *)
3227 noconfigdirs="$noconfigdirs target-libgomp"
3228 ;;
3229 esac
3230 fi
3231
3232 # Disable libatomic on unsupported systems.
3233 if test -d ${srcdir}/libatomic; then
3234 if test x$enable_libatomic = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3236 $as_echo_n "checking for libatomic support... " >&6; }
3237 if (srcdir=${srcdir}/libatomic; \
3238 . ${srcdir}/configure.tgt; \
3239 test -n "$UNSUPPORTED")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libatomic"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3247 fi
3248 fi
3249 fi
3250
3251 # Disable liboffloadmic on unsupported systems.
3252 if test -d ${srcdir}/liboffloadmic; then
3253 if test x$enable_liboffloadmic != xno; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3255 $as_echo_n "checking for liboffloadmic support... " >&6; }
3256 if (srcdir=${srcdir}/liboffloadmic; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-liboffloadmic"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266 fi
3267 fi
3268 fi
3269
3270 # Disable libitm on unsupported systems.
3271 if test -d ${srcdir}/libitm; then
3272 if test x$enable_libitm = x; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3274 $as_echo_n "checking for libitm support... " >&6; }
3275 if (srcdir=${srcdir}/libitm; \
3276 . ${srcdir}/configure.tgt; \
3277 test -n "$UNSUPPORTED")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-libitm"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3285 fi
3286 fi
3287 fi
3288
3289 # Disable libsanitizer on unsupported systems.
3290 if test -d ${srcdir}/libsanitizer; then
3291 if test x$enable_libsanitizer = x; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3293 $as_echo_n "checking for libsanitizer support... " >&6; }
3294 if (srcdir=${srcdir}/libsanitizer; \
3295 . ${srcdir}/configure.tgt; \
3296 test -n "$UNSUPPORTED")
3297 then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 noconfigdirs="$noconfigdirs target-libsanitizer"
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304 fi
3305 fi
3306 fi
3307
3308 # Disable libvtv on unsupported systems.
3309 if test -d ${srcdir}/libvtv; then
3310 if test x$enable_libvtv = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3312 $as_echo_n "checking for libvtv support... " >&6; }
3313 if (srcdir=${srcdir}/libvtv; \
3314 . ${srcdir}/configure.tgt; \
3315 test "$VTV_SUPPORTED" != "yes")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 noconfigdirs="$noconfigdirs target-libvtv"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3323 fi
3324 fi
3325 fi
3326
3327
3328 # Disable libhsail-rt on unsupported systems.
3329 if test -d ${srcdir}/libhsail-rt; then
3330 if test x$enable_libhsail_rt = x; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3332 $as_echo_n "checking for libhsail-rt support... " >&6; }
3333 if (srcdir=${srcdir}/libhsail-rt; \
3334 . ${srcdir}/configure.tgt; \
3335 test -n "$UNSUPPORTED")
3336 then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 unsupported_languages="$unsupported_languages brig"
3340 # This implicitly disables also target-libhsail-rt as it won't
3341 # get added to the build without BRIG FE.
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3345 fi
3346 fi
3347 fi
3348
3349
3350 # Disable libquadmath for some systems.
3351 case "${target}" in
3352 avr-*-*)
3353 noconfigdirs="$noconfigdirs target-libquadmath"
3354 ;;
3355 # libquadmath is unused on AIX and libquadmath build process use of
3356 # LD_LIBRARY_PATH can break AIX bootstrap.
3357 powerpc-*-aix* | rs6000-*-aix*)
3358 noconfigdirs="$noconfigdirs target-libquadmath"
3359 ;;
3360 esac
3361
3362 # Disable libssp for some systems.
3363 case "${target}" in
3364 avr-*-*)
3365 # No hosted I/O support.
3366 noconfigdirs="$noconfigdirs target-libssp"
3367 ;;
3368 bpf-*-*)
3369 noconfigdirs="$noconfigdirs target-libssp"
3370 ;;
3371 powerpc-*-aix* | rs6000-*-aix*)
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
3374 pru-*-*)
3375 # No hosted I/O support.
3376 noconfigdirs="$noconfigdirs target-libssp"
3377 ;;
3378 rl78-*-*)
3379 # libssp uses a misaligned load to trigger a fault, but the RL78
3380 # doesn't fault for those - instead, it gives a build-time error
3381 # for explicit misaligned loads.
3382 noconfigdirs="$noconfigdirs target-libssp"
3383 ;;
3384 visium-*-*)
3385 # No hosted I/O support.
3386 noconfigdirs="$noconfigdirs target-libssp"
3387 ;;
3388 esac
3389
3390 # Disable libstdc++-v3 for some systems.
3391 # Allow user to override this if they pass --enable-libstdc++-v3
3392 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3393 case "${target}" in
3394 *-*-vxworks*)
3395 # VxWorks uses the Dinkumware C++ library.
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 ;;
3398 amdgcn*-*-*)
3399 # Not ported/fails to build when using newlib.
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
3402 arm*-wince-pe*)
3403 # the C++ libraries don't build on top of CE's C libraries
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
3406 avr-*-*)
3407 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 ;;
3409 bpf-*-*)
3410 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411 ;;
3412 ft32-*-*)
3413 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3414 ;;
3415 esac
3416 fi
3417
3418 # Disable C++ on systems where it is known to not work.
3419 # For testing, you can override this with --enable-languages=c++.
3420 case ,${enable_languages}, in
3421 *,c++,*)
3422 ;;
3423 *)
3424 case "${target}" in
3425 bpf-*-*)
3426 unsupported_languages="$unsupported_languages c++"
3427 ;;
3428 esac
3429 ;;
3430 esac
3431
3432 # Disable Objc on systems where it is known to not work.
3433 # For testing, you can override this with --enable-languages=objc.
3434 case ,${enable_languages}, in
3435 *,objc,*)
3436 ;;
3437 *)
3438 case "${target}" in
3439 bpf-*-*)
3440 unsupported_languages="$unsupported_languages objc"
3441 ;;
3442 esac
3443 ;;
3444 esac
3445
3446 # Disable D on systems where it is known to not work.
3447 # For testing, you can override this with --enable-languages=d.
3448 case ,${enable_languages}, in
3449 *,d,*)
3450 ;;
3451 *)
3452 case "${target}" in
3453 *-*-darwin*)
3454 unsupported_languages="$unsupported_languages d"
3455 ;;
3456 bpf-*-*)
3457 unsupported_languages="$unsupported_languages d"
3458 ;;
3459 esac
3460 ;;
3461 esac
3462
3463 # Disable libphobos on unsupported systems.
3464 # For testing, you can override this with --enable-libphobos.
3465 if test -d ${srcdir}/libphobos; then
3466 if test x$enable_libphobos = x; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3468 $as_echo_n "checking for libphobos support... " >&6; }
3469 if (srcdir=${srcdir}/libphobos; \
3470 . ${srcdir}/configure.tgt; \
3471 test "$LIBPHOBOS_SUPPORTED" != "yes")
3472 then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 noconfigdirs="$noconfigdirs target-libphobos"
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3478 $as_echo "yes" >&6; }
3479 fi
3480 fi
3481 fi
3482
3483 # Disable Fortran for some systems.
3484 case "${target}" in
3485 mmix-*-*)
3486 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3487 unsupported_languages="$unsupported_languages fortran"
3488 ;;
3489 bpf-*-*)
3490 unsupported_languages="$unsupported_languages fortran"
3491 ;;
3492 esac
3493
3494 # Disable libffi for some systems.
3495 case "${target}" in
3496 powerpc-*-darwin*)
3497 ;;
3498 i[3456789]86-*-darwin*)
3499 ;;
3500 x86_64-*-darwin[912]*)
3501 ;;
3502 *-*-darwin*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-netware*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-phoenix*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 *-*-rtems*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 *-*-tpf*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 *-*-uclinux*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 *-*-vxworks*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 aarch64*-*-freebsd*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 alpha*-*-*vms*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 arm*-*-freebsd*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 arm-wince-pe)
3533 noconfigdirs="$noconfigdirs target-libffi"
3534 ;;
3535 arm*-*-symbianelf*)
3536 noconfigdirs="$noconfigdirs target-libffi"
3537 ;;
3538 bpf-*-*)
3539 noconfigdirs="$noconfigdirs target-libffi"
3540 ;;
3541 cris-*-* | crisv32-*-*)
3542 case "${target}" in
3543 *-*-linux*)
3544 ;;
3545 *) # See PR46792 regarding target-libffi.
3546 noconfigdirs="$noconfigdirs target-libffi";;
3547 esac
3548 ;;
3549 hppa*64*-*-hpux*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 hppa*-hp-hpux11*)
3553 ;;
3554 hppa*-*-hpux*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 ia64*-*-*vms*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 i[3456789]86-w64-mingw*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3562 ;;
3563 i[3456789]86-*-mingw*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3565 ;;
3566 x86_64-*-mingw*)
3567 noconfigdirs="$noconfigdirs target-libffi"
3568 ;;
3569 mmix-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3571 ;;
3572 powerpc-*-aix*)
3573 ;;
3574 rs6000-*-aix*)
3575 ;;
3576 ft32-*-*)
3577 noconfigdirs="$noconfigdirs target-libffi"
3578 ;;
3579 *-*-lynxos*)
3580 noconfigdirs="$noconfigdirs target-libffi"
3581 ;;
3582 esac
3583
3584 # Disable the go frontend on systems where it is known to not work. Please keep
3585 # this in sync with contrib/config-list.mk.
3586 case "${target}" in
3587 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3588 unsupported_languages="$unsupported_languages go"
3589 ;;
3590 esac
3591
3592 # Only allow gdbserver on some systems.
3593 if test -d ${srcdir}/gdbserver; then
3594 if test x$enable_gdbserver = x; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3596 $as_echo_n "checking for gdbserver support... " >&6; }
3597 if (srcdir=${srcdir}/gdbserver; \
3598 . ${srcdir}/configure.srv; \
3599 test -n "$UNSUPPORTED")
3600 then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3603 noconfigdirs="$noconfigdirs gdbserver"
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3606 $as_echo "yes" >&6; }
3607 fi
3608 fi
3609 fi
3610
3611 # Disable libgo for some systems where it is known to not work.
3612 # For testing, you can easily override this with --enable-libgo.
3613 if test x$enable_libgo = x; then
3614 case "${target}" in
3615 *-*-darwin*)
3616 # PR 46986
3617 noconfigdirs="$noconfigdirs target-libgo"
3618 ;;
3619 *-*-cygwin* | *-*-mingw*)
3620 noconfigdirs="$noconfigdirs target-libgo"
3621 ;;
3622 bpf-*-*)
3623 noconfigdirs="$noconfigdirs target-libgo"
3624 ;;
3625 esac
3626 fi
3627
3628 # Default libgloss CPU subdirectory.
3629 libgloss_dir="$target_cpu"
3630
3631 case "${target}" in
3632 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3633 libgloss_dir=wince
3634 ;;
3635 aarch64*-*-* )
3636 libgloss_dir=aarch64
3637 ;;
3638 arm*-*-*)
3639 libgloss_dir=arm
3640 ;;
3641 cris-*-* | crisv32-*-*)
3642 libgloss_dir=cris
3643 ;;
3644 hppa*-*-*)
3645 libgloss_dir=pa
3646 ;;
3647 i[3456789]86-*-*)
3648 libgloss_dir=i386
3649 ;;
3650 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3651 libgloss_dir=m68hc11
3652 ;;
3653 m68*-*-* | fido-*-*)
3654 libgloss_dir=m68k
3655 ;;
3656 mips*-*-*)
3657 libgloss_dir=mips
3658 ;;
3659 powerpc*-*-*)
3660 libgloss_dir=rs6000
3661 ;;
3662 pru-*-*)
3663 libgloss_dir=pru
3664 ;;
3665 sparc*-*-*)
3666 libgloss_dir=sparc
3667 ;;
3668 esac
3669
3670 # Disable newlib and libgloss for various target OSes.
3671 case "${target}" in
3672 alpha*-dec-osf*)
3673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 ;;
3675 i[3456789]86-*-linux*)
3676 # This section makes it possible to build newlib natively on linux.
3677 # If we are using a cross compiler then don't configure newlib.
3678 if test x${is_cross_compiler} != xno ; then
3679 noconfigdirs="$noconfigdirs target-newlib"
3680 fi
3681 noconfigdirs="$noconfigdirs target-libgloss"
3682 # If we are not using a cross compiler, do configure newlib.
3683 # Note however, that newlib will only be configured in this situation
3684 # if the --with-newlib option has been given, because otherwise
3685 # 'target-newlib' will appear in skipdirs.
3686 ;;
3687 i[3456789]86-*-rdos*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
3690 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 sparc-*-sunos4*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
3696 bpf-*-*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
3699 *-*-aix*)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 *-*-beos*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 *-*-chorusos)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 ;;
3708 *-*-dragonfly*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-freebsd*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-lynxos*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-mingw*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-netbsd*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 *-*-netware*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729 *-*-tpf*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
3732 *-*-uclinux*)
3733 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 ;;
3735 *-*-vxworks*)
3736 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 ;;
3738 esac
3739
3740 case "${target}" in
3741 *-*-chorusos)
3742 ;;
3743 aarch64-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3746 ;;
3747 amdgcn*-*-*)
3748 ;;
3749 arm-*-darwin*)
3750 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3751 noconfigdirs="$noconfigdirs sim target-rda"
3752 ;;
3753 powerpc-*-darwin*)
3754 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3755 noconfigdirs="$noconfigdirs sim target-rda"
3756 ;;
3757 i[3456789]86-*-darwin*)
3758 noconfigdirs="$noconfigdirs ld gprof"
3759 noconfigdirs="$noconfigdirs sim target-rda"
3760 ;;
3761 x86_64-*-darwin[912]*)
3762 noconfigdirs="$noconfigdirs ld gas gprof"
3763 noconfigdirs="$noconfigdirs sim target-rda"
3764 ;;
3765 *-*-darwin*)
3766 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3767 noconfigdirs="$noconfigdirs sim target-rda"
3768 ;;
3769 *-*-dragonfly*)
3770 ;;
3771 *-*-freebsd*)
3772 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3773 && ! test -d ${srcdir}/gmp \
3774 && test -f /usr/local/include/gmp.h; then
3775 with_gmp=/usr/local
3776 fi
3777 ;;
3778 *-*-kaos*)
3779 # Remove unsupported stuff on all kaOS configurations.
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
3782 *-*-netbsd*)
3783 ;;
3784 *-*-netware*)
3785 ;;
3786 *-*-phoenix*)
3787 noconfigdirs="$noconfigdirs target-libgloss"
3788 ;;
3789 *-*-rtems*)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3791 ;;
3792 # The tpf target doesn't support gdb yet.
3793 *-*-tpf*)
3794 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3795 ;;
3796 *-*-uclinux*)
3797 noconfigdirs="$noconfigdirs target-rda"
3798 ;;
3799 *-*-vxworks*)
3800 ;;
3801 alpha*-dec-osf*)
3802 # ld works, but does not support shared libraries.
3803 # gas doesn't generate exception information.
3804 noconfigdirs="$noconfigdirs gas ld"
3805 ;;
3806 alpha*-*-*vms*)
3807 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3808 ;;
3809 alpha*-*-*)
3810 # newlib is not 64 bit ready
3811 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3812 ;;
3813 bpf-*-*)
3814 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3815 ;;
3816 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3817 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3818 ;;
3819 arc*-*-*)
3820 noconfigdirs="$noconfigdirs sim"
3821 ;;
3822 arm-*-pe*)
3823 noconfigdirs="$noconfigdirs target-libgloss"
3824 ;;
3825 arm-*-riscix*)
3826 noconfigdirs="$noconfigdirs ld target-libgloss"
3827 ;;
3828 avr-*-*)
3829 if test x${with_avrlibc} != xno; then
3830 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3831 fi
3832 ;;
3833 c4x-*-* | tic4x-*-*)
3834 noconfigdirs="$noconfigdirs target-libgloss"
3835 ;;
3836 tic54x-*-*)
3837 noconfigdirs="$noconfigdirs target-libgloss gdb"
3838 ;;
3839 d10v-*-*)
3840 noconfigdirs="$noconfigdirs target-libgloss"
3841 ;;
3842 d30v-*-*)
3843 noconfigdirs="$noconfigdirs gdb"
3844 ;;
3845 fr30-*-elf*)
3846 noconfigdirs="$noconfigdirs gdb"
3847 ;;
3848 ft32-*-*)
3849 noconfigdirs="$noconfigdirs target-rda gprof"
3850 ;;
3851 moxie-*-*)
3852 noconfigdirs="$noconfigdirs"
3853 ;;
3854 h8300*-*-*)
3855 noconfigdirs="$noconfigdirs target-libgloss"
3856 ;;
3857 h8500-*-*)
3858 noconfigdirs="$noconfigdirs target-libgloss"
3859 ;;
3860 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3861 ;;
3862 hppa*64*-*-hpux*)
3863 noconfigdirs="$noconfigdirs gdb"
3864 ;;
3865 hppa*-*-hpux11*)
3866 noconfigdirs="$noconfigdirs gdb ld"
3867 ;;
3868 hppa*64*-*-linux*)
3869 ;;
3870 hppa*-*-linux*)
3871 ;;
3872 hppa*-*-*elf* | \
3873 hppa*-*-lites* | \
3874 hppa*-*-openbsd* | \
3875 hppa*64*-*-*)
3876 ;;
3877 hppa*-*-pro*)
3878 ;;
3879 hppa*-*-*)
3880 noconfigdirs="$noconfigdirs ld"
3881 ;;
3882 i960-*-*)
3883 noconfigdirs="$noconfigdirs gdb"
3884 ;;
3885 ia64*-*-elf*)
3886 # No gdb support yet.
3887 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3888 ;;
3889 ia64*-**-hpux*)
3890 # No ld support yet.
3891 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3892 ;;
3893 ia64*-*-*vms*)
3894 # No ld support yet.
3895 noconfigdirs="$noconfigdirs libgui itcl ld"
3896 ;;
3897 i[3456789]86-w64-mingw*)
3898 ;;
3899 i[3456789]86-*-mingw*)
3900 target_configdirs="$target_configdirs target-winsup"
3901 ;;
3902 *-*-cygwin*)
3903 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3904 noconfigdirs="$noconfigdirs target-libgloss"
3905 # always build newlib if winsup directory is present.
3906 if test -d "$srcdir/winsup/cygwin"; then
3907 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3908 elif test -d "$srcdir/newlib"; then
3909 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3910 fi
3911 ;;
3912 i[3456789]86-*-pe)
3913 noconfigdirs="$noconfigdirs target-libgloss"
3914 ;;
3915 i[3456789]86-*-sco3.2v5*)
3916 # The linker does not yet know about weak symbols in COFF,
3917 # and is not configured to handle mixed ELF and COFF.
3918 noconfigdirs="$noconfigdirs ld target-libgloss"
3919 ;;
3920 i[3456789]86-*-sco*)
3921 noconfigdirs="$noconfigdirs gprof target-libgloss"
3922 ;;
3923 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3924 noconfigdirs="$noconfigdirs target-libgloss"
3925 ;;
3926 i[3456789]86-*-sysv4*)
3927 noconfigdirs="$noconfigdirs target-libgloss"
3928 ;;
3929 i[3456789]86-*-beos*)
3930 noconfigdirs="$noconfigdirs gdb"
3931 ;;
3932 i[3456789]86-*-rdos*)
3933 noconfigdirs="$noconfigdirs gdb"
3934 ;;
3935 mmix-*-*)
3936 noconfigdirs="$noconfigdirs gdb"
3937 ;;
3938 mt-*-*)
3939 noconfigdirs="$noconfigdirs sim"
3940 ;;
3941 nfp-*-*)
3942 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3943 noconfigdirs="$noconfigdirs $target_libraries"
3944 ;;
3945 pdp11-*-*)
3946 noconfigdirs="$noconfigdirs gdb gprof"
3947 ;;
3948 powerpc-*-aix*)
3949 # copied from rs6000-*-* entry
3950 noconfigdirs="$noconfigdirs gprof"
3951 ;;
3952 powerpc*-*-winnt* | powerpc*-*-pe*)
3953 target_configdirs="$target_configdirs target-winsup"
3954 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3955 # always build newlib.
3956 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3957 ;;
3958 # This is temporary until we can link against shared libraries
3959 powerpcle-*-solaris*)
3960 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3961 ;;
3962 powerpc-*-beos*)
3963 noconfigdirs="$noconfigdirs gdb"
3964 ;;
3965 rs6000-*-lynxos*)
3966 noconfigdirs="$noconfigdirs gprof"
3967 ;;
3968 rs6000-*-aix*)
3969 noconfigdirs="$noconfigdirs gprof"
3970 ;;
3971 rs6000-*-*)
3972 noconfigdirs="$noconfigdirs gprof"
3973 ;;
3974 m68k-apollo-*)
3975 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3976 ;;
3977 microblaze*)
3978 noconfigdirs="$noconfigdirs gprof"
3979 ;;
3980 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3981 if test x$with_newlib = xyes; then
3982 noconfigdirs="$noconfigdirs gprof"
3983 fi
3984 ;;
3985 mips*-*-irix5*)
3986 noconfigdirs="$noconfigdirs gprof target-libgloss"
3987 ;;
3988 mips*-*-irix6*)
3989 noconfigdirs="$noconfigdirs gprof target-libgloss"
3990 ;;
3991 mips*-*-bsd*)
3992 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3993 ;;
3994 mips*-*-linux*)
3995 ;;
3996 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3997 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3998 noconfigdirs="$noconfigdirs ld gas gprof"
3999 ;;
4000 mips*-*-*)
4001 noconfigdirs="$noconfigdirs gprof"
4002 ;;
4003 nvptx*-*-*)
4004 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4005 ;;
4006 sh-*-*)
4007 case "${target}" in
4008 sh*-*-elf)
4009 ;;
4010 *)
4011 noconfigdirs="$noconfigdirs target-libgloss" ;;
4012 esac
4013 ;;
4014 sparc-*-sunos4*)
4015 if test x${is_cross_compiler} = xno ; then
4016 use_gnu_ld=no
4017 fi
4018 ;;
4019 tic6x-*-*)
4020 noconfigdirs="$noconfigdirs sim"
4021 ;;
4022 tilepro*-*-* | tilegx*-*-*)
4023 noconfigdirs="$noconfigdirs sim"
4024 ;;
4025 v810-*-*)
4026 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4027 ;;
4028 vax-*-*)
4029 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4030 ;;
4031 wasm32-*-*)
4032 noconfigdirs="$noconfigdirs ld"
4033 ;;
4034 esac
4035
4036 # If we aren't building newlib, then don't build libgloss, since libgloss
4037 # depends upon some newlib header files.
4038 case "${noconfigdirs}" in
4039 *target-libgloss*) ;;
4040 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4041 esac
4042
4043 # Work in distributions that contain no compiler tools, like Autoconf.
4044 host_makefile_frag=/dev/null
4045 if test -d ${srcdir}/config ; then
4046 case "${host}" in
4047 i[3456789]86-*-msdosdjgpp*)
4048 host_makefile_frag="config/mh-djgpp"
4049 ;;
4050 *-cygwin*)
4051
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4053 $as_echo_n "checking to see if cat works as expected... " >&6; }
4054 echo a >cygwin-cat-check
4055 if test `cat cygwin-cat-check` = a ; then
4056 rm cygwin-cat-check
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 $as_echo "yes" >&6; }
4059 else
4060 rm cygwin-cat-check
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 as_fn_error $? "The cat command does not ignore carriage return characters.
4064 Please either mount the build directory in binary mode or run the following
4065 commands before running any configure script:
4066 set -o igncr
4067 export SHELLOPTS
4068 " "$LINENO" 5
4069 fi
4070
4071 host_makefile_frag="config/mh-cygwin"
4072 ;;
4073 *-mingw*)
4074 host_makefile_frag="config/mh-mingw"
4075 ;;
4076 alpha*-linux*)
4077 host_makefile_frag="config/mh-alpha-linux"
4078 ;;
4079 hppa*-hp-hpux10*)
4080 host_makefile_frag="config/mh-pa-hpux10"
4081 ;;
4082 hppa*-hp-hpux*)
4083 host_makefile_frag="config/mh-pa"
4084 ;;
4085 hppa*-*)
4086 host_makefile_frag="config/mh-pa"
4087 ;;
4088 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4089 host_makefile_frag="config/mh-darwin"
4090 ;;
4091 powerpc-*-aix*)
4092 host_makefile_frag="config/mh-ppc-aix"
4093 ;;
4094 rs6000-*-aix*)
4095 host_makefile_frag="config/mh-ppc-aix"
4096 ;;
4097 esac
4098 fi
4099
4100 if test "${build}" != "${host}" ; then
4101 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4102 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4103 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4104 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4105 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4106 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4107 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4108 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4109 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4110 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4111 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4112 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4113 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4114 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4115 else
4116 AR_FOR_BUILD="\$(AR)"
4117 AS_FOR_BUILD="\$(AS)"
4118 CC_FOR_BUILD="\$(CC)"
4119 CXX_FOR_BUILD="\$(CXX)"
4120 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4121 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4122 GOC_FOR_BUILD="\$(GOC)"
4123 GDC_FOR_BUILD="\$(GDC)"
4124 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4125 LD_FOR_BUILD="\$(LD)"
4126 NM_FOR_BUILD="\$(NM)"
4127 RANLIB_FOR_BUILD="\$(RANLIB)"
4128 WINDRES_FOR_BUILD="\$(WINDRES)"
4129 WINDMC_FOR_BUILD="\$(WINDMC)"
4130 fi
4131
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_CC+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4158 fi
4159 done
4160 done
4161 IFS=$as_save_IFS
4162
4163 fi
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 $as_echo "$CC" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174
4175 fi
4176 if test -z "$ac_cv_prog_CC"; then
4177 ac_ct_CC=$CC
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179 set dummy gcc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_CC="gcc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4198 fi
4199 done
4200 done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 $as_echo "$ac_ct_CC" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218 yes:)
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4222 esac
4223 CC=$ac_ct_CC
4224 fi
4225 else
4226 CC="$ac_cv_prog_CC"
4227 fi
4228
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}cc; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_CC+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_CC="${ac_tool_prefix}cc"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252 done
4253 done
4254 IFS=$as_save_IFS
4255
4256 fi
4257 fi
4258 CC=$ac_cv_prog_CC
4259 if test -n "$CC"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 $as_echo "$CC" >&6; }
4262 else
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4265 fi
4266
4267
4268 fi
4269 fi
4270 if test -z "$CC"; then
4271 # Extract the first word of "cc", so it can be a program name with args.
4272 set dummy cc; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 ac_prog_rejected=no
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290 ac_prog_rejected=yes
4291 continue
4292 fi
4293 ac_cv_prog_CC="cc"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4296 fi
4297 done
4298 done
4299 IFS=$as_save_IFS
4300
4301 if test $ac_prog_rejected = yes; then
4302 # We found a bogon in the path, so make sure we never use it.
4303 set dummy $ac_cv_prog_CC
4304 shift
4305 if test $# != 0; then
4306 # We chose a different compiler from the bogus one.
4307 # However, it has the same basename, so the bogon will be chosen
4308 # first if we set CC to just the basename; use the full file name.
4309 shift
4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4311 fi
4312 fi
4313 fi
4314 fi
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325 fi
4326 if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
4328 for ac_prog in cl.exe
4329 do
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 CC=$ac_cv_prog_CC
4358 if test -n "$CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 $as_echo "$CC" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367 test -n "$CC" && break
4368 done
4369 fi
4370 if test -z "$CC"; then
4371 ac_ct_CC=$CC
4372 for ac_prog in cl.exe
4373 do
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -n "$ac_ct_CC"; then
4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_CC="$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402 if test -n "$ac_ct_CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404 $as_echo "$ac_ct_CC" >&6; }
4405 else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 fi
4409
4410
4411 test -n "$ac_ct_CC" && break
4412 done
4413
4414 if test "x$ac_ct_CC" = x; then
4415 CC=""
4416 else
4417 case $cross_compiling:$ac_tool_warned in
4418 yes:)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421 ac_tool_warned=yes ;;
4422 esac
4423 CC=$ac_ct_CC
4424 fi
4425 fi
4426
4427 fi
4428
4429
4430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error $? "no acceptable C compiler found in \$PATH
4433 See \`config.log' for more details" "$LINENO" 5; }
4434
4435 # Provide some information about the compiler.
4436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4437 set X $ac_compile
4438 ac_compiler=$2
4439 for ac_option in --version -v -V -qversion; do
4440 { { ac_try="$ac_compiler $ac_option >&5"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4448 ac_status=$?
4449 if test -s conftest.err; then
4450 sed '10a\
4451 ... rest of stderr output deleted ...
4452 10q' conftest.err >conftest.er1
4453 cat conftest.er1 >&5
4454 fi
4455 rm -f conftest.er1 conftest.err
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458 done
4459
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462
4463 int
4464 main ()
4465 {
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 ac_clean_files_save=$ac_clean_files
4472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4473 # Try to create an executable without -o first, disregard a.out.
4474 # It will help us diagnose broken compilers, and finding out an intuition
4475 # of exeext.
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477 $as_echo_n "checking whether the C compiler works... " >&6; }
4478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4479
4480 # The possible output files:
4481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4482
4483 ac_rmfiles=
4484 for ac_file in $ac_files
4485 do
4486 case $ac_file in
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4489 esac
4490 done
4491 rm -f $ac_rmfiles
4492
4493 if { { ac_try="$ac_link_default"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link_default") 2>&5
4501 ac_status=$?
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4507 # so that the user can short-circuit this test for compilers unknown to
4508 # Autoconf.
4509 for ac_file in $ac_files ''
4510 do
4511 test -f "$ac_file" || continue
4512 case $ac_file in
4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4514 ;;
4515 [ab].out )
4516 # We found the default executable, but exeext='' is most
4517 # certainly right.
4518 break;;
4519 *.* )
4520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4521 then :; else
4522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 fi
4524 # We set ac_cv_exeext here because the later test for it is not
4525 # safe: cross compilers may not add the suffix if given an `-o'
4526 # argument, so we may need to know it at that point already.
4527 # Even if this section looks crufty: it has the advantage of
4528 # actually working.
4529 break;;
4530 * )
4531 break;;
4532 esac
4533 done
4534 test "$ac_cv_exeext" = no && ac_cv_exeext=
4535
4536 else
4537 ac_file=''
4538 fi
4539 if test -z "$ac_file"; then :
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error 77 "C compiler cannot create executables
4548 See \`config.log' for more details" "$LINENO" 5; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 $as_echo "yes" >&6; }
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4554 $as_echo_n "checking for C compiler default output file name... " >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4556 $as_echo "$ac_file" >&6; }
4557 ac_exeext=$ac_cv_exeext
4558
4559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4560 ac_clean_files=$ac_clean_files_save
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4562 $as_echo_n "checking for suffix of executables... " >&6; }
4563 if { { ac_try="$ac_link"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
4574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4576 # work properly (i.e., refer to `conftest.exe'), while it won't with
4577 # `rm'.
4578 for ac_file in conftest.exe conftest conftest.*; do
4579 test -f "$ac_file" || continue
4580 case $ac_file in
4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583 break;;
4584 * ) break;;
4585 esac
4586 done
4587 else
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4591 See \`config.log' for more details" "$LINENO" 5; }
4592 fi
4593 rm -f conftest conftest$ac_cv_exeext
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4595 $as_echo "$ac_cv_exeext" >&6; }
4596
4597 rm -f conftest.$ac_ext
4598 EXEEXT=$ac_cv_exeext
4599 ac_exeext=$EXEEXT
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <stdio.h>
4603 int
4604 main ()
4605 {
4606 FILE *f = fopen ("conftest.out", "w");
4607 return ferror (f) || fclose (f) != 0;
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 ac_clean_files="$ac_clean_files conftest.out"
4614 # Check that the compiler produces executables we can run. If not, either
4615 # the compiler is broken, or we cross compile.
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4617 $as_echo_n "checking whether we are cross compiling... " >&6; }
4618 if test "$cross_compiling" != yes; then
4619 { { ac_try="$ac_link"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }
4630 if { ac_try='./conftest$ac_cv_exeext'
4631 { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; }; then
4641 cross_compiling=no
4642 else
4643 if test "$cross_compiling" = maybe; then
4644 cross_compiling=yes
4645 else
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot run C compiled programs.
4649 If you meant to cross compile, use \`--host'.
4650 See \`config.log' for more details" "$LINENO" 5; }
4651 fi
4652 fi
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4655 $as_echo "$cross_compiling" >&6; }
4656
4657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4658 ac_clean_files=$ac_clean_files_save
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4660 $as_echo_n "checking for suffix of object files... " >&6; }
4661 if ${ac_cv_objext+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 int
4668 main ()
4669 {
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.o conftest.obj
4676 if { { ac_try="$ac_compile"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compile") 2>&5
4684 ac_status=$?
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }; then :
4687 for ac_file in conftest.o conftest.obj conftest.*; do
4688 test -f "$ac_file" || continue;
4689 case $ac_file in
4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 break;;
4693 esac
4694 done
4695 else
4696 $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 as_fn_error $? "cannot compute suffix of object files: cannot compile
4702 See \`config.log' for more details" "$LINENO" 5; }
4703 fi
4704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4707 $as_echo "$ac_cv_objext" >&6; }
4708 OBJEXT=$ac_cv_objext
4709 ac_objext=$OBJEXT
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4712 if ${ac_cv_c_compiler_gnu+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717
4718 int
4719 main ()
4720 {
4721 #ifndef __GNUC__
4722 choke me
4723 #endif
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_compiler_gnu=yes
4731 else
4732 ac_compiler_gnu=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740 if test $ac_compiler_gnu = yes; then
4741 GCC=yes
4742 else
4743 GCC=
4744 fi
4745 ac_test_CFLAGS=${CFLAGS+set}
4746 ac_save_CFLAGS=$CFLAGS
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4749 if ${ac_cv_prog_cc_g+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758
4759 int
4760 main ()
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_g=yes
4769 else
4770 CFLAGS=""
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 int
4775 main ()
4776 {
4777
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783
4784 else
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789
4790 int
4791 main ()
4792 {
4793
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809 $as_echo "$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4817 fi
4818 else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4823 fi
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4827 if ${ac_cv_prog_cc_c89+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 ac_cv_prog_cc_c89=no
4831 ac_save_CC=$CC
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <stdarg.h>
4835 #include <stdio.h>
4836 struct stat;
4837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838 struct buf { int x; };
4839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840 static char *e (p, i)
4841 char **p;
4842 int i;
4843 {
4844 return p[i];
4845 }
4846 static char *f (char * (*g) (char **, int), char **p, ...)
4847 {
4848 char *s;
4849 va_list v;
4850 va_start (v,p);
4851 s = g (p, va_arg (v,int));
4852 va_end (v);
4853 return s;
4854 }
4855
4856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 function prototypes and stuff, but not '\xHH' hex character constants.
4858 These don't provoke an error unfortunately, instead are silently treated
4859 as 'x'. The following induces an error, until -std is added to get
4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 array size at least. It's necessary to write '\x00'==0 to get something
4862 that's true only with -std. */
4863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4864
4865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 inside strings and character constants. */
4867 #define FOO(x) 'x'
4868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4869
4870 int test (int i, double x);
4871 struct s1 {int (*f) (int a);};
4872 struct s2 {int (*f) (double a);};
4873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4874 int argc;
4875 char **argv;
4876 int
4877 main ()
4878 {
4879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4886 do
4887 CC="$ac_save_CC $ac_arg"
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_prog_cc_c89=$ac_arg
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext
4892 test "x$ac_cv_prog_cc_c89" != "xno" && break
4893 done
4894 rm -f conftest.$ac_ext
4895 CC=$ac_save_CC
4896
4897 fi
4898 # AC_CACHE_VAL
4899 case "x$ac_cv_prog_cc_c89" in
4900 x)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 $as_echo "none needed" >&6; } ;;
4903 xno)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 $as_echo "unsupported" >&6; } ;;
4906 *)
4907 CC="$CC $ac_cv_prog_cc_c89"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4910 esac
4911 if test "x$ac_cv_prog_cc_c89" != xno; then :
4912
4913 fi
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
4921 ac_ext=cpp
4922 ac_cpp='$CXXCPP $CPPFLAGS'
4923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4926 if test -z "$CXX"; then
4927 if test -n "$CCC"; then
4928 CXX=$CCC
4929 else
4930 if test -n "$ac_tool_prefix"; then
4931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4932 do
4933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_prog_CXX+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$CXX"; then
4941 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 CXX=$ac_cv_prog_CXX
4961 if test -n "$CXX"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4963 $as_echo "$CXX" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969
4970 test -n "$CXX" && break
4971 done
4972 fi
4973 if test -z "$CXX"; then
4974 ac_ct_CXX=$CXX
4975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4976 do
4977 # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -n "$ac_ct_CXX"; then
4985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_prog_ac_ct_CXX="$ac_prog"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998 done
4999 done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5005 if test -n "$ac_ct_CXX"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5007 $as_echo "$ac_ct_CXX" >&6; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013
5014 test -n "$ac_ct_CXX" && break
5015 done
5016
5017 if test "x$ac_ct_CXX" = x; then
5018 CXX="g++"
5019 else
5020 case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5025 esac
5026 CXX=$ac_ct_CXX
5027 fi
5028 fi
5029
5030 fi
5031 fi
5032 # Provide some information about the compiler.
5033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5034 set X $ac_compile
5035 ac_compiler=$2
5036 for ac_option in --version -v -V -qversion; do
5037 { { ac_try="$ac_compiler $ac_option >&5"
5038 case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043 $as_echo "$ac_try_echo"; } >&5
5044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5045 ac_status=$?
5046 if test -s conftest.err; then
5047 sed '10a\
5048 ... rest of stderr output deleted ...
5049 10q' conftest.err >conftest.er1
5050 cat conftest.er1 >&5
5051 fi
5052 rm -f conftest.er1 conftest.err
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }
5055 done
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5058 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5059 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064
5065 int
5066 main ()
5067 {
5068 #ifndef __GNUC__
5069 choke me
5070 #endif
5071
5072 ;
5073 return 0;
5074 }
5075 _ACEOF
5076 if ac_fn_cxx_try_compile "$LINENO"; then :
5077 ac_compiler_gnu=yes
5078 else
5079 ac_compiler_gnu=no
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5083
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5086 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5087 if test $ac_compiler_gnu = yes; then
5088 GXX=yes
5089 else
5090 GXX=
5091 fi
5092 ac_test_CXXFLAGS=${CXXFLAGS+set}
5093 ac_save_CXXFLAGS=$CXXFLAGS
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5095 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5096 if ${ac_cv_prog_cxx_g+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5100 ac_cxx_werror_flag=yes
5101 ac_cv_prog_cxx_g=no
5102 CXXFLAGS="-g"
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105
5106 int
5107 main ()
5108 {
5109
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 if ac_fn_cxx_try_compile "$LINENO"; then :
5115 ac_cv_prog_cxx_g=yes
5116 else
5117 CXXFLAGS=""
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120
5121 int
5122 main ()
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_cxx_try_compile "$LINENO"; then :
5130
5131 else
5132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5133 CXXFLAGS="-g"
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136
5137 int
5138 main ()
5139 {
5140
5141 ;
5142 return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_cxx_try_compile "$LINENO"; then :
5146 ac_cv_prog_cxx_g=yes
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5156 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5157 if test "$ac_test_CXXFLAGS" = set; then
5158 CXXFLAGS=$ac_save_CXXFLAGS
5159 elif test $ac_cv_prog_cxx_g = yes; then
5160 if test "$GXX" = yes; then
5161 CXXFLAGS="-g -O2"
5162 else
5163 CXXFLAGS="-g"
5164 fi
5165 else
5166 if test "$GXX" = yes; then
5167 CXXFLAGS="-O2"
5168 else
5169 CXXFLAGS=
5170 fi
5171 fi
5172 ac_ext=c
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177
5178
5179 # We must set the default linker to the linker used by gcc for the correct
5180 # operation of libtool. If LD is not defined and we are using gcc, try to
5181 # set the LD default to the ld used by gcc.
5182 if test -z "$LD"; then
5183 if test "$GCC" = yes; then
5184 case $build in
5185 *-*-mingw*)
5186 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5187 *)
5188 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5189 esac
5190 case $gcc_prog_ld in
5191 # Accept absolute paths.
5192 [\\/]* | [A-Za-z]:[\\/]*)
5193 LD="$gcc_prog_ld" ;;
5194 esac
5195 fi
5196 fi
5197
5198 # Check whether -static-libstdc++ -static-libgcc is supported.
5199 have_static_libs=no
5200 if test "$GCC" = yes; then
5201 saved_LDFLAGS="$LDFLAGS"
5202
5203 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5205 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5206 ac_ext=cpp
5207 ac_cpp='$CXXCPP $CPPFLAGS'
5208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211
5212
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215
5216 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5217 #error -static-libstdc++ not implemented
5218 #endif
5219 int main() {}
5220 _ACEOF
5221 if ac_fn_cxx_try_link "$LINENO"; then :
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }; have_static_libs=yes
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5230 ac_ext=c
5231 ac_cpp='$CPP $CPPFLAGS'
5232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235
5236
5237 LDFLAGS="$saved_LDFLAGS"
5238 fi
5239
5240
5241
5242
5243 if test -n "$ac_tool_prefix"; then
5244 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5245 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_GNATBIND+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$GNATBIND"; then
5252 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269 fi
5270 fi
5271 GNATBIND=$ac_cv_prog_GNATBIND
5272 if test -n "$GNATBIND"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5274 $as_echo "$GNATBIND" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281 fi
5282 if test -z "$ac_cv_prog_GNATBIND"; then
5283 ac_ct_GNATBIND=$GNATBIND
5284 # Extract the first word of "gnatbind", so it can be a program name with args.
5285 set dummy gnatbind; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$ac_ct_GNATBIND"; then
5292 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305 done
5306 done
5307 IFS=$as_save_IFS
5308
5309 fi
5310 fi
5311 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5312 if test -n "$ac_ct_GNATBIND"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5314 $as_echo "$ac_ct_GNATBIND" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320 if test "x$ac_ct_GNATBIND" = x; then
5321 GNATBIND="no"
5322 else
5323 case $cross_compiling:$ac_tool_warned in
5324 yes:)
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327 ac_tool_warned=yes ;;
5328 esac
5329 GNATBIND=$ac_ct_GNATBIND
5330 fi
5331 else
5332 GNATBIND="$ac_cv_prog_GNATBIND"
5333 fi
5334
5335 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5337 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_GNATMAKE+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -n "$GNATMAKE"; then
5344 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357 done
5358 done
5359 IFS=$as_save_IFS
5360
5361 fi
5362 fi
5363 GNATMAKE=$ac_cv_prog_GNATMAKE
5364 if test -n "$GNATMAKE"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5366 $as_echo "$GNATMAKE" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371
5372
5373 fi
5374 if test -z "$ac_cv_prog_GNATMAKE"; then
5375 ac_ct_GNATMAKE=$GNATMAKE
5376 # Extract the first word of "gnatmake", so it can be a program name with args.
5377 set dummy gnatmake; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$ac_ct_GNATMAKE"; then
5384 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5404 if test -n "$ac_ct_GNATMAKE"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5406 $as_echo "$ac_ct_GNATMAKE" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410 fi
5411
5412 if test "x$ac_ct_GNATMAKE" = x; then
5413 GNATMAKE="no"
5414 else
5415 case $cross_compiling:$ac_tool_warned in
5416 yes:)
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5419 ac_tool_warned=yes ;;
5420 esac
5421 GNATMAKE=$ac_ct_GNATMAKE
5422 fi
5423 else
5424 GNATMAKE="$ac_cv_prog_GNATMAKE"
5425 fi
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5428 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5429 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 cat >conftest.adb <<EOF
5433 procedure conftest is begin null; end conftest;
5434 EOF
5435 acx_cv_cc_gcc_supports_ada=no
5436 # There is a bug in old released versions of GCC which causes the
5437 # driver to exit successfully when the appropriate language module
5438 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5439 # Therefore we must check for the error message as well as an
5440 # unsuccessful exit.
5441 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5442 # given a .adb file, but produce no object file. So we must check
5443 # if an object file was really produced to guard against this.
5444 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5445 if test x"$errors" = x && test -f conftest.$ac_objext; then
5446 acx_cv_cc_gcc_supports_ada=yes
5447 fi
5448 rm -f conftest.*
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5451 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5452
5453 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5454 have_gnat=yes
5455 else
5456 have_gnat=no
5457 fi
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5460 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5461 if ${gcc_cv_prog_cmp_skip+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 echo abfoo >t1
5465 echo cdfoo >t2
5466 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5467 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5468 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5469 :
5470 else
5471 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5472 fi
5473 fi
5474 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5475 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5476 :
5477 else
5478 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5479 fi
5480 fi
5481 rm t1 t2
5482
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5485 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5486 do_compare="$gcc_cv_prog_cmp_skip"
5487
5488
5489
5490 # Check whether --enable-bootstrap was given.
5491 if test "${enable_bootstrap+set}" = set; then :
5492 enableval=$enable_bootstrap;
5493 else
5494 enable_bootstrap=default
5495 fi
5496
5497
5498 # Issue errors and warnings for invalid/strange bootstrap combinations.
5499 if test -r $srcdir/gcc/configure; then
5500 have_compiler=yes
5501 else
5502 have_compiler=no
5503 fi
5504
5505 case "$have_compiler:$host:$target:$enable_bootstrap" in
5506 *:*:*:no) ;;
5507
5508 # Default behavior. Enable bootstrap if we have a compiler
5509 # and we are in a native configuration.
5510 yes:$build:$build:default)
5511 enable_bootstrap=yes ;;
5512
5513 *:*:*:default)
5514 enable_bootstrap=no ;;
5515
5516 # We have a compiler and we are in a native configuration, bootstrap is ok
5517 yes:$build:$build:yes)
5518 ;;
5519
5520 # Other configurations, but we have a compiler. Assume the user knows
5521 # what he's doing.
5522 yes:*:*:yes)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5524 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5525 ;;
5526
5527 # No compiler: if they passed --enable-bootstrap explicitly, fail
5528 no:*:*:yes)
5529 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5530
5531 # Fail if wrong command line
5532 *)
5533 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5534 ;;
5535 esac
5536
5537 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5538 # C++98 compiler can still start the bootstrap.
5539 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5540 CXX="$CXX -std=gnu++98"
5541 fi
5542
5543 # Used for setting $lt_cv_objdir
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5545 $as_echo_n "checking for objdir... " >&6; }
5546 if ${lt_cv_objdir+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 rm -f .libs 2>/dev/null
5550 mkdir .libs 2>/dev/null
5551 if test -d .libs; then
5552 lt_cv_objdir=.libs
5553 else
5554 # MS-DOS does not allow filenames that begin with a dot.
5555 lt_cv_objdir=_libs
5556 fi
5557 rmdir .libs 2>/dev/null
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5560 $as_echo "$lt_cv_objdir" >&6; }
5561 objdir=$lt_cv_objdir
5562
5563
5564
5565
5566
5567 cat >>confdefs.h <<_ACEOF
5568 #define LT_OBJDIR "$lt_cv_objdir/"
5569 _ACEOF
5570
5571
5572
5573 # Check for GMP, MPFR and MPC
5574 gmplibs="-lmpc -lmpfr -lgmp"
5575 gmpinc=
5576 have_gmp=no
5577
5578 # Specify a location for mpc
5579 # check for this first so it ends up on the link line before mpfr.
5580
5581 # Check whether --with-mpc was given.
5582 if test "${with_mpc+set}" = set; then :
5583 withval=$with_mpc;
5584 fi
5585
5586
5587 # Check whether --with-mpc-include was given.
5588 if test "${with_mpc_include+set}" = set; then :
5589 withval=$with_mpc_include;
5590 fi
5591
5592
5593 # Check whether --with-mpc-lib was given.
5594 if test "${with_mpc_lib+set}" = set; then :
5595 withval=$with_mpc_lib;
5596 fi
5597
5598
5599 if test "x$with_mpc" != x; then
5600 gmplibs="-L$with_mpc/lib $gmplibs"
5601 gmpinc="-I$with_mpc/include $gmpinc"
5602 fi
5603 if test "x$with_mpc_include" != x; then
5604 gmpinc="-I$with_mpc_include $gmpinc"
5605 fi
5606 if test "x$with_mpc_lib" != x; then
5607 gmplibs="-L$with_mpc_lib $gmplibs"
5608 fi
5609 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5610 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5611 gmpinc='-I$$s/mpc/src '"$gmpinc"
5612 # Do not test the mpc version. Assume that it is sufficient, since
5613 # it is in the source tree, and the library has not been built yet
5614 # but it would be included on the link line in the version check below
5615 # hence making the test fail.
5616 have_gmp=yes
5617 fi
5618
5619 # Specify a location for mpfr
5620 # check for this first so it ends up on the link line before gmp.
5621
5622 # Check whether --with-mpfr-dir was given.
5623 if test "${with_mpfr_dir+set}" = set; then :
5624 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5625 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5626 fi
5627
5628
5629
5630 # Check whether --with-mpfr was given.
5631 if test "${with_mpfr+set}" = set; then :
5632 withval=$with_mpfr;
5633 fi
5634
5635
5636 # Check whether --with-mpfr-include was given.
5637 if test "${with_mpfr_include+set}" = set; then :
5638 withval=$with_mpfr_include;
5639 fi
5640
5641
5642 # Check whether --with-mpfr-lib was given.
5643 if test "${with_mpfr_lib+set}" = set; then :
5644 withval=$with_mpfr_lib;
5645 fi
5646
5647
5648 if test "x$with_mpfr" != x; then
5649 gmplibs="-L$with_mpfr/lib $gmplibs"
5650 gmpinc="-I$with_mpfr/include $gmpinc"
5651 fi
5652 if test "x$with_mpfr_include" != x; then
5653 gmpinc="-I$with_mpfr_include $gmpinc"
5654 fi
5655 if test "x$with_mpfr_lib" != x; then
5656 gmplibs="-L$with_mpfr_lib $gmplibs"
5657 fi
5658 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5659 # MPFR v3.1.0 moved the sources into a src sub-directory.
5660 if ! test -d ${srcdir}/mpfr/src; then
5661 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5662 fi
5663 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5664 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5665 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5666 # Do not test the mpfr version. Assume that it is sufficient, since
5667 # it is in the source tree, and the library has not been built yet
5668 # but it would be included on the link line in the version check below
5669 # hence making the test fail.
5670 have_gmp=yes
5671 fi
5672
5673 # Specify a location for gmp
5674
5675 # Check whether --with-gmp-dir was given.
5676 if test "${with_gmp_dir+set}" = set; then :
5677 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5678 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5679 fi
5680
5681
5682
5683 # Check whether --with-gmp was given.
5684 if test "${with_gmp+set}" = set; then :
5685 withval=$with_gmp;
5686 fi
5687
5688
5689 # Check whether --with-gmp-include was given.
5690 if test "${with_gmp_include+set}" = set; then :
5691 withval=$with_gmp_include;
5692 fi
5693
5694
5695 # Check whether --with-gmp-lib was given.
5696 if test "${with_gmp_lib+set}" = set; then :
5697 withval=$with_gmp_lib;
5698 fi
5699
5700
5701
5702 if test "x$with_gmp" != x; then
5703 gmplibs="-L$with_gmp/lib $gmplibs"
5704 gmpinc="-I$with_gmp/include $gmpinc"
5705 fi
5706 if test "x$with_gmp_include" != x; then
5707 gmpinc="-I$with_gmp_include $gmpinc"
5708 fi
5709 if test "x$with_gmp_lib" != x; then
5710 gmplibs="-L$with_gmp_lib $gmplibs"
5711 fi
5712 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5713 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5714 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5715 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5716 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5717 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5718 # Do not test the gmp version. Assume that it is sufficient, since
5719 # it is in the source tree, and the library has not been built yet
5720 # but it would be included on the link line in the version check below
5721 # hence making the test fail.
5722 have_gmp=yes
5723 fi
5724
5725 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5726 have_gmp=yes
5727 saved_CFLAGS="$CFLAGS"
5728 CFLAGS="$CFLAGS $gmpinc"
5729 # Check for the recommended and required versions of GMP.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5731 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5732
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include "gmp.h"
5736 int
5737 main ()
5738 {
5739
5740 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5741 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5742 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5743 choke me
5744 #endif
5745
5746 ;
5747 return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_c_try_compile "$LINENO"; then :
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <gmp.h>
5754 int
5755 main ()
5756 {
5757
5758 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5759 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5760 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5761 choke me
5762 #endif
5763
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_c_try_compile "$LINENO"; then :
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770 $as_echo "yes" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5773 $as_echo "buggy but acceptable" >&6; }
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }; have_gmp=no
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781
5782 # If we have GMP, check the MPFR version.
5783 if test x"$have_gmp" = xyes; then
5784 # Check for the recommended and required versions of MPFR.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5786 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 #include <gmp.h>
5790 #include <mpfr.h>
5791 int
5792 main ()
5793 {
5794
5795 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
5796 choke me
5797 #endif
5798
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <gmp.h>
5807 #include <mpfr.h>
5808 int
5809 main ()
5810 {
5811
5812 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
5813 choke me
5814 #endif
5815
5816 ;
5817 return 0;
5818 }
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"; then :
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5822 $as_echo "yes" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5825 $as_echo "buggy but acceptable" >&6; }
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }; have_gmp=no
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 fi
5834
5835 # Check for the MPC header version.
5836 if test x"$have_gmp" = xyes ; then
5837 # Check for the recommended and required versions of MPC.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5839 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <mpc.h>
5843 int
5844 main ()
5845 {
5846
5847 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5848 choke me
5849 #endif
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 #include <mpc.h>
5859 int
5860 main ()
5861 {
5862
5863 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5864 choke me
5865 #endif
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873 $as_echo "yes" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5876 $as_echo "buggy but acceptable" >&6; }
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }; have_gmp=no
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 fi
5885
5886 # Now check the MPFR library.
5887 if test x"$have_gmp" = xyes; then
5888 saved_LIBS="$LIBS"
5889 LIBS="$LIBS $gmplibs"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5891 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <mpc.h>
5895 int
5896 main ()
5897 {
5898
5899 mpfr_t n;
5900 mpfr_t x;
5901 mpc_t c;
5902 int t;
5903 mpfr_init (n);
5904 mpfr_init (x);
5905 mpfr_atan2 (n, n, x, MPFR_RNDN);
5906 mpfr_erfc (n, x, MPFR_RNDN);
5907 mpfr_subnormalize (x, t, MPFR_RNDN);
5908 mpfr_clear(n);
5909 mpfr_clear(x);
5910 mpc_init2 (c, 53);
5911 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5912 mpc_cosh (c, c, MPC_RNDNN);
5913 mpc_pow (c, c, c, MPC_RNDNN);
5914 mpc_acosh (c, c, MPC_RNDNN);
5915 mpc_clear (c);
5916
5917 ;
5918 return 0;
5919 }
5920 _ACEOF
5921 if ac_fn_c_try_link "$LINENO"; then :
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5923 $as_echo "yes" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }; have_gmp=no
5927 fi
5928 rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 LIBS="$saved_LIBS"
5931 fi
5932
5933 CFLAGS="$saved_CFLAGS"
5934
5935 # The library versions listed in the error message below should match
5936 # the HARD-minimums enforced above.
5937 if test x$have_gmp != xyes; then
5938 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
5939 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5940 their locations. Source code for these libraries can be found at
5941 their respective hosting sites as well as at
5942 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
5943 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5944 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5945 make sure that you have installed both the libraries and the header
5946 files. They may be located in separate packages." "$LINENO" 5
5947 fi
5948 fi
5949
5950 # Flags needed for both GMP, MPFR and/or MPC.
5951
5952
5953
5954
5955
5956
5957
5958 # Libraries to use for stage1 or when not bootstrapping.
5959
5960 # Check whether --with-stage1-libs was given.
5961 if test "${with_stage1_libs+set}" = set; then :
5962 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5963 stage1_libs=
5964 else
5965 stage1_libs=$withval
5966 fi
5967 else
5968 stage1_libs=
5969 fi
5970
5971
5972
5973 # Whether or not to use -static-libstdc++ and -static-libgcc. The
5974 # default is yes if gcc is being built; no otherwise. The reason for
5975 # this default is that gdb is sometimes linked against GNU Source
5976 # Highlight, which is a shared library that uses C++ exceptions. In
5977 # this case, -static-libstdc++ will cause crashes.
5978
5979 # Check whether --with-static-standard-libraries was given.
5980 if test "${with_static_standard_libraries+set}" = set; then :
5981 withval=$with_static_standard_libraries;
5982 else
5983 with_static_standard_libraries=auto
5984 fi
5985
5986 if test "$with_static_standard_libraries" = auto; then
5987 with_static_standard_libraries=$have_compiler
5988 fi
5989
5990 # Linker flags to use for stage1 or when not bootstrapping.
5991
5992 # Check whether --with-stage1-ldflags was given.
5993 if test "${with_stage1_ldflags+set}" = set; then :
5994 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5995 stage1_ldflags=
5996 else
5997 stage1_ldflags=$withval
5998 fi
5999 else
6000 stage1_ldflags=
6001 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6002 # if supported. But if the user explicitly specified the libraries to use,
6003 # trust that they are doing what they want.
6004 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6005 -a "$have_static_libs" = yes; then
6006 stage1_ldflags="-static-libstdc++ -static-libgcc"
6007 fi
6008 fi
6009
6010
6011
6012 # Libraries to use for stage2 and later builds.
6013
6014 # Check whether --with-boot-libs was given.
6015 if test "${with_boot_libs+set}" = set; then :
6016 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6017 poststage1_libs=
6018 else
6019 poststage1_libs=$withval
6020 fi
6021 else
6022 poststage1_libs=
6023 fi
6024
6025
6026
6027 # Linker flags to use for stage2 and later builds.
6028
6029 # Check whether --with-boot-ldflags was given.
6030 if test "${with_boot_ldflags+set}" = set; then :
6031 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6032 poststage1_ldflags=
6033 else
6034 poststage1_ldflags=$withval
6035 fi
6036 else
6037 poststage1_ldflags=
6038 # In stages 2 and 3, default to linking libstdc++ and libgcc
6039 # statically. But if the user explicitly specified the libraries to
6040 # use, trust that they are doing what they want.
6041 if test "$poststage1_libs" = ""; then
6042 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6043 fi
6044 fi
6045
6046
6047
6048 # GCC GRAPHITE dependency isl.
6049 # Basic setup is inlined here, actual checks are in config/isl.m4
6050
6051
6052 # Check whether --with-isl was given.
6053 if test "${with_isl+set}" = set; then :
6054 withval=$with_isl;
6055 fi
6056
6057
6058 # Treat --without-isl as a request to disable
6059 # GRAPHITE support and skip all following checks.
6060 if test "x$with_isl" != "xno"; then
6061 # Check for isl
6062
6063
6064 # Check whether --with-isl-include was given.
6065 if test "${with_isl_include+set}" = set; then :
6066 withval=$with_isl_include;
6067 fi
6068
6069
6070 # Check whether --with-isl-lib was given.
6071 if test "${with_isl_lib+set}" = set; then :
6072 withval=$with_isl_lib;
6073 fi
6074
6075
6076 # Check whether --enable-isl-version-check was given.
6077 if test "${enable_isl_version_check+set}" = set; then :
6078 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6079 else
6080 ENABLE_ISL_CHECK=yes
6081 fi
6082
6083
6084 # Initialize isllibs and islinc.
6085 case $with_isl in
6086 no)
6087 isllibs=
6088 islinc=
6089 ;;
6090 "" | yes)
6091 ;;
6092 *)
6093 isllibs="-L$with_isl/lib"
6094 islinc="-I$with_isl/include"
6095 ;;
6096 esac
6097 if test "x${with_isl_include}" != x ; then
6098 islinc="-I$with_isl_include"
6099 fi
6100 if test "x${with_isl_lib}" != x; then
6101 isllibs="-L$with_isl_lib"
6102 fi
6103 if test "x${islinc}" = x && test "x${isllibs}" = x \
6104 && test -d ${srcdir}/isl; then
6105 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6106 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6107 ENABLE_ISL_CHECK=no
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6109 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6110 fi
6111
6112 isllibs="${isllibs} -lisl"
6113
6114
6115
6116 if test "${ENABLE_ISL_CHECK}" = yes ; then
6117 _isl_saved_CFLAGS=$CFLAGS
6118 _isl_saved_LDFLAGS=$LDFLAGS
6119 _isl_saved_LIBS=$LIBS
6120
6121 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6122 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6123 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6126 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 #include <isl/schedule.h>
6130 int
6131 main ()
6132 {
6133 isl_options_set_schedule_serialize_sccs (NULL, 0);
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_link "$LINENO"; then :
6139 gcc_cv_isl=yes
6140 else
6141 gcc_cv_isl=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6146 $as_echo "$gcc_cv_isl" >&6; }
6147
6148 if test "${gcc_cv_isl}" = no ; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6150 $as_echo "required isl version is 0.15 or later" >&6; }
6151 fi
6152
6153 CFLAGS=$_isl_saved_CFLAGS
6154 LDFLAGS=$_isl_saved_LDFLAGS
6155 LIBS=$_isl_saved_LIBS
6156 fi
6157
6158
6159
6160
6161
6162
6163 if test "x${with_isl}" = xno; then
6164 graphite_requested=no
6165 elif test "x${with_isl}" != x \
6166 || test "x${with_isl_include}" != x \
6167 || test "x${with_isl_lib}" != x ; then
6168 graphite_requested=yes
6169 else
6170 graphite_requested=no
6171 fi
6172
6173
6174
6175 if test "${gcc_cv_isl}" = no ; then
6176 isllibs=
6177 islinc=
6178 fi
6179
6180 if test "${graphite_requested}" = yes \
6181 && test "x${isllibs}" = x \
6182 && test "x${islinc}" = x ; then
6183
6184 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6185 fi
6186
6187
6188 fi
6189
6190 # If the isl check failed, disable builds of in-tree variant of isl
6191 if test "x$with_isl" = xno ||
6192 test "x$gcc_cv_isl" = xno; then
6193 noconfigdirs="$noconfigdirs isl"
6194 islinc=
6195 fi
6196
6197
6198
6199
6200 # Check for LTO support.
6201 # Check whether --enable-lto was given.
6202 if test "${enable_lto+set}" = set; then :
6203 enableval=$enable_lto; enable_lto=$enableval
6204 else
6205 enable_lto=yes; default_enable_lto=yes
6206 fi
6207
6208
6209
6210
6211
6212 target_elf=no
6213 case $target in
6214 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6215 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6216 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6217 nvptx-*-none)
6218 target_elf=no
6219 ;;
6220 *)
6221 target_elf=yes
6222 ;;
6223 esac
6224
6225 if test $target_elf = yes; then :
6226 # ELF platforms build the lto-plugin always.
6227 case $target in
6228 m68010-*)
6229 build_lto_plugin=no;;
6230 *)
6231 build_lto_plugin=yes;;
6232 esac
6233
6234 else
6235 if test x"$default_enable_lto" = x"yes" ; then
6236 case $target in
6237 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6238 # On other non-ELF platforms, LTO has yet to be validated.
6239 *) enable_lto=no ;;
6240 esac
6241 else
6242 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6243 # It would also be nice to check the binutils support, but we don't
6244 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6245 # warn during gcc/ subconfigure; unless you're bootstrapping with
6246 # -flto it won't be needed until after installation anyway.
6247 case $target in
6248 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6249 *) if test x"$enable_lto" = x"yes"; then
6250 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6251 fi
6252 ;;
6253 esac
6254 fi
6255 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6256 # Build it unless LTO was explicitly disabled.
6257 case $target in
6258 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6259 *) ;;
6260 esac
6261
6262 fi
6263
6264
6265 # Check whether --enable-linker-plugin-configure-flags was given.
6266 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6267 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6268 else
6269 extra_linker_plugin_configure_flags=
6270 fi
6271
6272
6273 # Check whether --enable-linker-plugin-flags was given.
6274 if test "${enable_linker_plugin_flags+set}" = set; then :
6275 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6276 else
6277 extra_linker_plugin_flags=
6278 fi
6279
6280
6281
6282 # Enable --enable-host-shared.
6283 # Checked early to determine whether jit is an 'all' language
6284 # Check whether --enable-host-shared was given.
6285 if test "${enable_host_shared+set}" = set; then :
6286 enableval=$enable_host_shared; host_shared=$enableval
6287 else
6288 host_shared=no
6289 fi
6290
6291
6292
6293 # By default, C and C++ are the only stage 1 languages.
6294 stage1_languages=,c,
6295
6296 # Target libraries that we bootstrap.
6297 bootstrap_target_libs=,target-libgcc,
6298
6299 # Figure out what language subdirectories are present.
6300 # Look if the user specified --enable-languages="..."; if not, use
6301 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6302 # go away some day.
6303 # NB: embedded tabs in this IF block -- do not untabify
6304 if test -d ${srcdir}/gcc; then
6305 if test x"${enable_languages+set}" != xset; then
6306 if test x"${LANGUAGES+set}" = xset; then
6307 enable_languages="${LANGUAGES}"
6308 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6309 else
6310 enable_languages=default
6311 fi
6312 else
6313 if test x"${enable_languages}" = x ||
6314 test x"${enable_languages}" = xyes;
6315 then
6316 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6317 exit 1
6318 fi
6319 fi
6320 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6321
6322 # 'f95' is the old name for the 'fortran' language. We issue a warning
6323 # and make the substitution.
6324 case ,${enable_languages}, in
6325 *,f95,*)
6326 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6327 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6328 ;;
6329 esac
6330
6331 # If bootstrapping, C++ must be enabled.
6332 case ",$enable_languages,:$enable_bootstrap" in
6333 *,c++,*:*) ;;
6334 *:yes)
6335 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6336 enable_languages="${enable_languages},c++"
6337 else
6338 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6339 fi
6340 ;;
6341 esac
6342
6343 # First scan to see if an enabled language requires some other language.
6344 # We assume that a given config-lang.in will list all the language
6345 # front ends it requires, even if some are required indirectly.
6346 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6347 case ${lang_frag} in
6348 ..) ;;
6349 # The odd quoting in the next line works around
6350 # an apparent bug in bash 1.12 on linux.
6351 ${srcdir}/gcc/[*]/config-lang.in) ;;
6352 *)
6353 # From the config-lang.in, get $language, $lang_requires, and
6354 # $lang_requires_boot_languages.
6355 language=
6356 lang_requires=
6357 lang_requires_boot_languages=
6358 # set srcdir during sourcing lang_frag to the gcc dir.
6359 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6360 # polutes this shell
6361 saved_srcdir=${srcdir}
6362 srcdir=${srcdir}/gcc . ${lang_frag}
6363 srcdir=${saved_srcdir}
6364 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6365 case ,${enable_languages}, in
6366 *,$other,*) ;;
6367 *,default,*) ;;
6368 *,all,*) ;;
6369 *,$language,*)
6370 echo " \`$other' language required by \`$language'; enabling" 1>&2
6371 enable_languages="${enable_languages},${other}"
6372 ;;
6373 esac
6374 done
6375 for other in ${lang_requires_boot_languages} ; do
6376 if test "$other" != "c"; then
6377 case ,${enable_stage1_languages}, in
6378 *,$other,*) ;;
6379 *,default,*) ;;
6380 *,all,*) ;;
6381 *)
6382 case ,${enable_languages}, in
6383 *,$language,*)
6384 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6385 enable_stage1_languages="$enable_stage1_languages,${other}"
6386 ;;
6387 esac
6388 ;;
6389 esac
6390 fi
6391 done
6392 ;;
6393 esac
6394 done
6395
6396 new_enable_languages=,c,
6397
6398 # If LTO is enabled, add the LTO front end.
6399 if test "$enable_lto" = "yes" ; then
6400 case ,${enable_languages}, in
6401 *,lto,*) ;;
6402 *) enable_languages="${enable_languages},lto" ;;
6403 esac
6404 if test "${build_lto_plugin}" = "yes" ; then
6405 configdirs="$configdirs lto-plugin"
6406 fi
6407 fi
6408
6409 # If we're building an offloading compiler, add the LTO front end.
6410 if test x"$enable_as_accelerator_for" != x ; then
6411 case ,${enable_languages}, in
6412 *,lto,*) ;;
6413 *) enable_languages="${enable_languages},lto" ;;
6414 esac
6415 fi
6416
6417 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6418 potential_languages=,c,
6419
6420 enabled_target_libs=
6421 disabled_target_libs=
6422
6423 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6424 case ${lang_frag} in
6425 ..) ;;
6426 # The odd quoting in the next line works around
6427 # an apparent bug in bash 1.12 on linux.
6428 ${srcdir}/gcc/[*]/config-lang.in) ;;
6429 *)
6430 # From the config-lang.in, get $language, $target_libs,
6431 # $lang_dirs, $boot_language, and $build_by_default
6432 language=
6433 target_libs=
6434 lang_dirs=
6435 subdir_requires=
6436 boot_language=no
6437 build_by_default=yes
6438 # set srcdir during sourcing. See above about save & restore
6439 saved_srcdir=${srcdir}
6440 srcdir=${srcdir}/gcc . ${lang_frag}
6441 srcdir=${saved_srcdir}
6442 if test x${language} = x; then
6443 echo "${lang_frag} doesn't set \$language." 1>&2
6444 exit 1
6445 fi
6446
6447 if test "$language" = "c++"; then
6448 boot_language=yes
6449 fi
6450
6451 add_this_lang=no
6452 # C is always enabled, so no need to add it again
6453 if test "$language" != "c"; then
6454 case ,${enable_languages}, in
6455 *,${language},*)
6456 # Language was explicitly selected; include it
6457 add_this_lang=yes
6458 ;;
6459 *,all,*)
6460 # All languages are enabled
6461 add_this_lang=all
6462 ;;
6463 *,default,*)
6464 # 'default' was selected, select it if it is a default language
6465 add_this_lang=${build_by_default}
6466 ;;
6467 esac
6468 fi
6469
6470 # Disable languages that need other directories if these aren't available.
6471 for i in $subdir_requires; do
6472 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6473 case ${add_this_lang} in
6474 yes)
6475 # Specifically requested language; tell them.
6476 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6477 ;;
6478 all)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6480 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6481 add_this_lang=unsupported
6482 ;;
6483 *)
6484 # Silently disable.
6485 add_this_lang=unsupported
6486 ;;
6487 esac
6488 done
6489
6490 # Disable Ada if no preexisting GNAT is available.
6491 case ${add_this_lang}:${language}:${have_gnat} in
6492 yes:ada:no)
6493 # Specifically requested language; tell them.
6494 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6495 ;;
6496 all:ada:no)
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6498 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6499 add_this_lang=unsupported
6500 ;;
6501 *:ada:no)
6502 # Silently disable.
6503 add_this_lang=unsupported
6504 ;;
6505 esac
6506
6507 # Disable jit if -enable-host-shared not specified
6508 case ${add_this_lang}:${language}:${host_shared} in
6509 yes:jit:no)
6510 # PR jit/64780: explicitly specify --enable-host-shared
6511 as_fn_error $? "
6512 Enabling language \"jit\" requires --enable-host-shared.
6513
6514 --enable-host-shared typically slows the rest of the compiler down by
6515 a few %, so you must explicitly enable it.
6516
6517 If you want to build both the jit and the regular compiler, it is often
6518 best to do this via two separate configure/builds, in separate
6519 directories, to avoid imposing the performance cost of
6520 --enable-host-shared on the regular compiler." "$LINENO" 5
6521 ;;
6522 all:jit:no)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6524 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6525 add_this_lang=unsupported
6526 ;;
6527 *:jit:no)
6528 # Silently disable.
6529 add_this_lang=unsupported
6530 ;;
6531 esac
6532
6533 # Disable a language that is unsupported by the target.
6534 case "${add_this_lang}: $unsupported_languages " in
6535 no:*) ;;
6536 unsupported:*) ;;
6537 *:*" $language "*)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6539 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6540 add_this_lang=unsupported
6541 ;;
6542 esac
6543
6544 case $add_this_lang in
6545 unsupported)
6546 # Remove language-dependent dirs.
6547 disabled_target_libs="$disabled_target_libs $target_libs"
6548 noconfigdirs="$noconfigdirs $lang_dirs"
6549 ;;
6550 no)
6551 # Remove language-dependent dirs; still show language as supported.
6552 disabled_target_libs="$disabled_target_libs $target_libs"
6553 noconfigdirs="$noconfigdirs $lang_dirs"
6554 potential_languages="${potential_languages}${language},"
6555 ;;
6556 all|yes)
6557 new_enable_languages="${new_enable_languages}${language},"
6558 potential_languages="${potential_languages}${language},"
6559 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6560 enabled_target_libs="$enabled_target_libs $target_libs"
6561 case "${boot_language}:,$enable_stage1_languages," in
6562 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6563 # Add to (comma-separated) list of stage 1 languages.
6564 case ",$stage1_languages," in
6565 *,$language,* | ,yes, | ,all,) ;;
6566 *) stage1_languages="${stage1_languages}${language}," ;;
6567 esac
6568 # We need to bootstrap any supporting libraries.
6569 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6570 ;;
6571 esac
6572 ;;
6573 esac
6574 ;;
6575 esac
6576 done
6577
6578 # Add target libraries which are only needed for disabled languages
6579 # to noconfigdirs.
6580 if test -n "$disabled_target_libs"; then
6581 for dir in $disabled_target_libs; do
6582 case " $enabled_target_libs " in
6583 *" ${dir} "*) ;;
6584 *) noconfigdirs="$noconfigdirs $dir" ;;
6585 esac
6586 done
6587 fi
6588
6589 # Check whether --enable-stage1-languages was given.
6590 if test "${enable_stage1_languages+set}" = set; then :
6591 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6592 ,no,|,,)
6593 # Set it to something that will have no effect in the loop below
6594 enable_stage1_languages=c ;;
6595 ,yes,)
6596 enable_stage1_languages=`echo $new_enable_languages | \
6597 sed -e "s/^,//" -e "s/,$//" ` ;;
6598 *,all,*)
6599 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6600 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6601 esac
6602
6603 # Add "good" languages from enable_stage1_languages to stage1_languages,
6604 # while "bad" languages go in missing_languages. Leave no duplicates.
6605 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6606 case $potential_languages in
6607 *,$i,*)
6608 case $stage1_languages in
6609 *,$i,*) ;;
6610 *) stage1_languages="$stage1_languages$i," ;;
6611 esac ;;
6612 *)
6613 case $missing_languages in
6614 *,$i,*) ;;
6615 *) missing_languages="$missing_languages$i," ;;
6616 esac ;;
6617 esac
6618 done
6619 fi
6620
6621
6622 # Remove leading/trailing commas that were added for simplicity
6623 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6624 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6625 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6626 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6627
6628 if test "x$missing_languages" != x; then
6629 as_fn_error $? "
6630 The following requested languages could not be built: ${missing_languages}
6631 Supported languages are: ${potential_languages}" "$LINENO" 5
6632 fi
6633 if test "x$new_enable_languages" != "x$enable_languages"; then
6634 echo The following languages will be built: ${new_enable_languages}
6635 enable_languages="$new_enable_languages"
6636 fi
6637
6638
6639 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6640 fi
6641
6642 # Handle --disable-<component> generically.
6643 for dir in $configdirs $build_configdirs $target_configdirs ; do
6644 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6645 varname=`echo $dirname | sed -e s/+/_/g`
6646 if eval test x\${enable_${varname}} "=" xno ; then
6647 noconfigdirs="$noconfigdirs $dir"
6648 fi
6649 done
6650
6651 # Check for Boehm's garbage collector
6652 # Check whether --enable-objc-gc was given.
6653 if test "${enable_objc_gc+set}" = set; then :
6654 enableval=$enable_objc_gc;
6655 fi
6656
6657
6658 # Check whether --with-target-bdw-gc was given.
6659 if test "${with_target_bdw_gc+set}" = set; then :
6660 withval=$with_target_bdw_gc;
6661 fi
6662
6663
6664 # Check whether --with-target-bdw-gc-include was given.
6665 if test "${with_target_bdw_gc_include+set}" = set; then :
6666 withval=$with_target_bdw_gc_include;
6667 fi
6668
6669
6670 # Check whether --with-target-bdw-gc-lib was given.
6671 if test "${with_target_bdw_gc_lib+set}" = set; then :
6672 withval=$with_target_bdw_gc_lib;
6673 fi
6674
6675
6676 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6678 $as_echo_n "checking for bdw garbage collector... " >&6; }
6679 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6681 $as_echo "using bdw-gc in default locations" >&6; }
6682 else
6683 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6684 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6685 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6686 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6689 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6690 fi
6691 fi
6692 esac
6693
6694 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6695 case ,${enable_languages}, in
6696 *,c++,*)
6697 # Disable libitm, libsanitizer if we're not building libstdc++
6698 case "${noconfigdirs}" in
6699 *target-libstdc++-v3*)
6700 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6701 ;;
6702 *) ;;
6703 esac
6704 ;;
6705 *)
6706 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6707 ;;
6708 esac
6709
6710 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6711 # $build_configdirs and $target_configdirs.
6712 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6713
6714 notsupp=""
6715 for dir in . $skipdirs $noconfigdirs ; do
6716 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6717 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6718 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6719 if test -r $srcdir/$dirname/configure ; then
6720 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6721 true
6722 else
6723 notsupp="$notsupp $dir"
6724 fi
6725 fi
6726 fi
6727 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6728 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6729 if test -r $srcdir/$dirname/configure ; then
6730 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6731 true
6732 else
6733 notsupp="$notsupp $dir"
6734 fi
6735 fi
6736 fi
6737 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6738 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6739 if test -r $srcdir/$dirname/configure ; then
6740 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6741 true
6742 else
6743 notsupp="$notsupp $dir"
6744 fi
6745 fi
6746 fi
6747 done
6748
6749 # Quietly strip out all directories which aren't configurable in this tree.
6750 # This relies on all configurable subdirectories being autoconfiscated, which
6751 # is now the case.
6752 build_configdirs_all="$build_configdirs"
6753 build_configdirs=
6754 for i in ${build_configdirs_all} ; do
6755 j=`echo $i | sed -e s/build-//g`
6756 if test -f ${srcdir}/$j/configure ; then
6757 build_configdirs="${build_configdirs} $i"
6758 fi
6759 done
6760
6761 configdirs_all="$configdirs"
6762 configdirs=
6763 for i in ${configdirs_all} ; do
6764 if test -f ${srcdir}/$i/configure ; then
6765 configdirs="${configdirs} $i"
6766 fi
6767 done
6768
6769 target_configdirs_all="$target_configdirs"
6770 target_configdirs=
6771 for i in ${target_configdirs_all} ; do
6772 j=`echo $i | sed -e s/target-//g`
6773 if test -f ${srcdir}/$j/configure ; then
6774 target_configdirs="${target_configdirs} $i"
6775 fi
6776 done
6777
6778 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6779 # so we have to add it after the preceding checks.
6780 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6781 then
6782 case " $configdirs " in
6783 *" libiberty "*)
6784 # If we can build libiberty, we can also build libiberty-linker-plugin.
6785 configdirs="$configdirs libiberty-linker-plugin"
6786 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6787 --with-libiberty=../libiberty-linker-plugin";;
6788 *)
6789 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6790 esac
6791 fi
6792
6793 # Sometimes we have special requirements for the host libiberty.
6794 extra_host_libiberty_configure_flags=
6795 extra_host_zlib_configure_flags=
6796 case " $configdirs " in
6797 *" lto-plugin "* | *" libcc1 "*)
6798 # When these are to be built as shared libraries, the same applies to
6799 # libiberty.
6800 extra_host_libiberty_configure_flags=--enable-shared
6801 ;;
6802 *" bfd "*)
6803 # When bfd is to be built as a shared library, the same applies to
6804 # zlib.
6805 if test "$enable_shared" = "yes"; then
6806 extra_host_zlib_configure_flags=--enable-host-shared
6807 fi
6808 ;;
6809 esac
6810
6811
6812
6813 # Produce a warning message for the subdirs we can't configure.
6814 # This isn't especially interesting in the Cygnus tree, but in the individual
6815 # FSF releases, it's important to let people know when their machine isn't
6816 # supported by the one or two programs in a package.
6817
6818 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6819 # If $appdirs is non-empty, at least one of those directories must still
6820 # be configured, or we error out. (E.g., if the gas release supports a
6821 # specified target in some subdirs but not the gas subdir, we shouldn't
6822 # pretend that all is well.)
6823 if test -n "$appdirs" ; then
6824 for dir in $appdirs ; do
6825 if test -r $dir/Makefile.in ; then
6826 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6827 appdirs=""
6828 break
6829 fi
6830 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6831 appdirs=""
6832 break
6833 fi
6834 fi
6835 done
6836 if test -n "$appdirs" ; then
6837 echo "*** This configuration is not supported by this package." 1>&2
6838 exit 1
6839 fi
6840 fi
6841 # Okay, some application will build, or we don't care to check. Still
6842 # notify of subdirs not getting built.
6843 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6844 echo " ${notsupp}" 1>&2
6845 echo " (Any other directories should still work fine.)" 1>&2
6846 fi
6847
6848 case "$host" in
6849 *msdosdjgpp*)
6850 enable_gdbtk=no ;;
6851 esac
6852
6853 # To find our prefix, in gcc_cv_tool_prefix.
6854
6855 # The user is always right.
6856 if test "${PATH_SEPARATOR+set}" != set; then
6857 echo "#! /bin/sh" >conf$$.sh
6858 echo "exit 0" >>conf$$.sh
6859 chmod +x conf$$.sh
6860 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6861 PATH_SEPARATOR=';'
6862 else
6863 PATH_SEPARATOR=:
6864 fi
6865 rm -f conf$$.sh
6866 fi
6867
6868
6869 get_gcc_base_ver="cat"
6870
6871 # Check whether --with-gcc-major-version-only was given.
6872 if test "${with_gcc_major_version_only+set}" = set; then :
6873 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6874 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6875 fi
6876
6877 fi
6878
6879
6880
6881
6882
6883
6884 if test "x$exec_prefix" = xNONE; then
6885 if test "x$prefix" = xNONE; then
6886 gcc_cv_tool_prefix=$ac_default_prefix
6887 else
6888 gcc_cv_tool_prefix=$prefix
6889 fi
6890 else
6891 gcc_cv_tool_prefix=$exec_prefix
6892 fi
6893
6894 # If there is no compiler in the tree, use the PATH only. In any
6895 # case, if there is no compiler in the tree nobody should use
6896 # AS_FOR_TARGET and LD_FOR_TARGET.
6897 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6898 if test x$with_gcc_major_version_only = xyes ; then
6899 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6900 else
6901 gcc_version=`cat $srcdir/gcc/BASE-VER`
6902 fi
6903 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6904 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6905 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6906 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6907 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6908 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6909 else
6910 gcc_cv_tool_dirs=
6911 fi
6912
6913 if test x$build = x$target && test -n "$md_exec_prefix"; then
6914 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6915 fi
6916
6917
6918
6919 copy_dirs=
6920
6921
6922 # Check whether --with-build-sysroot was given.
6923 if test "${with_build_sysroot+set}" = set; then :
6924 withval=$with_build_sysroot; if test x"$withval" != x ; then
6925 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6926 fi
6927 else
6928 SYSROOT_CFLAGS_FOR_TARGET=
6929 fi
6930
6931
6932
6933
6934 # Check whether --with-debug-prefix-map was given.
6935 if test "${with_debug_prefix_map+set}" = set; then :
6936 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6937 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6938 for debug_map in $withval; do
6939 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6940 done
6941 fi
6942 else
6943 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6944 fi
6945
6946
6947
6948 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6949 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6950 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6951 # We want to ensure that TARGET libraries (which we know are built with
6952 # gcc) are built with "-O2 -g", so include those options when setting
6953 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6954 if test "x$CFLAGS_FOR_TARGET" = x; then
6955 if test "x${is_cross_compiler}" = xyes; then
6956 CFLAGS_FOR_TARGET="-g -O2"
6957 else
6958 CFLAGS_FOR_TARGET=$CFLAGS
6959 case " $CFLAGS " in
6960 *" -O2 "*) ;;
6961 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6962 esac
6963 case " $CFLAGS " in
6964 *" -g "* | *" -g3 "*) ;;
6965 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6966 esac
6967 fi
6968 fi
6969
6970
6971 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6972 if test "x${is_cross_compiler}" = xyes; then
6973 CXXFLAGS_FOR_TARGET="-g -O2"
6974 else
6975 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6976 case " $CXXFLAGS " in
6977 *" -O2 "*) ;;
6978 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6979 esac
6980 case " $CXXFLAGS " in
6981 *" -g "* | *" -g3 "*) ;;
6982 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6983 esac
6984 fi
6985 fi
6986
6987
6988
6989
6990 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6991 # the named directory are copied to $(tooldir)/sys-include.
6992 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6993 if test x${is_cross_compiler} = xno ; then
6994 echo 1>&2 '***' --with-headers is only supported when cross compiling
6995 exit 1
6996 fi
6997 if test x"${with_headers}" != xyes ; then
6998 x=${gcc_cv_tool_prefix}
6999 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7000 fi
7001 fi
7002
7003 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7004 # the name directories are copied to $(tooldir)/lib. Multiple directories
7005 # are permitted.
7006 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7007 if test x${is_cross_compiler} = xno ; then
7008 echo 1>&2 '***' --with-libs is only supported when cross compiling
7009 exit 1
7010 fi
7011 if test x"${with_libs}" != xyes ; then
7012 # Copy the libraries in reverse order, so that files in the first named
7013 # library override files in subsequent libraries.
7014 x=${gcc_cv_tool_prefix}
7015 for l in ${with_libs}; do
7016 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7017 done
7018 fi
7019 fi
7020
7021 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7022 #
7023 # This is done by determining whether or not the appropriate directory
7024 # is available, and by checking whether or not specific configurations
7025 # have requested that this magic not happen.
7026 #
7027 # The command line options always override the explicit settings in
7028 # configure.ac, and the settings in configure.ac override this magic.
7029 #
7030 # If the default for a toolchain is to use GNU as and ld, and you don't
7031 # want to do that, then you should use the --without-gnu-as and
7032 # --without-gnu-ld options for the configure script. Similarly, if
7033 # the default is to use the included zlib and you don't want to do that,
7034 # you should use the --with-system-zlib option for the configure script.
7035
7036 if test x${use_gnu_as} = x &&
7037 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7038 with_gnu_as=yes
7039 extra_host_args="$extra_host_args --with-gnu-as"
7040 fi
7041
7042 if test x${use_gnu_ld} = x &&
7043 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7044 with_gnu_ld=yes
7045 extra_host_args="$extra_host_args --with-gnu-ld"
7046 fi
7047
7048 if test x${use_included_zlib} = x &&
7049 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7050 :
7051 else
7052 with_system_zlib=yes
7053 extra_host_args="$extra_host_args --with-system-zlib"
7054 fi
7055
7056 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7057 # can detect this case.
7058
7059 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7060 with_newlib=yes
7061 extra_host_args="$extra_host_args --with-newlib"
7062 fi
7063
7064 # Handle ${copy_dirs}
7065 set fnord ${copy_dirs}
7066 shift
7067 while test $# != 0 ; do
7068 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7069 :
7070 else
7071 echo Copying $1 to $2
7072
7073 # Use the install script to create the directory and all required
7074 # parent directories.
7075 if test -d $2 ; then
7076 :
7077 else
7078 echo >config.temp
7079 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7080 fi
7081
7082 # Copy the directory, assuming we have tar.
7083 # FIXME: Should we use B in the second tar? Not all systems support it.
7084 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7085
7086 # It is the responsibility of the user to correctly adjust all
7087 # symlinks. If somebody can figure out how to handle them correctly
7088 # here, feel free to add the code.
7089
7090 echo $1 > $2/COPIED
7091 fi
7092 shift; shift
7093 done
7094
7095 # Determine a target-dependent exec_prefix that the installed
7096 # gcc will search in. Keep this list sorted by triplet, with
7097 # the *-*-osname triplets last.
7098 md_exec_prefix=
7099 case "${target}" in
7100 i[34567]86-pc-msdosdjgpp*)
7101 md_exec_prefix=/dev/env/DJDIR/bin
7102 ;;
7103 *-*-hpux* | \
7104 *-*-nto-qnx* | \
7105 *-*-solaris2*)
7106 md_exec_prefix=/usr/ccs/bin
7107 ;;
7108 esac
7109
7110 extra_arflags_for_target=
7111 extra_nmflags_for_target=
7112 extra_ranlibflags_for_target=
7113 target_makefile_frag=/dev/null
7114 case "${target}" in
7115 spu-*-*)
7116 target_makefile_frag="config/mt-spu"
7117 ;;
7118 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7119 target_makefile_frag="config/mt-sde"
7120 ;;
7121 mipsisa*-*-elfoabi*)
7122 target_makefile_frag="config/mt-mips-elfoabi"
7123 ;;
7124 mips*-*-*linux* | mips*-*-gnu*)
7125 target_makefile_frag="config/mt-mips-gnu"
7126 ;;
7127 nios2-*-elf*)
7128 target_makefile_frag="config/mt-nios2-elf"
7129 ;;
7130 *-*-linux-android*)
7131 target_makefile_frag="config/mt-android"
7132 ;;
7133 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7134 target_makefile_frag="config/mt-gnu"
7135 ;;
7136 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7137 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7138 # commands to handle both 32-bit and 64-bit objects. These flags are
7139 # harmless if we're using GNU nm or ar.
7140 extra_arflags_for_target=" -X32_64"
7141 extra_nmflags_for_target=" -B -X32_64"
7142 ;;
7143 esac
7144
7145 alphaieee_frag=/dev/null
7146 case $target in
7147 alpha*-*-*)
7148 # This just makes sure to use the -mieee option to build target libs.
7149 # This should probably be set individually by each library.
7150 alphaieee_frag="config/mt-alphaieee"
7151 ;;
7152 esac
7153
7154 # If --enable-target-optspace always use -Os instead of -O2 to build
7155 # the target libraries, similarly if it is not specified, use -Os
7156 # on selected platforms.
7157 ospace_frag=/dev/null
7158 case "${enable_target_optspace}:${target}" in
7159 yes:*)
7160 ospace_frag="config/mt-ospace"
7161 ;;
7162 :d30v-*)
7163 ospace_frag="config/mt-d30v"
7164 ;;
7165 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7166 ospace_frag="config/mt-ospace"
7167 ;;
7168 no:* | :*)
7169 ;;
7170 *)
7171 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7172 ;;
7173 esac
7174
7175 # Some systems (e.g., one of the i386-aix systems the gas testers are
7176 # using) don't handle "\$" correctly, so don't use it here.
7177 tooldir='${exec_prefix}'/${target_noncanonical}
7178 build_tooldir=${tooldir}
7179
7180 # Create a .gdbinit file which runs the one in srcdir
7181 # and tells GDB to look there for source files.
7182
7183 if test -r ${srcdir}/.gdbinit ; then
7184 case ${srcdir} in
7185 .) ;;
7186 *) cat > ./.gdbinit <<EOF
7187 # ${NO_EDIT}
7188 dir ${srcdir}
7189 dir .
7190 source ${srcdir}/.gdbinit
7191 EOF
7192 ;;
7193 esac
7194 fi
7195
7196 # Make sure that the compiler is able to generate an executable. If it
7197 # can't, we are probably in trouble. We don't care whether we can run the
7198 # executable--we might be using a cross compiler--we only care whether it
7199 # can be created. At this point the main configure script has set CC.
7200 we_are_ok=no
7201 echo "int main () { return 0; }" > conftest.c
7202 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7203 if test $? = 0 ; then
7204 if test -s conftest || test -s conftest.exe ; then
7205 we_are_ok=yes
7206 fi
7207 fi
7208 case $we_are_ok in
7209 no)
7210 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7211 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7212 rm -f conftest*
7213 exit 1
7214 ;;
7215 esac
7216 rm -f conftest*
7217
7218 # Decide which environment variable is used to find dynamic libraries.
7219 case "${host}" in
7220 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7221 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7222 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7223 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7224 esac
7225
7226 # On systems where the dynamic library environment variable is PATH,
7227 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7228 # built executables to PATH.
7229 if test "$RPATH_ENVVAR" = PATH; then
7230 GCC_SHLIB_SUBDIR=/shlib
7231 else
7232 GCC_SHLIB_SUBDIR=
7233 fi
7234
7235 # Adjust the toplevel makefile according to whether bootstrap was selected.
7236 case $enable_bootstrap in
7237 yes)
7238 bootstrap_suffix=bootstrap
7239 BUILD_CONFIG=bootstrap-debug
7240 ;;
7241 no)
7242 bootstrap_suffix=no-bootstrap
7243 BUILD_CONFIG=
7244 ;;
7245 esac
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7248 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7249
7250
7251 # Check whether --with-build-config was given.
7252 if test "${with_build_config+set}" = set; then :
7253 withval=$with_build_config; case $with_build_config in
7254 yes) with_build_config= ;;
7255 no) with_build_config= BUILD_CONFIG= ;;
7256 esac
7257 fi
7258
7259
7260 if test "x${with_build_config}" != x; then
7261 BUILD_CONFIG=$with_build_config
7262 else
7263 case $BUILD_CONFIG in
7264 bootstrap-debug)
7265 if echo "int f (void) { return 0; }" > conftest.c &&
7266 ${CC} -c conftest.c &&
7267 mv conftest.o conftest.o.g0 &&
7268 ${CC} -c -g conftest.c &&
7269 mv conftest.o conftest.o.g &&
7270 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7271 :
7272 else
7273 BUILD_CONFIG=
7274 fi
7275 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7276 ;;
7277 esac
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7280 $as_echo "$BUILD_CONFIG" >&6; }
7281
7282
7283 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7285 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7286 # Check whether --enable-vtable-verify was given.
7287 if test "${enable_vtable_verify+set}" = set; then :
7288 enableval=$enable_vtable_verify; case "$enableval" in
7289 yes) enable_vtable_verify=yes ;;
7290 no) enable_vtable_verify=no ;;
7291 *) enable_vtable_verify=no;;
7292 esac
7293 else
7294 enable_vtable_verify=no
7295 fi
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7298 $as_echo "$enable_vtable_verify" >&6; }
7299
7300 # Record target_configdirs and the configure arguments for target and
7301 # build configuration in Makefile.
7302 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7303 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7304 bootstrap_fixincludes=no
7305
7306 # If we are building libgomp, bootstrap it.
7307 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7308 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7309 fi
7310
7311 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7312 # or bootstrap-ubsan, bootstrap it.
7313 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7314 case "$BUILD_CONFIG" in
7315 *bootstrap-asan* | *bootstrap-ubsan* )
7316 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7317 bootstrap_fixincludes=yes
7318 ;;
7319 esac
7320 fi
7321
7322 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7323 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7324 test "$enable_vtable_verify" != no; then
7325 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7326 fi
7327
7328 # Determine whether gdb needs tk/tcl or not.
7329 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7330 # and in that case we want gdb to be built without tk. Ugh!
7331 # In fact I believe gdb is the *only* package directly dependent on tk,
7332 # so we should be able to put the 'maybe's in unconditionally and
7333 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7334 # 100% sure that that's safe though.
7335
7336 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7337 case "$enable_gdbtk" in
7338 no)
7339 GDB_TK="" ;;
7340 yes)
7341 GDB_TK="${gdb_tk}" ;;
7342 *)
7343 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7344 # distro. Eventually someone will fix this and move Insight, nee
7345 # gdbtk to a separate directory.
7346 if test -d ${srcdir}/gdb/gdbtk ; then
7347 GDB_TK="${gdb_tk}"
7348 else
7349 GDB_TK=""
7350 fi
7351 ;;
7352 esac
7353 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7354 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7355
7356 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7357 # else does, only include them if one of these is built. The Makefile
7358 # provides the ordering, so it's enough here to add to the list.
7359 case " ${configdirs} " in
7360 *\ gdb\ *)
7361 configdirs="${configdirs} gnulib gdbsupport"
7362 ;;
7363 *\ gdbserver\ *)
7364 configdirs="${configdirs} gnulib gdbsupport"
7365 ;;
7366 esac
7367
7368 # Strip out unwanted targets.
7369
7370 # While at that, we remove Makefiles if we were started for recursive
7371 # configuration, so that the top-level Makefile reconfigures them,
7372 # like we used to do when configure itself was recursive.
7373
7374 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7375 # but now we're fixing up the Makefile ourselves with the additional
7376 # commands passed to AC_CONFIG_FILES. Use separate variables
7377 # extrasub-{build,host,target} not because there is any reason to split
7378 # the substitutions up that way, but only to remain below the limit of
7379 # 99 commands in a script, for HP-UX sed.
7380
7381 # Do not nest @if/@endif or @unless/@endunless pairs, because
7382 # configure will not warn you at all.
7383
7384 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7385 yes:yes:*\ gold\ *:*,c++,*) ;;
7386 yes:yes:*\ gold\ *:*)
7387 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7388 ;;
7389 esac
7390
7391 extrasub_build=
7392 for module in ${build_configdirs} ; do
7393 if test -z "${no_recursion}" \
7394 && test -f ${build_subdir}/${module}/Makefile; then
7395 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7396 rm -f ${build_subdir}/${module}/Makefile
7397 fi
7398 extrasub_build="$extrasub_build
7399 /^@if build-$module\$/d
7400 /^@endif build-$module\$/d
7401 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7402 /^@if build-$module-$bootstrap_suffix\$/d
7403 /^@endif build-$module-$bootstrap_suffix\$/d
7404 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7405 done
7406 extrasub_host=
7407 for module in ${configdirs} ; do
7408 if test -z "${no_recursion}"; then
7409 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7410 if test -f ${file}; then
7411 echo 1>&2 "*** removing ${file} to force reconfigure"
7412 rm -f ${file}
7413 fi
7414 done
7415 fi
7416 case ${module},${bootstrap_fixincludes} in
7417 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7418 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7419 esac
7420 extrasub_host="$extrasub_host
7421 /^@if $module\$/d
7422 /^@endif $module\$/d
7423 /^@unless $module\$/,/^@endunless $module\$/d
7424 /^@if $module-$host_bootstrap_suffix\$/d
7425 /^@endif $module-$host_bootstrap_suffix\$/d
7426 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7427 done
7428 extrasub_target=
7429 for module in ${target_configdirs} ; do
7430 if test -z "${no_recursion}" \
7431 && test -f ${target_subdir}/${module}/Makefile; then
7432 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7433 rm -f ${target_subdir}/${module}/Makefile
7434 fi
7435
7436 # We only bootstrap target libraries listed in bootstrap_target_libs.
7437 case $bootstrap_target_libs in
7438 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7439 *) target_bootstrap_suffix=no-bootstrap ;;
7440 esac
7441
7442 extrasub_target="$extrasub_target
7443 /^@if target-$module\$/d
7444 /^@endif target-$module\$/d
7445 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7446 /^@if target-$module-$target_bootstrap_suffix\$/d
7447 /^@endif target-$module-$target_bootstrap_suffix\$/d
7448 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7449 done
7450
7451 # Do the final fixup along with target modules.
7452 extrasub_target="$extrasub_target
7453 /^@if /,/^@endif /d
7454 /^@unless /d
7455 /^@endunless /d"
7456
7457 # Create the serialization dependencies. This uses a temporary file.
7458
7459 # Check whether --enable-serial-configure was given.
7460 if test "${enable_serial_configure+set}" = set; then :
7461 enableval=$enable_serial_configure;
7462 fi
7463
7464
7465 case ${enable_serial_configure} in
7466 yes)
7467 enable_serial_build_configure=yes
7468 enable_serial_host_configure=yes
7469 enable_serial_target_configure=yes
7470 ;;
7471 esac
7472
7473 # These force 'configure's to be done one at a time, to avoid problems
7474 # with contention over a shared config.cache.
7475 rm -f serdep.tmp
7476 echo '# serdep.tmp' > serdep.tmp
7477 olditem=
7478 test "x${enable_serial_build_configure}" = xyes &&
7479 for item in ${build_configdirs} ; do
7480 case ${olditem} in
7481 "") ;;
7482 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7483 esac
7484 olditem=${item}
7485 done
7486 olditem=
7487 test "x${enable_serial_host_configure}" = xyes &&
7488 for item in ${configdirs} ; do
7489 case ${olditem} in
7490 "") ;;
7491 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7492 esac
7493 olditem=${item}
7494 done
7495 olditem=
7496 test "x${enable_serial_target_configure}" = xyes &&
7497 for item in ${target_configdirs} ; do
7498 case ${olditem} in
7499 "") ;;
7500 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7501 esac
7502 olditem=${item}
7503 done
7504 serialization_dependencies=serdep.tmp
7505
7506
7507 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7508 # target, nonopt, and variable assignments. These are the ones we
7509 # might not want to pass down to subconfigures. The exception being
7510 # --cache-file=/dev/null, which is used to turn off the use of cache
7511 # files altogether, and which should be passed on to subconfigures.
7512 # Also strip program-prefix, program-suffix, and program-transform-name,
7513 # so that we can pass down a consistent program-transform-name.
7514 baseargs=
7515 tbaseargs=
7516 keep_next=no
7517 skip_next=no
7518 eval "set -- $ac_configure_args"
7519 for ac_arg
7520 do
7521 if test X"$skip_next" = X"yes"; then
7522 skip_next=no
7523 continue
7524 fi
7525 if test X"$keep_next" = X"yes"; then
7526 case $ac_arg in
7527 *\'*)
7528 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7529 esac
7530 baseargs="$baseargs '$ac_arg'"
7531 tbaseargs="$tbaseargs '$ac_arg'"
7532 keep_next=no
7533 continue
7534 fi
7535
7536 # Handle separated arguments. Based on the logic generated by
7537 # autoconf 2.59.
7538 case $ac_arg in
7539 *=* | --config-cache | -C | -disable-* | --disable-* \
7540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7542 | -with-* | --with-* | -without-* | --without-* | --x)
7543 separate_arg=no
7544 ;;
7545 -*)
7546 separate_arg=yes
7547 ;;
7548 *)
7549 separate_arg=no
7550 ;;
7551 esac
7552
7553 skip_targ=no
7554 case $ac_arg in
7555
7556 --with-* | --without-*)
7557 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7558
7559 case $libopt in
7560 *[-_]include)
7561 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7562 ;;
7563 *[-_]lib)
7564 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7565 ;;
7566 *)
7567 lib=$libopt
7568 ;;
7569 esac
7570
7571
7572 case $lib in
7573 mpc | mpfr | gmp | isl)
7574 # If we're processing --with-$lib, --with-$lib-include or
7575 # --with-$lib-lib, for one of the libs above, and target is
7576 # different from host, don't pass the current argument to any
7577 # target library's configure.
7578 if test x$is_cross_compiler = xyes; then
7579 skip_targ=yes
7580 fi
7581 ;;
7582 esac
7583 ;;
7584 esac
7585
7586 case "$ac_arg" in
7587 --cache-file=/dev/null | \
7588 -cache-file=/dev/null )
7589 # Handled here to avoid the test to skip args below.
7590 baseargs="$baseargs '$ac_arg'"
7591 tbaseargs="$tbaseargs '$ac_arg'"
7592 # Assert: $separate_arg should always be no.
7593 keep_next=$separate_arg
7594 ;;
7595 --no*)
7596 continue
7597 ;;
7598 --c* | \
7599 --sr* | \
7600 --ho* | \
7601 --bu* | \
7602 --t* | \
7603 --program-* | \
7604 -cache_file* | \
7605 -srcdir* | \
7606 -host* | \
7607 -build* | \
7608 -target* | \
7609 -program-prefix* | \
7610 -program-suffix* | \
7611 -program-transform-name* )
7612 skip_next=$separate_arg
7613 continue
7614 ;;
7615 -*)
7616 # An option. Add it.
7617 case $ac_arg in
7618 *\'*)
7619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7620 esac
7621 baseargs="$baseargs '$ac_arg'"
7622 if test X"$skip_targ" = Xno; then
7623 tbaseargs="$tbaseargs '$ac_arg'"
7624 fi
7625 keep_next=$separate_arg
7626 ;;
7627 *)
7628 # Either a variable assignment, or a nonopt (triplet). Don't
7629 # pass it down; let the Makefile handle this.
7630 continue
7631 ;;
7632 esac
7633 done
7634 # Remove the initial space we just introduced and, as these will be
7635 # expanded by make, quote '$'.
7636 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7637
7638 # Add in --program-transform-name, after --program-prefix and
7639 # --program-suffix have been applied to it. Autoconf has already
7640 # doubled dollar signs and backslashes in program_transform_name; we want
7641 # the backslashes un-doubled, and then the entire thing wrapped in single
7642 # quotes, because this will be expanded first by make and then by the shell.
7643 # Also, because we want to override the logic in subdir configure scripts to
7644 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7645 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7646 ${program_transform_name}
7647 EOF_SED
7648 gcc_transform_name=`cat conftestsed.out`
7649 rm -f conftestsed.out
7650 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7651 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7652 if test "$silent" = yes; then
7653 baseargs="$baseargs --silent"
7654 tbaseargs="$tbaseargs --silent"
7655 fi
7656 baseargs="$baseargs --disable-option-checking"
7657 tbaseargs="$tbaseargs --disable-option-checking"
7658
7659 # Record and document user additions to sub configure arguments.
7660
7661
7662
7663
7664 # For the build-side libraries, we just need to pretend we're native,
7665 # and not use the same cache file. Multilibs are neither needed nor
7666 # desired. We can't even use the same cache file for all build-side
7667 # libraries, as they're compiled differently; some with C, some with
7668 # C++ or with different feature-enabling options.
7669 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7670
7671 # For host modules, accept cache file option, or specification as blank.
7672 case "${cache_file}" in
7673 "") # empty
7674 cache_file_option="" ;;
7675 /* | [A-Za-z]:[\\/]* ) # absolute path
7676 cache_file_option="--cache-file=${cache_file}" ;;
7677 *) # relative path
7678 cache_file_option="--cache-file=../${cache_file}" ;;
7679 esac
7680
7681 # Host dirs don't like to share a cache file either, horribly enough.
7682 # This seems to be due to autoconf 2.5x stupidity.
7683 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7684
7685 target_configargs="$target_configargs ${tbaseargs}"
7686
7687 # Passing a --with-cross-host argument lets the target libraries know
7688 # whether they are being built with a cross-compiler or being built
7689 # native. However, it would be better to use other mechanisms to make the
7690 # sorts of decisions they want to make on this basis. Please consider
7691 # this option to be deprecated. FIXME.
7692 if test x${is_cross_compiler} = xyes ; then
7693 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7694 fi
7695
7696 # Special user-friendly check for native x86_64-linux build, if
7697 # multilib is not explicitly enabled.
7698 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7699 x86_64-*linux*:yes:$build:$build:)
7700 # Make sure we have a development environment that handles 32-bit
7701 dev64=no
7702 echo "int main () { return 0; }" > conftest.c
7703 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7704 if test $? = 0 ; then
7705 if test -s conftest || test -s conftest.exe ; then
7706 dev64=yes
7707 fi
7708 fi
7709 rm -f conftest*
7710 if test x${dev64} != xyes ; then
7711 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
7712 fi
7713 ;;
7714 esac
7715
7716 # Default to --enable-multilib.
7717 if test x${enable_multilib} = x ; then
7718 target_configargs="--enable-multilib ${target_configargs}"
7719 fi
7720
7721 # Pass --with-newlib if appropriate. Note that target_configdirs has
7722 # changed from the earlier setting of with_newlib.
7723 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7724 target_configargs="--with-newlib ${target_configargs}"
7725 fi
7726
7727 # Different target subdirs use different values of certain variables
7728 # (notably CXX). Worse, multilibs use *lots* of different values.
7729 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7730 # it doesn't automatically accept command-line overrides of them.
7731 # This means it's not safe for target subdirs to share a cache file,
7732 # which is disgusting, but there you have it. Hopefully this can be
7733 # fixed in future. It's still worthwhile to use a cache file for each
7734 # directory. I think.
7735
7736 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7737 # We need to pass --target, as newer autoconf's requires consistency
7738 # for target_alias and gcc doesn't manage it consistently.
7739 target_configargs="--cache-file=./config.cache ${target_configargs}"
7740
7741 FLAGS_FOR_TARGET=
7742 case " $target_configdirs " in
7743 *" newlib "*)
7744 case " $target_configargs " in
7745 *" --with-newlib "*)
7746 case "$target" in
7747 *-cygwin*)
7748 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7749 ;;
7750 esac
7751
7752 # If we're not building GCC, don't discard standard headers.
7753 if test -d ${srcdir}/gcc; then
7754 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7755
7756 if test "${build}" != "${host}"; then
7757 # On Canadian crosses, CC_FOR_TARGET will have already been set
7758 # by `configure', so we won't have an opportunity to add -Bgcc/
7759 # to it. This is right: we don't want to search that directory
7760 # for binaries, but we want the header files in there, so add
7761 # them explicitly.
7762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7763
7764 # Someone might think of using the pre-installed headers on
7765 # Canadian crosses, in case the installed compiler is not fully
7766 # compatible with the compiler being built. In this case, it
7767 # would be better to flag an error than risking having
7768 # incompatible object files being constructed. We can't
7769 # guarantee that an error will be flagged, but let's hope the
7770 # compiler will do it, when presented with incompatible header
7771 # files.
7772 fi
7773 fi
7774
7775 case "${target}-${is_cross_compiler}" in
7776 i[3456789]86-*-linux*-no)
7777 # Here host == target, so we don't need to build gcc,
7778 # so we don't want to discard standard headers.
7779 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7780 ;;
7781 *)
7782 # If we're building newlib, use its generic headers last, but search
7783 # for any libc-related directories first (so make it the last -B
7784 # switch).
7785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7786
7787 # If we're building libgloss, find the startup file, simulator library
7788 # and linker script.
7789 case " $target_configdirs " in
7790 *" libgloss "*)
7791 # Look for startup file, simulator library and maybe linker script.
7792 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7793 # Look for libnosys.a in case the target needs it.
7794 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7795 # Most targets have the linker script in the source directory.
7796 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7797 ;;
7798 esac
7799 ;;
7800 esac
7801 ;;
7802 esac
7803 ;;
7804 esac
7805
7806 case "$target" in
7807 x86_64-*mingw* | *-w64-mingw*)
7808 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7809 # however, use a symlink named 'mingw' in ${prefix} .
7810 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7811 ;;
7812 *-mingw*)
7813 # MinGW can't be handled as Cygwin above since it does not use newlib.
7814 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'
7815 ;;
7816 esac
7817
7818 # Allow the user to override the flags for
7819 # our build compiler if desired.
7820 if test x"${build}" = x"${host}" ; then
7821 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7822 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7823 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7824 fi
7825
7826 # On Canadian crosses, we'll be searching the right directories for
7827 # the previously-installed cross compiler, so don't bother to add
7828 # flags for directories within the install tree of the compiler
7829 # being built; programs in there won't even run.
7830 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7831 # Search for pre-installed headers if nothing else fits.
7832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7833 fi
7834
7835 if test "x${use_gnu_ld}" = x &&
7836 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7837 # Arrange for us to find uninstalled linker scripts.
7838 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7839 fi
7840
7841 # Search for other target-specific linker scripts and such.
7842 case "${target}" in
7843 mep*)
7844 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7845 ;;
7846 esac
7847
7848 # Makefile fragments.
7849 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7850 do
7851 eval fragval=\$$frag
7852 if test $fragval != /dev/null; then
7853 eval $frag=${srcdir}/$fragval
7854 fi
7855 done
7856
7857
7858
7859
7860
7861 # Miscellanea: directories, flags, etc.
7862
7863
7864
7865
7866
7867
7868
7869
7870 # Build module lists & subconfigure args.
7871
7872
7873
7874 # Host module lists & subconfigure args.
7875
7876
7877
7878
7879 # Target module lists & subconfigure args.
7880
7881
7882
7883 # Build tools.
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902 # Generate default definitions for YACC, M4, LEX and other programs that run
7903 # on the build machine. These are used if the Makefile can't locate these
7904 # programs in objdir.
7905 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7906
7907 for ac_prog in 'bison -y' byacc yacc
7908 do
7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
7910 set dummy $ac_prog; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_YACC+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$YACC"; then
7917 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_YACC="$ac_prog"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
7930 done
7931 done
7932 IFS=$as_save_IFS
7933
7934 fi
7935 fi
7936 YACC=$ac_cv_prog_YACC
7937 if test -n "$YACC"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7939 $as_echo "$YACC" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 fi
7944
7945
7946 test -n "$YACC" && break
7947 done
7948 test -n "$YACC" || YACC="$MISSING bison -y"
7949
7950 case " $build_configdirs " in
7951 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7952 esac
7953
7954 for ac_prog in bison
7955 do
7956 # Extract the first word of "$ac_prog", so it can be a program name with args.
7957 set dummy $ac_prog; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_prog_BISON+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 if test -n "$BISON"; then
7964 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_BISON="$ac_prog"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981 fi
7982 fi
7983 BISON=$ac_cv_prog_BISON
7984 if test -n "$BISON"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7986 $as_echo "$BISON" >&6; }
7987 else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7990 fi
7991
7992
7993 test -n "$BISON" && break
7994 done
7995 test -n "$BISON" || BISON="$MISSING bison"
7996
7997 case " $build_configdirs " in
7998 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7999 esac
8000
8001 for ac_prog in gm4 gnum4 m4
8002 do
8003 # Extract the first word of "$ac_prog", so it can be a program name with args.
8004 set dummy $ac_prog; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if ${ac_cv_prog_M4+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 if test -n "$M4"; then
8011 ac_cv_prog_M4="$M4" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_prog_M4="$ac_prog"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
8024 done
8025 done
8026 IFS=$as_save_IFS
8027
8028 fi
8029 fi
8030 M4=$ac_cv_prog_M4
8031 if test -n "$M4"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8033 $as_echo "$M4" >&6; }
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040 test -n "$M4" && break
8041 done
8042 test -n "$M4" || M4="$MISSING m4"
8043
8044 case " $build_configdirs " in
8045 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8046 esac
8047
8048 for ac_prog in flex lex
8049 do
8050 # Extract the first word of "$ac_prog", so it can be a program name with args.
8051 set dummy $ac_prog; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if ${ac_cv_prog_LEX+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 if test -n "$LEX"; then
8058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8059 else
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8062 do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_prog_LEX="$ac_prog"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071 done
8072 done
8073 IFS=$as_save_IFS
8074
8075 fi
8076 fi
8077 LEX=$ac_cv_prog_LEX
8078 if test -n "$LEX"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8080 $as_echo "$LEX" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8084 fi
8085
8086
8087 test -n "$LEX" && break
8088 done
8089 test -n "$LEX" || LEX="$MISSING flex"
8090
8091 case " $build_configdirs " in
8092 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8093 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8094 esac
8095
8096 for ac_prog in flex
8097 do
8098 # Extract the first word of "$ac_prog", so it can be a program name with args.
8099 set dummy $ac_prog; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if ${ac_cv_prog_FLEX+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 if test -n "$FLEX"; then
8106 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_FLEX="$ac_prog"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119 done
8120 done
8121 IFS=$as_save_IFS
8122
8123 fi
8124 fi
8125 FLEX=$ac_cv_prog_FLEX
8126 if test -n "$FLEX"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8128 $as_echo "$FLEX" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134
8135 test -n "$FLEX" && break
8136 done
8137 test -n "$FLEX" || FLEX="$MISSING flex"
8138
8139 case " $build_configdirs " in
8140 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8141 esac
8142
8143 for ac_prog in makeinfo
8144 do
8145 # Extract the first word of "$ac_prog", so it can be a program name with args.
8146 set dummy $ac_prog; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if ${ac_cv_prog_MAKEINFO+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$MAKEINFO"; then
8153 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8162 ac_cv_prog_MAKEINFO="$ac_prog"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170 fi
8171 fi
8172 MAKEINFO=$ac_cv_prog_MAKEINFO
8173 if test -n "$MAKEINFO"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8175 $as_echo "$MAKEINFO" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8179 fi
8180
8181
8182 test -n "$MAKEINFO" && break
8183 done
8184 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8185
8186 case " $build_configdirs " in
8187 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8188 *)
8189
8190 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8191 # higher, else we use the "missing" dummy.
8192 if ${MAKEINFO} --version \
8193 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8194 :
8195 else
8196 MAKEINFO="$MISSING makeinfo"
8197 fi
8198 ;;
8199
8200 esac
8201
8202 # FIXME: expect and dejagnu may become build tools?
8203
8204 for ac_prog in expect
8205 do
8206 # Extract the first word of "$ac_prog", so it can be a program name with args.
8207 set dummy $ac_prog; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if ${ac_cv_prog_EXPECT+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 if test -n "$EXPECT"; then
8214 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8218 do
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_EXPECT="$ac_prog"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8226 fi
8227 done
8228 done
8229 IFS=$as_save_IFS
8230
8231 fi
8232 fi
8233 EXPECT=$ac_cv_prog_EXPECT
8234 if test -n "$EXPECT"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8236 $as_echo "$EXPECT" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242
8243 test -n "$EXPECT" && break
8244 done
8245 test -n "$EXPECT" || EXPECT="expect"
8246
8247 case " $configdirs " in
8248 *" expect "*)
8249 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8250 ;;
8251 esac
8252
8253 for ac_prog in runtest
8254 do
8255 # Extract the first word of "$ac_prog", so it can be a program name with args.
8256 set dummy $ac_prog; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if ${ac_cv_prog_RUNTEST+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 if test -n "$RUNTEST"; then
8263 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8267 do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_RUNTEST="$ac_prog"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276 done
8277 done
8278 IFS=$as_save_IFS
8279
8280 fi
8281 fi
8282 RUNTEST=$ac_cv_prog_RUNTEST
8283 if test -n "$RUNTEST"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8285 $as_echo "$RUNTEST" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8289 fi
8290
8291
8292 test -n "$RUNTEST" && break
8293 done
8294 test -n "$RUNTEST" || RUNTEST="runtest"
8295
8296 case " $configdirs " in
8297 *" dejagnu "*)
8298 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8299 ;;
8300 esac
8301
8302
8303 # Host tools.
8304 ncn_tool_prefix=
8305 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8306 ncn_target_tool_prefix=
8307 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8308
8309
8310
8311 if test -n "$AR"; then
8312 ac_cv_prog_AR=$AR
8313 elif test -n "$ac_cv_prog_AR"; then
8314 AR=$ac_cv_prog_AR
8315 fi
8316
8317 if test -n "$ac_cv_prog_AR"; then
8318 for ncn_progname in ar; do
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320 set dummy ${ncn_progname}; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if ${ac_cv_prog_AR+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 if test -n "$AR"; then
8327 ac_cv_prog_AR="$AR" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8336 ac_cv_prog_AR="${ncn_progname}"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344 fi
8345 fi
8346 AR=$ac_cv_prog_AR
8347 if test -n "$AR"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8349 $as_echo "$AR" >&6; }
8350 else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8353 fi
8354
8355
8356 done
8357 fi
8358
8359 for ncn_progname in ar; do
8360 if test -n "$ncn_tool_prefix"; then
8361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8362 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_AR+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$AR"; then
8369 ac_cv_prog_AR="$AR" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 AR=$ac_cv_prog_AR
8389 if test -n "$AR"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8391 $as_echo "$AR" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 fi
8399 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401 set dummy ${ncn_progname}; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_AR+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$AR"; then
8408 ac_cv_prog_AR="$AR" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_AR="${ncn_progname}"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 AR=$ac_cv_prog_AR
8428 if test -n "$AR"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8430 $as_echo "$AR" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437 fi
8438 test -n "$ac_cv_prog_AR" && break
8439 done
8440
8441 if test -z "$ac_cv_prog_AR" ; then
8442 set dummy ar
8443 if test $build = $host ; then
8444 AR="$2"
8445 else
8446 AR="${ncn_tool_prefix}$2"
8447 fi
8448 fi
8449
8450
8451
8452 if test -n "$AS"; then
8453 ac_cv_prog_AS=$AS
8454 elif test -n "$ac_cv_prog_AS"; then
8455 AS=$ac_cv_prog_AS
8456 fi
8457
8458 if test -n "$ac_cv_prog_AS"; then
8459 for ncn_progname in as; do
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461 set dummy ${ncn_progname}; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_AS+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 if test -n "$AS"; then
8468 ac_cv_prog_AS="$AS" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_AS="${ncn_progname}"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 AS=$ac_cv_prog_AS
8488 if test -n "$AS"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8490 $as_echo "$AS" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497 done
8498 fi
8499
8500 for ncn_progname in as; do
8501 if test -n "$ncn_tool_prefix"; then
8502 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8503 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_AS+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 if test -n "$AS"; then
8510 ac_cv_prog_AS="$AS" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523 done
8524 done
8525 IFS=$as_save_IFS
8526
8527 fi
8528 fi
8529 AS=$ac_cv_prog_AS
8530 if test -n "$AS"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8532 $as_echo "$AS" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539 fi
8540 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8542 set dummy ${ncn_progname}; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if ${ac_cv_prog_AS+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 if test -n "$AS"; then
8549 ac_cv_prog_AS="$AS" # Let the user override the test.
8550 else
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558 ac_cv_prog_AS="${ncn_progname}"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8561 fi
8562 done
8563 done
8564 IFS=$as_save_IFS
8565
8566 fi
8567 fi
8568 AS=$ac_cv_prog_AS
8569 if test -n "$AS"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8571 $as_echo "$AS" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8575 fi
8576
8577
8578 fi
8579 test -n "$ac_cv_prog_AS" && break
8580 done
8581
8582 if test -z "$ac_cv_prog_AS" ; then
8583 set dummy as
8584 if test $build = $host ; then
8585 AS="$2"
8586 else
8587 AS="${ncn_tool_prefix}$2"
8588 fi
8589 fi
8590
8591
8592
8593 if test -n "$DLLTOOL"; then
8594 ac_cv_prog_DLLTOOL=$DLLTOOL
8595 elif test -n "$ac_cv_prog_DLLTOOL"; then
8596 DLLTOOL=$ac_cv_prog_DLLTOOL
8597 fi
8598
8599 if test -n "$ac_cv_prog_DLLTOOL"; then
8600 for ncn_progname in dlltool; do
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602 set dummy ${ncn_progname}; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_DLLTOOL+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 if test -n "$DLLTOOL"; then
8609 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_prog_DLLTOOL="${ncn_progname}"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622 done
8623 done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 DLLTOOL=$ac_cv_prog_DLLTOOL
8629 if test -n "$DLLTOOL"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8631 $as_echo "$DLLTOOL" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637
8638 done
8639 fi
8640
8641 for ncn_progname in dlltool; do
8642 if test -n "$ncn_tool_prefix"; then
8643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8644 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_prog_DLLTOOL+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 if test -n "$DLLTOOL"; then
8651 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8652 else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8655 do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664 done
8665 done
8666 IFS=$as_save_IFS
8667
8668 fi
8669 fi
8670 DLLTOOL=$ac_cv_prog_DLLTOOL
8671 if test -n "$DLLTOOL"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8673 $as_echo "$DLLTOOL" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8677 fi
8678
8679
8680 fi
8681 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683 set dummy ${ncn_progname}; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_prog_DLLTOOL+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 if test -n "$DLLTOOL"; then
8690 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_DLLTOOL="${ncn_progname}"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703 done
8704 done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 DLLTOOL=$ac_cv_prog_DLLTOOL
8710 if test -n "$DLLTOOL"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8712 $as_echo "$DLLTOOL" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 test -n "$ac_cv_prog_DLLTOOL" && break
8721 done
8722
8723 if test -z "$ac_cv_prog_DLLTOOL" ; then
8724 set dummy dlltool
8725 if test $build = $host ; then
8726 DLLTOOL="$2"
8727 else
8728 DLLTOOL="${ncn_tool_prefix}$2"
8729 fi
8730 fi
8731
8732
8733
8734 if test -n "$DSYMUTIL"; then
8735 ac_cv_prog_DSYMUTIL=$DSYMUTIL
8736 elif test -n "$ac_cv_prog_DSYMUTIL"; then
8737 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8738 fi
8739
8740 if test -n "$ac_cv_prog_DSYMUTIL"; then
8741 for ncn_progname in dsymutil; do
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743 set dummy ${ncn_progname}; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 if test -n "$DSYMUTIL"; then
8750 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8754 do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_DSYMUTIL="${ncn_progname}"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763 done
8764 done
8765 IFS=$as_save_IFS
8766
8767 fi
8768 fi
8769 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8770 if test -n "$DSYMUTIL"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8772 $as_echo "$DSYMUTIL" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8776 fi
8777
8778
8779 done
8780 fi
8781
8782 for ncn_progname in dsymutil; do
8783 if test -n "$ncn_tool_prefix"; then
8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 if test -n "$DSYMUTIL"; then
8792 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8793 else
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in $PATH
8796 do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8801 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 break 2
8804 fi
8805 done
8806 done
8807 IFS=$as_save_IFS
8808
8809 fi
8810 fi
8811 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8812 if test -n "$DSYMUTIL"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8814 $as_echo "$DSYMUTIL" >&6; }
8815 else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8818 fi
8819
8820
8821 fi
8822 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824 set dummy ${ncn_progname}; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 if test -n "$DSYMUTIL"; then
8831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8840 ac_cv_prog_DSYMUTIL="${ncn_progname}"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844 done
8845 done
8846 IFS=$as_save_IFS
8847
8848 fi
8849 fi
8850 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8851 if test -n "$DSYMUTIL"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8853 $as_echo "$DSYMUTIL" >&6; }
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857 fi
8858
8859
8860 fi
8861 test -n "$ac_cv_prog_DSYMUTIL" && break
8862 done
8863
8864 if test -z "$ac_cv_prog_DSYMUTIL" ; then
8865 set dummy dsymutil
8866 if test $build = $host ; then
8867 DSYMUTIL="$2"
8868 else
8869 DSYMUTIL="${ncn_tool_prefix}$2"
8870 fi
8871 fi
8872
8873
8874
8875 if test -n "$LD"; then
8876 ac_cv_prog_LD=$LD
8877 elif test -n "$ac_cv_prog_LD"; then
8878 LD=$ac_cv_prog_LD
8879 fi
8880
8881 if test -n "$ac_cv_prog_LD"; then
8882 for ncn_progname in ld; do
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884 set dummy ${ncn_progname}; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if ${ac_cv_prog_LD+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 if test -n "$LD"; then
8891 ac_cv_prog_LD="$LD" # Let the user override the test.
8892 else
8893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 for as_dir in $PATH
8895 do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8900 ac_cv_prog_LD="${ncn_progname}"
8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 break 2
8903 fi
8904 done
8905 done
8906 IFS=$as_save_IFS
8907
8908 fi
8909 fi
8910 LD=$ac_cv_prog_LD
8911 if test -n "$LD"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8913 $as_echo "$LD" >&6; }
8914 else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8917 fi
8918
8919
8920 done
8921 fi
8922
8923 for ncn_progname in ld; do
8924 if test -n "$ncn_tool_prefix"; then
8925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8926 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if ${ac_cv_prog_LD+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 if test -n "$LD"; then
8933 ac_cv_prog_LD="$LD" # Let the user override the test.
8934 else
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8945 fi
8946 done
8947 done
8948 IFS=$as_save_IFS
8949
8950 fi
8951 fi
8952 LD=$ac_cv_prog_LD
8953 if test -n "$LD"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8955 $as_echo "$LD" >&6; }
8956 else
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8959 fi
8960
8961
8962 fi
8963 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965 set dummy ${ncn_progname}; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if ${ac_cv_prog_LD+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 if test -n "$LD"; then
8972 ac_cv_prog_LD="$LD" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 ac_cv_prog_LD="${ncn_progname}"
8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985 done
8986 done
8987 IFS=$as_save_IFS
8988
8989 fi
8990 fi
8991 LD=$ac_cv_prog_LD
8992 if test -n "$LD"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8994 $as_echo "$LD" >&6; }
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8998 fi
8999
9000
9001 fi
9002 test -n "$ac_cv_prog_LD" && break
9003 done
9004
9005 if test -z "$ac_cv_prog_LD" ; then
9006 set dummy ld
9007 if test $build = $host ; then
9008 LD="$2"
9009 else
9010 LD="${ncn_tool_prefix}$2"
9011 fi
9012 fi
9013
9014
9015
9016 if test -n "$LIPO"; then
9017 ac_cv_prog_LIPO=$LIPO
9018 elif test -n "$ac_cv_prog_LIPO"; then
9019 LIPO=$ac_cv_prog_LIPO
9020 fi
9021
9022 if test -n "$ac_cv_prog_LIPO"; then
9023 for ncn_progname in lipo; do
9024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9025 set dummy ${ncn_progname}; ac_word=$2
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027 $as_echo_n "checking for $ac_word... " >&6; }
9028 if ${ac_cv_prog_LIPO+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 if test -n "$LIPO"; then
9032 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9033 else
9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035 for as_dir in $PATH
9036 do
9037 IFS=$as_save_IFS
9038 test -z "$as_dir" && as_dir=.
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9041 ac_cv_prog_LIPO="${ncn_progname}"
9042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 break 2
9044 fi
9045 done
9046 done
9047 IFS=$as_save_IFS
9048
9049 fi
9050 fi
9051 LIPO=$ac_cv_prog_LIPO
9052 if test -n "$LIPO"; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9054 $as_echo "$LIPO" >&6; }
9055 else
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9058 fi
9059
9060
9061 done
9062 fi
9063
9064 for ncn_progname in lipo; do
9065 if test -n "$ncn_tool_prefix"; then
9066 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9067 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_prog_LIPO+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$LIPO"; then
9074 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9078 do
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9086 fi
9087 done
9088 done
9089 IFS=$as_save_IFS
9090
9091 fi
9092 fi
9093 LIPO=$ac_cv_prog_LIPO
9094 if test -n "$LIPO"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9096 $as_echo "$LIPO" >&6; }
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9100 fi
9101
9102
9103 fi
9104 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9106 set dummy ${ncn_progname}; ac_word=$2
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108 $as_echo_n "checking for $ac_word... " >&6; }
9109 if ${ac_cv_prog_LIPO+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 if test -n "$LIPO"; then
9113 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9114 else
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9117 do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_prog_LIPO="${ncn_progname}"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9125 fi
9126 done
9127 done
9128 IFS=$as_save_IFS
9129
9130 fi
9131 fi
9132 LIPO=$ac_cv_prog_LIPO
9133 if test -n "$LIPO"; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9135 $as_echo "$LIPO" >&6; }
9136 else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9139 fi
9140
9141
9142 fi
9143 test -n "$ac_cv_prog_LIPO" && break
9144 done
9145
9146 if test -z "$ac_cv_prog_LIPO" ; then
9147 set dummy lipo
9148 if test $build = $host ; then
9149 LIPO="$2"
9150 else
9151 LIPO="${ncn_tool_prefix}$2"
9152 fi
9153 fi
9154
9155
9156
9157 if test -n "$NM"; then
9158 ac_cv_prog_NM=$NM
9159 elif test -n "$ac_cv_prog_NM"; then
9160 NM=$ac_cv_prog_NM
9161 fi
9162
9163 if test -n "$ac_cv_prog_NM"; then
9164 for ncn_progname in nm; do
9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166 set dummy ${ncn_progname}; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if ${ac_cv_prog_NM+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 if test -n "$NM"; then
9173 ac_cv_prog_NM="$NM" # Let the user override the test.
9174 else
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9177 do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_prog_NM="${ncn_progname}"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186 done
9187 done
9188 IFS=$as_save_IFS
9189
9190 fi
9191 fi
9192 NM=$ac_cv_prog_NM
9193 if test -n "$NM"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9195 $as_echo "$NM" >&6; }
9196 else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 $as_echo "no" >&6; }
9199 fi
9200
9201
9202 done
9203 fi
9204
9205 for ncn_progname in nm; do
9206 if test -n "$ncn_tool_prefix"; then
9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if ${ac_cv_prog_NM+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 if test -n "$NM"; then
9215 ac_cv_prog_NM="$NM" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9227 fi
9228 done
9229 done
9230 IFS=$as_save_IFS
9231
9232 fi
9233 fi
9234 NM=$ac_cv_prog_NM
9235 if test -n "$NM"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9237 $as_echo "$NM" >&6; }
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 fi
9242
9243
9244 fi
9245 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247 set dummy ${ncn_progname}; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_prog_NM+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 if test -n "$NM"; then
9254 ac_cv_prog_NM="$NM" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_prog_NM="${ncn_progname}"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267 done
9268 done
9269 IFS=$as_save_IFS
9270
9271 fi
9272 fi
9273 NM=$ac_cv_prog_NM
9274 if test -n "$NM"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9276 $as_echo "$NM" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9280 fi
9281
9282
9283 fi
9284 test -n "$ac_cv_prog_NM" && break
9285 done
9286
9287 if test -z "$ac_cv_prog_NM" ; then
9288 set dummy nm
9289 if test $build = $host ; then
9290 NM="$2"
9291 else
9292 NM="${ncn_tool_prefix}$2"
9293 fi
9294 fi
9295
9296
9297
9298 if test -n "$RANLIB"; then
9299 ac_cv_prog_RANLIB=$RANLIB
9300 elif test -n "$ac_cv_prog_RANLIB"; then
9301 RANLIB=$ac_cv_prog_RANLIB
9302 fi
9303
9304 if test -n "$ac_cv_prog_RANLIB"; then
9305 for ncn_progname in ranlib; do
9306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9307 set dummy ${ncn_progname}; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_prog_RANLIB+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 if test -n "$RANLIB"; then
9314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9315 else
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9318 do
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323 ac_cv_prog_RANLIB="${ncn_progname}"
9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 break 2
9326 fi
9327 done
9328 done
9329 IFS=$as_save_IFS
9330
9331 fi
9332 fi
9333 RANLIB=$ac_cv_prog_RANLIB
9334 if test -n "$RANLIB"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9336 $as_echo "$RANLIB" >&6; }
9337 else
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341
9342
9343 done
9344 fi
9345
9346 for ncn_progname in ranlib; do
9347 if test -n "$ncn_tool_prefix"; then
9348 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9349 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 $as_echo_n "checking for $ac_word... " >&6; }
9352 if ${ac_cv_prog_RANLIB+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 if test -n "$RANLIB"; then
9356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9357 else
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9360 do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9365 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9368 fi
9369 done
9370 done
9371 IFS=$as_save_IFS
9372
9373 fi
9374 fi
9375 RANLIB=$ac_cv_prog_RANLIB
9376 if test -n "$RANLIB"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9378 $as_echo "$RANLIB" >&6; }
9379 else
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382 fi
9383
9384
9385 fi
9386 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9388 set dummy ${ncn_progname}; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if ${ac_cv_prog_RANLIB+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 if test -n "$RANLIB"; then
9395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9396 else
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9399 do
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
9402 for ac_exec_ext in '' $ac_executable_extensions; do
9403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404 ac_cv_prog_RANLIB="${ncn_progname}"
9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406 break 2
9407 fi
9408 done
9409 done
9410 IFS=$as_save_IFS
9411
9412 fi
9413 fi
9414 RANLIB=$ac_cv_prog_RANLIB
9415 if test -n "$RANLIB"; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9417 $as_echo "$RANLIB" >&6; }
9418 else
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9421 fi
9422
9423
9424 fi
9425 test -n "$ac_cv_prog_RANLIB" && break
9426 done
9427
9428 if test -z "$ac_cv_prog_RANLIB" ; then
9429 RANLIB="true"
9430 fi
9431
9432
9433
9434 if test -n "$STRIP"; then
9435 ac_cv_prog_STRIP=$STRIP
9436 elif test -n "$ac_cv_prog_STRIP"; then
9437 STRIP=$ac_cv_prog_STRIP
9438 fi
9439
9440 if test -n "$ac_cv_prog_STRIP"; then
9441 for ncn_progname in strip; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443 set dummy ${ncn_progname}; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if ${ac_cv_prog_STRIP+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 if test -n "$STRIP"; then
9450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9451 else
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in $PATH
9454 do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_STRIP="${ncn_progname}"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9462 fi
9463 done
9464 done
9465 IFS=$as_save_IFS
9466
9467 fi
9468 fi
9469 STRIP=$ac_cv_prog_STRIP
9470 if test -n "$STRIP"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9472 $as_echo "$STRIP" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9476 fi
9477
9478
9479 done
9480 fi
9481
9482 for ncn_progname in strip; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487 $as_echo_n "checking for $ac_word... " >&6; }
9488 if ${ac_cv_prog_STRIP+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 if test -n "$STRIP"; then
9492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9493 else
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9496 do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 break 2
9504 fi
9505 done
9506 done
9507 IFS=$as_save_IFS
9508
9509 fi
9510 fi
9511 STRIP=$ac_cv_prog_STRIP
9512 if test -n "$STRIP"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9514 $as_echo "$STRIP" >&6; }
9515 else
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9518 fi
9519
9520
9521 fi
9522 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524 set dummy ${ncn_progname}; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if ${ac_cv_prog_STRIP+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 if test -n "$STRIP"; then
9531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9532 else
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9535 do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_prog_STRIP="${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9543 fi
9544 done
9545 done
9546 IFS=$as_save_IFS
9547
9548 fi
9549 fi
9550 STRIP=$ac_cv_prog_STRIP
9551 if test -n "$STRIP"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9553 $as_echo "$STRIP" >&6; }
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9557 fi
9558
9559
9560 fi
9561 test -n "$ac_cv_prog_STRIP" && break
9562 done
9563
9564 if test -z "$ac_cv_prog_STRIP" ; then
9565 STRIP="true"
9566 fi
9567
9568
9569
9570 if test -n "$WINDRES"; then
9571 ac_cv_prog_WINDRES=$WINDRES
9572 elif test -n "$ac_cv_prog_WINDRES"; then
9573 WINDRES=$ac_cv_prog_WINDRES
9574 fi
9575
9576 if test -n "$ac_cv_prog_WINDRES"; then
9577 for ncn_progname in windres; do
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579 set dummy ${ncn_progname}; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if ${ac_cv_prog_WINDRES+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 if test -n "$WINDRES"; then
9586 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9590 do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_prog_WINDRES="${ncn_progname}"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599 done
9600 done
9601 IFS=$as_save_IFS
9602
9603 fi
9604 fi
9605 WINDRES=$ac_cv_prog_WINDRES
9606 if test -n "$WINDRES"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9608 $as_echo "$WINDRES" >&6; }
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 fi
9613
9614
9615 done
9616 fi
9617
9618 for ncn_progname in windres; do
9619 if test -n "$ncn_tool_prefix"; then
9620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9621 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if ${ac_cv_prog_WINDRES+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 if test -n "$WINDRES"; then
9628 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9629 else
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9632 do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9637 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 break 2
9640 fi
9641 done
9642 done
9643 IFS=$as_save_IFS
9644
9645 fi
9646 fi
9647 WINDRES=$ac_cv_prog_WINDRES
9648 if test -n "$WINDRES"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9650 $as_echo "$WINDRES" >&6; }
9651 else
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9654 fi
9655
9656
9657 fi
9658 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9660 set dummy ${ncn_progname}; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_WINDRES+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 if test -n "$WINDRES"; then
9667 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_prog_WINDRES="${ncn_progname}"
9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 break 2
9679 fi
9680 done
9681 done
9682 IFS=$as_save_IFS
9683
9684 fi
9685 fi
9686 WINDRES=$ac_cv_prog_WINDRES
9687 if test -n "$WINDRES"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9689 $as_echo "$WINDRES" >&6; }
9690 else
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694
9695
9696 fi
9697 test -n "$ac_cv_prog_WINDRES" && break
9698 done
9699
9700 if test -z "$ac_cv_prog_WINDRES" ; then
9701 set dummy windres
9702 if test $build = $host ; then
9703 WINDRES="$2"
9704 else
9705 WINDRES="${ncn_tool_prefix}$2"
9706 fi
9707 fi
9708
9709
9710
9711 if test -n "$WINDMC"; then
9712 ac_cv_prog_WINDMC=$WINDMC
9713 elif test -n "$ac_cv_prog_WINDMC"; then
9714 WINDMC=$ac_cv_prog_WINDMC
9715 fi
9716
9717 if test -n "$ac_cv_prog_WINDMC"; then
9718 for ncn_progname in windmc; do
9719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9720 set dummy ${ncn_progname}; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_prog_WINDMC+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 if test -n "$WINDMC"; then
9727 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9728 else
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9731 do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_prog_WINDMC="${ncn_progname}"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740 done
9741 done
9742 IFS=$as_save_IFS
9743
9744 fi
9745 fi
9746 WINDMC=$ac_cv_prog_WINDMC
9747 if test -n "$WINDMC"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9749 $as_echo "$WINDMC" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9753 fi
9754
9755
9756 done
9757 fi
9758
9759 for ncn_progname in windmc; do
9760 if test -n "$ncn_tool_prefix"; then
9761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if ${ac_cv_prog_WINDMC+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 if test -n "$WINDMC"; then
9769 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9770 else
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782 done
9783 done
9784 IFS=$as_save_IFS
9785
9786 fi
9787 fi
9788 WINDMC=$ac_cv_prog_WINDMC
9789 if test -n "$WINDMC"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9791 $as_echo "$WINDMC" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795 fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9801 set dummy ${ncn_progname}; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if ${ac_cv_prog_WINDMC+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 if test -n "$WINDMC"; then
9808 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9809 else
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9812 do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9817 ac_cv_prog_WINDMC="${ncn_progname}"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821 done
9822 done
9823 IFS=$as_save_IFS
9824
9825 fi
9826 fi
9827 WINDMC=$ac_cv_prog_WINDMC
9828 if test -n "$WINDMC"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9830 $as_echo "$WINDMC" >&6; }
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9834 fi
9835
9836
9837 fi
9838 test -n "$ac_cv_prog_WINDMC" && break
9839 done
9840
9841 if test -z "$ac_cv_prog_WINDMC" ; then
9842 set dummy windmc
9843 if test $build = $host ; then
9844 WINDMC="$2"
9845 else
9846 WINDMC="${ncn_tool_prefix}$2"
9847 fi
9848 fi
9849
9850
9851
9852 if test -n "$OBJCOPY"; then
9853 ac_cv_prog_OBJCOPY=$OBJCOPY
9854 elif test -n "$ac_cv_prog_OBJCOPY"; then
9855 OBJCOPY=$ac_cv_prog_OBJCOPY
9856 fi
9857
9858 if test -n "$ac_cv_prog_OBJCOPY"; then
9859 for ncn_progname in objcopy; do
9860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9861 set dummy ${ncn_progname}; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_prog_OBJCOPY+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 if test -n "$OBJCOPY"; then
9868 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9869 else
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_prog_OBJCOPY="${ncn_progname}"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881 done
9882 done
9883 IFS=$as_save_IFS
9884
9885 fi
9886 fi
9887 OBJCOPY=$ac_cv_prog_OBJCOPY
9888 if test -n "$OBJCOPY"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9890 $as_echo "$OBJCOPY" >&6; }
9891 else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895
9896
9897 done
9898 fi
9899
9900 for ncn_progname in objcopy; do
9901 if test -n "$ncn_tool_prefix"; then
9902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if ${ac_cv_prog_OBJCOPY+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 if test -n "$OBJCOPY"; then
9910 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9911 else
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9914 do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923 done
9924 done
9925 IFS=$as_save_IFS
9926
9927 fi
9928 fi
9929 OBJCOPY=$ac_cv_prog_OBJCOPY
9930 if test -n "$OBJCOPY"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9932 $as_echo "$OBJCOPY" >&6; }
9933 else
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9936 fi
9937
9938
9939 fi
9940 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9942 set dummy ${ncn_progname}; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_prog_OBJCOPY+:} false; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 if test -n "$OBJCOPY"; then
9949 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9950 else
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9953 do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9958 ac_cv_prog_OBJCOPY="${ncn_progname}"
9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 break 2
9961 fi
9962 done
9963 done
9964 IFS=$as_save_IFS
9965
9966 fi
9967 fi
9968 OBJCOPY=$ac_cv_prog_OBJCOPY
9969 if test -n "$OBJCOPY"; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9971 $as_echo "$OBJCOPY" >&6; }
9972 else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9975 fi
9976
9977
9978 fi
9979 test -n "$ac_cv_prog_OBJCOPY" && break
9980 done
9981
9982 if test -z "$ac_cv_prog_OBJCOPY" ; then
9983 set dummy objcopy
9984 if test $build = $host ; then
9985 OBJCOPY="$2"
9986 else
9987 OBJCOPY="${ncn_tool_prefix}$2"
9988 fi
9989 fi
9990
9991
9992
9993 if test -n "$OBJDUMP"; then
9994 ac_cv_prog_OBJDUMP=$OBJDUMP
9995 elif test -n "$ac_cv_prog_OBJDUMP"; then
9996 OBJDUMP=$ac_cv_prog_OBJDUMP
9997 fi
9998
9999 if test -n "$ac_cv_prog_OBJDUMP"; then
10000 for ncn_progname in objdump; do
10001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10002 set dummy ${ncn_progname}; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if ${ac_cv_prog_OBJDUMP+:} false; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 if test -n "$OBJDUMP"; then
10009 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10010 else
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH
10013 do
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_prog_OBJDUMP="${ncn_progname}"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10021 fi
10022 done
10023 done
10024 IFS=$as_save_IFS
10025
10026 fi
10027 fi
10028 OBJDUMP=$ac_cv_prog_OBJDUMP
10029 if test -n "$OBJDUMP"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10031 $as_echo "$OBJDUMP" >&6; }
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10035 fi
10036
10037
10038 done
10039 fi
10040
10041 for ncn_progname in objdump; do
10042 if test -n "$ncn_tool_prefix"; then
10043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_OBJDUMP+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 if test -n "$OBJDUMP"; then
10051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066 IFS=$as_save_IFS
10067
10068 fi
10069 fi
10070 OBJDUMP=$ac_cv_prog_OBJDUMP
10071 if test -n "$OBJDUMP"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10073 $as_echo "$OBJDUMP" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078
10079
10080 fi
10081 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10083 set dummy ${ncn_progname}; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_prog_OBJDUMP+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 if test -n "$OBJDUMP"; then
10090 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10091 else
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10094 do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099 ac_cv_prog_OBJDUMP="${ncn_progname}"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10102 fi
10103 done
10104 done
10105 IFS=$as_save_IFS
10106
10107 fi
10108 fi
10109 OBJDUMP=$ac_cv_prog_OBJDUMP
10110 if test -n "$OBJDUMP"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10112 $as_echo "$OBJDUMP" >&6; }
10113 else
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10116 fi
10117
10118
10119 fi
10120 test -n "$ac_cv_prog_OBJDUMP" && break
10121 done
10122
10123 if test -z "$ac_cv_prog_OBJDUMP" ; then
10124 set dummy objdump
10125 if test $build = $host ; then
10126 OBJDUMP="$2"
10127 else
10128 OBJDUMP="${ncn_tool_prefix}$2"
10129 fi
10130 fi
10131
10132
10133
10134 if test -n "$OTOOL"; then
10135 ac_cv_prog_OTOOL=$OTOOL
10136 elif test -n "$ac_cv_prog_OTOOL"; then
10137 OTOOL=$ac_cv_prog_OTOOL
10138 fi
10139
10140 if test -n "$ac_cv_prog_OTOOL"; then
10141 for ncn_progname in otool; do
10142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10143 set dummy ${ncn_progname}; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_prog_OTOOL+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 if test -n "$OTOOL"; then
10150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10151 else
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_prog_OTOOL="${ncn_progname}"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163 done
10164 done
10165 IFS=$as_save_IFS
10166
10167 fi
10168 fi
10169 OTOOL=$ac_cv_prog_OTOOL
10170 if test -n "$OTOOL"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10172 $as_echo "$OTOOL" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178
10179 done
10180 fi
10181
10182 for ncn_progname in otool; do
10183 if test -n "$ncn_tool_prefix"; then
10184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_prog_OTOOL+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 if test -n "$OTOOL"; then
10192 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10196 do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205 done
10206 done
10207 IFS=$as_save_IFS
10208
10209 fi
10210 fi
10211 OTOOL=$ac_cv_prog_OTOOL
10212 if test -n "$OTOOL"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10214 $as_echo "$OTOOL" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219
10220
10221 fi
10222 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10224 set dummy ${ncn_progname}; ac_word=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if ${ac_cv_prog_OTOOL+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 if test -n "$OTOOL"; then
10231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10232 else
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10235 do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240 ac_cv_prog_OTOOL="${ncn_progname}"
10241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244 done
10245 done
10246 IFS=$as_save_IFS
10247
10248 fi
10249 fi
10250 OTOOL=$ac_cv_prog_OTOOL
10251 if test -n "$OTOOL"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10253 $as_echo "$OTOOL" >&6; }
10254 else
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258
10259
10260 fi
10261 test -n "$ac_cv_prog_OTOOL" && break
10262 done
10263
10264 if test -z "$ac_cv_prog_OTOOL" ; then
10265 set dummy otool
10266 if test $build = $host ; then
10267 OTOOL="$2"
10268 else
10269 OTOOL="${ncn_tool_prefix}$2"
10270 fi
10271 fi
10272
10273
10274
10275 if test -n "$READELF"; then
10276 ac_cv_prog_READELF=$READELF
10277 elif test -n "$ac_cv_prog_READELF"; then
10278 READELF=$ac_cv_prog_READELF
10279 fi
10280
10281 if test -n "$ac_cv_prog_READELF"; then
10282 for ncn_progname in readelf; do
10283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10284 set dummy ${ncn_progname}; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_prog_READELF+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 if test -n "$READELF"; then
10291 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10292 else
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10295 do
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 ac_cv_prog_READELF="${ncn_progname}"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 break 2
10303 fi
10304 done
10305 done
10306 IFS=$as_save_IFS
10307
10308 fi
10309 fi
10310 READELF=$ac_cv_prog_READELF
10311 if test -n "$READELF"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10313 $as_echo "$READELF" >&6; }
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10317 fi
10318
10319
10320 done
10321 fi
10322
10323 for ncn_progname in readelf; do
10324 if test -n "$ncn_tool_prefix"; then
10325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_prog_READELF+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 if test -n "$READELF"; then
10333 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346 done
10347 done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 READELF=$ac_cv_prog_READELF
10353 if test -n "$READELF"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10355 $as_echo "$READELF" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360
10361
10362 fi
10363 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10365 set dummy ${ncn_progname}; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_prog_READELF+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 if test -n "$READELF"; then
10372 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10373 else
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10376 do
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 ac_cv_prog_READELF="${ncn_progname}"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10384 fi
10385 done
10386 done
10387 IFS=$as_save_IFS
10388
10389 fi
10390 fi
10391 READELF=$ac_cv_prog_READELF
10392 if test -n "$READELF"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10394 $as_echo "$READELF" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399
10400
10401 fi
10402 test -n "$ac_cv_prog_READELF" && break
10403 done
10404
10405 if test -z "$ac_cv_prog_READELF" ; then
10406 set dummy readelf
10407 if test $build = $host ; then
10408 READELF="$2"
10409 else
10410 READELF="${ncn_tool_prefix}$2"
10411 fi
10412 fi
10413
10414
10415
10416
10417
10418
10419 # Target tools.
10420
10421 # Check whether --with-build-time-tools was given.
10422 if test "${with_build_time_tools+set}" = set; then :
10423 withval=$with_build_time_tools; case x"$withval" in
10424 x/*) ;;
10425 *)
10426 with_build_time_tools=
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10428 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10429 ;;
10430 esac
10431 else
10432 with_build_time_tools=
10433 fi
10434
10435
10436
10437
10438 if test -n "$CC_FOR_TARGET"; then
10439 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10440 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10441 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10442 fi
10443
10444 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10445 for ncn_progname in cc gcc; do
10446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10447 set dummy ${ncn_progname}; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 if test -n "$CC_FOR_TARGET"; then
10454 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10455 else
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10458 do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10466 fi
10467 done
10468 done
10469 IFS=$as_save_IFS
10470
10471 fi
10472 fi
10473 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10474 if test -n "$CC_FOR_TARGET"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10476 $as_echo "$CC_FOR_TARGET" >&6; }
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10480 fi
10481
10482
10483 done
10484 fi
10485
10486 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10487 for ncn_progname in cc gcc; do
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10489 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10490 if test -x $with_build_time_tools/${ncn_progname}; then
10491 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10493 $as_echo "yes" >&6; }
10494 break
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 fi
10499 done
10500 fi
10501
10502 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10503 for ncn_progname in cc gcc; do
10504 if test -n "$ncn_target_tool_prefix"; then
10505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10506 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 if test -n "$CC_FOR_TARGET"; then
10513 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10514 else
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10517 do
10518 IFS=$as_save_IFS
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 break 2
10525 fi
10526 done
10527 done
10528 IFS=$as_save_IFS
10529
10530 fi
10531 fi
10532 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10533 if test -n "$CC_FOR_TARGET"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10535 $as_echo "$CC_FOR_TARGET" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10539 fi
10540
10541
10542 fi
10543 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10545 set dummy ${ncn_progname}; ac_word=$2
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10547 $as_echo_n "checking for $ac_word... " >&6; }
10548 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 if test -n "$CC_FOR_TARGET"; then
10552 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10553 else
10554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 for as_dir in $PATH
10556 do
10557 IFS=$as_save_IFS
10558 test -z "$as_dir" && as_dir=.
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 break 2
10564 fi
10565 done
10566 done
10567 IFS=$as_save_IFS
10568
10569 fi
10570 fi
10571 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10572 if test -n "$CC_FOR_TARGET"; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10574 $as_echo "$CC_FOR_TARGET" >&6; }
10575 else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 $as_echo "no" >&6; }
10578 fi
10579
10580
10581 fi
10582 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10583 done
10584 fi
10585
10586 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10587 set dummy cc gcc
10588 if test $build = $target ; then
10589 CC_FOR_TARGET="$2"
10590 else
10591 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10592 fi
10593 else
10594 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10595 fi
10596
10597
10598
10599 if test -n "$CXX_FOR_TARGET"; then
10600 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10601 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10602 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10603 fi
10604
10605 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10606 for ncn_progname in c++ g++ cxx gxx; do
10607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10608 set dummy ${ncn_progname}; ac_word=$2
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 $as_echo_n "checking for $ac_word... " >&6; }
10611 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 if test -n "$CXX_FOR_TARGET"; then
10615 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10616 else
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10619 do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10627 fi
10628 done
10629 done
10630 IFS=$as_save_IFS
10631
10632 fi
10633 fi
10634 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10635 if test -n "$CXX_FOR_TARGET"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10637 $as_echo "$CXX_FOR_TARGET" >&6; }
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10641 fi
10642
10643
10644 done
10645 fi
10646
10647 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10648 for ncn_progname in c++ g++ cxx gxx; do
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10650 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10651 if test -x $with_build_time_tools/${ncn_progname}; then
10652 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654 $as_echo "yes" >&6; }
10655 break
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10659 fi
10660 done
10661 fi
10662
10663 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10664 for ncn_progname in c++ g++ cxx gxx; do
10665 if test -n "$ncn_target_tool_prefix"; then
10666 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10667 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669 $as_echo_n "checking for $ac_word... " >&6; }
10670 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 if test -n "$CXX_FOR_TARGET"; then
10674 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10675 else
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10678 do
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10686 fi
10687 done
10688 done
10689 IFS=$as_save_IFS
10690
10691 fi
10692 fi
10693 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10694 if test -n "$CXX_FOR_TARGET"; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10696 $as_echo "$CXX_FOR_TARGET" >&6; }
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10700 fi
10701
10702
10703 fi
10704 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10706 set dummy ${ncn_progname}; ac_word=$2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 $as_echo_n "checking for $ac_word... " >&6; }
10709 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 if test -n "$CXX_FOR_TARGET"; then
10713 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10714 else
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $PATH
10717 do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10722 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10725 fi
10726 done
10727 done
10728 IFS=$as_save_IFS
10729
10730 fi
10731 fi
10732 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10733 if test -n "$CXX_FOR_TARGET"; then
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10735 $as_echo "$CXX_FOR_TARGET" >&6; }
10736 else
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 $as_echo "no" >&6; }
10739 fi
10740
10741
10742 fi
10743 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10744 done
10745 fi
10746
10747 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10748 set dummy c++ g++ cxx gxx
10749 if test $build = $target ; then
10750 CXX_FOR_TARGET="$2"
10751 else
10752 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10753 fi
10754 else
10755 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10756 fi
10757
10758
10759
10760 if test -n "$GCC_FOR_TARGET"; then
10761 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10762 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10763 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10764 fi
10765
10766 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10767 for ncn_progname in gcc; do
10768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10769 set dummy ${ncn_progname}; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 if test -n "$GCC_FOR_TARGET"; then
10776 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10777 else
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10788 fi
10789 done
10790 done
10791 IFS=$as_save_IFS
10792
10793 fi
10794 fi
10795 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10796 if test -n "$GCC_FOR_TARGET"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10798 $as_echo "$GCC_FOR_TARGET" >&6; }
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10802 fi
10803
10804
10805 done
10806 fi
10807
10808 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10809 for ncn_progname in gcc; do
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10811 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10812 if test -x $with_build_time_tools/${ncn_progname}; then
10813 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10815 $as_echo "yes" >&6; }
10816 break
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10820 fi
10821 done
10822 fi
10823
10824 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10825 for ncn_progname in gcc; do
10826 if test -n "$ncn_target_tool_prefix"; then
10827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10828 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 if test -n "$GCC_FOR_TARGET"; then
10835 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10836 else
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10839 do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848 done
10849 done
10850 IFS=$as_save_IFS
10851
10852 fi
10853 fi
10854 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10855 if test -n "$GCC_FOR_TARGET"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10857 $as_echo "$GCC_FOR_TARGET" >&6; }
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862
10863
10864 fi
10865 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867 set dummy ${ncn_progname}; ac_word=$2
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869 $as_echo_n "checking for $ac_word... " >&6; }
10870 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 if test -n "$GCC_FOR_TARGET"; then
10874 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10875 else
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10878 do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10886 fi
10887 done
10888 done
10889 IFS=$as_save_IFS
10890
10891 fi
10892 fi
10893 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10894 if test -n "$GCC_FOR_TARGET"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10896 $as_echo "$GCC_FOR_TARGET" >&6; }
10897 else
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900 fi
10901
10902
10903 fi
10904 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10905 done
10906 fi
10907
10908 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10909 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10910 else
10911 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10912 fi
10913
10914
10915
10916 if test -n "$GFORTRAN_FOR_TARGET"; then
10917 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10918 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10919 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10920 fi
10921
10922 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10923 for ncn_progname in gfortran; do
10924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10925 set dummy ${ncn_progname}; ac_word=$2
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 $as_echo_n "checking for $ac_word... " >&6; }
10928 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 if test -n "$GFORTRAN_FOR_TARGET"; then
10932 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10933 else
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10936 do
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10944 fi
10945 done
10946 done
10947 IFS=$as_save_IFS
10948
10949 fi
10950 fi
10951 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10952 if test -n "$GFORTRAN_FOR_TARGET"; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10954 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10955 else
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10958 fi
10959
10960
10961 done
10962 fi
10963
10964 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10965 for ncn_progname in gfortran; do
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10967 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10968 if test -x $with_build_time_tools/${ncn_progname}; then
10969 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10971 $as_echo "yes" >&6; }
10972 break
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10976 fi
10977 done
10978 fi
10979
10980 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10981 for ncn_progname in gfortran; do
10982 if test -n "$ncn_target_tool_prefix"; then
10983 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10984 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 if test -n "$GFORTRAN_FOR_TARGET"; then
10991 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10992 else
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10995 do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004 done
11005 done
11006 IFS=$as_save_IFS
11007
11008 fi
11009 fi
11010 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11011 if test -n "$GFORTRAN_FOR_TARGET"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11013 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11017 fi
11018
11019
11020 fi
11021 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11023 set dummy ${ncn_progname}; ac_word=$2
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025 $as_echo_n "checking for $ac_word... " >&6; }
11026 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 if test -n "$GFORTRAN_FOR_TARGET"; then
11030 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11031 else
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11034 do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043 done
11044 done
11045 IFS=$as_save_IFS
11046
11047 fi
11048 fi
11049 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11050 if test -n "$GFORTRAN_FOR_TARGET"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11052 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11053 else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055 $as_echo "no" >&6; }
11056 fi
11057
11058
11059 fi
11060 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11061 done
11062 fi
11063
11064 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11065 set dummy gfortran
11066 if test $build = $target ; then
11067 GFORTRAN_FOR_TARGET="$2"
11068 else
11069 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11070 fi
11071 else
11072 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11073 fi
11074
11075
11076
11077 if test -n "$GOC_FOR_TARGET"; then
11078 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11079 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11080 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11081 fi
11082
11083 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11084 for ncn_progname in gccgo; do
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086 set dummy ${ncn_progname}; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 if test -n "$GOC_FOR_TARGET"; then
11093 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11097 do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11105 fi
11106 done
11107 done
11108 IFS=$as_save_IFS
11109
11110 fi
11111 fi
11112 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11113 if test -n "$GOC_FOR_TARGET"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11115 $as_echo "$GOC_FOR_TARGET" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11119 fi
11120
11121
11122 done
11123 fi
11124
11125 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11126 for ncn_progname in gccgo; do
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11128 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11129 if test -x $with_build_time_tools/${ncn_progname}; then
11130 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11132 $as_echo "yes" >&6; }
11133 break
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11137 fi
11138 done
11139 fi
11140
11141 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11142 for ncn_progname in gccgo; do
11143 if test -n "$ncn_target_tool_prefix"; then
11144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11145 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 if test -n "$GOC_FOR_TARGET"; then
11152 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11153 else
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11156 do
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11164 fi
11165 done
11166 done
11167 IFS=$as_save_IFS
11168
11169 fi
11170 fi
11171 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11172 if test -n "$GOC_FOR_TARGET"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11174 $as_echo "$GOC_FOR_TARGET" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11178 fi
11179
11180
11181 fi
11182 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11184 set dummy ${ncn_progname}; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 if test -n "$GOC_FOR_TARGET"; then
11191 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11192 else
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11195 do
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11203 fi
11204 done
11205 done
11206 IFS=$as_save_IFS
11207
11208 fi
11209 fi
11210 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11211 if test -n "$GOC_FOR_TARGET"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11213 $as_echo "$GOC_FOR_TARGET" >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11217 fi
11218
11219
11220 fi
11221 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11222 done
11223 fi
11224
11225 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11226 set dummy gccgo
11227 if test $build = $target ; then
11228 GOC_FOR_TARGET="$2"
11229 else
11230 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11231 fi
11232 else
11233 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11234 fi
11235
11236
11237
11238 if test -n "$GDC_FOR_TARGET"; then
11239 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11240 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11241 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11242 fi
11243
11244 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11245 for ncn_progname in gdc; do
11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 if test -n "$GDC_FOR_TARGET"; then
11254 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267 done
11268 done
11269 IFS=$as_save_IFS
11270
11271 fi
11272 fi
11273 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11274 if test -n "$GDC_FOR_TARGET"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11276 $as_echo "$GDC_FOR_TARGET" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283 done
11284 fi
11285
11286 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11287 for ncn_progname in gdc; do
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11289 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11290 if test -x $with_build_time_tools/${ncn_progname}; then
11291 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293 $as_echo "yes" >&6; }
11294 break
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11298 fi
11299 done
11300 fi
11301
11302 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11303 for ncn_progname in gdc; do
11304 if test -n "$ncn_target_tool_prefix"; then
11305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11306 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 if test -n "$GDC_FOR_TARGET"; then
11313 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11314 else
11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in $PATH
11317 do
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 break 2
11325 fi
11326 done
11327 done
11328 IFS=$as_save_IFS
11329
11330 fi
11331 fi
11332 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11333 if test -n "$GDC_FOR_TARGET"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11335 $as_echo "$GDC_FOR_TARGET" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339 fi
11340
11341
11342 fi
11343 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11345 set dummy ${ncn_progname}; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 if test -n "$GDC_FOR_TARGET"; then
11352 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11353 else
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11356 do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365 done
11366 done
11367 IFS=$as_save_IFS
11368
11369 fi
11370 fi
11371 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11372 if test -n "$GDC_FOR_TARGET"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11374 $as_echo "$GDC_FOR_TARGET" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11378 fi
11379
11380
11381 fi
11382 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11383 done
11384 fi
11385
11386 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11387 set dummy gdc
11388 if test $build = $target ; then
11389 GDC_FOR_TARGET="$2"
11390 else
11391 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11392 fi
11393 else
11394 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11395 fi
11396
11397
11398
11399 cat > conftest.c << \EOF
11400 #ifdef __GNUC__
11401 gcc_yay;
11402 #endif
11403 EOF
11404 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11405 have_gcc_for_target=yes
11406 else
11407 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11408 have_gcc_for_target=no
11409 fi
11410 rm conftest.c
11411
11412
11413
11414
11415 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11416 if test -n "$with_build_time_tools"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11418 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11419 if test -x $with_build_time_tools/ar; then
11420 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11421 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11423 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11427 fi
11428 elif test $build != $host && test $have_gcc_for_target = yes; then
11429 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11430 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11431 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11432 fi
11433 fi
11434 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11435 # Extract the first word of "ar", so it can be a program name with args.
11436 set dummy ar; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 case $AR_FOR_TARGET in
11443 [\\/]* | ?:[\\/]*)
11444 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11445 ;;
11446 *)
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $gcc_cv_tool_dirs
11449 do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11457 fi
11458 done
11459 done
11460 IFS=$as_save_IFS
11461
11462 ;;
11463 esac
11464 fi
11465 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11466 if test -n "$AR_FOR_TARGET"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11468 $as_echo "$AR_FOR_TARGET" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472 fi
11473
11474
11475 fi
11476 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11477
11478
11479 if test -n "$AR_FOR_TARGET"; then
11480 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11481 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11482 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11483 fi
11484
11485 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11486 for ncn_progname in ar; do
11487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11488 set dummy ${ncn_progname}; ac_word=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 if test -n "$AR_FOR_TARGET"; then
11495 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11496 else
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11499 do
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11504 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 break 2
11507 fi
11508 done
11509 done
11510 IFS=$as_save_IFS
11511
11512 fi
11513 fi
11514 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11515 if test -n "$AR_FOR_TARGET"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11517 $as_echo "$AR_FOR_TARGET" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 fi
11522
11523
11524 done
11525 fi
11526
11527 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11528 for ncn_progname in ar; do
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11530 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11531 if test -x $with_build_time_tools/${ncn_progname}; then
11532 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534 $as_echo "yes" >&6; }
11535 break
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11539 fi
11540 done
11541 fi
11542
11543 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11544 for ncn_progname in ar; do
11545 if test -n "$ncn_target_tool_prefix"; then
11546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 if test -n "$AR_FOR_TARGET"; then
11554 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11555 else
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567 done
11568 done
11569 IFS=$as_save_IFS
11570
11571 fi
11572 fi
11573 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11574 if test -n "$AR_FOR_TARGET"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11576 $as_echo "$AR_FOR_TARGET" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 fi
11581
11582
11583 fi
11584 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11586 set dummy ${ncn_progname}; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 if test -n "$AR_FOR_TARGET"; then
11593 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11594 else
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11597 do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606 done
11607 done
11608 IFS=$as_save_IFS
11609
11610 fi
11611 fi
11612 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11613 if test -n "$AR_FOR_TARGET"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11615 $as_echo "$AR_FOR_TARGET" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620
11621
11622 fi
11623 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11624 done
11625 fi
11626
11627 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11628 set dummy ar
11629 if test $build = $target ; then
11630 AR_FOR_TARGET="$2"
11631 else
11632 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11633 fi
11634 else
11635 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11636 fi
11637
11638 else
11639 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11640 fi
11641
11642
11643
11644
11645 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11646 if test -n "$with_build_time_tools"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11648 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11649 if test -x $with_build_time_tools/as; then
11650 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11651 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11653 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11657 fi
11658 elif test $build != $host && test $have_gcc_for_target = yes; then
11659 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11660 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11661 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11662 fi
11663 fi
11664 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11665 # Extract the first word of "as", so it can be a program name with args.
11666 set dummy as; ac_word=$2
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 case $AS_FOR_TARGET in
11673 [\\/]* | ?:[\\/]*)
11674 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11675 ;;
11676 *)
11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $gcc_cv_tool_dirs
11679 do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 break 2
11687 fi
11688 done
11689 done
11690 IFS=$as_save_IFS
11691
11692 ;;
11693 esac
11694 fi
11695 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11696 if test -n "$AS_FOR_TARGET"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11698 $as_echo "$AS_FOR_TARGET" >&6; }
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11702 fi
11703
11704
11705 fi
11706 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11707
11708
11709 if test -n "$AS_FOR_TARGET"; then
11710 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11711 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11712 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11713 fi
11714
11715 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11716 for ncn_progname in as; do
11717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11718 set dummy ${ncn_progname}; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 if test -n "$AS_FOR_TARGET"; then
11725 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11726 else
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11729 do
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11737 fi
11738 done
11739 done
11740 IFS=$as_save_IFS
11741
11742 fi
11743 fi
11744 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11745 if test -n "$AS_FOR_TARGET"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11747 $as_echo "$AS_FOR_TARGET" >&6; }
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751 fi
11752
11753
11754 done
11755 fi
11756
11757 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11758 for ncn_progname in as; do
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11760 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11761 if test -x $with_build_time_tools/${ncn_progname}; then
11762 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11764 $as_echo "yes" >&6; }
11765 break
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; }
11769 fi
11770 done
11771 fi
11772
11773 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11774 for ncn_progname in as; do
11775 if test -n "$ncn_target_tool_prefix"; then
11776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 if test -n "$AS_FOR_TARGET"; then
11784 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11785 else
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11788 do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797 done
11798 done
11799 IFS=$as_save_IFS
11800
11801 fi
11802 fi
11803 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11804 if test -n "$AS_FOR_TARGET"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11806 $as_echo "$AS_FOR_TARGET" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811
11812
11813 fi
11814 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11816 set dummy ${ncn_progname}; ac_word=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 if test -n "$AS_FOR_TARGET"; then
11823 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11824 else
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11827 do
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11835 fi
11836 done
11837 done
11838 IFS=$as_save_IFS
11839
11840 fi
11841 fi
11842 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11843 if test -n "$AS_FOR_TARGET"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11845 $as_echo "$AS_FOR_TARGET" >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849 fi
11850
11851
11852 fi
11853 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11854 done
11855 fi
11856
11857 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11858 set dummy as
11859 if test $build = $target ; then
11860 AS_FOR_TARGET="$2"
11861 else
11862 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11863 fi
11864 else
11865 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11866 fi
11867
11868 else
11869 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11870 fi
11871
11872
11873
11874
11875 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11876 if test -n "$with_build_time_tools"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11878 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11879 if test -x $with_build_time_tools/dlltool; then
11880 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11881 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11883 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11887 fi
11888 elif test $build != $host && test $have_gcc_for_target = yes; then
11889 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11890 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11891 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11892 fi
11893 fi
11894 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11895 # Extract the first word of "dlltool", so it can be a program name with args.
11896 set dummy dlltool; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 case $DLLTOOL_FOR_TARGET in
11903 [\\/]* | ?:[\\/]*)
11904 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11905 ;;
11906 *)
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $gcc_cv_tool_dirs
11909 do
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 break 2
11917 fi
11918 done
11919 done
11920 IFS=$as_save_IFS
11921
11922 ;;
11923 esac
11924 fi
11925 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11926 if test -n "$DLLTOOL_FOR_TARGET"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11928 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11929 else
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11932 fi
11933
11934
11935 fi
11936 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11937
11938
11939 if test -n "$DLLTOOL_FOR_TARGET"; then
11940 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11941 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11942 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11943 fi
11944
11945 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11946 for ncn_progname in dlltool; do
11947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11948 set dummy ${ncn_progname}; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 if test -n "$DLLTOOL_FOR_TARGET"; then
11955 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11956 else
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11959 do
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11964 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 break 2
11967 fi
11968 done
11969 done
11970 IFS=$as_save_IFS
11971
11972 fi
11973 fi
11974 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11975 if test -n "$DLLTOOL_FOR_TARGET"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11977 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 fi
11982
11983
11984 done
11985 fi
11986
11987 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11988 for ncn_progname in dlltool; do
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11990 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11991 if test -x $with_build_time_tools/${ncn_progname}; then
11992 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994 $as_echo "yes" >&6; }
11995 break
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; }
11999 fi
12000 done
12001 fi
12002
12003 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
12004 for ncn_progname in dlltool; do
12005 if test -n "$ncn_target_tool_prefix"; then
12006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 if test -n "$DLLTOOL_FOR_TARGET"; then
12014 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
12015 else
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12018 do
12019 IFS=$as_save_IFS
12020 test -z "$as_dir" && as_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025 break 2
12026 fi
12027 done
12028 done
12029 IFS=$as_save_IFS
12030
12031 fi
12032 fi
12033 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12034 if test -n "$DLLTOOL_FOR_TARGET"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12036 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12040 fi
12041
12042
12043 fi
12044 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
12045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12046 set dummy ${ncn_progname}; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 if test -n "$DLLTOOL_FOR_TARGET"; then
12053 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
12054 else
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12057 do
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12065 fi
12066 done
12067 done
12068 IFS=$as_save_IFS
12069
12070 fi
12071 fi
12072 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12073 if test -n "$DLLTOOL_FOR_TARGET"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12075 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12079 fi
12080
12081
12082 fi
12083 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
12084 done
12085 fi
12086
12087 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
12088 set dummy dlltool
12089 if test $build = $target ; then
12090 DLLTOOL_FOR_TARGET="$2"
12091 else
12092 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12093 fi
12094 else
12095 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
12096 fi
12097
12098 else
12099 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12100 fi
12101
12102
12103
12104
12105 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
12106 if test -n "$with_build_time_tools"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
12108 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
12109 if test -x $with_build_time_tools/dsymutil; then
12110 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
12111 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
12113 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12117 fi
12118 elif test $build != $host && test $have_gcc_for_target = yes; then
12119 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
12120 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
12121 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12122 fi
12123 fi
12124 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12125 # Extract the first word of "dsymutil", so it can be a program name with args.
12126 set dummy dsymutil; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 case $DSYMUTIL_FOR_TARGET in
12133 [\\/]* | ?:[\\/]*)
12134 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
12135 ;;
12136 *)
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $gcc_cv_tool_dirs
12139 do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148 done
12149 done
12150 IFS=$as_save_IFS
12151
12152 ;;
12153 esac
12154 fi
12155 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
12156 if test -n "$DSYMUTIL_FOR_TARGET"; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12158 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12159 else
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12162 fi
12163
12164
12165 fi
12166 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
12167
12168
12169 if test -n "$DSYMUTIL_FOR_TARGET"; then
12170 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12171 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12172 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12173 fi
12174
12175 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12176 for ncn_progname in dsymutil; do
12177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12178 set dummy ${ncn_progname}; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test -n "$DSYMUTIL_FOR_TARGET"; then
12185 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12186 else
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 fi
12203 fi
12204 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12205 if test -n "$DSYMUTIL_FOR_TARGET"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12207 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213
12214 done
12215 fi
12216
12217 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
12218 for ncn_progname in dsymutil; do
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12220 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12221 if test -x $with_build_time_tools/${ncn_progname}; then
12222 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12224 $as_echo "yes" >&6; }
12225 break
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230 done
12231 fi
12232
12233 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12234 for ncn_progname in dsymutil; do
12235 if test -n "$ncn_target_tool_prefix"; then
12236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12237 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 if test -n "$DSYMUTIL_FOR_TARGET"; then
12244 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12256 fi
12257 done
12258 done
12259 IFS=$as_save_IFS
12260
12261 fi
12262 fi
12263 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12264 if test -n "$DSYMUTIL_FOR_TARGET"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12266 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270 fi
12271
12272
12273 fi
12274 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
12275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12276 set dummy ${ncn_progname}; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 if test -n "$DSYMUTIL_FOR_TARGET"; then
12283 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12284 else
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12287 do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296 done
12297 done
12298 IFS=$as_save_IFS
12299
12300 fi
12301 fi
12302 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12303 if test -n "$DSYMUTIL_FOR_TARGET"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12305 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309 fi
12310
12311
12312 fi
12313 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
12314 done
12315 fi
12316
12317 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
12318 set dummy dsymutil
12319 if test $build = $target ; then
12320 DSYMUTIL_FOR_TARGET="$2"
12321 else
12322 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12323 fi
12324 else
12325 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
12326 fi
12327
12328 else
12329 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
12330 fi
12331
12332
12333
12334
12335 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12336 if test -n "$with_build_time_tools"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12338 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
12339 if test -x $with_build_time_tools/ld; then
12340 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12341 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12343 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348 elif test $build != $host && test $have_gcc_for_target = yes; then
12349 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12350 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12351 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12352 fi
12353 fi
12354 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12355 # Extract the first word of "ld", so it can be a program name with args.
12356 set dummy ld; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 case $LD_FOR_TARGET in
12363 [\\/]* | ?:[\\/]*)
12364 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12365 ;;
12366 *)
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $gcc_cv_tool_dirs
12369 do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12377 fi
12378 done
12379 done
12380 IFS=$as_save_IFS
12381
12382 ;;
12383 esac
12384 fi
12385 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12386 if test -n "$LD_FOR_TARGET"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12388 $as_echo "$LD_FOR_TARGET" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392 fi
12393
12394
12395 fi
12396 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12397
12398
12399 if test -n "$LD_FOR_TARGET"; then
12400 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12401 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12402 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12403 fi
12404
12405 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12406 for ncn_progname in ld; do
12407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12408 set dummy ${ncn_progname}; ac_word=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 if test -n "$LD_FOR_TARGET"; then
12415 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12416 else
12417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418 for as_dir in $PATH
12419 do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 break 2
12427 fi
12428 done
12429 done
12430 IFS=$as_save_IFS
12431
12432 fi
12433 fi
12434 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12435 if test -n "$LD_FOR_TARGET"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12437 $as_echo "$LD_FOR_TARGET" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12441 fi
12442
12443
12444 done
12445 fi
12446
12447 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12448 for ncn_progname in ld; do
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12450 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12451 if test -x $with_build_time_tools/${ncn_progname}; then
12452 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12454 $as_echo "yes" >&6; }
12455 break
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460 done
12461 fi
12462
12463 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12464 for ncn_progname in ld; do
12465 if test -n "$ncn_target_tool_prefix"; then
12466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12467 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 if test -n "$LD_FOR_TARGET"; then
12474 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12486 fi
12487 done
12488 done
12489 IFS=$as_save_IFS
12490
12491 fi
12492 fi
12493 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12494 if test -n "$LD_FOR_TARGET"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12496 $as_echo "$LD_FOR_TARGET" >&6; }
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 fi
12501
12502
12503 fi
12504 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12506 set dummy ${ncn_progname}; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 if test -n "$LD_FOR_TARGET"; then
12513 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12514 else
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12517 do
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12525 fi
12526 done
12527 done
12528 IFS=$as_save_IFS
12529
12530 fi
12531 fi
12532 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12533 if test -n "$LD_FOR_TARGET"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12535 $as_echo "$LD_FOR_TARGET" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540
12541
12542 fi
12543 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12544 done
12545 fi
12546
12547 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12548 set dummy ld
12549 if test $build = $target ; then
12550 LD_FOR_TARGET="$2"
12551 else
12552 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12553 fi
12554 else
12555 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12556 fi
12557
12558 else
12559 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12560 fi
12561
12562
12563
12564
12565 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12566 if test -n "$with_build_time_tools"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12568 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12569 if test -x $with_build_time_tools/lipo; then
12570 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12571 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12573 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 fi
12578 elif test $build != $host && test $have_gcc_for_target = yes; then
12579 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12580 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12581 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12582 fi
12583 fi
12584 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12585 # Extract the first word of "lipo", so it can be a program name with args.
12586 set dummy lipo; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 case $LIPO_FOR_TARGET in
12593 [\\/]* | ?:[\\/]*)
12594 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12595 ;;
12596 *)
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $gcc_cv_tool_dirs
12599 do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608 done
12609 done
12610 IFS=$as_save_IFS
12611
12612 ;;
12613 esac
12614 fi
12615 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12616 if test -n "$LIPO_FOR_TARGET"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12618 $as_echo "$LIPO_FOR_TARGET" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623
12624
12625 fi
12626 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12627
12628
12629 if test -n "$LIPO_FOR_TARGET"; then
12630 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12631 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12632 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12633 fi
12634
12635 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12636 for ncn_progname in lipo; do
12637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12638 set dummy ${ncn_progname}; ac_word=$2
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640 $as_echo_n "checking for $ac_word... " >&6; }
12641 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 if test -n "$LIPO_FOR_TARGET"; then
12645 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12646 else
12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12649 do
12650 IFS=$as_save_IFS
12651 test -z "$as_dir" && as_dir=.
12652 for ac_exec_ext in '' $ac_executable_extensions; do
12653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656 break 2
12657 fi
12658 done
12659 done
12660 IFS=$as_save_IFS
12661
12662 fi
12663 fi
12664 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12665 if test -n "$LIPO_FOR_TARGET"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12667 $as_echo "$LIPO_FOR_TARGET" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12671 fi
12672
12673
12674 done
12675 fi
12676
12677 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12678 for ncn_progname in lipo; do
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12680 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12681 if test -x $with_build_time_tools/${ncn_progname}; then
12682 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684 $as_echo "yes" >&6; }
12685 break
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12689 fi
12690 done
12691 fi
12692
12693 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12694 for ncn_progname in lipo; do
12695 if test -n "$ncn_target_tool_prefix"; then
12696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 if test -n "$LIPO_FOR_TARGET"; then
12704 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12705 else
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12708 do
12709 IFS=$as_save_IFS
12710 test -z "$as_dir" && as_dir=.
12711 for ac_exec_ext in '' $ac_executable_extensions; do
12712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12713 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 break 2
12716 fi
12717 done
12718 done
12719 IFS=$as_save_IFS
12720
12721 fi
12722 fi
12723 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12724 if test -n "$LIPO_FOR_TARGET"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12726 $as_echo "$LIPO_FOR_TARGET" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731
12732
12733 fi
12734 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12736 set dummy ${ncn_progname}; ac_word=$2
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738 $as_echo_n "checking for $ac_word... " >&6; }
12739 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 if test -n "$LIPO_FOR_TARGET"; then
12743 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12744 else
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12747 do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756 done
12757 done
12758 IFS=$as_save_IFS
12759
12760 fi
12761 fi
12762 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12763 if test -n "$LIPO_FOR_TARGET"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12765 $as_echo "$LIPO_FOR_TARGET" >&6; }
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769 fi
12770
12771
12772 fi
12773 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12774 done
12775 fi
12776
12777 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12778 set dummy lipo
12779 if test $build = $target ; then
12780 LIPO_FOR_TARGET="$2"
12781 else
12782 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12783 fi
12784 else
12785 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12786 fi
12787
12788 else
12789 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12790 fi
12791
12792
12793
12794
12795 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12796 if test -n "$with_build_time_tools"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12798 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12799 if test -x $with_build_time_tools/nm; then
12800 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12801 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12803 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808 elif test $build != $host && test $have_gcc_for_target = yes; then
12809 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12810 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12811 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12812 fi
12813 fi
12814 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12815 # Extract the first word of "nm", so it can be a program name with args.
12816 set dummy nm; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 case $NM_FOR_TARGET in
12823 [\\/]* | ?:[\\/]*)
12824 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12825 ;;
12826 *)
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $gcc_cv_tool_dirs
12829 do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12834 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 break 2
12837 fi
12838 done
12839 done
12840 IFS=$as_save_IFS
12841
12842 ;;
12843 esac
12844 fi
12845 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12846 if test -n "$NM_FOR_TARGET"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12848 $as_echo "$NM_FOR_TARGET" >&6; }
12849 else
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12852 fi
12853
12854
12855 fi
12856 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12857
12858
12859 if test -n "$NM_FOR_TARGET"; then
12860 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12861 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12862 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12863 fi
12864
12865 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12866 for ncn_progname in nm; do
12867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12868 set dummy ${ncn_progname}; ac_word=$2
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 if test -n "$NM_FOR_TARGET"; then
12875 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12876 else
12877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12879 do
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
12882 for ac_exec_ext in '' $ac_executable_extensions; do
12883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12884 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 break 2
12887 fi
12888 done
12889 done
12890 IFS=$as_save_IFS
12891
12892 fi
12893 fi
12894 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12895 if test -n "$NM_FOR_TARGET"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12897 $as_echo "$NM_FOR_TARGET" >&6; }
12898 else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902
12903
12904 done
12905 fi
12906
12907 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12908 for ncn_progname in nm; do
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12910 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12911 if test -x $with_build_time_tools/${ncn_progname}; then
12912 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 $as_echo "yes" >&6; }
12915 break
12916 else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12919 fi
12920 done
12921 fi
12922
12923 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12924 for ncn_progname in nm; do
12925 if test -n "$ncn_target_tool_prefix"; then
12926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12927 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929 $as_echo_n "checking for $ac_word... " >&6; }
12930 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 if test -n "$NM_FOR_TARGET"; then
12934 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12935 else
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12938 do
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 break 2
12946 fi
12947 done
12948 done
12949 IFS=$as_save_IFS
12950
12951 fi
12952 fi
12953 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12954 if test -n "$NM_FOR_TARGET"; then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12956 $as_echo "$NM_FOR_TARGET" >&6; }
12957 else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12960 fi
12961
12962
12963 fi
12964 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12966 set dummy ${ncn_progname}; ac_word=$2
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968 $as_echo_n "checking for $ac_word... " >&6; }
12969 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 if test -n "$NM_FOR_TARGET"; then
12973 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12974 else
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12977 do
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 break 2
12985 fi
12986 done
12987 done
12988 IFS=$as_save_IFS
12989
12990 fi
12991 fi
12992 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12993 if test -n "$NM_FOR_TARGET"; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12995 $as_echo "$NM_FOR_TARGET" >&6; }
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
12999 fi
13000
13001
13002 fi
13003 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
13004 done
13005 fi
13006
13007 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
13008 set dummy nm
13009 if test $build = $target ; then
13010 NM_FOR_TARGET="$2"
13011 else
13012 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
13013 fi
13014 else
13015 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
13016 fi
13017
13018 else
13019 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
13020 fi
13021
13022
13023
13024
13025 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13026 if test -n "$with_build_time_tools"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
13028 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
13029 if test -x $with_build_time_tools/objcopy; then
13030 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
13031 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
13033 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13037 fi
13038 elif test $build != $host && test $have_gcc_for_target = yes; then
13039 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
13040 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
13041 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13042 fi
13043 fi
13044 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13045 # Extract the first word of "objcopy", so it can be a program name with args.
13046 set dummy objcopy; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 case $OBJCOPY_FOR_TARGET in
13053 [\\/]* | ?:[\\/]*)
13054 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
13055 ;;
13056 *)
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $gcc_cv_tool_dirs
13059 do
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13064 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13067 fi
13068 done
13069 done
13070 IFS=$as_save_IFS
13071
13072 ;;
13073 esac
13074 fi
13075 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13076 if test -n "$OBJCOPY_FOR_TARGET"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13078 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082 fi
13083
13084
13085 fi
13086 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13087
13088
13089 if test -n "$OBJCOPY_FOR_TARGET"; then
13090 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13091 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13092 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13093 fi
13094
13095 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13096 for ncn_progname in objcopy; do
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098 set dummy ${ncn_progname}; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 if test -n "$OBJCOPY_FOR_TARGET"; then
13105 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13106 else
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13109 do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13117 fi
13118 done
13119 done
13120 IFS=$as_save_IFS
13121
13122 fi
13123 fi
13124 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13125 if test -n "$OBJCOPY_FOR_TARGET"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13127 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13131 fi
13132
13133
13134 done
13135 fi
13136
13137 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
13138 for ncn_progname in objcopy; do
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13140 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13141 if test -x $with_build_time_tools/${ncn_progname}; then
13142 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; }
13145 break
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13149 fi
13150 done
13151 fi
13152
13153 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13154 for ncn_progname in objcopy; do
13155 if test -n "$ncn_target_tool_prefix"; then
13156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 if test -n "$OBJCOPY_FOR_TARGET"; then
13164 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13168 do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177 done
13178 done
13179 IFS=$as_save_IFS
13180
13181 fi
13182 fi
13183 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13184 if test -n "$OBJCOPY_FOR_TARGET"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13186 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190 fi
13191
13192
13193 fi
13194 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
13195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13196 set dummy ${ncn_progname}; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$OBJCOPY_FOR_TARGET"; then
13203 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216 done
13217 done
13218 IFS=$as_save_IFS
13219
13220 fi
13221 fi
13222 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13223 if test -n "$OBJCOPY_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13225 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13229 fi
13230
13231
13232 fi
13233 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
13234 done
13235 fi
13236
13237 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
13238 set dummy objcopy
13239 if test $build = $target ; then
13240 OBJCOPY_FOR_TARGET="$2"
13241 else
13242 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
13243 fi
13244 else
13245 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
13246 fi
13247
13248 else
13249 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13250 fi
13251
13252
13253
13254
13255 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13256 if test -n "$with_build_time_tools"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
13258 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
13259 if test -x $with_build_time_tools/objdump; then
13260 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
13261 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
13263 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268 elif test $build != $host && test $have_gcc_for_target = yes; then
13269 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
13270 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
13271 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13272 fi
13273 fi
13274 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13275 # Extract the first word of "objdump", so it can be a program name with args.
13276 set dummy objdump; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 case $OBJDUMP_FOR_TARGET in
13283 [\\/]* | ?:[\\/]*)
13284 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
13285 ;;
13286 *)
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $gcc_cv_tool_dirs
13289 do
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
13293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13294 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 break 2
13297 fi
13298 done
13299 done
13300 IFS=$as_save_IFS
13301
13302 ;;
13303 esac
13304 fi
13305 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13306 if test -n "$OBJDUMP_FOR_TARGET"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13308 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13312 fi
13313
13314
13315 fi
13316 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13317
13318
13319 if test -n "$OBJDUMP_FOR_TARGET"; then
13320 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13321 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13322 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13323 fi
13324
13325 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13326 for ncn_progname in objdump; do
13327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13328 set dummy ${ncn_progname}; ac_word=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 if test -n "$OBJDUMP_FOR_TARGET"; then
13335 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13336 else
13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 for as_dir in $PATH
13339 do
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
13342 for ac_exec_ext in '' $ac_executable_extensions; do
13343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13344 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 break 2
13347 fi
13348 done
13349 done
13350 IFS=$as_save_IFS
13351
13352 fi
13353 fi
13354 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13355 if test -n "$OBJDUMP_FOR_TARGET"; then
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13357 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13358 else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13361 fi
13362
13363
13364 done
13365 fi
13366
13367 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13368 for ncn_progname in objdump; do
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13370 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13371 if test -x $with_build_time_tools/${ncn_progname}; then
13372 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13374 $as_echo "yes" >&6; }
13375 break
13376 else
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13379 fi
13380 done
13381 fi
13382
13383 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13384 for ncn_progname in objdump; do
13385 if test -n "$ncn_target_tool_prefix"; then
13386 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13387 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 if test -n "$OBJDUMP_FOR_TARGET"; then
13394 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13395 else
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13398 do
13399 IFS=$as_save_IFS
13400 test -z "$as_dir" && as_dir=.
13401 for ac_exec_ext in '' $ac_executable_extensions; do
13402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13403 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 break 2
13406 fi
13407 done
13408 done
13409 IFS=$as_save_IFS
13410
13411 fi
13412 fi
13413 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13414 if test -n "$OBJDUMP_FOR_TARGET"; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13416 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13420 fi
13421
13422
13423 fi
13424 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13426 set dummy ${ncn_progname}; ac_word=$2
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428 $as_echo_n "checking for $ac_word... " >&6; }
13429 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13430 $as_echo_n "(cached) " >&6
13431 else
13432 if test -n "$OBJDUMP_FOR_TARGET"; then
13433 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13434 else
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13437 do
13438 IFS=$as_save_IFS
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13442 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 break 2
13445 fi
13446 done
13447 done
13448 IFS=$as_save_IFS
13449
13450 fi
13451 fi
13452 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13453 if test -n "$OBJDUMP_FOR_TARGET"; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13455 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13456 else
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13459 fi
13460
13461
13462 fi
13463 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13464 done
13465 fi
13466
13467 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13468 set dummy objdump
13469 if test $build = $target ; then
13470 OBJDUMP_FOR_TARGET="$2"
13471 else
13472 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13473 fi
13474 else
13475 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13476 fi
13477
13478 else
13479 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13480 fi
13481
13482
13483
13484
13485 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13486 if test -n "$with_build_time_tools"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13488 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13489 if test -x $with_build_time_tools/otool; then
13490 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13491 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13493 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13494 else
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13497 fi
13498 elif test $build != $host && test $have_gcc_for_target = yes; then
13499 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13500 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13501 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13502 fi
13503 fi
13504 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13505 # Extract the first word of "otool", so it can be a program name with args.
13506 set dummy otool; ac_word=$2
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 $as_echo_n "checking for $ac_word... " >&6; }
13509 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 case $OTOOL_FOR_TARGET in
13513 [\\/]* | ?:[\\/]*)
13514 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13515 ;;
13516 *)
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $gcc_cv_tool_dirs
13519 do
13520 IFS=$as_save_IFS
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
13523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13524 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 break 2
13527 fi
13528 done
13529 done
13530 IFS=$as_save_IFS
13531
13532 ;;
13533 esac
13534 fi
13535 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13536 if test -n "$OTOOL_FOR_TARGET"; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13538 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13539 else
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13542 fi
13543
13544
13545 fi
13546 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13547
13548
13549 if test -n "$OTOOL_FOR_TARGET"; then
13550 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13551 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13552 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13553 fi
13554
13555 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13556 for ncn_progname in otool; do
13557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13558 set dummy ${ncn_progname}; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 $as_echo_n "checking for $ac_word... " >&6; }
13561 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 if test -n "$OTOOL_FOR_TARGET"; then
13565 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13566 else
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13569 do
13570 IFS=$as_save_IFS
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13574 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 break 2
13577 fi
13578 done
13579 done
13580 IFS=$as_save_IFS
13581
13582 fi
13583 fi
13584 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13585 if test -n "$OTOOL_FOR_TARGET"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13587 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13588 else
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13591 fi
13592
13593
13594 done
13595 fi
13596
13597 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13598 for ncn_progname in otool; do
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13600 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13601 if test -x $with_build_time_tools/${ncn_progname}; then
13602 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13604 $as_echo "yes" >&6; }
13605 break
13606 else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610 done
13611 fi
13612
13613 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13614 for ncn_progname in otool; do
13615 if test -n "$ncn_target_tool_prefix"; then
13616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13617 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 if test -n "$OTOOL_FOR_TARGET"; then
13624 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637 done
13638 done
13639 IFS=$as_save_IFS
13640
13641 fi
13642 fi
13643 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13644 if test -n "$OTOOL_FOR_TARGET"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13646 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13650 fi
13651
13652
13653 fi
13654 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13656 set dummy ${ncn_progname}; ac_word=$2
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658 $as_echo_n "checking for $ac_word... " >&6; }
13659 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 if test -n "$OTOOL_FOR_TARGET"; then
13663 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13664 else
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $PATH
13667 do
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13675 fi
13676 done
13677 done
13678 IFS=$as_save_IFS
13679
13680 fi
13681 fi
13682 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13683 if test -n "$OTOOL_FOR_TARGET"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13685 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13686 else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13689 fi
13690
13691
13692 fi
13693 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13694 done
13695 fi
13696
13697 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13698 set dummy otool
13699 if test $build = $target ; then
13700 OTOOL_FOR_TARGET="$2"
13701 else
13702 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13703 fi
13704 else
13705 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13706 fi
13707
13708 else
13709 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13710 fi
13711
13712
13713
13714
13715 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13716 if test -n "$with_build_time_tools"; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13718 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13719 if test -x $with_build_time_tools/ranlib; then
13720 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13721 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13723 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13724 else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 $as_echo "no" >&6; }
13727 fi
13728 elif test $build != $host && test $have_gcc_for_target = yes; then
13729 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13730 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13731 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13732 fi
13733 fi
13734 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13735 # Extract the first word of "ranlib", so it can be a program name with args.
13736 set dummy ranlib; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 case $RANLIB_FOR_TARGET in
13743 [\\/]* | ?:[\\/]*)
13744 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13745 ;;
13746 *)
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $gcc_cv_tool_dirs
13749 do
13750 IFS=$as_save_IFS
13751 test -z "$as_dir" && as_dir=.
13752 for ac_exec_ext in '' $ac_executable_extensions; do
13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 break 2
13757 fi
13758 done
13759 done
13760 IFS=$as_save_IFS
13761
13762 ;;
13763 esac
13764 fi
13765 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13766 if test -n "$RANLIB_FOR_TARGET"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13768 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13769 else
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772 fi
13773
13774
13775 fi
13776 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13777
13778
13779 if test -n "$RANLIB_FOR_TARGET"; then
13780 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13781 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13782 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13783 fi
13784
13785 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13786 for ncn_progname in ranlib; do
13787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13788 set dummy ${ncn_progname}; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 if test -n "$RANLIB_FOR_TARGET"; then
13795 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808 done
13809 done
13810 IFS=$as_save_IFS
13811
13812 fi
13813 fi
13814 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13815 if test -n "$RANLIB_FOR_TARGET"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13817 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13818 else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 $as_echo "no" >&6; }
13821 fi
13822
13823
13824 done
13825 fi
13826
13827 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13828 for ncn_progname in ranlib; do
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13830 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13831 if test -x $with_build_time_tools/${ncn_progname}; then
13832 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13834 $as_echo "yes" >&6; }
13835 break
13836 else
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13839 fi
13840 done
13841 fi
13842
13843 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13844 for ncn_progname in ranlib; do
13845 if test -n "$ncn_target_tool_prefix"; then
13846 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13847 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 $as_echo_n "checking for $ac_word... " >&6; }
13850 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 if test -n "$RANLIB_FOR_TARGET"; then
13854 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13855 else
13856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $PATH
13858 do
13859 IFS=$as_save_IFS
13860 test -z "$as_dir" && as_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13865 break 2
13866 fi
13867 done
13868 done
13869 IFS=$as_save_IFS
13870
13871 fi
13872 fi
13873 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13874 if test -n "$RANLIB_FOR_TARGET"; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13876 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13877 else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 $as_echo "no" >&6; }
13880 fi
13881
13882
13883 fi
13884 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13886 set dummy ${ncn_progname}; ac_word=$2
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888 $as_echo_n "checking for $ac_word... " >&6; }
13889 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 if test -n "$RANLIB_FOR_TARGET"; then
13893 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13897 do
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13905 fi
13906 done
13907 done
13908 IFS=$as_save_IFS
13909
13910 fi
13911 fi
13912 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13913 if test -n "$RANLIB_FOR_TARGET"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13915 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13919 fi
13920
13921
13922 fi
13923 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13924 done
13925 fi
13926
13927 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13928 set dummy ranlib
13929 if test $build = $target ; then
13930 RANLIB_FOR_TARGET="$2"
13931 else
13932 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13933 fi
13934 else
13935 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13936 fi
13937
13938 else
13939 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13940 fi
13941
13942
13943
13944
13945 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13946 if test -n "$with_build_time_tools"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13948 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13949 if test -x $with_build_time_tools/readelf; then
13950 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13951 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13953 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13954 else
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956 $as_echo "no" >&6; }
13957 fi
13958 elif test $build != $host && test $have_gcc_for_target = yes; then
13959 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13960 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13961 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13962 fi
13963 fi
13964 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13965 # Extract the first word of "readelf", so it can be a program name with args.
13966 set dummy readelf; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 case $READELF_FOR_TARGET in
13973 [\\/]* | ?:[\\/]*)
13974 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13975 ;;
13976 *)
13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978 for as_dir in $gcc_cv_tool_dirs
13979 do
13980 IFS=$as_save_IFS
13981 test -z "$as_dir" && as_dir=.
13982 for ac_exec_ext in '' $ac_executable_extensions; do
13983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13984 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13986 break 2
13987 fi
13988 done
13989 done
13990 IFS=$as_save_IFS
13991
13992 ;;
13993 esac
13994 fi
13995 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13996 if test -n "$READELF_FOR_TARGET"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13998 $as_echo "$READELF_FOR_TARGET" >&6; }
13999 else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001 $as_echo "no" >&6; }
14002 fi
14003
14004
14005 fi
14006 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
14007
14008
14009 if test -n "$READELF_FOR_TARGET"; then
14010 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
14011 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14012 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14013 fi
14014
14015 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14016 for ncn_progname in readelf; do
14017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14018 set dummy ${ncn_progname}; ac_word=$2
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 if test -n "$READELF_FOR_TARGET"; then
14025 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14026 else
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 for as_dir in $PATH
14029 do
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
14032 for ac_exec_ext in '' $ac_executable_extensions; do
14033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14034 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 break 2
14037 fi
14038 done
14039 done
14040 IFS=$as_save_IFS
14041
14042 fi
14043 fi
14044 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14045 if test -n "$READELF_FOR_TARGET"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14047 $as_echo "$READELF_FOR_TARGET" >&6; }
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 $as_echo "no" >&6; }
14051 fi
14052
14053
14054 done
14055 fi
14056
14057 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
14058 for ncn_progname in readelf; do
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14060 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14061 if test -x $with_build_time_tools/${ncn_progname}; then
14062 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14064 $as_echo "yes" >&6; }
14065 break
14066 else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14069 fi
14070 done
14071 fi
14072
14073 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
14074 for ncn_progname in readelf; do
14075 if test -n "$ncn_target_tool_prefix"; then
14076 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14077 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 $as_echo_n "checking for $ac_word... " >&6; }
14080 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 if test -n "$READELF_FOR_TARGET"; then
14084 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14088 do
14089 IFS=$as_save_IFS
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14093 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 break 2
14096 fi
14097 done
14098 done
14099 IFS=$as_save_IFS
14100
14101 fi
14102 fi
14103 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14104 if test -n "$READELF_FOR_TARGET"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14106 $as_echo "$READELF_FOR_TARGET" >&6; }
14107 else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14110 fi
14111
14112
14113 fi
14114 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
14115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14116 set dummy ${ncn_progname}; ac_word=$2
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118 $as_echo_n "checking for $ac_word... " >&6; }
14119 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 if test -n "$READELF_FOR_TARGET"; then
14123 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14124 else
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14127 do
14128 IFS=$as_save_IFS
14129 test -z "$as_dir" && as_dir=.
14130 for ac_exec_ext in '' $ac_executable_extensions; do
14131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14132 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 break 2
14135 fi
14136 done
14137 done
14138 IFS=$as_save_IFS
14139
14140 fi
14141 fi
14142 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14143 if test -n "$READELF_FOR_TARGET"; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14145 $as_echo "$READELF_FOR_TARGET" >&6; }
14146 else
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 $as_echo "no" >&6; }
14149 fi
14150
14151
14152 fi
14153 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
14154 done
14155 fi
14156
14157 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
14158 set dummy readelf
14159 if test $build = $target ; then
14160 READELF_FOR_TARGET="$2"
14161 else
14162 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
14163 fi
14164 else
14165 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
14166 fi
14167
14168 else
14169 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
14170 fi
14171
14172
14173
14174
14175 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
14176 if test -n "$with_build_time_tools"; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
14178 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
14179 if test -x $with_build_time_tools/strip; then
14180 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
14181 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
14183 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
14184 else
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14187 fi
14188 elif test $build != $host && test $have_gcc_for_target = yes; then
14189 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
14190 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
14191 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14192 fi
14193 fi
14194 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14195 # Extract the first word of "strip", so it can be a program name with args.
14196 set dummy strip; ac_word=$2
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14198 $as_echo_n "checking for $ac_word... " >&6; }
14199 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
14200 $as_echo_n "(cached) " >&6
14201 else
14202 case $STRIP_FOR_TARGET in
14203 [\\/]* | ?:[\\/]*)
14204 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
14205 ;;
14206 *)
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $gcc_cv_tool_dirs
14209 do
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14214 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 ;;
14223 esac
14224 fi
14225 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
14226 if test -n "$STRIP_FOR_TARGET"; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14228 $as_echo "$STRIP_FOR_TARGET" >&6; }
14229 else
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 $as_echo "no" >&6; }
14232 fi
14233
14234
14235 fi
14236 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
14237
14238
14239 if test -n "$STRIP_FOR_TARGET"; then
14240 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14241 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14242 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14243 fi
14244
14245 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14246 for ncn_progname in strip; do
14247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14248 set dummy ${ncn_progname}; ac_word=$2
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14250 $as_echo_n "checking for $ac_word... " >&6; }
14251 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 if test -n "$STRIP_FOR_TARGET"; then
14255 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14256 else
14257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258 for as_dir in $PATH
14259 do
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
14265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268 done
14269 done
14270 IFS=$as_save_IFS
14271
14272 fi
14273 fi
14274 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14275 if test -n "$STRIP_FOR_TARGET"; then
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14277 $as_echo "$STRIP_FOR_TARGET" >&6; }
14278 else
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 $as_echo "no" >&6; }
14281 fi
14282
14283
14284 done
14285 fi
14286
14287 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
14288 for ncn_progname in strip; do
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14290 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14291 if test -x $with_build_time_tools/${ncn_progname}; then
14292 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14294 $as_echo "yes" >&6; }
14295 break
14296 else
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299 fi
14300 done
14301 fi
14302
14303 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
14304 for ncn_progname in strip; do
14305 if test -n "$ncn_target_tool_prefix"; then
14306 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14307 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14309 $as_echo_n "checking for $ac_word... " >&6; }
14310 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 if test -n "$STRIP_FOR_TARGET"; then
14314 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14315 else
14316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14317 for as_dir in $PATH
14318 do
14319 IFS=$as_save_IFS
14320 test -z "$as_dir" && as_dir=.
14321 for ac_exec_ext in '' $ac_executable_extensions; do
14322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14323 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14325 break 2
14326 fi
14327 done
14328 done
14329 IFS=$as_save_IFS
14330
14331 fi
14332 fi
14333 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14334 if test -n "$STRIP_FOR_TARGET"; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14336 $as_echo "$STRIP_FOR_TARGET" >&6; }
14337 else
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14339 $as_echo "no" >&6; }
14340 fi
14341
14342
14343 fi
14344 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
14345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14346 set dummy ${ncn_progname}; ac_word=$2
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14348 $as_echo_n "checking for $ac_word... " >&6; }
14349 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 if test -n "$STRIP_FOR_TARGET"; then
14353 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14354 else
14355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14356 for as_dir in $PATH
14357 do
14358 IFS=$as_save_IFS
14359 test -z "$as_dir" && as_dir=.
14360 for ac_exec_ext in '' $ac_executable_extensions; do
14361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14362 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
14363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14364 break 2
14365 fi
14366 done
14367 done
14368 IFS=$as_save_IFS
14369
14370 fi
14371 fi
14372 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14373 if test -n "$STRIP_FOR_TARGET"; then
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14375 $as_echo "$STRIP_FOR_TARGET" >&6; }
14376 else
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 $as_echo "no" >&6; }
14379 fi
14380
14381
14382 fi
14383 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
14384 done
14385 fi
14386
14387 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
14388 set dummy strip
14389 if test $build = $target ; then
14390 STRIP_FOR_TARGET="$2"
14391 else
14392 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
14393 fi
14394 else
14395 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
14396 fi
14397
14398 else
14399 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
14400 fi
14401
14402
14403
14404
14405 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14406 if test -n "$with_build_time_tools"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
14408 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
14409 if test -x $with_build_time_tools/windres; then
14410 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
14411 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
14413 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
14414 else
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14417 fi
14418 elif test $build != $host && test $have_gcc_for_target = yes; then
14419 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
14420 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14421 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14422 fi
14423 fi
14424 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14425 # Extract the first word of "windres", so it can be a program name with args.
14426 set dummy windres; ac_word=$2
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428 $as_echo_n "checking for $ac_word... " >&6; }
14429 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 case $WINDRES_FOR_TARGET in
14433 [\\/]* | ?:[\\/]*)
14434 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14435 ;;
14436 *)
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $gcc_cv_tool_dirs
14439 do
14440 IFS=$as_save_IFS
14441 test -z "$as_dir" && as_dir=.
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14444 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14446 break 2
14447 fi
14448 done
14449 done
14450 IFS=$as_save_IFS
14451
14452 ;;
14453 esac
14454 fi
14455 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14456 if test -n "$WINDRES_FOR_TARGET"; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14458 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14459 else
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14462 fi
14463
14464
14465 fi
14466 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14467
14468
14469 if test -n "$WINDRES_FOR_TARGET"; then
14470 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14471 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14472 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14473 fi
14474
14475 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14476 for ncn_progname in windres; do
14477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14478 set dummy ${ncn_progname}; ac_word=$2
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14480 $as_echo_n "checking for $ac_word... " >&6; }
14481 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14482 $as_echo_n "(cached) " >&6
14483 else
14484 if test -n "$WINDRES_FOR_TARGET"; then
14485 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14486 else
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14489 do
14490 IFS=$as_save_IFS
14491 test -z "$as_dir" && as_dir=.
14492 for ac_exec_ext in '' $ac_executable_extensions; do
14493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 break 2
14497 fi
14498 done
14499 done
14500 IFS=$as_save_IFS
14501
14502 fi
14503 fi
14504 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14505 if test -n "$WINDRES_FOR_TARGET"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14507 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14508 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14511 fi
14512
14513
14514 done
14515 fi
14516
14517 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
14518 for ncn_progname in windres; do
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14520 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14521 if test -x $with_build_time_tools/${ncn_progname}; then
14522 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14524 $as_echo "yes" >&6; }
14525 break
14526 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528 $as_echo "no" >&6; }
14529 fi
14530 done
14531 fi
14532
14533 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14534 for ncn_progname in windres; do
14535 if test -n "$ncn_target_tool_prefix"; then
14536 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14537 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 $as_echo_n "checking for $ac_word... " >&6; }
14540 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 if test -n "$WINDRES_FOR_TARGET"; then
14544 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14545 else
14546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 for as_dir in $PATH
14548 do
14549 IFS=$as_save_IFS
14550 test -z "$as_dir" && as_dir=.
14551 for ac_exec_ext in '' $ac_executable_extensions; do
14552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14553 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14555 break 2
14556 fi
14557 done
14558 done
14559 IFS=$as_save_IFS
14560
14561 fi
14562 fi
14563 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14564 if test -n "$WINDRES_FOR_TARGET"; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14566 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14567 else
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569 $as_echo "no" >&6; }
14570 fi
14571
14572
14573 fi
14574 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14576 set dummy ${ncn_progname}; ac_word=$2
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 $as_echo_n "checking for $ac_word... " >&6; }
14579 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 if test -n "$WINDRES_FOR_TARGET"; then
14583 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14584 else
14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14587 do
14588 IFS=$as_save_IFS
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14592 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 break 2
14595 fi
14596 done
14597 done
14598 IFS=$as_save_IFS
14599
14600 fi
14601 fi
14602 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14603 if test -n "$WINDRES_FOR_TARGET"; then
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14605 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14606 else
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608 $as_echo "no" >&6; }
14609 fi
14610
14611
14612 fi
14613 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14614 done
14615 fi
14616
14617 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14618 set dummy windres
14619 if test $build = $target ; then
14620 WINDRES_FOR_TARGET="$2"
14621 else
14622 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14623 fi
14624 else
14625 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14626 fi
14627
14628 else
14629 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14630 fi
14631
14632
14633
14634
14635 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14636 if test -n "$with_build_time_tools"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14638 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14639 if test -x $with_build_time_tools/windmc; then
14640 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14641 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14643 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14644 else
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646 $as_echo "no" >&6; }
14647 fi
14648 elif test $build != $host && test $have_gcc_for_target = yes; then
14649 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14650 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14651 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14652 fi
14653 fi
14654 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14655 # Extract the first word of "windmc", so it can be a program name with args.
14656 set dummy windmc; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 case $WINDMC_FOR_TARGET in
14663 [\\/]* | ?:[\\/]*)
14664 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14665 ;;
14666 *)
14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $gcc_cv_tool_dirs
14669 do
14670 IFS=$as_save_IFS
14671 test -z "$as_dir" && as_dir=.
14672 for ac_exec_ext in '' $ac_executable_extensions; do
14673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676 break 2
14677 fi
14678 done
14679 done
14680 IFS=$as_save_IFS
14681
14682 ;;
14683 esac
14684 fi
14685 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14686 if test -n "$WINDMC_FOR_TARGET"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14688 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693
14694
14695 fi
14696 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14697
14698
14699 if test -n "$WINDMC_FOR_TARGET"; then
14700 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14701 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14702 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14703 fi
14704
14705 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14706 for ncn_progname in windmc; do
14707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14708 set dummy ${ncn_progname}; ac_word=$2
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14710 $as_echo_n "checking for $ac_word... " >&6; }
14711 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 if test -n "$WINDMC_FOR_TARGET"; then
14715 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14716 else
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14719 do
14720 IFS=$as_save_IFS
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 break 2
14727 fi
14728 done
14729 done
14730 IFS=$as_save_IFS
14731
14732 fi
14733 fi
14734 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14735 if test -n "$WINDMC_FOR_TARGET"; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14737 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 $as_echo "no" >&6; }
14741 fi
14742
14743
14744 done
14745 fi
14746
14747 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14748 for ncn_progname in windmc; do
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14750 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14751 if test -x $with_build_time_tools/${ncn_progname}; then
14752 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14755 break
14756 else
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14759 fi
14760 done
14761 fi
14762
14763 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14764 for ncn_progname in windmc; do
14765 if test -n "$ncn_target_tool_prefix"; then
14766 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14767 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 $as_echo_n "checking for $ac_word... " >&6; }
14770 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 if test -n "$WINDMC_FOR_TARGET"; then
14774 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14775 else
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14778 do
14779 IFS=$as_save_IFS
14780 test -z "$as_dir" && as_dir=.
14781 for ac_exec_ext in '' $ac_executable_extensions; do
14782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14785 break 2
14786 fi
14787 done
14788 done
14789 IFS=$as_save_IFS
14790
14791 fi
14792 fi
14793 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14794 if test -n "$WINDMC_FOR_TARGET"; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14796 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14797 else
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14800 fi
14801
14802
14803 fi
14804 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14806 set dummy ${ncn_progname}; ac_word=$2
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14808 $as_echo_n "checking for $ac_word... " >&6; }
14809 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 if test -n "$WINDMC_FOR_TARGET"; then
14813 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14814 else
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14817 do
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14822 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 break 2
14825 fi
14826 done
14827 done
14828 IFS=$as_save_IFS
14829
14830 fi
14831 fi
14832 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14833 if test -n "$WINDMC_FOR_TARGET"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14835 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14836 else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838 $as_echo "no" >&6; }
14839 fi
14840
14841
14842 fi
14843 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14844 done
14845 fi
14846
14847 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14848 set dummy windmc
14849 if test $build = $target ; then
14850 WINDMC_FOR_TARGET="$2"
14851 else
14852 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14853 fi
14854 else
14855 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14856 fi
14857
14858 else
14859 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14860 fi
14861
14862
14863 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14864
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14866 $as_echo_n "checking where to find the target ar... " >&6; }
14867 if test "x${build}" != "x${host}" ; then
14868 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14869 # We already found the complete path
14870 ac_dir=`dirname $AR_FOR_TARGET`
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14872 $as_echo "pre-installed in $ac_dir" >&6; }
14873 else
14874 # Canadian cross, just use what we found
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14876 $as_echo "pre-installed" >&6; }
14877 fi
14878 else
14879 ok=yes
14880 case " ${configdirs} " in
14881 *" binutils "*) ;;
14882 *) ok=no ;;
14883 esac
14884
14885 if test $ok = yes; then
14886 # An in-tree tool is available and we can use it
14887 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14889 $as_echo "just compiled" >&6; }
14890 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14891 # We already found the complete path
14892 ac_dir=`dirname $AR_FOR_TARGET`
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14894 $as_echo "pre-installed in $ac_dir" >&6; }
14895 elif test "x$target" = "x$host"; then
14896 # We can use an host tool
14897 AR_FOR_TARGET='$(AR)'
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14899 $as_echo "host tool" >&6; }
14900 else
14901 # We need a cross tool
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14903 $as_echo "pre-installed" >&6; }
14904 fi
14905 fi
14906
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14908 $as_echo_n "checking where to find the target as... " >&6; }
14909 if test "x${build}" != "x${host}" ; then
14910 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14911 # We already found the complete path
14912 ac_dir=`dirname $AS_FOR_TARGET`
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14914 $as_echo "pre-installed in $ac_dir" >&6; }
14915 else
14916 # Canadian cross, just use what we found
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14918 $as_echo "pre-installed" >&6; }
14919 fi
14920 else
14921 ok=yes
14922 case " ${configdirs} " in
14923 *" gas "*) ;;
14924 *) ok=no ;;
14925 esac
14926
14927 if test $ok = yes; then
14928 # An in-tree tool is available and we can use it
14929 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14931 $as_echo "just compiled" >&6; }
14932 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14933 # We already found the complete path
14934 ac_dir=`dirname $AS_FOR_TARGET`
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14936 $as_echo "pre-installed in $ac_dir" >&6; }
14937 elif test "x$target" = "x$host"; then
14938 # We can use an host tool
14939 AS_FOR_TARGET='$(AS)'
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14941 $as_echo "host tool" >&6; }
14942 else
14943 # We need a cross tool
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14945 $as_echo "pre-installed" >&6; }
14946 fi
14947 fi
14948
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14950 $as_echo_n "checking where to find the target cc... " >&6; }
14951 if test "x${build}" != "x${host}" ; then
14952 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14953 # We already found the complete path
14954 ac_dir=`dirname $CC_FOR_TARGET`
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14956 $as_echo "pre-installed in $ac_dir" >&6; }
14957 else
14958 # Canadian cross, just use what we found
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14960 $as_echo "pre-installed" >&6; }
14961 fi
14962 else
14963 ok=yes
14964 case " ${configdirs} " in
14965 *" gcc "*) ;;
14966 *) ok=no ;;
14967 esac
14968
14969 if test $ok = yes; then
14970 # An in-tree tool is available and we can use it
14971 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14973 $as_echo "just compiled" >&6; }
14974 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14975 # We already found the complete path
14976 ac_dir=`dirname $CC_FOR_TARGET`
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14978 $as_echo "pre-installed in $ac_dir" >&6; }
14979 elif test "x$target" = "x$host"; then
14980 # We can use an host tool
14981 CC_FOR_TARGET='$(CC)'
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14983 $as_echo "host tool" >&6; }
14984 else
14985 # We need a cross tool
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14987 $as_echo "pre-installed" >&6; }
14988 fi
14989 fi
14990
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14992 $as_echo_n "checking where to find the target c++... " >&6; }
14993 if test "x${build}" != "x${host}" ; then
14994 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14995 # We already found the complete path
14996 ac_dir=`dirname $CXX_FOR_TARGET`
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14998 $as_echo "pre-installed in $ac_dir" >&6; }
14999 else
15000 # Canadian cross, just use what we found
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15002 $as_echo "pre-installed" >&6; }
15003 fi
15004 else
15005 ok=yes
15006 case " ${configdirs} " in
15007 *" gcc "*) ;;
15008 *) ok=no ;;
15009 esac
15010 case ,${enable_languages}, in
15011 *,c++,*) ;;
15012 *) ok=no ;;
15013 esac
15014 if test $ok = yes; then
15015 # An in-tree tool is available and we can use it
15016 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'
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15018 $as_echo "just compiled" >&6; }
15019 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
15020 # We already found the complete path
15021 ac_dir=`dirname $CXX_FOR_TARGET`
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15023 $as_echo "pre-installed in $ac_dir" >&6; }
15024 elif test "x$target" = "x$host"; then
15025 # We can use an host tool
15026 CXX_FOR_TARGET='$(CXX)'
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15028 $as_echo "host tool" >&6; }
15029 else
15030 # We need a cross tool
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15032 $as_echo "pre-installed" >&6; }
15033 fi
15034 fi
15035
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
15037 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
15038 if test "x${build}" != "x${host}" ; then
15039 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15040 # We already found the complete path
15041 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15043 $as_echo "pre-installed in $ac_dir" >&6; }
15044 else
15045 # Canadian cross, just use what we found
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15047 $as_echo "pre-installed" >&6; }
15048 fi
15049 else
15050 ok=yes
15051 case " ${configdirs} " in
15052 *" gcc "*) ;;
15053 *) ok=no ;;
15054 esac
15055 case ,${enable_languages}, in
15056 *,c++,*) ;;
15057 *) ok=no ;;
15058 esac
15059 if test $ok = yes; then
15060 # An in-tree tool is available and we can use it
15061 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'
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15063 $as_echo "just compiled" >&6; }
15064 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15065 # We already found the complete path
15066 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15068 $as_echo "pre-installed in $ac_dir" >&6; }
15069 elif test "x$target" = "x$host"; then
15070 # We can use an host tool
15071 RAW_CXX_FOR_TARGET='$(CXX)'
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15073 $as_echo "host tool" >&6; }
15074 else
15075 # We need a cross tool
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15077 $as_echo "pre-installed" >&6; }
15078 fi
15079 fi
15080
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
15082 $as_echo_n "checking where to find the target dlltool... " >&6; }
15083 if test "x${build}" != "x${host}" ; then
15084 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15085 # We already found the complete path
15086 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15088 $as_echo "pre-installed in $ac_dir" >&6; }
15089 else
15090 # Canadian cross, just use what we found
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15092 $as_echo "pre-installed" >&6; }
15093 fi
15094 else
15095 ok=yes
15096 case " ${configdirs} " in
15097 *" binutils "*) ;;
15098 *) ok=no ;;
15099 esac
15100
15101 if test $ok = yes; then
15102 # An in-tree tool is available and we can use it
15103 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15105 $as_echo "just compiled" >&6; }
15106 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15107 # We already found the complete path
15108 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15110 $as_echo "pre-installed in $ac_dir" >&6; }
15111 elif test "x$target" = "x$host"; then
15112 # We can use an host tool
15113 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15115 $as_echo "host tool" >&6; }
15116 else
15117 # We need a cross tool
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15119 $as_echo "pre-installed" >&6; }
15120 fi
15121 fi
15122
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
15124 $as_echo_n "checking where to find the target dsymutil... " >&6; }
15125 if test "x${build}" != "x${host}" ; then
15126 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
15127 # We already found the complete path
15128 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15130 $as_echo "pre-installed in $ac_dir" >&6; }
15131 else
15132 # Canadian cross, just use what we found
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15134 $as_echo "pre-installed" >&6; }
15135 fi
15136 else
15137 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
15138 # We already found the complete path
15139 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15141 $as_echo "pre-installed in $ac_dir" >&6; }
15142 elif test "x$target" = "x$host"; then
15143 # We can use an host tool
15144 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15146 $as_echo "host tool" >&6; }
15147 else
15148 # We need a cross tool
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15150 $as_echo "pre-installed" >&6; }
15151 fi
15152 fi
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
15155 $as_echo_n "checking where to find the target gcc... " >&6; }
15156 if test "x${build}" != "x${host}" ; then
15157 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15158 # We already found the complete path
15159 ac_dir=`dirname $GCC_FOR_TARGET`
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15161 $as_echo "pre-installed in $ac_dir" >&6; }
15162 else
15163 # Canadian cross, just use what we found
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15165 $as_echo "pre-installed" >&6; }
15166 fi
15167 else
15168 ok=yes
15169 case " ${configdirs} " in
15170 *" gcc "*) ;;
15171 *) ok=no ;;
15172 esac
15173
15174 if test $ok = yes; then
15175 # An in-tree tool is available and we can use it
15176 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15178 $as_echo "just compiled" >&6; }
15179 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15180 # We already found the complete path
15181 ac_dir=`dirname $GCC_FOR_TARGET`
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15183 $as_echo "pre-installed in $ac_dir" >&6; }
15184 elif test "x$target" = "x$host"; then
15185 # We can use an host tool
15186 GCC_FOR_TARGET='$()'
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15188 $as_echo "host tool" >&6; }
15189 else
15190 # We need a cross tool
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15192 $as_echo "pre-installed" >&6; }
15193 fi
15194 fi
15195
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
15197 $as_echo_n "checking where to find the target gfortran... " >&6; }
15198 if test "x${build}" != "x${host}" ; then
15199 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15200 # We already found the complete path
15201 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15203 $as_echo "pre-installed in $ac_dir" >&6; }
15204 else
15205 # Canadian cross, just use what we found
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15207 $as_echo "pre-installed" >&6; }
15208 fi
15209 else
15210 ok=yes
15211 case " ${configdirs} " in
15212 *" gcc "*) ;;
15213 *) ok=no ;;
15214 esac
15215 case ,${enable_languages}, in
15216 *,fortran,*) ;;
15217 *) ok=no ;;
15218 esac
15219 if test $ok = yes; then
15220 # An in-tree tool is available and we can use it
15221 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15223 $as_echo "just compiled" >&6; }
15224 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15225 # We already found the complete path
15226 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15228 $as_echo "pre-installed in $ac_dir" >&6; }
15229 elif test "x$target" = "x$host"; then
15230 # We can use an host tool
15231 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15233 $as_echo "host tool" >&6; }
15234 else
15235 # We need a cross tool
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15237 $as_echo "pre-installed" >&6; }
15238 fi
15239 fi
15240
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
15242 $as_echo_n "checking where to find the target gccgo... " >&6; }
15243 if test "x${build}" != "x${host}" ; then
15244 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15245 # We already found the complete path
15246 ac_dir=`dirname $GOC_FOR_TARGET`
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15248 $as_echo "pre-installed in $ac_dir" >&6; }
15249 else
15250 # Canadian cross, just use what we found
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15252 $as_echo "pre-installed" >&6; }
15253 fi
15254 else
15255 ok=yes
15256 case " ${configdirs} " in
15257 *" gcc "*) ;;
15258 *) ok=no ;;
15259 esac
15260 case ,${enable_languages}, in
15261 *,go,*) ;;
15262 *) ok=no ;;
15263 esac
15264 if test $ok = yes; then
15265 # An in-tree tool is available and we can use it
15266 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15268 $as_echo "just compiled" >&6; }
15269 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15270 # We already found the complete path
15271 ac_dir=`dirname $GOC_FOR_TARGET`
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15273 $as_echo "pre-installed in $ac_dir" >&6; }
15274 elif test "x$target" = "x$host"; then
15275 # We can use an host tool
15276 GOC_FOR_TARGET='$(GOC)'
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15278 $as_echo "host tool" >&6; }
15279 else
15280 # We need a cross tool
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15282 $as_echo "pre-installed" >&6; }
15283 fi
15284 fi
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
15287 $as_echo_n "checking where to find the target gdc... " >&6; }
15288 if test "x${build}" != "x${host}" ; then
15289 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15290 # We already found the complete path
15291 ac_dir=`dirname $GDC_FOR_TARGET`
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15293 $as_echo "pre-installed in $ac_dir" >&6; }
15294 else
15295 # Canadian cross, just use what we found
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15297 $as_echo "pre-installed" >&6; }
15298 fi
15299 else
15300 ok=yes
15301 case " ${configdirs} " in
15302 *" gcc "*) ;;
15303 *) ok=no ;;
15304 esac
15305 case ,${enable_languages}, in
15306 *,d,*) ;;
15307 *) ok=no ;;
15308 esac
15309 if test $ok = yes; then
15310 # An in-tree tool is available and we can use it
15311 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15313 $as_echo "just compiled" >&6; }
15314 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15315 # We already found the complete path
15316 ac_dir=`dirname $GDC_FOR_TARGET`
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15318 $as_echo "pre-installed in $ac_dir" >&6; }
15319 elif test "x$target" = "x$host"; then
15320 # We can use an host tool
15321 GDC_FOR_TARGET='$(GDC)'
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15323 $as_echo "host tool" >&6; }
15324 else
15325 # We need a cross tool
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15327 $as_echo "pre-installed" >&6; }
15328 fi
15329 fi
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
15332 $as_echo_n "checking where to find the target ld... " >&6; }
15333 if test "x${build}" != "x${host}" ; then
15334 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15335 # We already found the complete path
15336 ac_dir=`dirname $LD_FOR_TARGET`
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15338 $as_echo "pre-installed in $ac_dir" >&6; }
15339 else
15340 # Canadian cross, just use what we found
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15342 $as_echo "pre-installed" >&6; }
15343 fi
15344 else
15345 ok=yes
15346 case " ${configdirs} " in
15347 *" ld "*) ;;
15348 *) ok=no ;;
15349 esac
15350
15351 if test $ok = yes; then
15352 # An in-tree tool is available and we can use it
15353 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15355 $as_echo "just compiled" >&6; }
15356 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15357 # We already found the complete path
15358 ac_dir=`dirname $LD_FOR_TARGET`
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15360 $as_echo "pre-installed in $ac_dir" >&6; }
15361 elif test "x$target" = "x$host"; then
15362 # We can use an host tool
15363 LD_FOR_TARGET='$(LD)'
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15365 $as_echo "host tool" >&6; }
15366 else
15367 # We need a cross tool
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15369 $as_echo "pre-installed" >&6; }
15370 fi
15371 fi
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
15374 $as_echo_n "checking where to find the target lipo... " >&6; }
15375 if test "x${build}" != "x${host}" ; then
15376 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15377 # We already found the complete path
15378 ac_dir=`dirname $LIPO_FOR_TARGET`
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15380 $as_echo "pre-installed in $ac_dir" >&6; }
15381 else
15382 # Canadian cross, just use what we found
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15384 $as_echo "pre-installed" >&6; }
15385 fi
15386 else
15387 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15388 # We already found the complete path
15389 ac_dir=`dirname $LIPO_FOR_TARGET`
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15391 $as_echo "pre-installed in $ac_dir" >&6; }
15392 elif test "x$target" = "x$host"; then
15393 # We can use an host tool
15394 LIPO_FOR_TARGET='$(LIPO)'
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15396 $as_echo "host tool" >&6; }
15397 else
15398 # We need a cross tool
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15400 $as_echo "pre-installed" >&6; }
15401 fi
15402 fi
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
15405 $as_echo_n "checking where to find the target nm... " >&6; }
15406 if test "x${build}" != "x${host}" ; then
15407 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15408 # We already found the complete path
15409 ac_dir=`dirname $NM_FOR_TARGET`
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15411 $as_echo "pre-installed in $ac_dir" >&6; }
15412 else
15413 # Canadian cross, just use what we found
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15415 $as_echo "pre-installed" >&6; }
15416 fi
15417 else
15418 ok=yes
15419 case " ${configdirs} " in
15420 *" binutils "*) ;;
15421 *) ok=no ;;
15422 esac
15423
15424 if test $ok = yes; then
15425 # An in-tree tool is available and we can use it
15426 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15428 $as_echo "just compiled" >&6; }
15429 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15430 # We already found the complete path
15431 ac_dir=`dirname $NM_FOR_TARGET`
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15433 $as_echo "pre-installed in $ac_dir" >&6; }
15434 elif test "x$target" = "x$host"; then
15435 # We can use an host tool
15436 NM_FOR_TARGET='$(NM)'
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15438 $as_echo "host tool" >&6; }
15439 else
15440 # We need a cross tool
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15442 $as_echo "pre-installed" >&6; }
15443 fi
15444 fi
15445
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
15447 $as_echo_n "checking where to find the target objcopy... " >&6; }
15448 if test "x${build}" != "x${host}" ; then
15449 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15450 # We already found the complete path
15451 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15453 $as_echo "pre-installed in $ac_dir" >&6; }
15454 else
15455 # Canadian cross, just use what we found
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15457 $as_echo "pre-installed" >&6; }
15458 fi
15459 else
15460 ok=yes
15461 case " ${configdirs} " in
15462 *" binutils "*) ;;
15463 *) ok=no ;;
15464 esac
15465
15466 if test $ok = yes; then
15467 # An in-tree tool is available and we can use it
15468 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15470 $as_echo "just compiled" >&6; }
15471 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15472 # We already found the complete path
15473 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15475 $as_echo "pre-installed in $ac_dir" >&6; }
15476 elif test "x$target" = "x$host"; then
15477 # We can use an host tool
15478 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15480 $as_echo "host tool" >&6; }
15481 else
15482 # We need a cross tool
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15484 $as_echo "pre-installed" >&6; }
15485 fi
15486 fi
15487
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15489 $as_echo_n "checking where to find the target objdump... " >&6; }
15490 if test "x${build}" != "x${host}" ; then
15491 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15492 # We already found the complete path
15493 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15495 $as_echo "pre-installed in $ac_dir" >&6; }
15496 else
15497 # Canadian cross, just use what we found
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15499 $as_echo "pre-installed" >&6; }
15500 fi
15501 else
15502 ok=yes
15503 case " ${configdirs} " in
15504 *" binutils "*) ;;
15505 *) ok=no ;;
15506 esac
15507
15508 if test $ok = yes; then
15509 # An in-tree tool is available and we can use it
15510 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15512 $as_echo "just compiled" >&6; }
15513 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15514 # We already found the complete path
15515 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15517 $as_echo "pre-installed in $ac_dir" >&6; }
15518 elif test "x$target" = "x$host"; then
15519 # We can use an host tool
15520 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15522 $as_echo "host tool" >&6; }
15523 else
15524 # We need a cross tool
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15526 $as_echo "pre-installed" >&6; }
15527 fi
15528 fi
15529
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15531 $as_echo_n "checking where to find the target otool... " >&6; }
15532 if test "x${build}" != "x${host}" ; then
15533 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15534 # We already found the complete path
15535 ac_dir=`dirname $OTOOL_FOR_TARGET`
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15537 $as_echo "pre-installed in $ac_dir" >&6; }
15538 else
15539 # Canadian cross, just use what we found
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15541 $as_echo "pre-installed" >&6; }
15542 fi
15543 else
15544 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15545 # We already found the complete path
15546 ac_dir=`dirname $OTOOL_FOR_TARGET`
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15548 $as_echo "pre-installed in $ac_dir" >&6; }
15549 elif test "x$target" = "x$host"; then
15550 # We can use an host tool
15551 OTOOL_FOR_TARGET='$(OTOOL)'
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15553 $as_echo "host tool" >&6; }
15554 else
15555 # We need a cross tool
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15557 $as_echo "pre-installed" >&6; }
15558 fi
15559 fi
15560
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15562 $as_echo_n "checking where to find the target ranlib... " >&6; }
15563 if test "x${build}" != "x${host}" ; then
15564 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15565 # We already found the complete path
15566 ac_dir=`dirname $RANLIB_FOR_TARGET`
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15568 $as_echo "pre-installed in $ac_dir" >&6; }
15569 else
15570 # Canadian cross, just use what we found
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15572 $as_echo "pre-installed" >&6; }
15573 fi
15574 else
15575 ok=yes
15576 case " ${configdirs} " in
15577 *" binutils "*) ;;
15578 *) ok=no ;;
15579 esac
15580
15581 if test $ok = yes; then
15582 # An in-tree tool is available and we can use it
15583 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15585 $as_echo "just compiled" >&6; }
15586 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15587 # We already found the complete path
15588 ac_dir=`dirname $RANLIB_FOR_TARGET`
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15590 $as_echo "pre-installed in $ac_dir" >&6; }
15591 elif test "x$target" = "x$host"; then
15592 # We can use an host tool
15593 RANLIB_FOR_TARGET='$(RANLIB)'
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15595 $as_echo "host tool" >&6; }
15596 else
15597 # We need a cross tool
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15599 $as_echo "pre-installed" >&6; }
15600 fi
15601 fi
15602
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15604 $as_echo_n "checking where to find the target readelf... " >&6; }
15605 if test "x${build}" != "x${host}" ; then
15606 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15607 # We already found the complete path
15608 ac_dir=`dirname $READELF_FOR_TARGET`
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15610 $as_echo "pre-installed in $ac_dir" >&6; }
15611 else
15612 # Canadian cross, just use what we found
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15614 $as_echo "pre-installed" >&6; }
15615 fi
15616 else
15617 ok=yes
15618 case " ${configdirs} " in
15619 *" binutils "*) ;;
15620 *) ok=no ;;
15621 esac
15622
15623 if test $ok = yes; then
15624 # An in-tree tool is available and we can use it
15625 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15627 $as_echo "just compiled" >&6; }
15628 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15629 # We already found the complete path
15630 ac_dir=`dirname $READELF_FOR_TARGET`
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15632 $as_echo "pre-installed in $ac_dir" >&6; }
15633 elif test "x$target" = "x$host"; then
15634 # We can use an host tool
15635 READELF_FOR_TARGET='$(READELF)'
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15637 $as_echo "host tool" >&6; }
15638 else
15639 # We need a cross tool
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15641 $as_echo "pre-installed" >&6; }
15642 fi
15643 fi
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15646 $as_echo_n "checking where to find the target strip... " >&6; }
15647 if test "x${build}" != "x${host}" ; then
15648 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15649 # We already found the complete path
15650 ac_dir=`dirname $STRIP_FOR_TARGET`
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15652 $as_echo "pre-installed in $ac_dir" >&6; }
15653 else
15654 # Canadian cross, just use what we found
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15656 $as_echo "pre-installed" >&6; }
15657 fi
15658 else
15659 ok=yes
15660 case " ${configdirs} " in
15661 *" binutils "*) ;;
15662 *) ok=no ;;
15663 esac
15664
15665 if test $ok = yes; then
15666 # An in-tree tool is available and we can use it
15667 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15669 $as_echo "just compiled" >&6; }
15670 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15671 # We already found the complete path
15672 ac_dir=`dirname $STRIP_FOR_TARGET`
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15674 $as_echo "pre-installed in $ac_dir" >&6; }
15675 elif test "x$target" = "x$host"; then
15676 # We can use an host tool
15677 STRIP_FOR_TARGET='$(STRIP)'
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15679 $as_echo "host tool" >&6; }
15680 else
15681 # We need a cross tool
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15683 $as_echo "pre-installed" >&6; }
15684 fi
15685 fi
15686
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15688 $as_echo_n "checking where to find the target windres... " >&6; }
15689 if test "x${build}" != "x${host}" ; then
15690 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15691 # We already found the complete path
15692 ac_dir=`dirname $WINDRES_FOR_TARGET`
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15694 $as_echo "pre-installed in $ac_dir" >&6; }
15695 else
15696 # Canadian cross, just use what we found
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15698 $as_echo "pre-installed" >&6; }
15699 fi
15700 else
15701 ok=yes
15702 case " ${configdirs} " in
15703 *" binutils "*) ;;
15704 *) ok=no ;;
15705 esac
15706
15707 if test $ok = yes; then
15708 # An in-tree tool is available and we can use it
15709 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15711 $as_echo "just compiled" >&6; }
15712 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15713 # We already found the complete path
15714 ac_dir=`dirname $WINDRES_FOR_TARGET`
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15716 $as_echo "pre-installed in $ac_dir" >&6; }
15717 elif test "x$target" = "x$host"; then
15718 # We can use an host tool
15719 WINDRES_FOR_TARGET='$(WINDRES)'
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15721 $as_echo "host tool" >&6; }
15722 else
15723 # We need a cross tool
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15725 $as_echo "pre-installed" >&6; }
15726 fi
15727 fi
15728
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15730 $as_echo_n "checking where to find the target windmc... " >&6; }
15731 if test "x${build}" != "x${host}" ; then
15732 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15733 # We already found the complete path
15734 ac_dir=`dirname $WINDMC_FOR_TARGET`
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15736 $as_echo "pre-installed in $ac_dir" >&6; }
15737 else
15738 # Canadian cross, just use what we found
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15740 $as_echo "pre-installed" >&6; }
15741 fi
15742 else
15743 ok=yes
15744 case " ${configdirs} " in
15745 *" binutils "*) ;;
15746 *) ok=no ;;
15747 esac
15748
15749 if test $ok = yes; then
15750 # An in-tree tool is available and we can use it
15751 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15753 $as_echo "just compiled" >&6; }
15754 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15755 # We already found the complete path
15756 ac_dir=`dirname $WINDMC_FOR_TARGET`
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15758 $as_echo "pre-installed in $ac_dir" >&6; }
15759 elif test "x$target" = "x$host"; then
15760 # We can use an host tool
15761 WINDMC_FOR_TARGET='$(WINDMC)'
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15763 $as_echo "host tool" >&6; }
15764 else
15765 # We need a cross tool
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15767 $as_echo "pre-installed" >&6; }
15768 fi
15769 fi
15770
15771
15772
15773
15774
15775 # Certain tools may need extra flags.
15776 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15777 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15778 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15779
15780 # When building target libraries, except in a Canadian cross, we use
15781 # the same toolchain as the compiler we just built.
15782 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15783 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15784 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15785 if test $host = $build; then
15786 case " $configdirs " in
15787 *" gcc "*)
15788 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15789 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15790 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15791 ;;
15792 esac
15793 fi
15794
15795
15796
15797
15798
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15800 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15801 # Check whether --enable-maintainer-mode was given.
15802 if test "${enable_maintainer_mode+set}" = set; then :
15803 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15804 else
15805 USE_MAINTAINER_MODE=no
15806 fi
15807
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15809 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15810
15811
15812 if test "$USE_MAINTAINER_MODE" = yes; then
15813 MAINTAINER_MODE_TRUE=
15814 MAINTAINER_MODE_FALSE='#'
15815 else
15816 MAINTAINER_MODE_TRUE='#'
15817 MAINTAINER_MODE_FALSE=
15818 fi
15819 MAINT=$MAINTAINER_MODE_TRUE
15820
15821 # ---------------------
15822 # GCC bootstrap support
15823 # ---------------------
15824
15825 # Stage specific cflags for build.
15826 stage1_cflags="-g"
15827 case $build in
15828 vax-*-*)
15829 case ${GCC} in
15830 yes) stage1_cflags="-g -Wa,-J" ;;
15831 *) stage1_cflags="-g -J" ;;
15832 esac ;;
15833 esac
15834
15835
15836
15837 # Enable --enable-checking in stage1 of the compiler.
15838 # Check whether --enable-stage1-checking was given.
15839 if test "${enable_stage1_checking+set}" = set; then :
15840 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15841 else
15842 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15843 # For --disable-checking or implicit --enable-checking=release, avoid
15844 # setting --enable-checking=gc in the default stage1 checking for LTO
15845 # bootstraps. See PR62077.
15846 case $BUILD_CONFIG in
15847 *lto*)
15848 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15849 *)
15850 stage1_checking=--enable-checking=yes,types;;
15851 esac
15852 if test "x$enable_checking" = x && \
15853 test -d ${srcdir}/gcc && \
15854 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15855 stage1_checking=--enable-checking=yes,types,extra
15856 fi
15857 else
15858 stage1_checking=--enable-checking=$enable_checking,types
15859 fi
15860 fi
15861
15862
15863
15864 # Enable -Werror in bootstrap stage2 and later.
15865 # Check whether --enable-werror was given.
15866 if test "${enable_werror+set}" = set; then :
15867 enableval=$enable_werror;
15868 case ${enable_werror} in
15869 yes) stage2_werror_flag="--enable-werror-always" ;;
15870 *) stage2_werror_flag="" ;;
15871 esac
15872
15873 else
15874
15875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15876 case $BUILD_CONFIG in
15877 bootstrap-debug)
15878 stage2_werror_flag="--enable-werror-always" ;;
15879 "")
15880 stage2_werror_flag="--enable-werror-always" ;;
15881 esac
15882 fi
15883
15884 fi
15885
15886
15887
15888
15889 # Specify what files to not compare during bootstrap.
15890
15891 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15892 case "$target" in
15893 hppa*64*-*-hpux*) ;;
15894 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
15895 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
15896 esac
15897
15898
15899 ac_config_files="$ac_config_files Makefile"
15900
15901 cat >confcache <<\_ACEOF
15902 # This file is a shell script that caches the results of configure
15903 # tests run on this system so they can be shared between configure
15904 # scripts and configure runs, see configure's option --config-cache.
15905 # It is not useful on other systems. If it contains results you don't
15906 # want to keep, you may remove or edit it.
15907 #
15908 # config.status only pays attention to the cache file if you give it
15909 # the --recheck option to rerun configure.
15910 #
15911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15913 # following values.
15914
15915 _ACEOF
15916
15917 # The following way of writing the cache mishandles newlines in values,
15918 # but we know of no workaround that is simple, portable, and efficient.
15919 # So, we kill variables containing newlines.
15920 # Ultrix sh set writes to stderr and can't be redirected directly,
15921 # and sets the high bit in the cache file unless we assign to the vars.
15922 (
15923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15924 eval ac_val=\$$ac_var
15925 case $ac_val in #(
15926 *${as_nl}*)
15927 case $ac_var in #(
15928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15930 esac
15931 case $ac_var in #(
15932 _ | IFS | as_nl) ;; #(
15933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15934 *) { eval $ac_var=; unset $ac_var;} ;;
15935 esac ;;
15936 esac
15937 done
15938
15939 (set) 2>&1 |
15940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15941 *${as_nl}ac_space=\ *)
15942 # `set' does not quote correctly, so add quotes: double-quote
15943 # substitution turns \\\\ into \\, and sed turns \\ into \.
15944 sed -n \
15945 "s/'/'\\\\''/g;
15946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15947 ;; #(
15948 *)
15949 # `set' quotes correctly as required by POSIX, so do not add quotes.
15950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15951 ;;
15952 esac |
15953 sort
15954 ) |
15955 sed '
15956 /^ac_cv_env_/b end
15957 t clear
15958 :clear
15959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15960 t end
15961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15962 :end' >>confcache
15963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15964 if test -w "$cache_file"; then
15965 if test "x$cache_file" != "x/dev/null"; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15967 $as_echo "$as_me: updating cache $cache_file" >&6;}
15968 if test ! -f "$cache_file" || test -h "$cache_file"; then
15969 cat confcache >"$cache_file"
15970 else
15971 case $cache_file in #(
15972 */* | ?:*)
15973 mv -f confcache "$cache_file"$$ &&
15974 mv -f "$cache_file"$$ "$cache_file" ;; #(
15975 *)
15976 mv -f confcache "$cache_file" ;;
15977 esac
15978 fi
15979 fi
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15983 fi
15984 fi
15985 rm -f confcache
15986
15987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15988 # Let make expand exec_prefix.
15989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15990
15991 # Transform confdefs.h into DEFS.
15992 # Protect against shell expansion while executing Makefile rules.
15993 # Protect against Makefile macro expansion.
15994 #
15995 # If the first sed substitution is executed (which looks for macros that
15996 # take arguments), then branch to the quote section. Otherwise,
15997 # look for a macro that doesn't take arguments.
15998 ac_script='
15999 :mline
16000 /\\$/{
16001 N
16002 s,\\\n,,
16003 b mline
16004 }
16005 t clear
16006 :clear
16007 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16008 t quote
16009 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16010 t quote
16011 b any
16012 :quote
16013 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16014 s/\[/\\&/g
16015 s/\]/\\&/g
16016 s/\$/$$/g
16017 H
16018 :any
16019 ${
16020 g
16021 s/^\n//
16022 s/\n/ /g
16023 p
16024 }
16025 '
16026 DEFS=`sed -n "$ac_script" confdefs.h`
16027
16028
16029 ac_libobjs=
16030 ac_ltlibobjs=
16031 U=
16032 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16033 # 1. Remove the extension, and $U if already installed.
16034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16037 # will be set to the directory where LIBOBJS objects are built.
16038 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16039 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16040 done
16041 LIBOBJS=$ac_libobjs
16042
16043 LTLIBOBJS=$ac_ltlibobjs
16044
16045
16046
16047 : "${CONFIG_STATUS=./config.status}"
16048 ac_write_fail=0
16049 ac_clean_files_save=$ac_clean_files
16050 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16052 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16053 as_write_fail=0
16054 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16055 #! $SHELL
16056 # Generated by $as_me.
16057 # Run this file to recreate the current configuration.
16058 # Compiler output produced by configure, useful for debugging
16059 # configure, is in config.log if it exists.
16060
16061 debug=false
16062 ac_cs_recheck=false
16063 ac_cs_silent=false
16064
16065 SHELL=\${CONFIG_SHELL-$SHELL}
16066 export SHELL
16067 _ASEOF
16068 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16069 ## -------------------- ##
16070 ## M4sh Initialization. ##
16071 ## -------------------- ##
16072
16073 # Be more Bourne compatible
16074 DUALCASE=1; export DUALCASE # for MKS sh
16075 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16076 emulate sh
16077 NULLCMD=:
16078 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16079 # is contrary to our usage. Disable this feature.
16080 alias -g '${1+"$@"}'='"$@"'
16081 setopt NO_GLOB_SUBST
16082 else
16083 case `(set -o) 2>/dev/null` in #(
16084 *posix*) :
16085 set -o posix ;; #(
16086 *) :
16087 ;;
16088 esac
16089 fi
16090
16091
16092 as_nl='
16093 '
16094 export as_nl
16095 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16096 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16097 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16098 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16099 # Prefer a ksh shell builtin over an external printf program on Solaris,
16100 # but without wasting forks for bash or zsh.
16101 if test -z "$BASH_VERSION$ZSH_VERSION" \
16102 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16103 as_echo='print -r --'
16104 as_echo_n='print -rn --'
16105 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16106 as_echo='printf %s\n'
16107 as_echo_n='printf %s'
16108 else
16109 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16110 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16111 as_echo_n='/usr/ucb/echo -n'
16112 else
16113 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16114 as_echo_n_body='eval
16115 arg=$1;
16116 case $arg in #(
16117 *"$as_nl"*)
16118 expr "X$arg" : "X\\(.*\\)$as_nl";
16119 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16120 esac;
16121 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16122 '
16123 export as_echo_n_body
16124 as_echo_n='sh -c $as_echo_n_body as_echo'
16125 fi
16126 export as_echo_body
16127 as_echo='sh -c $as_echo_body as_echo'
16128 fi
16129
16130 # The user is always right.
16131 if test "${PATH_SEPARATOR+set}" != set; then
16132 PATH_SEPARATOR=:
16133 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16134 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16135 PATH_SEPARATOR=';'
16136 }
16137 fi
16138
16139
16140 # IFS
16141 # We need space, tab and new line, in precisely that order. Quoting is
16142 # there to prevent editors from complaining about space-tab.
16143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16144 # splitting by setting IFS to empty value.)
16145 IFS=" "" $as_nl"
16146
16147 # Find who we are. Look in the path if we contain no directory separator.
16148 as_myself=
16149 case $0 in #((
16150 *[\\/]* ) as_myself=$0 ;;
16151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16153 do
16154 IFS=$as_save_IFS
16155 test -z "$as_dir" && as_dir=.
16156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16157 done
16158 IFS=$as_save_IFS
16159
16160 ;;
16161 esac
16162 # We did not find ourselves, most probably we were run as `sh COMMAND'
16163 # in which case we are not to be found in the path.
16164 if test "x$as_myself" = x; then
16165 as_myself=$0
16166 fi
16167 if test ! -f "$as_myself"; then
16168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16169 exit 1
16170 fi
16171
16172 # Unset variables that we do not need and which cause bugs (e.g. in
16173 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16174 # suppresses any "Segmentation fault" message there. '((' could
16175 # trigger a bug in pdksh 5.2.14.
16176 for as_var in BASH_ENV ENV MAIL MAILPATH
16177 do eval test x\${$as_var+set} = xset \
16178 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16179 done
16180 PS1='$ '
16181 PS2='> '
16182 PS4='+ '
16183
16184 # NLS nuisances.
16185 LC_ALL=C
16186 export LC_ALL
16187 LANGUAGE=C
16188 export LANGUAGE
16189
16190 # CDPATH.
16191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16192
16193
16194 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16195 # ----------------------------------------
16196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16198 # script with STATUS, using 1 if that was 0.
16199 as_fn_error ()
16200 {
16201 as_status=$1; test $as_status -eq 0 && as_status=1
16202 if test "$4"; then
16203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16204 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16205 fi
16206 $as_echo "$as_me: error: $2" >&2
16207 as_fn_exit $as_status
16208 } # as_fn_error
16209
16210
16211 # as_fn_set_status STATUS
16212 # -----------------------
16213 # Set $? to STATUS, without forking.
16214 as_fn_set_status ()
16215 {
16216 return $1
16217 } # as_fn_set_status
16218
16219 # as_fn_exit STATUS
16220 # -----------------
16221 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16222 as_fn_exit ()
16223 {
16224 set +e
16225 as_fn_set_status $1
16226 exit $1
16227 } # as_fn_exit
16228
16229 # as_fn_unset VAR
16230 # ---------------
16231 # Portably unset VAR.
16232 as_fn_unset ()
16233 {
16234 { eval $1=; unset $1;}
16235 }
16236 as_unset=as_fn_unset
16237 # as_fn_append VAR VALUE
16238 # ----------------------
16239 # Append the text in VALUE to the end of the definition contained in VAR. Take
16240 # advantage of any shell optimizations that allow amortized linear growth over
16241 # repeated appends, instead of the typical quadratic growth present in naive
16242 # implementations.
16243 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16244 eval 'as_fn_append ()
16245 {
16246 eval $1+=\$2
16247 }'
16248 else
16249 as_fn_append ()
16250 {
16251 eval $1=\$$1\$2
16252 }
16253 fi # as_fn_append
16254
16255 # as_fn_arith ARG...
16256 # ------------------
16257 # Perform arithmetic evaluation on the ARGs, and store the result in the
16258 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16259 # must be portable across $(()) and expr.
16260 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16261 eval 'as_fn_arith ()
16262 {
16263 as_val=$(( $* ))
16264 }'
16265 else
16266 as_fn_arith ()
16267 {
16268 as_val=`expr "$@" || test $? -eq 1`
16269 }
16270 fi # as_fn_arith
16271
16272
16273 if expr a : '\(a\)' >/dev/null 2>&1 &&
16274 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16275 as_expr=expr
16276 else
16277 as_expr=false
16278 fi
16279
16280 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16281 as_basename=basename
16282 else
16283 as_basename=false
16284 fi
16285
16286 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16287 as_dirname=dirname
16288 else
16289 as_dirname=false
16290 fi
16291
16292 as_me=`$as_basename -- "$0" ||
16293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16294 X"$0" : 'X\(//\)$' \| \
16295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16296 $as_echo X/"$0" |
16297 sed '/^.*\/\([^/][^/]*\)\/*$/{
16298 s//\1/
16299 q
16300 }
16301 /^X\/\(\/\/\)$/{
16302 s//\1/
16303 q
16304 }
16305 /^X\/\(\/\).*/{
16306 s//\1/
16307 q
16308 }
16309 s/.*/./; q'`
16310
16311 # Avoid depending upon Character Ranges.
16312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16315 as_cr_digits='0123456789'
16316 as_cr_alnum=$as_cr_Letters$as_cr_digits
16317
16318 ECHO_C= ECHO_N= ECHO_T=
16319 case `echo -n x` in #(((((
16320 -n*)
16321 case `echo 'xy\c'` in
16322 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16323 xy) ECHO_C='\c';;
16324 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16325 ECHO_T=' ';;
16326 esac;;
16327 *)
16328 ECHO_N='-n';;
16329 esac
16330
16331 rm -f conf$$ conf$$.exe conf$$.file
16332 if test -d conf$$.dir; then
16333 rm -f conf$$.dir/conf$$.file
16334 else
16335 rm -f conf$$.dir
16336 mkdir conf$$.dir 2>/dev/null
16337 fi
16338 if (echo >conf$$.file) 2>/dev/null; then
16339 if ln -s conf$$.file conf$$ 2>/dev/null; then
16340 as_ln_s='ln -s'
16341 # ... but there are two gotchas:
16342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16344 # In both cases, we have to default to `cp -pR'.
16345 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16346 as_ln_s='cp -pR'
16347 elif ln conf$$.file conf$$ 2>/dev/null; then
16348 as_ln_s=ln
16349 else
16350 as_ln_s='cp -pR'
16351 fi
16352 else
16353 as_ln_s='cp -pR'
16354 fi
16355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16356 rmdir conf$$.dir 2>/dev/null
16357
16358
16359 # as_fn_mkdir_p
16360 # -------------
16361 # Create "$as_dir" as a directory, including parents if necessary.
16362 as_fn_mkdir_p ()
16363 {
16364
16365 case $as_dir in #(
16366 -*) as_dir=./$as_dir;;
16367 esac
16368 test -d "$as_dir" || eval $as_mkdir_p || {
16369 as_dirs=
16370 while :; do
16371 case $as_dir in #(
16372 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16373 *) as_qdir=$as_dir;;
16374 esac
16375 as_dirs="'$as_qdir' $as_dirs"
16376 as_dir=`$as_dirname -- "$as_dir" ||
16377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16378 X"$as_dir" : 'X\(//\)[^/]' \| \
16379 X"$as_dir" : 'X\(//\)$' \| \
16380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16381 $as_echo X"$as_dir" |
16382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16383 s//\1/
16384 q
16385 }
16386 /^X\(\/\/\)[^/].*/{
16387 s//\1/
16388 q
16389 }
16390 /^X\(\/\/\)$/{
16391 s//\1/
16392 q
16393 }
16394 /^X\(\/\).*/{
16395 s//\1/
16396 q
16397 }
16398 s/.*/./; q'`
16399 test -d "$as_dir" && break
16400 done
16401 test -z "$as_dirs" || eval "mkdir $as_dirs"
16402 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16403
16404
16405 } # as_fn_mkdir_p
16406 if mkdir -p . 2>/dev/null; then
16407 as_mkdir_p='mkdir -p "$as_dir"'
16408 else
16409 test -d ./-p && rmdir ./-p
16410 as_mkdir_p=false
16411 fi
16412
16413
16414 # as_fn_executable_p FILE
16415 # -----------------------
16416 # Test if FILE is an executable regular file.
16417 as_fn_executable_p ()
16418 {
16419 test -f "$1" && test -x "$1"
16420 } # as_fn_executable_p
16421 as_test_x='test -x'
16422 as_executable_p=as_fn_executable_p
16423
16424 # Sed expression to map a string onto a valid CPP name.
16425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16426
16427 # Sed expression to map a string onto a valid variable name.
16428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16429
16430
16431 exec 6>&1
16432 ## ----------------------------------- ##
16433 ## Main body of $CONFIG_STATUS script. ##
16434 ## ----------------------------------- ##
16435 _ASEOF
16436 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16437
16438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16439 # Save the log message, to keep $0 and so on meaningful, and to
16440 # report actual input values of CONFIG_FILES etc. instead of their
16441 # values after options handling.
16442 ac_log="
16443 This file was extended by $as_me, which was
16444 generated by GNU Autoconf 2.69. Invocation command line was
16445
16446 CONFIG_FILES = $CONFIG_FILES
16447 CONFIG_HEADERS = $CONFIG_HEADERS
16448 CONFIG_LINKS = $CONFIG_LINKS
16449 CONFIG_COMMANDS = $CONFIG_COMMANDS
16450 $ $0 $@
16451
16452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16453 "
16454
16455 _ACEOF
16456
16457 case $ac_config_files in *"
16458 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16459 esac
16460
16461
16462
16463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464 # Files that config.status was made for.
16465 config_files="$ac_config_files"
16466
16467 _ACEOF
16468
16469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16470 ac_cs_usage="\
16471 \`$as_me' instantiates files and other configuration actions
16472 from templates according to the current configuration. Unless the files
16473 and actions are specified as TAGs, all are instantiated by default.
16474
16475 Usage: $0 [OPTION]... [TAG]...
16476
16477 -h, --help print this help, then exit
16478 -V, --version print version number and configuration settings, then exit
16479 --config print configuration, then exit
16480 -q, --quiet, --silent
16481 do not print progress messages
16482 -d, --debug don't remove temporary files
16483 --recheck update $as_me by reconfiguring in the same conditions
16484 --file=FILE[:TEMPLATE]
16485 instantiate the configuration file FILE
16486
16487 Configuration files:
16488 $config_files
16489
16490 Report bugs to the package provider."
16491
16492 _ACEOF
16493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16494 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16495 ac_cs_version="\\
16496 config.status
16497 configured by $0, generated by GNU Autoconf 2.69,
16498 with options \\"\$ac_cs_config\\"
16499
16500 Copyright (C) 2012 Free Software Foundation, Inc.
16501 This config.status script is free software; the Free Software Foundation
16502 gives unlimited permission to copy, distribute and modify it."
16503
16504 ac_pwd='$ac_pwd'
16505 srcdir='$srcdir'
16506 INSTALL='$INSTALL'
16507 AWK='$AWK'
16508 test -n "\$AWK" || AWK=awk
16509 _ACEOF
16510
16511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512 # The default lists apply if the user does not specify any file.
16513 ac_need_defaults=:
16514 while test $# != 0
16515 do
16516 case $1 in
16517 --*=?*)
16518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16520 ac_shift=:
16521 ;;
16522 --*=)
16523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16524 ac_optarg=
16525 ac_shift=:
16526 ;;
16527 *)
16528 ac_option=$1
16529 ac_optarg=$2
16530 ac_shift=shift
16531 ;;
16532 esac
16533
16534 case $ac_option in
16535 # Handling of the options.
16536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16537 ac_cs_recheck=: ;;
16538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16539 $as_echo "$ac_cs_version"; exit ;;
16540 --config | --confi | --conf | --con | --co | --c )
16541 $as_echo "$ac_cs_config"; exit ;;
16542 --debug | --debu | --deb | --de | --d | -d )
16543 debug=: ;;
16544 --file | --fil | --fi | --f )
16545 $ac_shift
16546 case $ac_optarg in
16547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16548 '') as_fn_error $? "missing file argument" ;;
16549 esac
16550 as_fn_append CONFIG_FILES " '$ac_optarg'"
16551 ac_need_defaults=false;;
16552 --he | --h | --help | --hel | -h )
16553 $as_echo "$ac_cs_usage"; exit ;;
16554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16555 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16556 ac_cs_silent=: ;;
16557
16558 # This is an error.
16559 -*) as_fn_error $? "unrecognized option: \`$1'
16560 Try \`$0 --help' for more information." ;;
16561
16562 *) as_fn_append ac_config_targets " $1"
16563 ac_need_defaults=false ;;
16564
16565 esac
16566 shift
16567 done
16568
16569 ac_configure_extra_args=
16570
16571 if $ac_cs_silent; then
16572 exec 6>/dev/null
16573 ac_configure_extra_args="$ac_configure_extra_args --silent"
16574 fi
16575
16576 _ACEOF
16577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16578 if \$ac_cs_recheck; then
16579 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16580 shift
16581 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16582 CONFIG_SHELL='$SHELL'
16583 export CONFIG_SHELL
16584 exec "\$@"
16585 fi
16586
16587 _ACEOF
16588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16589 exec 5>>config.log
16590 {
16591 echo
16592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16593 ## Running $as_me. ##
16594 _ASBOX
16595 $as_echo "$ac_log"
16596 } >&5
16597
16598 _ACEOF
16599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16600 #
16601 # INIT-COMMANDS
16602 #
16603 extrasub_build="$extrasub_build"
16604 extrasub_host="$extrasub_host"
16605 extrasub_target="$extrasub_target"
16606
16607 _ACEOF
16608
16609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610
16611 # Handling of arguments.
16612 for ac_config_target in $ac_config_targets
16613 do
16614 case $ac_config_target in
16615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16616
16617 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16618 esac
16619 done
16620
16621
16622 # If the user did not use the arguments to specify the items to instantiate,
16623 # then the envvar interface is used. Set only those that are not.
16624 # We use the long form for the default assignment because of an extremely
16625 # bizarre bug on SunOS 4.1.3.
16626 if $ac_need_defaults; then
16627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16628 fi
16629
16630 # Have a temporary directory for convenience. Make it in the build tree
16631 # simply because there is no reason against having it here, and in addition,
16632 # creating and moving files from /tmp can sometimes cause problems.
16633 # Hook for its removal unless debugging.
16634 # Note that there is a small window in which the directory will not be cleaned:
16635 # after its creation but before its name has been assigned to `$tmp'.
16636 $debug ||
16637 {
16638 tmp= ac_tmp=
16639 trap 'exit_status=$?
16640 : "${ac_tmp:=$tmp}"
16641 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16642 ' 0
16643 trap 'as_fn_exit 1' 1 2 13 15
16644 }
16645 # Create a (secure) tmp directory for tmp files.
16646
16647 {
16648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16649 test -d "$tmp"
16650 } ||
16651 {
16652 tmp=./conf$$-$RANDOM
16653 (umask 077 && mkdir "$tmp")
16654 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16655 ac_tmp=$tmp
16656
16657 # Set up the scripts for CONFIG_FILES section.
16658 # No need to generate them if there are no CONFIG_FILES.
16659 # This happens for instance with `./config.status config.h'.
16660 if test -n "$CONFIG_FILES"; then
16661
16662 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16663 ac_cs_awk_getline=:
16664 ac_cs_awk_pipe_init=
16665 ac_cs_awk_read_file='
16666 while ((getline aline < (F[key])) > 0)
16667 print(aline)
16668 close(F[key])'
16669 ac_cs_awk_pipe_fini=
16670 else
16671 ac_cs_awk_getline=false
16672 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16673 ac_cs_awk_read_file='
16674 print "|#_!!_#|"
16675 print "cat " F[key] " &&"
16676 '$ac_cs_awk_pipe_init
16677 # The final `:' finishes the AND list.
16678 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16679 fi
16680 ac_cr=`echo X | tr X '\015'`
16681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16682 # But we know of no other shell where ac_cr would be empty at this
16683 # point, so we can use a bashism as a fallback.
16684 if test "x$ac_cr" = x; then
16685 eval ac_cr=\$\'\\r\'
16686 fi
16687 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16689 ac_cs_awk_cr='\\r'
16690 else
16691 ac_cs_awk_cr=$ac_cr
16692 fi
16693
16694 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16695 _ACEOF
16696
16697 # Create commands to substitute file output variables.
16698 {
16699 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16700 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16701 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16702 echo "_ACAWK" &&
16703 echo "_ACEOF"
16704 } >conf$$files.sh &&
16705 . ./conf$$files.sh ||
16706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16707 rm -f conf$$files.sh
16708
16709 {
16710 echo "cat >conf$$subs.awk <<_ACEOF" &&
16711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16712 echo "_ACEOF"
16713 } >conf$$subs.sh ||
16714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16716 ac_delim='%!_!# '
16717 for ac_last_try in false false false false false :; do
16718 . ./conf$$subs.sh ||
16719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16720
16721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16722 if test $ac_delim_n = $ac_delim_num; then
16723 break
16724 elif $ac_last_try; then
16725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16726 else
16727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16728 fi
16729 done
16730 rm -f conf$$subs.sh
16731
16732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16734 _ACEOF
16735 sed -n '
16736 h
16737 s/^/S["/; s/!.*/"]=/
16738 p
16739 g
16740 s/^[^!]*!//
16741 :repl
16742 t repl
16743 s/'"$ac_delim"'$//
16744 t delim
16745 :nl
16746 h
16747 s/\(.\{148\}\)..*/\1/
16748 t more1
16749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16750 p
16751 n
16752 b repl
16753 :more1
16754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16755 p
16756 g
16757 s/.\{148\}//
16758 t nl
16759 :delim
16760 h
16761 s/\(.\{148\}\)..*/\1/
16762 t more2
16763 s/["\\]/\\&/g; s/^/"/; s/$/"/
16764 p
16765 b
16766 :more2
16767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16768 p
16769 g
16770 s/.\{148\}//
16771 t delim
16772 ' <conf$$subs.awk | sed '
16773 /^[^""]/{
16774 N
16775 s/\n//
16776 }
16777 ' >>$CONFIG_STATUS || ac_write_fail=1
16778 rm -f conf$$subs.awk
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 _ACAWK
16781 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16782 for (key in S) S_is_set[key] = 1
16783 FS = ""
16784 \$ac_cs_awk_pipe_init
16785 }
16786 {
16787 line = $ 0
16788 nfields = split(line, field, "@")
16789 substed = 0
16790 len = length(field[1])
16791 for (i = 2; i < nfields; i++) {
16792 key = field[i]
16793 keylen = length(key)
16794 if (S_is_set[key]) {
16795 value = S[key]
16796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16797 len += length(value) + length(field[++i])
16798 substed = 1
16799 } else
16800 len += 1 + keylen
16801 }
16802 if (nfields == 3 && !substed) {
16803 key = field[2]
16804 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16805 \$ac_cs_awk_read_file
16806 next
16807 }
16808 }
16809 print line
16810 }
16811 \$ac_cs_awk_pipe_fini
16812 _ACAWK
16813 _ACEOF
16814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16815 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16816 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16817 else
16818 cat
16819 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16820 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16821 _ACEOF
16822
16823 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16824 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16825 # trailing colons and then remove the whole line if VPATH becomes empty
16826 # (actually we leave an empty line to preserve line numbers).
16827 if test "x$srcdir" = x.; then
16828 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16829 h
16830 s///
16831 s/^/:/
16832 s/[ ]*$/:/
16833 s/:\$(srcdir):/:/g
16834 s/:\${srcdir}:/:/g
16835 s/:@srcdir@:/:/g
16836 s/^:*//
16837 s/:*$//
16838 x
16839 s/\(=[ ]*\).*/\1/
16840 G
16841 s/\n//
16842 s/^[^=]*=[ ]*$//
16843 }'
16844 fi
16845
16846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16847 fi # test -n "$CONFIG_FILES"
16848
16849
16850 eval set X " :F $CONFIG_FILES "
16851 shift
16852 for ac_tag
16853 do
16854 case $ac_tag in
16855 :[FHLC]) ac_mode=$ac_tag; continue;;
16856 esac
16857 case $ac_mode$ac_tag in
16858 :[FHL]*:*);;
16859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16860 :[FH]-) ac_tag=-:-;;
16861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16862 esac
16863 ac_save_IFS=$IFS
16864 IFS=:
16865 set x $ac_tag
16866 IFS=$ac_save_IFS
16867 shift
16868 ac_file=$1
16869 shift
16870
16871 case $ac_mode in
16872 :L) ac_source=$1;;
16873 :[FH])
16874 ac_file_inputs=
16875 for ac_f
16876 do
16877 case $ac_f in
16878 -) ac_f="$ac_tmp/stdin";;
16879 *) # Look for the file first in the build tree, then in the source tree
16880 # (if the path is not absolute). The absolute path cannot be DOS-style,
16881 # because $ac_f cannot contain `:'.
16882 test -f "$ac_f" ||
16883 case $ac_f in
16884 [\\/$]*) false;;
16885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16886 esac ||
16887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16888 esac
16889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16890 as_fn_append ac_file_inputs " '$ac_f'"
16891 done
16892
16893 # Let's still pretend it is `configure' which instantiates (i.e., don't
16894 # use $as_me), people would be surprised to read:
16895 # /* config.h. Generated by config.status. */
16896 configure_input='Generated from '`
16897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16898 `' by configure.'
16899 if test x"$ac_file" != x-; then
16900 configure_input="$ac_file. $configure_input"
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16902 $as_echo "$as_me: creating $ac_file" >&6;}
16903 fi
16904 # Neutralize special characters interpreted by sed in replacement strings.
16905 case $configure_input in #(
16906 *\&* | *\|* | *\\* )
16907 ac_sed_conf_input=`$as_echo "$configure_input" |
16908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16909 *) ac_sed_conf_input=$configure_input;;
16910 esac
16911
16912 case $ac_tag in
16913 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16915 esac
16916 ;;
16917 esac
16918
16919 ac_dir=`$as_dirname -- "$ac_file" ||
16920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 X"$ac_file" : 'X\(//\)[^/]' \| \
16922 X"$ac_file" : 'X\(//\)$' \| \
16923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16924 $as_echo X"$ac_file" |
16925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16926 s//\1/
16927 q
16928 }
16929 /^X\(\/\/\)[^/].*/{
16930 s//\1/
16931 q
16932 }
16933 /^X\(\/\/\)$/{
16934 s//\1/
16935 q
16936 }
16937 /^X\(\/\).*/{
16938 s//\1/
16939 q
16940 }
16941 s/.*/./; q'`
16942 as_dir="$ac_dir"; as_fn_mkdir_p
16943 ac_builddir=.
16944
16945 case "$ac_dir" in
16946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16947 *)
16948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16949 # A ".." for each directory in $ac_dir_suffix.
16950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16951 case $ac_top_builddir_sub in
16952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16954 esac ;;
16955 esac
16956 ac_abs_top_builddir=$ac_pwd
16957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16958 # for backward compatibility:
16959 ac_top_builddir=$ac_top_build_prefix
16960
16961 case $srcdir in
16962 .) # We are building in place.
16963 ac_srcdir=.
16964 ac_top_srcdir=$ac_top_builddir_sub
16965 ac_abs_top_srcdir=$ac_pwd ;;
16966 [\\/]* | ?:[\\/]* ) # Absolute name.
16967 ac_srcdir=$srcdir$ac_dir_suffix;
16968 ac_top_srcdir=$srcdir
16969 ac_abs_top_srcdir=$srcdir ;;
16970 *) # Relative name.
16971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16972 ac_top_srcdir=$ac_top_build_prefix$srcdir
16973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16974 esac
16975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16976
16977
16978 case $ac_mode in
16979 :F)
16980 #
16981 # CONFIG_FILE
16982 #
16983
16984 case $INSTALL in
16985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16987 esac
16988 _ACEOF
16989
16990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16991 # If the template does not know about datarootdir, expand it.
16992 # FIXME: This hack should be removed a few years after 2.60.
16993 ac_datarootdir_hack=; ac_datarootdir_seen=
16994 ac_sed_dataroot='
16995 /datarootdir/ {
16996 p
16997 q
16998 }
16999 /@datadir@/p
17000 /@docdir@/p
17001 /@infodir@/p
17002 /@localedir@/p
17003 /@mandir@/p'
17004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17005 *datarootdir*) ac_datarootdir_seen=yes;;
17006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17008 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17009 _ACEOF
17010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 ac_datarootdir_hack='
17012 s&@datadir@&$datadir&g
17013 s&@docdir@&$docdir&g
17014 s&@infodir@&$infodir&g
17015 s&@localedir@&$localedir&g
17016 s&@mandir@&$mandir&g
17017 s&\\\${datarootdir}&$datarootdir&g' ;;
17018 esac
17019 _ACEOF
17020
17021 # Neutralize VPATH when `$srcdir' = `.'.
17022 # Shell code in configure.ac might set extrasub.
17023 # FIXME: do we really want to maintain this feature?
17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 ac_sed_extra="$ac_vpsub
17026 $extrasub
17027 _ACEOF
17028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17029 :t
17030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17031 s|@configure_input@|$ac_sed_conf_input|;t t
17032 s&@top_builddir@&$ac_top_builddir_sub&;t t
17033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17034 s&@srcdir@&$ac_srcdir&;t t
17035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17036 s&@top_srcdir@&$ac_top_srcdir&;t t
17037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17038 s&@builddir@&$ac_builddir&;t t
17039 s&@abs_builddir@&$ac_abs_builddir&;t t
17040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17041 s&@INSTALL@&$ac_INSTALL&;t t
17042 $ac_datarootdir_hack
17043 "
17044 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17045 if $ac_cs_awk_getline; then
17046 $AWK -f "$ac_tmp/subs.awk"
17047 else
17048 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17049 fi \
17050 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17051
17052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17053 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17055 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17057 which seems to be undefined. Please make sure it is defined" >&5
17058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17059 which seems to be undefined. Please make sure it is defined" >&2;}
17060
17061 rm -f "$ac_tmp/stdin"
17062 case $ac_file in
17063 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17064 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17065 esac \
17066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17067 ;;
17068
17069
17070
17071 esac
17072
17073
17074 case $ac_file$ac_mode in
17075 "Makefile":F) sed "$extrasub_build" Makefile |
17076 sed "$extrasub_host" |
17077 sed "$extrasub_target" > mf$$
17078 mv -f mf$$ Makefile ;;
17079
17080 esac
17081 done # for ac_tag
17082
17083
17084 as_fn_exit 0
17085 _ACEOF
17086 ac_clean_files=$ac_clean_files_save
17087
17088 test $ac_write_fail = 0 ||
17089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17090
17091
17092 # configure is writing to config.log, and then calls config.status.
17093 # config.status does its own redirection, appending to config.log.
17094 # Unfortunately, on DOS this fails, as config.log is still kept open
17095 # by configure, so config.status won't be able to write to it; its
17096 # output is simply discarded. So we exec the FD to /dev/null,
17097 # effectively closing config.log, so it can be properly (re)opened and
17098 # appended to by config.status. When coming back to configure, we
17099 # need to make the FD available again.
17100 if test "$no_create" != yes; then
17101 ac_cs_success=:
17102 ac_config_status_args=
17103 test "$silent" = yes &&
17104 ac_config_status_args="$ac_config_status_args --quiet"
17105 exec 5>/dev/null
17106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17107 exec 5>>config.log
17108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17109 # would make configure fail if this is the last instruction.
17110 $ac_cs_success || as_fn_exit 1
17111 fi
17112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17115 fi
17116
17117