]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Fortran: Check that the ICE does not reappear [PR102597]
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
629 NM
630 LIPO
631 LD
632 DLLTOOL
633 AS
634 AR
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
639 LEX
640 M4
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 do_compare
698 GNATMAKE
699 GNATBIND
700 ac_ct_CXX
701 CXXFLAGS
702 CXX
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 extra_liboffloadmic_configure_flags
711 target_subdir
712 host_subdir
713 build_subdir
714 build_libsubdir
715 AWK
716 SED
717 LN_S
718 LN
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 target_noncanonical
731 host_noncanonical
732 build_noncanonical
733 build_os
734 build_vendor
735 build_cpu
736 build
737 TOPLEVEL_CONFIGURE_ARGUMENTS
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL'
776 ac_subst_files='serialization_dependencies
777 host_makefile_frag
778 target_makefile_frag
779 alphaieee_frag
780 ospace_frag'
781 ac_user_opts='
782 enable_option_checking
783 with_build_libsubdir
784 with_system_zlib
785 enable_as_accelerator_for
786 enable_offload_targets
787 enable_gold
788 enable_ld
789 enable_compressed_debug_sections
790 enable_libquadmath
791 enable_libquadmath_support
792 enable_libada
793 enable_libssp
794 enable_libstdcxx
795 enable_liboffloadmic
796 enable_bootstrap
797 with_mpc
798 with_mpc_include
799 with_mpc_lib
800 with_mpfr_dir
801 with_mpfr
802 with_mpfr_include
803 with_mpfr_lib
804 with_gmp_dir
805 with_gmp
806 with_gmp_include
807 with_gmp_lib
808 with_stage1_libs
809 with_static_standard_libraries
810 with_stage1_ldflags
811 with_boot_libs
812 with_boot_ldflags
813 with_isl
814 with_isl_include
815 with_isl_lib
816 enable_isl_version_check
817 enable_lto
818 enable_linker_plugin_configure_flags
819 enable_linker_plugin_flags
820 enable_host_shared
821 enable_stage1_languages
822 enable_objc_gc
823 with_target_bdw_gc
824 with_target_bdw_gc_include
825 with_target_bdw_gc_lib
826 with_gcc_major_version_only
827 with_build_sysroot
828 with_debug_prefix_map
829 with_build_config
830 enable_vtable_verify
831 enable_serial_configure
832 with_build_time_tools
833 enable_maintainer_mode
834 enable_stage1_checking
835 enable_werror
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 CXX
846 CXXFLAGS
847 CCC
848 build_configargs
849 host_configargs
850 target_configargs
851 AR
852 AS
853 DLLTOOL
854 LD
855 LIPO
856 NM
857 RANLIB
858 STRIP
859 WINDRES
860 WINDMC
861 OBJCOPY
862 OBJDUMP
863 OTOOL
864 READELF
865 CC_FOR_TARGET
866 CXX_FOR_TARGET
867 GCC_FOR_TARGET
868 GFORTRAN_FOR_TARGET
869 GOC_FOR_TARGET
870 GDC_FOR_TARGET
871 AR_FOR_TARGET
872 AS_FOR_TARGET
873 DLLTOOL_FOR_TARGET
874 LD_FOR_TARGET
875 LIPO_FOR_TARGET
876 NM_FOR_TARGET
877 OBJCOPY_FOR_TARGET
878 OBJDUMP_FOR_TARGET
879 OTOOL_FOR_TARGET
880 RANLIB_FOR_TARGET
881 READELF_FOR_TARGET
882 STRIP_FOR_TARGET
883 WINDRES_FOR_TARGET
884 WINDMC_FOR_TARGET'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
962
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
977
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
982
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1015
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1051
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1056
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1086
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1160
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1219
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
1235
1236 -without-* | --without-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1272 ;;
1273
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1290 ;;
1291
1292 esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $? "missing argument to $ac_option"
1298 fi
1299
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1306 fi
1307
1308 # Check all directory arguments for consistency.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1313 do
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
1322 case $ac_val in
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325 esac
1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 done
1328
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1335
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $? "pwd does not report name of working directory"
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1389 fi
1390 else
1391 ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 case $srcdir in
1412 *" "*)
1413 as_fn_error $? "path to source, $srcdir, contains spaces"
1414 ;;
1415 esac
1416 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1417
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432 \`configure' configures this package to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1485 _ACEOF
1486
1487 cat <<\_ACEOF
1488
1489 Program names:
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493
1494 System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-as-accelerator-for=ARG
1510 build as offload target compiler. Specify offload
1511 host triple by ARG
1512 --enable-offload-targets=LIST
1513 enable offloading to devices from comma-separated
1514 LIST of TARGET[=DIR]. Use optional path to find
1515 offload target compiler during the build
1516 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1517 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1518 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1519 Enable compressed debug sections for gas, gold or ld
1520 by default
1521 --disable-libquadmath do not build libquadmath directory
1522 --disable-libquadmath-support
1523 disable libquadmath support for Fortran
1524 --enable-libada build libada directory
1525 --enable-libssp build libssp directory
1526 --disable-libstdcxx do not build libstdc++-v3 directory
1527 --enable-liboffloadmic=ARG
1528 build liboffloadmic [ARG={no,host,target}]
1529 --enable-bootstrap enable bootstrapping [yes if native build]
1530 --disable-isl-version-check
1531 disable check for isl version
1532 --enable-lto enable link time optimization support
1533 --enable-linker-plugin-configure-flags=FLAGS
1534 additional flags for configuring linker plugins
1535 [none]
1536 --enable-linker-plugin-flags=FLAGS
1537 additional flags for configuring and building linker
1538 plugins [none]
1539 --enable-host-shared build host code as shared libraries
1540 --enable-stage1-languages[=all]
1541 choose additional languages to build during stage1.
1542 Mostly useful for compiler development
1543 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1544 Objective-C runtime
1545 --enable-vtable-verify Enable vtable verification feature
1546 --enable-serial-[{host,target,build}-]configure
1547 force sequential configuration of sub-packages for
1548 the host, target or build machine, or all
1549 sub-packages
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-stage1-checking[=all]
1554 choose additional checking for stage1 of the
1555 compiler
1556 --enable-werror enable -Werror in bootstrap stage2 and later
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-build-libsubdir=DIR Directory where to find libraries for build system
1562 --with-system-zlib use installed libz
1563 --with-mpc=PATH specify prefix directory for installed MPC package.
1564 Equivalent to --with-mpc-include=PATH/include plus
1565 --with-mpc-lib=PATH/lib
1566 --with-mpc-include=PATH specify directory for installed MPC include files
1567 --with-mpc-lib=PATH specify directory for the installed MPC library
1568 --with-mpfr-dir=PATH this option has been REMOVED
1569 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1570 Equivalent to --with-mpfr-include=PATH/include plus
1571 --with-mpfr-lib=PATH/lib
1572 --with-mpfr-include=PATH
1573 specify directory for installed MPFR include files
1574 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1575 --with-gmp-dir=PATH this option has been REMOVED
1576 --with-gmp=PATH specify prefix directory for the installed GMP
1577 package. Equivalent to
1578 --with-gmp-include=PATH/include plus
1579 --with-gmp-lib=PATH/lib
1580 --with-gmp-include=PATH specify directory for installed GMP include files
1581 --with-gmp-lib=PATH specify directory for the installed GMP library
1582 --with-stage1-libs=LIBS libraries for stage1
1583 --with-static-standard-libraries
1584 use -static-libstdc++ and -static-libgcc
1585 (default=auto)
1586 --with-stage1-ldflags=FLAGS
1587 linker flags for stage1
1588 --with-boot-libs=LIBS libraries for stage2 and later
1589 --with-boot-ldflags=FLAGS
1590 linker flags for stage2 and later
1591 --with-isl=PATH Specify prefix directory for the installed isl
1592 package. Equivalent to
1593 --with-isl-include=PATH/include plus
1594 --with-isl-lib=PATH/lib
1595 --with-isl-include=PATH Specify directory for installed isl include files
1596 --with-isl-lib=PATH Specify the directory for the installed isl library
1597 --with-target-bdw-gc=PATHLIST
1598 specify prefix directory for installed bdw-gc
1599 package. Equivalent to
1600 --with-target-bdw-gc-include=PATH/include plus
1601 --with-target-bdw-gc-lib=PATH/lib
1602 --with-target-bdw-gc-include=PATHLIST
1603 specify directories for installed bdw-gc include
1604 files
1605 --with-target-bdw-gc-lib=PATHLIST
1606 specify directories for installed bdw-gc library
1607 --with-gcc-major-version-only
1608 use only GCC major number in filesystem paths
1609 --with-build-sysroot=SYSROOT
1610 use sysroot as the system root during the build
1611 --with-debug-prefix-map='A=B C=D ...'
1612 map A to B, C to D ... in debug information
1613 --with-build-config='NAME NAME2...'
1614 use config/NAME.mk build configuration
1615 --with-build-time-tools=PATH
1616 use given path to find target tools during the build
1617
1618 Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
1623 LIBS libraries to pass to the linker, e.g. -l<library>
1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
1628 build_configargs
1629 additional configure arguments for build directories
1630 host_configargs
1631 additional configure arguments for host directories
1632 target_configargs
1633 additional configure arguments for target directories
1634 AR AR for the host
1635 AS AS for the host
1636 DLLTOOL DLLTOOL for the host
1637 LD LD for the host
1638 LIPO LIPO for the host
1639 NM NM for the host
1640 RANLIB RANLIB for the host
1641 STRIP STRIP for the host
1642 WINDRES WINDRES for the host
1643 WINDMC WINDMC for the host
1644 OBJCOPY OBJCOPY for the host
1645 OBJDUMP OBJDUMP for the host
1646 OTOOL OTOOL for the host
1647 READELF READELF for the host
1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
1656 GOC_FOR_TARGET
1657 GOC for the target
1658 GDC_FOR_TARGET
1659 GDC for the target
1660 AR_FOR_TARGET
1661 AR for the target
1662 AS_FOR_TARGET
1663 AS for the target
1664 DLLTOOL_FOR_TARGET
1665 DLLTOOL for the target
1666 LD_FOR_TARGET
1667 LD for the target
1668 LIPO_FOR_TARGET
1669 LIPO for the target
1670 NM_FOR_TARGET
1671 NM for the target
1672 OBJCOPY_FOR_TARGET
1673 OBJCOPY for the target
1674 OBJDUMP_FOR_TARGET
1675 OBJDUMP for the target
1676 OTOOL_FOR_TARGET
1677 OTOOL for the target
1678 RANLIB_FOR_TARGET
1679 RANLIB for the target
1680 READELF_FOR_TARGET
1681 READELF for the target
1682 STRIP_FOR_TARGET
1683 STRIP for the target
1684 WINDRES_FOR_TARGET
1685 WINDRES for the target
1686 WINDMC_FOR_TARGET
1687 WINDMC for the target
1688
1689 Use these variables to override the choices made by `configure' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1691
1692 Report bugs to the package provider.
1693 _ACEOF
1694 ac_status=$?
1695 fi
1696
1697 if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 continue
1703 ac_builddir=.
1704
1705 case "$ac_dir" in
1706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 *)
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 esac ;;
1715 esac
1716 ac_abs_top_builddir=$ac_pwd
1717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718 # for backward compatibility:
1719 ac_top_builddir=$ac_top_build_prefix
1720
1721 case $srcdir in
1722 .) # We are building in place.
1723 ac_srcdir=.
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1727 ac_srcdir=$srcdir$ac_dir_suffix;
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1730 *) # Relative name.
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 esac
1735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1745 else
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 fi || ac_status=$?
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1749 done
1750 fi
1751
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1754 cat <<\_ACEOF
1755 configure
1756 generated by GNU Autoconf 2.69
1757
1758 Copyright (C) 2012 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1761 _ACEOF
1762 exit
1763 fi
1764
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1768
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_compile
1806
1807 # ac_fn_cxx_try_compile LINENO
1808 # ----------------------------
1809 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_cxx_try_compile ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839 fi
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_cxx_try_compile
1844
1845 # ac_fn_cxx_try_link LINENO
1846 # -------------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_cxx_try_link ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 test -x conftest$ac_exeext
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1888
1889 } # ac_fn_cxx_try_link
1890
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_link ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926 fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935 } # ac_fn_c_try_link
1936 cat >config.log <<_ACEOF
1937 This file contains any messages produced by compilers while
1938 running configure, to aid debugging if configure makes a mistake.
1939
1940 It was created by $as_me, which was
1941 generated by GNU Autoconf 2.69. Invocation command line was
1942
1943 $ $0 $@
1944
1945 _ACEOF
1946 exec 5>>config.log
1947 {
1948 cat <<_ASUNAME
1949 ## --------- ##
1950 ## Platform. ##
1951 ## --------- ##
1952
1953 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1954 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1955 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1956 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1957 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958
1959 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1960 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1961
1962 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1963 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1964 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1965 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1966 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1967 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1968 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1969
1970 _ASUNAME
1971
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 $as_echo "PATH: $as_dir"
1978 done
1979 IFS=$as_save_IFS
1980
1981 } >&5
1982
1983 cat >&5 <<_ACEOF
1984
1985
1986 ## ----------- ##
1987 ## Core tests. ##
1988 ## ----------- ##
1989
1990 _ACEOF
1991
1992
1993 # Keep a trace of the command line.
1994 # Strip out --no-create and --no-recursion so they do not pile up.
1995 # Strip out --silent because we don't want to record it for future runs.
1996 # Also quote any args containing shell meta-characters.
1997 # Make two passes to allow for proper duplicate-argument suppression.
1998 ac_configure_args=
1999 ac_configure_args0=
2000 ac_configure_args1=
2001 ac_must_keep_next=false
2002 for ac_pass in 1 2
2003 do
2004 for ac_arg
2005 do
2006 case $ac_arg in
2007 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2009 | -silent | --silent | --silen | --sile | --sil)
2010 continue ;;
2011 *\'*)
2012 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2013 esac
2014 case $ac_pass in
2015 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2016 2)
2017 as_fn_append ac_configure_args1 " '$ac_arg'"
2018 if test $ac_must_keep_next = true; then
2019 ac_must_keep_next=false # Got value, back to normal.
2020 else
2021 case $ac_arg in
2022 *=* | --config-cache | -C | -disable-* | --disable-* \
2023 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2024 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2025 | -with-* | --with-* | -without-* | --without-* | --x)
2026 case "$ac_configure_args0 " in
2027 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2028 esac
2029 ;;
2030 -* ) ac_must_keep_next=true ;;
2031 esac
2032 fi
2033 as_fn_append ac_configure_args " '$ac_arg'"
2034 ;;
2035 esac
2036 done
2037 done
2038 { ac_configure_args0=; unset ac_configure_args0;}
2039 { ac_configure_args1=; unset ac_configure_args1;}
2040
2041 # When interrupted or exit'd, cleanup temporary files, and complete
2042 # config.log. We remove comments because anyway the quotes in there
2043 # would cause problems or look ugly.
2044 # WARNING: Use '\'' to represent an apostrophe within the trap.
2045 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2046 trap 'exit_status=$?
2047 # Save into config.log some information that might help in debugging.
2048 {
2049 echo
2050
2051 $as_echo "## ---------------- ##
2052 ## Cache variables. ##
2053 ## ---------------- ##"
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
2056 (
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
2072 (set) 2>&1 |
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
2075 sed -n \
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
2079 *)
2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2081 ;;
2082 esac |
2083 sort
2084 )
2085 echo
2086
2087 $as_echo "## ----------------- ##
2088 ## Output variables. ##
2089 ## ----------------- ##"
2090 echo
2091 for ac_var in $ac_subst_vars
2092 do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 $as_echo "$ac_var='\''$ac_val'\''"
2098 done | sort
2099 echo
2100
2101 if test -n "$ac_subst_files"; then
2102 $as_echo "## ------------------- ##
2103 ## File substitutions. ##
2104 ## ------------------- ##"
2105 echo
2106 for ac_var in $ac_subst_files
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115 fi
2116
2117 if test -s confdefs.h; then
2118 $as_echo "## ----------- ##
2119 ## confdefs.h. ##
2120 ## ----------- ##"
2121 echo
2122 cat confdefs.h
2123 echo
2124 fi
2125 test "$ac_signal" != 0 &&
2126 $as_echo "$as_me: caught signal $ac_signal"
2127 $as_echo "$as_me: exit $exit_status"
2128 } >&5
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2131 exit $exit_status
2132 ' 0
2133 for ac_signal in 1 2 13 15; do
2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2135 done
2136 ac_signal=0
2137
2138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2139 rm -f -r conftest* confdefs.h
2140
2141 $as_echo "/* confdefs.h */" > confdefs.h
2142
2143 # Predefined preprocessor variables.
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_NAME "$PACKAGE_NAME"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_STRING "$PACKAGE_STRING"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_URL "$PACKAGE_URL"
2167 _ACEOF
2168
2169
2170 # Let the site file select an alternate cache file if it wants to.
2171 # Prefer an explicitly selected file to automatically selected ones.
2172 ac_site_file1=NONE
2173 ac_site_file2=NONE
2174 if test -n "$CONFIG_SITE"; then
2175 # We do not want a PATH search for config.site.
2176 case $CONFIG_SITE in #((
2177 -*) ac_site_file1=./$CONFIG_SITE;;
2178 */*) ac_site_file1=$CONFIG_SITE;;
2179 *) ac_site_file1=./$CONFIG_SITE;;
2180 esac
2181 elif test "x$prefix" != xNONE; then
2182 ac_site_file1=$prefix/share/config.site
2183 ac_site_file2=$prefix/etc/config.site
2184 else
2185 ac_site_file1=$ac_default_prefix/share/config.site
2186 ac_site_file2=$ac_default_prefix/etc/config.site
2187 fi
2188 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2189 do
2190 test "x$ac_site_file" = xNONE && continue
2191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2194 sed 's/^/| /' "$ac_site_file" >&5
2195 . "$ac_site_file" \
2196 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 as_fn_error $? "failed to load site script $ac_site_file
2199 See \`config.log' for more details" "$LINENO" 5; }
2200 fi
2201 done
2202
2203 if test -r "$cache_file"; then
2204 # Some versions of bash will fail to source /dev/null (special files
2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2208 $as_echo "$as_me: loading cache $cache_file" >&6;}
2209 case $cache_file in
2210 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2211 *) . "./$cache_file";;
2212 esac
2213 fi
2214 else
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2216 $as_echo "$as_me: creating cache $cache_file" >&6;}
2217 >$cache_file
2218 fi
2219
2220 # Check that the precious variables saved in the cache have kept the same
2221 # value.
2222 ac_cache_corrupted=false
2223 for ac_var in $ac_precious_vars; do
2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2225 eval ac_new_set=\$ac_env_${ac_var}_set
2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2227 eval ac_new_val=\$ac_env_${ac_var}_value
2228 case $ac_old_set,$ac_new_set in
2229 set,)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,set)
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2235 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2236 ac_cache_corrupted=: ;;
2237 ,);;
2238 *)
2239 if test "x$ac_old_val" != "x$ac_new_val"; then
2240 # differences in whitespace do not lead to failure.
2241 ac_old_val_w=`echo x $ac_old_val`
2242 ac_new_val_w=`echo x $ac_new_val`
2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2245 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2246 ac_cache_corrupted=:
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2249 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2250 eval $ac_var=\$ac_old_val
2251 fi
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2253 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2255 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2256 fi;;
2257 esac
2258 # Pass precious variables to config.status.
2259 if test "$ac_new_set" = set; then
2260 case $ac_new_val in
2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 *) ac_arg=$ac_var=$ac_new_val ;;
2263 esac
2264 case " $ac_configure_args " in
2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2267 esac
2268 fi
2269 done
2270 if $ac_cache_corrupted; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2274 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2276 fi
2277 ## -------------------- ##
2278 ## Main body of script. ##
2279 ## -------------------- ##
2280
2281 ac_ext=c
2282 ac_cpp='$CPP $CPPFLAGS'
2283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
2287
2288
2289
2290
2291
2292
2293
2294 progname=$0
2295 # if PWD already has a value, it is probably wrong.
2296 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2297
2298 # Export original configure arguments for use by sub-configures.
2299 # Quote arguments with shell meta charatcers.
2300 TOPLEVEL_CONFIGURE_ARGUMENTS=
2301 set -- "$progname" "$@"
2302 for ac_arg
2303 do
2304 case "$ac_arg" in
2305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2307 # if the argument is of the form -foo=baz, quote the baz part only
2308 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2309 *) ;;
2310 esac
2311 # Add the quoted argument to the list.
2312 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2313 done
2314 if test "$silent" = yes; then
2315 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2316 fi
2317 # Remove the initial space we just introduced and, as these will be
2318 # expanded by make, quote '$'.
2319 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2320
2321
2322 # Find the build, host, and target systems.
2323 ac_aux_dir=
2324 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2325 if test -f "$ac_dir/install-sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install-sh -c"
2328 break
2329 elif test -f "$ac_dir/install.sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2332 break
2333 elif test -f "$ac_dir/shtool"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 break
2337 fi
2338 done
2339 if test -z "$ac_aux_dir"; then
2340 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2341 fi
2342
2343 # These three variables are undocumented and unsupported,
2344 # and are intended to be withdrawn in a future Autoconf release.
2345 # They can cause serious problems if a builder's source tree is in a directory
2346 # whose full name contains unusual characters.
2347 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2348 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2349 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350
2351
2352 # Make sure we can run config.sub.
2353 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2354 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2355
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2357 $as_echo_n "checking build system type... " >&6; }
2358 if ${ac_cv_build+:} false; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 ac_build_alias=$build_alias
2362 test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364 test "x$ac_build_alias" = x &&
2365 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2366 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2367 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2368
2369 fi
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2371 $as_echo "$ac_cv_build" >&6; }
2372 case $ac_cv_build in
2373 *-*-*) ;;
2374 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2375 esac
2376 build=$ac_cv_build
2377 ac_save_IFS=$IFS; IFS='-'
2378 set x $ac_cv_build
2379 shift
2380 build_cpu=$1
2381 build_vendor=$2
2382 shift; shift
2383 # Remember, the first character of IFS is used to create $*,
2384 # except with old shells:
2385 build_os=$*
2386 IFS=$ac_save_IFS
2387 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2388
2389
2390 case ${build_alias} in
2391 "") build_noncanonical=${build} ;;
2392 *) build_noncanonical=${build_alias} ;;
2393 esac
2394
2395
2396
2397 case ${host_alias} in
2398 "") host_noncanonical=${build_noncanonical} ;;
2399 *) host_noncanonical=${host_alias} ;;
2400 esac
2401
2402
2403
2404 case ${target_alias} in
2405 "") target_noncanonical=${host_noncanonical} ;;
2406 *) target_noncanonical=${target_alias} ;;
2407 esac
2408
2409
2410
2411
2412 test "$host_noncanonical" = "$target_noncanonical" &&
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
2415 program_transform_name=s,y,y,
2416
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2418 $as_echo_n "checking host system type... " >&6; }
2419 if ${ac_cv_host+:} false; then :
2420 $as_echo_n "(cached) " >&6
2421 else
2422 if test "x$host_alias" = x; then
2423 ac_cv_host=$ac_cv_build
2424 else
2425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2427 fi
2428
2429 fi
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2431 $as_echo "$ac_cv_host" >&6; }
2432 case $ac_cv_host in
2433 *-*-*) ;;
2434 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2435 esac
2436 host=$ac_cv_host
2437 ac_save_IFS=$IFS; IFS='-'
2438 set x $ac_cv_host
2439 shift
2440 host_cpu=$1
2441 host_vendor=$2
2442 shift; shift
2443 # Remember, the first character of IFS is used to create $*,
2444 # except with old shells:
2445 host_os=$*
2446 IFS=$ac_save_IFS
2447 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2448
2449
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2451 $as_echo_n "checking target system type... " >&6; }
2452 if ${ac_cv_target+:} false; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 if test "x$target_alias" = x; then
2456 ac_cv_target=$ac_cv_host
2457 else
2458 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2460 fi
2461
2462 fi
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2464 $as_echo "$ac_cv_target" >&6; }
2465 case $ac_cv_target in
2466 *-*-*) ;;
2467 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2468 esac
2469 target=$ac_cv_target
2470 ac_save_IFS=$IFS; IFS='-'
2471 set x $ac_cv_target
2472 shift
2473 target_cpu=$1
2474 target_vendor=$2
2475 shift; shift
2476 # Remember, the first character of IFS is used to create $*,
2477 # except with old shells:
2478 target_os=$*
2479 IFS=$ac_save_IFS
2480 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2481
2482
2483 # The aliases save the names the user supplied, while $host etc.
2484 # will get canonicalized.
2485 test -n "$target_alias" &&
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2487 NONENONEs,x,x, &&
2488 program_prefix=${target_alias}-
2489
2490 test "$program_prefix" != NONE &&
2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2492 # Use a double $ so make ignores it.
2493 test "$program_suffix" != NONE &&
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495 # Double any \ or $.
2496 # By default was `s,x,x', remove it if useless.
2497 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2499
2500
2501
2502 # Get 'install' or 'install-sh' and its variants.
2503 # Find a good install program. We prefer a C program (faster),
2504 # so one script is as good as another. But avoid the broken or
2505 # incompatible versions:
2506 # SysV /etc/install, /usr/sbin/install
2507 # SunOS /usr/etc/install
2508 # IRIX /sbin/install
2509 # AIX /bin/install
2510 # AmigaOS /C/install, which installs bootblocks on floppy discs
2511 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2514 # OS/2's system install, which has a completely different semantic
2515 # ./install, which can be erroneously created by make from ./install.sh.
2516 # Reject install programs that cannot install multiple files.
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2519 if test -z "$INSTALL"; then
2520 if ${ac_cv_path_install+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 # Account for people who put trailing slashes in PATH elements.
2529 case $as_dir/ in #((
2530 ./ | .// | /[cC]/* | \
2531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2533 /usr/ucb/* ) ;;
2534 *)
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2537 # by default.
2538 for ac_prog in ginstall scoinst install; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2541 if test $ac_prog = install &&
2542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # AIX install. It has an incompatible calling convention.
2544 :
2545 elif test $ac_prog = install &&
2546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # program-specific install script used by HP pwplus--don't use.
2548 :
2549 else
2550 rm -rf conftest.one conftest.two conftest.dir
2551 echo one > conftest.one
2552 echo two > conftest.two
2553 mkdir conftest.dir
2554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2555 test -s conftest.one && test -s conftest.two &&
2556 test -s conftest.dir/conftest.one &&
2557 test -s conftest.dir/conftest.two
2558 then
2559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2560 break 3
2561 fi
2562 fi
2563 fi
2564 done
2565 done
2566 ;;
2567 esac
2568
2569 done
2570 IFS=$as_save_IFS
2571
2572 rm -rf conftest.one conftest.two conftest.dir
2573
2574 fi
2575 if test "${ac_cv_path_install+set}" = set; then
2576 INSTALL=$ac_cv_path_install
2577 else
2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for INSTALL within a source directory, because that will
2580 # break other packages using the cache if that directory is
2581 # removed, or if the value is a relative name.
2582 INSTALL=$ac_install_sh
2583 fi
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2586 $as_echo "$INSTALL" >&6; }
2587
2588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2589 # It thinks the first close brace ends the variable substitution.
2590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2591
2592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2593
2594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2597 $as_echo_n "checking whether ln works... " >&6; }
2598 if ${acx_cv_prog_LN+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 rm -f conftestdata_t
2602 echo >conftestdata_f
2603 if ln conftestdata_f conftestdata_t 2>/dev/null
2604 then
2605 acx_cv_prog_LN=ln
2606 else
2607 acx_cv_prog_LN=no
2608 fi
2609 rm -f conftestdata_f conftestdata_t
2610
2611 fi
2612 if test $acx_cv_prog_LN = no; then
2613 LN="cp"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2615 $as_echo "no, using $LN" >&6; }
2616 else
2617 LN="$acx_cv_prog_LN"
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2620 fi
2621
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2623 $as_echo_n "checking whether ln -s works... " >&6; }
2624 LN_S=$as_ln_s
2625 if test "$LN_S" = "ln -s"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2630 $as_echo "no, using $LN_S" >&6; }
2631 fi
2632
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2634 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2635 if ${ac_cv_path_SED+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2639 for ac_i in 1 2 3 4 5 6 7; do
2640 ac_script="$ac_script$as_nl$ac_script"
2641 done
2642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2643 { ac_script=; unset ac_script;}
2644 if test -z "$SED"; then
2645 ac_path_SED_found=false
2646 # Loop through the user's path and test for each of PROGNAME-LIST
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_prog in sed gsed; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2655 as_fn_executable_p "$ac_path_SED" || continue
2656 # Check for GNU ac_path_SED and select it if it is found.
2657 # Check for GNU $ac_path_SED
2658 case `"$ac_path_SED" --version 2>&1` in
2659 *GNU*)
2660 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2661 *)
2662 ac_count=0
2663 $as_echo_n 0123456789 >"conftest.in"
2664 while :
2665 do
2666 cat "conftest.in" "conftest.in" >"conftest.tmp"
2667 mv "conftest.tmp" "conftest.in"
2668 cp "conftest.in" "conftest.nl"
2669 $as_echo '' >> "conftest.nl"
2670 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2672 as_fn_arith $ac_count + 1 && ac_count=$as_val
2673 if test $ac_count -gt ${ac_path_SED_max-0}; then
2674 # Best one so far, save it but keep looking for a better one
2675 ac_cv_path_SED="$ac_path_SED"
2676 ac_path_SED_max=$ac_count
2677 fi
2678 # 10*(2^10) chars as input seems more than enough
2679 test $ac_count -gt 10 && break
2680 done
2681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2682 esac
2683
2684 $ac_path_SED_found && break 3
2685 done
2686 done
2687 done
2688 IFS=$as_save_IFS
2689 if test -z "$ac_cv_path_SED"; then
2690 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2691 fi
2692 else
2693 ac_cv_path_SED=$SED
2694 fi
2695
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2698 $as_echo "$ac_cv_path_SED" >&6; }
2699 SED="$ac_cv_path_SED"
2700 rm -f conftest.sed
2701
2702 for ac_prog in gawk mawk nawk awk
2703 do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_AWK+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 AWK=$ac_cv_prog_AWK
2732 if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 $as_echo "$AWK" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740
2741 test -n "$AWK" && break
2742 done
2743
2744
2745 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746
2747 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2748 # a relative path.
2749 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2750 INSTALL="${srcpwd}/install-sh -c"
2751 fi
2752
2753 # Set srcdir to "." if that's what it is.
2754 # This is important for multilib support.
2755 pwd=`${PWDCMD-pwd}`
2756 if test "${pwd}" = "${srcpwd}" ; then
2757 srcdir=.
2758 fi
2759
2760 topsrcdir=$srcpwd
2761
2762 extra_host_args=
2763
2764 ### To add a new directory to the tree, first choose whether it is a target
2765 ### or a host dependent tool. Then put it into the appropriate list
2766 ### (library or tools, host or target), doing a dependency sort.
2767
2768 # Subdirs will be configured in the order listed in build_configdirs,
2769 # configdirs, or target_configdirs; see the serialization section below.
2770
2771 # Dependency sorting is only needed when *configuration* must be done in
2772 # a particular order. In all cases a dependency should be specified in
2773 # the Makefile, whether or not it's implicitly specified here.
2774
2775 # Double entries in build_configdirs, configdirs, or target_configdirs may
2776 # cause circular dependencies and break everything horribly.
2777
2778 # these library is used by various programs built for the build
2779 # environment
2780 #
2781 build_libs="build-libiberty build-libcpp"
2782
2783 # these tools are built for the build environment
2784 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2785
2786 # these libraries are used by various programs built for the host environment
2787 #f
2788 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2789
2790 # these tools are built for the host environment
2791 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2792 # know that we are building the simulator.
2793 # binutils, gas and ld appear in that order because it makes sense to run
2794 # "make check" in that particular order.
2795 # If --enable-gold is used, "gold" may replace "ld".
2796 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"
2797
2798 # these libraries are built for the target environment, and are built after
2799 # the host libraries and the host tools (which may be a cross compiler)
2800 # Note that libiberty is not a target library.
2801 target_libraries="target-libgcc \
2802 target-libbacktrace \
2803 target-libgloss \
2804 target-newlib \
2805 target-libgomp \
2806 target-liboffloadmic \
2807 target-libhsail-rt \
2808 target-libatomic \
2809 target-libitm \
2810 target-libstdc++-v3 \
2811 target-libsanitizer \
2812 target-libvtv \
2813 target-libssp \
2814 target-libquadmath \
2815 target-libgfortran \
2816 target-libffi \
2817 target-libobjc \
2818 target-libada \
2819 target-libgo \
2820 target-libphobos \
2821 target-zlib"
2822
2823 # these tools are built using the target libraries, and are intended to
2824 # run only in the target environment
2825 #
2826 # note: any program that *uses* libraries that are in the "target_libraries"
2827 # list belongs in this list.
2828 #
2829 target_tools="target-rda"
2830
2831 ################################################################################
2832
2833 ## All tools belong in one of the four categories, and are assigned above
2834 ## We assign ${configdirs} this way to remove all embedded newlines. This
2835 ## is important because configure will choke if they ever get through.
2836 ## ${configdirs} is directories we build using the host tools.
2837 ## ${target_configdirs} is directories we build using the target tools.
2838 configdirs=`echo ${host_libs} ${host_tools}`
2839 target_configdirs=`echo ${target_libraries} ${target_tools}`
2840 build_configdirs=`echo ${build_libs} ${build_tools}`
2841
2842
2843
2844 ################################################################################
2845
2846 srcname="gnu development package"
2847
2848 # This gets set non-empty for some net releases of packages.
2849 appdirs=""
2850
2851 # Define is_cross_compiler to save on calls to 'test'.
2852 is_cross_compiler=
2853 if test x"${host}" = x"${target}" ; then
2854 is_cross_compiler=no
2855 else
2856 is_cross_compiler=yes
2857 fi
2858
2859 # Find the build and target subdir names.
2860
2861 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2862 # have matching libraries, they should use host libraries: Makefile.tpl
2863 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2864 # However, they still use the build modules, because the corresponding
2865 # host modules (e.g. bison) are only built for the host when bootstrap
2866 # finishes. So:
2867 # - build_subdir is where we find build modules, and never changes.
2868 # - build_libsubdir is where we find build libraries, and can be overridden.
2869
2870 # Prefix 'build-' so this never conflicts with target_subdir.
2871 build_subdir="build-${build_noncanonical}"
2872
2873 # Check whether --with-build-libsubdir was given.
2874 if test "${with_build_libsubdir+set}" = set; then :
2875 withval=$with_build_libsubdir; build_libsubdir="$withval"
2876 else
2877 build_libsubdir="$build_subdir"
2878 fi
2879
2880 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2881 if ( test $srcdir = . && test -d gcc ) \
2882 || test -d $srcdir/../host-${host_noncanonical}; then
2883 host_subdir="host-${host_noncanonical}"
2884 else
2885 host_subdir=.
2886 fi
2887 # No prefix.
2888 target_subdir=${target_noncanonical}
2889
2890 # Be sure to cover against remnants of an in-tree build.
2891 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2892 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2893 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894 fi
2895
2896 # Skipdirs are removed silently.
2897 skipdirs=
2898 # Noconfigdirs are removed loudly.
2899 noconfigdirs=""
2900
2901 use_gnu_ld=
2902 # Make sure we don't let GNU ld be added if we didn't want it.
2903 if test x$with_gnu_ld = xno ; then
2904 use_gnu_ld=no
2905 noconfigdirs="$noconfigdirs ld gold"
2906 fi
2907
2908 use_gnu_as=
2909 # Make sure we don't let GNU as be added if we didn't want it.
2910 if test x$with_gnu_as = xno ; then
2911 use_gnu_as=no
2912 noconfigdirs="$noconfigdirs gas"
2913 fi
2914
2915 use_included_zlib=
2916
2917 # Check whether --with-system-zlib was given.
2918 if test "${with_system_zlib+set}" = set; then :
2919 withval=$with_system_zlib;
2920 fi
2921
2922 # Make sure we don't let ZLIB be added if we didn't want it.
2923 if test x$with_system_zlib = xyes ; then
2924 use_included_zlib=no
2925 noconfigdirs="$noconfigdirs zlib"
2926 fi
2927
2928 # some tools are so dependent upon X11 that if we're not building with X,
2929 # it's not even worth trying to configure, much less build, that tool.
2930
2931 case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
2934 skipdirs="${skipdirs} tk itcl libgui"
2935 # We won't be able to build gdbtk without X.
2936 enable_gdbtk=no
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939 esac
2940
2941 # Some are only suitable for cross toolchains.
2942 # Remove these if host=target.
2943 cross_only="target-libgloss target-newlib target-opcodes"
2944
2945 case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
2947 esac
2948
2949 # If both --with-headers and --with-libs are specified, default to
2950 # --without-newlib.
2951 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
2956 fi
2957
2958 # Recognize --with-newlib/--without-newlib.
2959 case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962 esac
2963
2964 # Check whether --enable-as-accelerator-for was given.
2965 if test "${enable_as_accelerator_for+set}" = set; then :
2966 enableval=$enable_as_accelerator_for;
2967 fi
2968
2969
2970 # Check whether --enable-offload-targets was given.
2971 if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
2975 fi
2976
2977 else
2978 enable_offload_targets=
2979 fi
2980
2981
2982 # Handle --enable-gold, --enable-ld.
2983 # --disable-gold [--enable-ld]
2984 # Build only ld. Default option.
2985 # --enable-gold [--enable-ld]
2986 # Build both gold and ld. Install gold as "ld.gold", install ld
2987 # as "ld.bfd" and "ld".
2988 # --enable-gold=default [--enable-ld]
2989 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2990 # install ld as "ld.bfd".
2991 # --enable-gold[=default] --disable-ld
2992 # Build only gold, which is then installed as both "ld.gold" and "ld".
2993 # --enable-gold --enable-ld=default
2994 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995 # and ld.bfd).
2996 # In other words, ld is default
2997 # --enable-gold=default --enable-ld=default
2998 # Error.
2999
3000 default_ld=
3001 # Check whether --enable-gold was given.
3002 if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
3004 else
3005 ENABLE_GOLD=no
3006 fi
3007
3008 case "${ENABLE_GOLD}" in
3009 yes|default)
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
3028 case "${target}" in
3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
3035 ENABLE_GOLD=yes
3036 ;;
3037 esac
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3044 ;;
3045 esac
3046
3047 # Check whether --enable-ld was given.
3048 if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050 else
3051 ENABLE_LD=yes
3052 fi
3053
3054
3055 case "${ENABLE_LD}" in
3056 default)
3057 if test x${default_ld} != x; then
3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3072 ;;
3073 esac
3074
3075 # PR gas/19109
3076 # Decide the default method for compressing debug sections.
3077 # Provide a configure time option to override our default.
3078 # Check whether --enable-compressed_debug_sections was given.
3079 if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3083 fi
3084
3085 else
3086 enable_compressed_debug_sections=
3087 fi
3088
3089
3090 # Configure extra directories which are host specific
3091
3092 case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095 esac
3096
3097 # A target can indicate whether a language isn't supported for some reason.
3098 # Only spaces may be used in this macro; not newlines or tabs.
3099 unsupported_languages=
3100
3101 # Remove more programs from consideration, based on the host or
3102 # target this usually means that a port of the program doesn't
3103 # exist yet.
3104
3105 case "${host}" in
3106 i[3456789]86-*-msdosdjgpp*)
3107 noconfigdirs="$noconfigdirs tcl tk itcl"
3108 ;;
3109 esac
3110
3111
3112 # Check whether --enable-libquadmath was given.
3113 if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115 else
3116 ENABLE_LIBQUADMATH=yes
3117 fi
3118
3119 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121 fi
3122
3123
3124 # Check whether --enable-libquadmath-support was given.
3125 if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127 else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129 fi
3130
3131 enable_libquadmath_support=
3132 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134 fi
3135
3136
3137 # Check whether --enable-libada was given.
3138 if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3140 else
3141 ENABLE_LIBADA=yes
3142 fi
3143
3144 if test "${ENABLE_LIBADA}" != "yes" ; then
3145 noconfigdirs="$noconfigdirs gnattools"
3146 fi
3147
3148 # Check whether --enable-libssp was given.
3149 if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3151 else
3152 ENABLE_LIBSSP=yes
3153 fi
3154
3155
3156 # Check whether --enable-libstdcxx was given.
3157 if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159 else
3160 ENABLE_LIBSTDCXX=default
3161 fi
3162
3163 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165 fi
3166
3167 # If this is accelerator compiler and its target is intelmic we enable
3168 # target liboffloadmic by default. If this is compiler with offloading
3169 # for intelmic we enable host liboffloadmic by default. Otherwise
3170 # liboffloadmic is disabled by default.
3171 # Check whether --enable-liboffloadmic was given.
3172 if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3178 esac
3179 else
3180 if test x"$enable_as_accelerator_for" != x; then
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190 else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200 fi
3201 fi
3202
3203
3204
3205 # Enable libgomp by default on hosted POSIX systems, and a few others.
3206 if test x$enable_libgomp = x ; then
3207 case "${target}" in
3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3209 ;;
3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3211 ;;
3212 *-*-solaris2* | *-*-hpux11*)
3213 ;;
3214 *-*-darwin* | *-*-aix*)
3215 ;;
3216 nvptx*-*-* | amdgcn*-*-*)
3217 ;;
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
3222 fi
3223
3224 # Disable libatomic on unsupported systems.
3225 if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228 $as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3239 fi
3240 fi
3241 fi
3242
3243 # Disable liboffloadmic on unsupported systems.
3244 if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247 $as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3258 fi
3259 fi
3260 fi
3261
3262 # Disable libitm on unsupported systems.
3263 if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3266 $as_echo_n "checking for libitm support... " >&6; }
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 fi
3278 fi
3279 fi
3280
3281 # Disable libsanitizer on unsupported systems.
3282 if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285 $as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296 fi
3297 fi
3298 fi
3299
3300 # Disable libvtv on unsupported systems.
3301 if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304 $as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
3307 test "$VTV_SUPPORTED" != "yes")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3315 fi
3316 fi
3317 fi
3318
3319
3320 # Disable libhsail-rt on unsupported systems.
3321 if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324 $as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 fi
3339 fi
3340
3341
3342 # Disable libquadmath for some systems.
3343 case "${target}" in
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352 esac
3353
3354 # Disable libssp for some systems.
3355 case "${target}" in
3356 avr-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 bpf-*-*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
3363 powerpc-*-aix* | rs6000-*-aix*)
3364 noconfigdirs="$noconfigdirs target-libssp"
3365 ;;
3366 pru-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
3370 rl78-*-*)
3371 # libssp uses a misaligned load to trigger a fault, but the RL78
3372 # doesn't fault for those - instead, it gives a build-time error
3373 # for explicit misaligned loads.
3374 noconfigdirs="$noconfigdirs target-libssp"
3375 ;;
3376 visium-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
3380 esac
3381
3382 # Disable libstdc++-v3 for some systems.
3383 # Allow user to override this if they pass --enable-libstdc++-v3
3384 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3385 case "${target}" in
3386 *-*-vxworks*)
3387 # VxWorks uses the Dinkumware C++ library.
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
3390 amdgcn*-*-*)
3391 # Not ported/fails to build when using newlib.
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
3394 arm*-wince-pe*)
3395 # the C++ libraries don't build on top of CE's C libraries
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 ;;
3398 avr-*-*)
3399 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400 ;;
3401 bpf-*-*)
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
3404 ft32-*-*)
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 ;;
3407 esac
3408 fi
3409
3410 # Disable C++ on systems where it is known to not work.
3411 # For testing, you can override this with --enable-languages=c++.
3412 case ,${enable_languages}, in
3413 *,c++,*)
3414 ;;
3415 *)
3416 case "${target}" in
3417 bpf-*-*)
3418 unsupported_languages="$unsupported_languages c++"
3419 ;;
3420 esac
3421 ;;
3422 esac
3423
3424 # Disable Objc on systems where it is known to not work.
3425 # For testing, you can override this with --enable-languages=objc.
3426 case ,${enable_languages}, in
3427 *,objc,*)
3428 ;;
3429 *)
3430 case "${target}" in
3431 bpf-*-*)
3432 unsupported_languages="$unsupported_languages objc"
3433 ;;
3434 esac
3435 ;;
3436 esac
3437
3438 # Disable D on systems where it is known to not work.
3439 # For testing, you can override this with --enable-languages=d.
3440 case ,${enable_languages}, in
3441 *,d,*)
3442 ;;
3443 *)
3444 case "${target}" in
3445 *-*-darwin*)
3446 unsupported_languages="$unsupported_languages d"
3447 ;;
3448 bpf-*-*)
3449 unsupported_languages="$unsupported_languages d"
3450 ;;
3451 esac
3452 ;;
3453 esac
3454
3455 # Disable libphobos on unsupported systems.
3456 # For testing, you can override this with --enable-libphobos.
3457 if test -d ${srcdir}/libphobos; then
3458 if test x$enable_libphobos = x; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3460 $as_echo_n "checking for libphobos support... " >&6; }
3461 if (srcdir=${srcdir}/libphobos; \
3462 . ${srcdir}/configure.tgt; \
3463 test "$LIBPHOBOS_SUPPORTED" != "yes")
3464 then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 noconfigdirs="$noconfigdirs target-libphobos"
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 $as_echo "yes" >&6; }
3471 fi
3472 fi
3473 fi
3474
3475 # Disable Fortran for some systems.
3476 case "${target}" in
3477 mmix-*-*)
3478 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3479 unsupported_languages="$unsupported_languages fortran"
3480 ;;
3481 bpf-*-*)
3482 unsupported_languages="$unsupported_languages fortran"
3483 ;;
3484 esac
3485
3486 # Disable libffi for some systems.
3487 case "${target}" in
3488 powerpc-*-darwin*)
3489 ;;
3490 i[3456789]86-*-darwin*)
3491 ;;
3492 x86_64-*-darwin[912]*)
3493 ;;
3494 *-*-darwin*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 *-*-netware*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 *-*-phoenix*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 *-*-rtems*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 *-*-tpf*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 *-*-uclinux*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3511 ;;
3512 *-*-vxworks*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
3515 aarch64*-*-freebsd*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
3518 alpha*-*-*vms*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3520 ;;
3521 arm*-*-freebsd*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 arm-wince-pe)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527 arm*-*-symbianelf*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
3530 bpf-*-*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3532 ;;
3533 cris-*-* | crisv32-*-*)
3534 case "${target}" in
3535 *-*-linux*)
3536 ;;
3537 *) # See PR46792 regarding target-libffi.
3538 noconfigdirs="$noconfigdirs target-libffi";;
3539 esac
3540 ;;
3541 hppa*64*-*-hpux*)
3542 noconfigdirs="$noconfigdirs target-libffi"
3543 ;;
3544 hppa*-hp-hpux11*)
3545 ;;
3546 hppa*-*-hpux*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3548 ;;
3549 ia64*-*-*vms*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 i[3456789]86-w64-mingw*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3554 ;;
3555 i[3456789]86-*-mingw*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3557 ;;
3558 x86_64-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
3561 mmix-*-*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
3564 powerpc-*-aix*)
3565 ;;
3566 rs6000-*-aix*)
3567 ;;
3568 ft32-*-*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 *-*-lynxos*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3573 ;;
3574 esac
3575
3576 # Disable the go frontend on systems where it is known to not work. Please keep
3577 # this in sync with contrib/config-list.mk.
3578 case "${target}" in
3579 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3580 unsupported_languages="$unsupported_languages go"
3581 ;;
3582 esac
3583
3584 # Only allow gdbserver on some systems.
3585 if test -d ${srcdir}/gdbserver; then
3586 if test x$enable_gdbserver = x; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3588 $as_echo_n "checking for gdbserver support... " >&6; }
3589 if (srcdir=${srcdir}/gdbserver; \
3590 . ${srcdir}/configure.srv; \
3591 test -n "$UNSUPPORTED")
3592 then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 noconfigdirs="$noconfigdirs gdbserver"
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 $as_echo "yes" >&6; }
3599 fi
3600 fi
3601 fi
3602
3603 # Disable libgo for some systems where it is known to not work.
3604 # For testing, you can easily override this with --enable-libgo.
3605 if test x$enable_libgo = x; then
3606 case "${target}" in
3607 *-*-darwin*)
3608 # PR 46986
3609 noconfigdirs="$noconfigdirs target-libgo"
3610 ;;
3611 *-*-cygwin* | *-*-mingw*)
3612 noconfigdirs="$noconfigdirs target-libgo"
3613 ;;
3614 bpf-*-*)
3615 noconfigdirs="$noconfigdirs target-libgo"
3616 ;;
3617 esac
3618 fi
3619
3620 # Default libgloss CPU subdirectory.
3621 libgloss_dir="$target_cpu"
3622
3623 case "${target}" in
3624 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3625 libgloss_dir=wince
3626 ;;
3627 aarch64*-*-* )
3628 libgloss_dir=aarch64
3629 ;;
3630 arm*-*-*)
3631 libgloss_dir=arm
3632 ;;
3633 cris-*-* | crisv32-*-*)
3634 libgloss_dir=cris
3635 ;;
3636 hppa*-*-*)
3637 libgloss_dir=pa
3638 ;;
3639 i[3456789]86-*-*)
3640 libgloss_dir=i386
3641 ;;
3642 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3643 libgloss_dir=m68hc11
3644 ;;
3645 m68*-*-* | fido-*-*)
3646 libgloss_dir=m68k
3647 ;;
3648 mips*-*-*)
3649 libgloss_dir=mips
3650 ;;
3651 powerpc*-*-*)
3652 libgloss_dir=rs6000
3653 ;;
3654 pru-*-*)
3655 libgloss_dir=pru
3656 ;;
3657 sparc*-*-*)
3658 libgloss_dir=sparc
3659 ;;
3660 esac
3661
3662 # Disable newlib and libgloss for various target OSes.
3663 case "${target}" in
3664 alpha*-dec-osf*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 i[3456789]86-*-linux*)
3668 # This section makes it possible to build newlib natively on linux.
3669 # If we are using a cross compiler then don't configure newlib.
3670 if test x${is_cross_compiler} != xno ; then
3671 noconfigdirs="$noconfigdirs target-newlib"
3672 fi
3673 noconfigdirs="$noconfigdirs target-libgloss"
3674 # If we are not using a cross compiler, do configure newlib.
3675 # Note however, that newlib will only be configured in this situation
3676 # if the --with-newlib option has been given, because otherwise
3677 # 'target-newlib' will appear in skipdirs.
3678 ;;
3679 i[3456789]86-*-rdos*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685 sparc-*-sunos4*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 bpf-*-*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 *-*-aix*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694 *-*-beos*)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 ;;
3697 *-*-chorusos)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
3700 *-*-dragonfly*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
3703 *-*-freebsd*)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 ;;
3706 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
3709 *-*-lynxos*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 ;;
3712 *-*-mingw*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 *-*-netbsd*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-netware*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-tpf*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 *-*-uclinux*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727 *-*-vxworks*)
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 ;;
3730 esac
3731
3732 case "${target}" in
3733 *-*-chorusos)
3734 ;;
3735 aarch64-*-darwin*)
3736 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3737 noconfigdirs="$noconfigdirs sim target-rda"
3738 ;;
3739 amdgcn*-*-*)
3740 ;;
3741 arm-*-darwin*)
3742 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3743 noconfigdirs="$noconfigdirs sim target-rda"
3744 ;;
3745 powerpc-*-darwin*)
3746 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3747 noconfigdirs="$noconfigdirs sim target-rda"
3748 ;;
3749 i[3456789]86-*-darwin*)
3750 noconfigdirs="$noconfigdirs ld gprof"
3751 noconfigdirs="$noconfigdirs sim target-rda"
3752 ;;
3753 x86_64-*-darwin[912]*)
3754 noconfigdirs="$noconfigdirs ld gas gprof"
3755 noconfigdirs="$noconfigdirs sim target-rda"
3756 ;;
3757 *-*-darwin*)
3758 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3759 noconfigdirs="$noconfigdirs sim target-rda"
3760 ;;
3761 *-*-dragonfly*)
3762 ;;
3763 *-*-freebsd*)
3764 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3765 && test -f /usr/local/include/gmp.h; then
3766 with_gmp=/usr/local
3767 fi
3768 ;;
3769 *-*-kaos*)
3770 # Remove unsupported stuff on all kaOS configurations.
3771 noconfigdirs="$noconfigdirs target-libgloss"
3772 ;;
3773 *-*-netbsd*)
3774 ;;
3775 *-*-netware*)
3776 ;;
3777 *-*-phoenix*)
3778 noconfigdirs="$noconfigdirs target-libgloss"
3779 ;;
3780 *-*-rtems*)
3781 noconfigdirs="$noconfigdirs target-libgloss"
3782 ;;
3783 # The tpf target doesn't support gdb yet.
3784 *-*-tpf*)
3785 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3786 ;;
3787 *-*-uclinux*)
3788 noconfigdirs="$noconfigdirs target-rda"
3789 ;;
3790 *-*-vxworks*)
3791 ;;
3792 alpha*-dec-osf*)
3793 # ld works, but does not support shared libraries.
3794 # gas doesn't generate exception information.
3795 noconfigdirs="$noconfigdirs gas ld"
3796 ;;
3797 alpha*-*-*vms*)
3798 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3799 ;;
3800 alpha*-*-*)
3801 # newlib is not 64 bit ready
3802 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3803 ;;
3804 bpf-*-*)
3805 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3806 ;;
3807 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3808 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3809 ;;
3810 arc*-*-*)
3811 noconfigdirs="$noconfigdirs sim"
3812 ;;
3813 arm-*-pe*)
3814 noconfigdirs="$noconfigdirs target-libgloss"
3815 ;;
3816 arm-*-riscix*)
3817 noconfigdirs="$noconfigdirs ld target-libgloss"
3818 ;;
3819 avr-*-*)
3820 if test x${with_avrlibc} != xno; then
3821 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3822 fi
3823 ;;
3824 c4x-*-* | tic4x-*-*)
3825 noconfigdirs="$noconfigdirs target-libgloss"
3826 ;;
3827 tic54x-*-*)
3828 noconfigdirs="$noconfigdirs target-libgloss gdb"
3829 ;;
3830 d10v-*-*)
3831 noconfigdirs="$noconfigdirs target-libgloss"
3832 ;;
3833 d30v-*-*)
3834 noconfigdirs="$noconfigdirs gdb"
3835 ;;
3836 fr30-*-elf*)
3837 noconfigdirs="$noconfigdirs gdb"
3838 ;;
3839 ft32-*-*)
3840 noconfigdirs="$noconfigdirs target-rda gprof"
3841 ;;
3842 moxie-*-*)
3843 noconfigdirs="$noconfigdirs"
3844 ;;
3845 h8300*-*-*)
3846 noconfigdirs="$noconfigdirs target-libgloss"
3847 ;;
3848 h8500-*-*)
3849 noconfigdirs="$noconfigdirs target-libgloss"
3850 ;;
3851 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3852 ;;
3853 hppa*64*-*-hpux*)
3854 noconfigdirs="$noconfigdirs gdb"
3855 ;;
3856 hppa*-*-hpux11*)
3857 noconfigdirs="$noconfigdirs gdb ld"
3858 ;;
3859 hppa*64*-*-linux*)
3860 ;;
3861 hppa*-*-linux*)
3862 ;;
3863 hppa*-*-*elf* | \
3864 hppa*-*-lites* | \
3865 hppa*-*-openbsd* | \
3866 hppa*64*-*-*)
3867 ;;
3868 hppa*-*-pro*)
3869 ;;
3870 hppa*-*-*)
3871 noconfigdirs="$noconfigdirs ld"
3872 ;;
3873 i960-*-*)
3874 noconfigdirs="$noconfigdirs gdb"
3875 ;;
3876 ia64*-*-elf*)
3877 # No gdb support yet.
3878 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3879 ;;
3880 ia64*-**-hpux*)
3881 # No ld support yet.
3882 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3883 ;;
3884 ia64*-*-*vms*)
3885 # No ld support yet.
3886 noconfigdirs="$noconfigdirs libgui itcl ld"
3887 ;;
3888 i[3456789]86-w64-mingw*)
3889 ;;
3890 i[3456789]86-*-mingw*)
3891 target_configdirs="$target_configdirs target-winsup"
3892 ;;
3893 *-*-cygwin*)
3894 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3895 noconfigdirs="$noconfigdirs target-libgloss"
3896 # always build newlib if winsup directory is present.
3897 if test -d "$srcdir/winsup/cygwin"; then
3898 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3899 elif test -d "$srcdir/newlib"; then
3900 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3901 fi
3902 ;;
3903 i[3456789]86-*-pe)
3904 noconfigdirs="$noconfigdirs target-libgloss"
3905 ;;
3906 i[3456789]86-*-sco3.2v5*)
3907 # The linker does not yet know about weak symbols in COFF,
3908 # and is not configured to handle mixed ELF and COFF.
3909 noconfigdirs="$noconfigdirs ld target-libgloss"
3910 ;;
3911 i[3456789]86-*-sco*)
3912 noconfigdirs="$noconfigdirs gprof target-libgloss"
3913 ;;
3914 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3915 noconfigdirs="$noconfigdirs target-libgloss"
3916 ;;
3917 i[3456789]86-*-sysv4*)
3918 noconfigdirs="$noconfigdirs target-libgloss"
3919 ;;
3920 i[3456789]86-*-beos*)
3921 noconfigdirs="$noconfigdirs gdb"
3922 ;;
3923 i[3456789]86-*-rdos*)
3924 noconfigdirs="$noconfigdirs gdb"
3925 ;;
3926 mmix-*-*)
3927 noconfigdirs="$noconfigdirs gdb"
3928 ;;
3929 mt-*-*)
3930 noconfigdirs="$noconfigdirs sim"
3931 ;;
3932 nfp-*-*)
3933 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3934 noconfigdirs="$noconfigdirs $target_libraries"
3935 ;;
3936 pdp11-*-*)
3937 noconfigdirs="$noconfigdirs gdb gprof"
3938 ;;
3939 powerpc-*-aix*)
3940 # copied from rs6000-*-* entry
3941 noconfigdirs="$noconfigdirs gprof"
3942 ;;
3943 powerpc*-*-winnt* | powerpc*-*-pe*)
3944 target_configdirs="$target_configdirs target-winsup"
3945 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3946 # always build newlib.
3947 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3948 ;;
3949 # This is temporary until we can link against shared libraries
3950 powerpcle-*-solaris*)
3951 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3952 ;;
3953 powerpc-*-beos*)
3954 noconfigdirs="$noconfigdirs gdb"
3955 ;;
3956 rs6000-*-lynxos*)
3957 noconfigdirs="$noconfigdirs gprof"
3958 ;;
3959 rs6000-*-aix*)
3960 noconfigdirs="$noconfigdirs gprof"
3961 ;;
3962 rs6000-*-*)
3963 noconfigdirs="$noconfigdirs gprof"
3964 ;;
3965 m68k-apollo-*)
3966 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3967 ;;
3968 microblaze*)
3969 noconfigdirs="$noconfigdirs gprof"
3970 ;;
3971 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3972 if test x$with_newlib = xyes; then
3973 noconfigdirs="$noconfigdirs gprof"
3974 fi
3975 ;;
3976 mips*-*-irix5*)
3977 noconfigdirs="$noconfigdirs gprof target-libgloss"
3978 ;;
3979 mips*-*-irix6*)
3980 noconfigdirs="$noconfigdirs gprof target-libgloss"
3981 ;;
3982 mips*-*-bsd*)
3983 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3984 ;;
3985 mips*-*-linux*)
3986 ;;
3987 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3988 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3989 noconfigdirs="$noconfigdirs ld gas gprof"
3990 ;;
3991 mips*-*-*)
3992 noconfigdirs="$noconfigdirs gprof"
3993 ;;
3994 nvptx*-*-*)
3995 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3996 ;;
3997 sh-*-*)
3998 case "${target}" in
3999 sh*-*-elf)
4000 ;;
4001 *)
4002 noconfigdirs="$noconfigdirs target-libgloss" ;;
4003 esac
4004 ;;
4005 sparc-*-sunos4*)
4006 if test x${is_cross_compiler} = xno ; then
4007 use_gnu_ld=no
4008 fi
4009 ;;
4010 tic6x-*-*)
4011 noconfigdirs="$noconfigdirs sim"
4012 ;;
4013 tilepro*-*-* | tilegx*-*-*)
4014 noconfigdirs="$noconfigdirs sim"
4015 ;;
4016 v810-*-*)
4017 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4018 ;;
4019 vax-*-*)
4020 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4021 ;;
4022 wasm32-*-*)
4023 noconfigdirs="$noconfigdirs ld"
4024 ;;
4025 esac
4026
4027 # If we aren't building newlib, then don't build libgloss, since libgloss
4028 # depends upon some newlib header files.
4029 case "${noconfigdirs}" in
4030 *target-libgloss*) ;;
4031 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4032 esac
4033
4034 # Work in distributions that contain no compiler tools, like Autoconf.
4035 host_makefile_frag=/dev/null
4036 if test -d ${srcdir}/config ; then
4037 case "${host}" in
4038 i[3456789]86-*-msdosdjgpp*)
4039 host_makefile_frag="config/mh-djgpp"
4040 ;;
4041 *-cygwin*)
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4044 $as_echo_n "checking to see if cat works as expected... " >&6; }
4045 echo a >cygwin-cat-check
4046 if test `cat cygwin-cat-check` = a ; then
4047 rm cygwin-cat-check
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4049 $as_echo "yes" >&6; }
4050 else
4051 rm cygwin-cat-check
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 as_fn_error $? "The cat command does not ignore carriage return characters.
4055 Please either mount the build directory in binary mode or run the following
4056 commands before running any configure script:
4057 set -o igncr
4058 export SHELLOPTS
4059 " "$LINENO" 5
4060 fi
4061
4062 host_makefile_frag="config/mh-cygwin"
4063 ;;
4064 *-mingw*)
4065 host_makefile_frag="config/mh-mingw"
4066 ;;
4067 alpha*-linux*)
4068 host_makefile_frag="config/mh-alpha-linux"
4069 ;;
4070 hppa*-hp-hpux10*)
4071 host_makefile_frag="config/mh-pa-hpux10"
4072 ;;
4073 hppa*-hp-hpux*)
4074 host_makefile_frag="config/mh-pa"
4075 ;;
4076 hppa*-*)
4077 host_makefile_frag="config/mh-pa"
4078 ;;
4079 *-*-darwin*)
4080 host_makefile_frag="config/mh-darwin"
4081 ;;
4082 powerpc-*-aix*)
4083 host_makefile_frag="config/mh-ppc-aix"
4084 ;;
4085 rs6000-*-aix*)
4086 host_makefile_frag="config/mh-ppc-aix"
4087 ;;
4088 esac
4089 fi
4090
4091 if test "${build}" != "${host}" ; then
4092 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4093 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4094 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4095 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4096 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4097 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4098 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4099 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4100 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4101 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4102 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4103 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4104 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4105 else
4106 AR_FOR_BUILD="\$(AR)"
4107 AS_FOR_BUILD="\$(AS)"
4108 CC_FOR_BUILD="\$(CC)"
4109 CXX_FOR_BUILD="\$(CXX)"
4110 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4111 GOC_FOR_BUILD="\$(GOC)"
4112 GDC_FOR_BUILD="\$(GDC)"
4113 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4114 LD_FOR_BUILD="\$(LD)"
4115 NM_FOR_BUILD="\$(NM)"
4116 RANLIB_FOR_BUILD="\$(RANLIB)"
4117 WINDRES_FOR_BUILD="\$(WINDRES)"
4118 WINDMC_FOR_BUILD="\$(WINDMC)"
4119 fi
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_CC+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157 $as_echo "$CC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 fi
4165 if test -z "$ac_cv_prog_CC"; then
4166 ac_ct_CC=$CC
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168 set dummy gcc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_CC="gcc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188 done
4189 done
4190 IFS=$as_save_IFS
4191
4192 fi
4193 fi
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4197 $as_echo "$ac_ct_CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 fi
4202
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 CC=$ac_ct_CC
4213 fi
4214 else
4215 CC="$ac_cv_prog_CC"
4216 fi
4217
4218 if test -z "$CC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}cc; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CC+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CC="${ac_tool_prefix}cc"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 fi
4259 if test -z "$CC"; then
4260 # Extract the first word of "cc", so it can be a program name with args.
4261 set dummy cc; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270 ac_prog_rejected=no
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279 ac_prog_rejected=yes
4280 continue
4281 fi
4282 ac_cv_prog_CC="cc"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy $ac_cv_prog_CC
4293 shift
4294 if test $# != 0; then
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set CC to just the basename; use the full file name.
4298 shift
4299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4300 fi
4301 fi
4302 fi
4303 fi
4304 CC=$ac_cv_prog_CC
4305 if test -n "$CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314 fi
4315 if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 for ac_prog in cl.exe
4318 do
4319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_prog_CC+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC="$CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340 done
4341 done
4342 IFS=$as_save_IFS
4343
4344 fi
4345 fi
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355
4356 test -n "$CC" && break
4357 done
4358 fi
4359 if test -z "$CC"; then
4360 ac_ct_CC=$CC
4361 for ac_prog in cl.exe
4362 do
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364 set dummy $ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_ac_ct_CC="$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388 fi
4389 fi
4390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391 if test -n "$ac_ct_CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393 $as_echo "$ac_ct_CC" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399
4400 test -n "$ac_ct_CC" && break
4401 done
4402
4403 if test "x$ac_ct_CC" = x; then
4404 CC=""
4405 else
4406 case $cross_compiling:$ac_tool_warned in
4407 yes:)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned=yes ;;
4411 esac
4412 CC=$ac_ct_CC
4413 fi
4414 fi
4415
4416 fi
4417
4418
4419 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "no acceptable C compiler found in \$PATH
4422 See \`config.log' for more details" "$LINENO" 5; }
4423
4424 # Provide some information about the compiler.
4425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4426 set X $ac_compile
4427 ac_compiler=$2
4428 for ac_option in --version -v -V -qversion; do
4429 { { ac_try="$ac_compiler $ac_option >&5"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4437 ac_status=$?
4438 if test -s conftest.err; then
4439 sed '10a\
4440 ... rest of stderr output deleted ...
4441 10q' conftest.err >conftest.er1
4442 cat conftest.er1 >&5
4443 fi
4444 rm -f conftest.er1 conftest.err
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 done
4448
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 int
4453 main ()
4454 {
4455
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 ac_clean_files_save=$ac_clean_files
4461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4462 # Try to create an executable without -o first, disregard a.out.
4463 # It will help us diagnose broken compilers, and finding out an intuition
4464 # of exeext.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466 $as_echo_n "checking whether the C compiler works... " >&6; }
4467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4468
4469 # The possible output files:
4470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4471
4472 ac_rmfiles=
4473 for ac_file in $ac_files
4474 do
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4478 esac
4479 done
4480 rm -f $ac_rmfiles
4481
4482 if { { ac_try="$ac_link_default"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 $as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_link_default") 2>&5
4490 ac_status=$?
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then :
4493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4496 # so that the user can short-circuit this test for compilers unknown to
4497 # Autoconf.
4498 for ac_file in $ac_files ''
4499 do
4500 test -f "$ac_file" || continue
4501 case $ac_file in
4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4503 ;;
4504 [ab].out )
4505 # We found the default executable, but exeext='' is most
4506 # certainly right.
4507 break;;
4508 *.* )
4509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4510 then :; else
4511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4512 fi
4513 # We set ac_cv_exeext here because the later test for it is not
4514 # safe: cross compilers may not add the suffix if given an `-o'
4515 # argument, so we may need to know it at that point already.
4516 # Even if this section looks crufty: it has the advantage of
4517 # actually working.
4518 break;;
4519 * )
4520 break;;
4521 esac
4522 done
4523 test "$ac_cv_exeext" = no && ac_cv_exeext=
4524
4525 else
4526 ac_file=''
4527 fi
4528 if test -z "$ac_file"; then :
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error 77 "C compiler cannot create executables
4537 See \`config.log' for more details" "$LINENO" 5; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543 $as_echo_n "checking for C compiler default output file name... " >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545 $as_echo "$ac_file" >&6; }
4546 ac_exeext=$ac_cv_exeext
4547
4548 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4549 ac_clean_files=$ac_clean_files_save
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551 $as_echo_n "checking for suffix of executables... " >&6; }
4552 if { { ac_try="$ac_link"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
4560 ac_status=$?
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
4563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4565 # work properly (i.e., refer to `conftest.exe'), while it won't with
4566 # `rm'.
4567 for ac_file in conftest.exe conftest conftest.*; do
4568 test -f "$ac_file" || continue
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572 break;;
4573 * ) break;;
4574 esac
4575 done
4576 else
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4580 See \`config.log' for more details" "$LINENO" 5; }
4581 fi
4582 rm -f conftest conftest$ac_cv_exeext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4584 $as_echo "$ac_cv_exeext" >&6; }
4585
4586 rm -f conftest.$ac_ext
4587 EXEEXT=$ac_cv_exeext
4588 ac_exeext=$EXEEXT
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <stdio.h>
4592 int
4593 main ()
4594 {
4595 FILE *f = fopen ("conftest.out", "w");
4596 return ferror (f) || fclose (f) != 0;
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 ac_clean_files="$ac_clean_files conftest.out"
4603 # Check that the compiler produces executables we can run. If not, either
4604 # the compiler is broken, or we cross compile.
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606 $as_echo_n "checking whether we are cross compiling... " >&6; }
4607 if test "$cross_compiling" != yes; then
4608 { { ac_try="$ac_link"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_link") 2>&5
4616 ac_status=$?
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 if { ac_try='./conftest$ac_cv_exeext'
4620 { { case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_try") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; }; then
4630 cross_compiling=no
4631 else
4632 if test "$cross_compiling" = maybe; then
4633 cross_compiling=yes
4634 else
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error $? "cannot run C compiled programs.
4638 If you meant to cross compile, use \`--host'.
4639 See \`config.log' for more details" "$LINENO" 5; }
4640 fi
4641 fi
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644 $as_echo "$cross_compiling" >&6; }
4645
4646 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4647 ac_clean_files=$ac_clean_files_save
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649 $as_echo_n "checking for suffix of object files... " >&6; }
4650 if ${ac_cv_objext+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655
4656 int
4657 main ()
4658 {
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.o conftest.obj
4665 if { { ac_try="$ac_compile"
4666 case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669 esac
4670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671 $as_echo "$ac_try_echo"; } >&5
4672 (eval "$ac_compile") 2>&5
4673 ac_status=$?
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then :
4676 for ac_file in conftest.o conftest.obj conftest.*; do
4677 test -f "$ac_file" || continue;
4678 case $ac_file in
4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4681 break;;
4682 esac
4683 done
4684 else
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error $? "cannot compute suffix of object files: cannot compile
4691 See \`config.log' for more details" "$LINENO" 5; }
4692 fi
4693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4696 $as_echo "$ac_cv_objext" >&6; }
4697 OBJEXT=$ac_cv_objext
4698 ac_objext=$OBJEXT
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4701 if ${ac_cv_c_compiler_gnu+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706
4707 int
4708 main ()
4709 {
4710 #ifndef __GNUC__
4711 choke me
4712 #endif
4713
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_compiler_gnu=yes
4720 else
4721 ac_compiler_gnu=no
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4725
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729 if test $ac_compiler_gnu = yes; then
4730 GCC=yes
4731 else
4732 GCC=
4733 fi
4734 ac_test_CFLAGS=${CFLAGS+set}
4735 ac_save_CFLAGS=$CFLAGS
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4738 if ${ac_cv_prog_cc_g+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 ac_save_c_werror_flag=$ac_c_werror_flag
4742 ac_c_werror_flag=yes
4743 ac_cv_prog_cc_g=no
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_prog_cc_g=yes
4758 else
4759 CFLAGS=""
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762
4763 int
4764 main ()
4765 {
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772
4773 else
4774 ac_c_werror_flag=$ac_save_c_werror_flag
4775 CFLAGS="-g"
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778
4779 int
4780 main ()
4781 {
4782
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_prog_cc_g=yes
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4798 $as_echo "$ac_cv_prog_cc_g" >&6; }
4799 if test "$ac_test_CFLAGS" = set; then
4800 CFLAGS=$ac_save_CFLAGS
4801 elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4803 CFLAGS="-g -O2"
4804 else
4805 CFLAGS="-g"
4806 fi
4807 else
4808 if test "$GCC" = yes; then
4809 CFLAGS="-O2"
4810 else
4811 CFLAGS=
4812 fi
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4816 if ${ac_cv_prog_cc_c89+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 ac_cv_prog_cc_c89=no
4820 ac_save_CC=$CC
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <stdarg.h>
4824 #include <stdio.h>
4825 struct stat;
4826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827 struct buf { int x; };
4828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829 static char *e (p, i)
4830 char **p;
4831 int i;
4832 {
4833 return p[i];
4834 }
4835 static char *f (char * (*g) (char **, int), char **p, ...)
4836 {
4837 char *s;
4838 va_list v;
4839 va_start (v,p);
4840 s = g (p, va_arg (v,int));
4841 va_end (v);
4842 return s;
4843 }
4844
4845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
4848 as 'x'. The following induces an error, until -std is added to get
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
4851 that's true only with -std. */
4852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4853
4854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4856 #define FOO(x) 'x'
4857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4858
4859 int test (int i, double x);
4860 struct s1 {int (*f) (int a);};
4861 struct s2 {int (*f) (double a);};
4862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863 int argc;
4864 char **argv;
4865 int
4866 main ()
4867 {
4868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4875 do
4876 CC="$ac_save_CC $ac_arg"
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_prog_cc_c89=$ac_arg
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
4882 done
4883 rm -f conftest.$ac_ext
4884 CC=$ac_save_CC
4885
4886 fi
4887 # AC_CACHE_VAL
4888 case "x$ac_cv_prog_cc_c89" in
4889 x)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891 $as_echo "none needed" >&6; } ;;
4892 xno)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894 $as_echo "unsupported" >&6; } ;;
4895 *)
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4899 esac
4900 if test "x$ac_cv_prog_cc_c89" != xno; then :
4901
4902 fi
4903
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910 ac_ext=cpp
4911 ac_cpp='$CXXCPP $CPPFLAGS'
4912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915 if test -z "$CXX"; then
4916 if test -n "$CCC"; then
4917 CXX=$CCC
4918 else
4919 if test -n "$ac_tool_prefix"; then
4920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4921 do
4922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_CXX+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$CXX"; then
4930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4942 fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 CXX=$ac_cv_prog_CXX
4950 if test -n "$CXX"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4952 $as_echo "$CXX" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958
4959 test -n "$CXX" && break
4960 done
4961 fi
4962 if test -z "$CXX"; then
4963 ac_ct_CXX=$CXX
4964 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4965 do
4966 # Extract the first word of "$ac_prog", so it can be a program name with args.
4967 set dummy $ac_prog; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$ac_ct_CXX"; then
4974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_ac_ct_CXX="$ac_prog"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4994 if test -n "$ac_ct_CXX"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4996 $as_echo "$ac_ct_CXX" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002
5003 test -n "$ac_ct_CXX" && break
5004 done
5005
5006 if test "x$ac_ct_CXX" = x; then
5007 CXX="g++"
5008 else
5009 case $cross_compiling:$ac_tool_warned in
5010 yes:)
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015 CXX=$ac_ct_CXX
5016 fi
5017 fi
5018
5019 fi
5020 fi
5021 # Provide some information about the compiler.
5022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5023 set X $ac_compile
5024 ac_compiler=$2
5025 for ac_option in --version -v -V -qversion; do
5026 { { ac_try="$ac_compiler $ac_option >&5"
5027 case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030 esac
5031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5032 $as_echo "$ac_try_echo"; } >&5
5033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034 ac_status=$?
5035 if test -s conftest.err; then
5036 sed '10a\
5037 ... rest of stderr output deleted ...
5038 10q' conftest.err >conftest.er1
5039 cat conftest.er1 >&5
5040 fi
5041 rm -f conftest.er1 conftest.err
5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }
5044 done
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5047 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5048 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053
5054 int
5055 main ()
5056 {
5057 #ifndef __GNUC__
5058 choke me
5059 #endif
5060
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_cxx_try_compile "$LINENO"; then :
5066 ac_compiler_gnu=yes
5067 else
5068 ac_compiler_gnu=no
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5072
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5075 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5076 if test $ac_compiler_gnu = yes; then
5077 GXX=yes
5078 else
5079 GXX=
5080 fi
5081 ac_test_CXXFLAGS=${CXXFLAGS+set}
5082 ac_save_CXXFLAGS=$CXXFLAGS
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5084 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5085 if ${ac_cv_prog_cxx_g+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5089 ac_cxx_werror_flag=yes
5090 ac_cv_prog_cxx_g=no
5091 CXXFLAGS="-g"
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094
5095 int
5096 main ()
5097 {
5098
5099 ;
5100 return 0;
5101 }
5102 _ACEOF
5103 if ac_fn_cxx_try_compile "$LINENO"; then :
5104 ac_cv_prog_cxx_g=yes
5105 else
5106 CXXFLAGS=""
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109
5110 int
5111 main ()
5112 {
5113
5114 ;
5115 return 0;
5116 }
5117 _ACEOF
5118 if ac_fn_cxx_try_compile "$LINENO"; then :
5119
5120 else
5121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5122 CXXFLAGS="-g"
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125
5126 int
5127 main ()
5128 {
5129
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_cxx_try_compile "$LINENO"; then :
5135 ac_cv_prog_cxx_g=yes
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5145 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5146 if test "$ac_test_CXXFLAGS" = set; then
5147 CXXFLAGS=$ac_save_CXXFLAGS
5148 elif test $ac_cv_prog_cxx_g = yes; then
5149 if test "$GXX" = yes; then
5150 CXXFLAGS="-g -O2"
5151 else
5152 CXXFLAGS="-g"
5153 fi
5154 else
5155 if test "$GXX" = yes; then
5156 CXXFLAGS="-O2"
5157 else
5158 CXXFLAGS=
5159 fi
5160 fi
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167
5168 # We must set the default linker to the linker used by gcc for the correct
5169 # operation of libtool. If LD is not defined and we are using gcc, try to
5170 # set the LD default to the ld used by gcc.
5171 if test -z "$LD"; then
5172 if test "$GCC" = yes; then
5173 case $build in
5174 *-*-mingw*)
5175 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5176 *)
5177 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5178 esac
5179 case $gcc_prog_ld in
5180 # Accept absolute paths.
5181 [\\/]* | [A-Za-z]:[\\/]*)
5182 LD="$gcc_prog_ld" ;;
5183 esac
5184 fi
5185 fi
5186
5187 # Check whether -static-libstdc++ -static-libgcc is supported.
5188 have_static_libs=no
5189 if test "$GCC" = yes; then
5190 saved_LDFLAGS="$LDFLAGS"
5191
5192 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5194 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5195 ac_ext=cpp
5196 ac_cpp='$CXXCPP $CPPFLAGS'
5197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200
5201
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204
5205 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5206 #error -static-libstdc++ not implemented
5207 #endif
5208 int main() {}
5209 _ACEOF
5210 if ac_fn_cxx_try_link "$LINENO"; then :
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212 $as_echo "yes" >&6; }; have_static_libs=yes
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5219 ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
5226 LDFLAGS="$saved_LDFLAGS"
5227 fi
5228
5229
5230
5231
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_GNATBIND+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$GNATBIND"; then
5241 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 fi
5259 fi
5260 GNATBIND=$ac_cv_prog_GNATBIND
5261 if test -n "$GNATBIND"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5263 $as_echo "$GNATBIND" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268
5269
5270 fi
5271 if test -z "$ac_cv_prog_GNATBIND"; then
5272 ac_ct_GNATBIND=$GNATBIND
5273 # Extract the first word of "gnatbind", so it can be a program name with args.
5274 set dummy gnatbind; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$ac_ct_GNATBIND"; then
5281 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5301 if test -n "$ac_ct_GNATBIND"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5303 $as_echo "$ac_ct_GNATBIND" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309 if test "x$ac_ct_GNATBIND" = x; then
5310 GNATBIND="no"
5311 else
5312 case $cross_compiling:$ac_tool_warned in
5313 yes:)
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316 ac_tool_warned=yes ;;
5317 esac
5318 GNATBIND=$ac_ct_GNATBIND
5319 fi
5320 else
5321 GNATBIND="$ac_cv_prog_GNATBIND"
5322 fi
5323
5324 if test -n "$ac_tool_prefix"; then
5325 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_GNATMAKE+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$GNATMAKE"; then
5333 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346 done
5347 done
5348 IFS=$as_save_IFS
5349
5350 fi
5351 fi
5352 GNATMAKE=$ac_cv_prog_GNATMAKE
5353 if test -n "$GNATMAKE"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5355 $as_echo "$GNATMAKE" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 fi
5363 if test -z "$ac_cv_prog_GNATMAKE"; then
5364 ac_ct_GNATMAKE=$GNATMAKE
5365 # Extract the first word of "gnatmake", so it can be a program name with args.
5366 set dummy gnatmake; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$ac_ct_GNATMAKE"; then
5373 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5393 if test -n "$ac_ct_GNATMAKE"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5395 $as_echo "$ac_ct_GNATMAKE" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401 if test "x$ac_ct_GNATMAKE" = x; then
5402 GNATMAKE="no"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410 GNATMAKE=$ac_ct_GNATMAKE
5411 fi
5412 else
5413 GNATMAKE="$ac_cv_prog_GNATMAKE"
5414 fi
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5417 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5418 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 cat >conftest.adb <<EOF
5422 procedure conftest is begin null; end conftest;
5423 EOF
5424 acx_cv_cc_gcc_supports_ada=no
5425 # There is a bug in old released versions of GCC which causes the
5426 # driver to exit successfully when the appropriate language module
5427 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5428 # Therefore we must check for the error message as well as an
5429 # unsuccessful exit.
5430 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5431 # given a .adb file, but produce no object file. So we must check
5432 # if an object file was really produced to guard against this.
5433 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5434 if test x"$errors" = x && test -f conftest.$ac_objext; then
5435 acx_cv_cc_gcc_supports_ada=yes
5436 fi
5437 rm -f conftest.*
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5440 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5441
5442 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5443 have_gnat=yes
5444 else
5445 have_gnat=no
5446 fi
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5449 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5450 if ${gcc_cv_prog_cmp_skip+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 echo abfoo >t1
5454 echo cdfoo >t2
5455 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5456 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5457 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5458 :
5459 else
5460 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5461 fi
5462 fi
5463 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5464 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5465 :
5466 else
5467 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5468 fi
5469 fi
5470 rm t1 t2
5471
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5474 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5475 do_compare="$gcc_cv_prog_cmp_skip"
5476
5477
5478
5479 # Check whether --enable-bootstrap was given.
5480 if test "${enable_bootstrap+set}" = set; then :
5481 enableval=$enable_bootstrap;
5482 else
5483 enable_bootstrap=default
5484 fi
5485
5486
5487 # Issue errors and warnings for invalid/strange bootstrap combinations.
5488 if test -r $srcdir/gcc/configure; then
5489 have_compiler=yes
5490 else
5491 have_compiler=no
5492 fi
5493
5494 case "$have_compiler:$host:$target:$enable_bootstrap" in
5495 *:*:*:no) ;;
5496
5497 # Default behavior. Enable bootstrap if we have a compiler
5498 # and we are in a native configuration.
5499 yes:$build:$build:default)
5500 enable_bootstrap=yes ;;
5501
5502 *:*:*:default)
5503 enable_bootstrap=no ;;
5504
5505 # We have a compiler and we are in a native configuration, bootstrap is ok
5506 yes:$build:$build:yes)
5507 ;;
5508
5509 # Other configurations, but we have a compiler. Assume the user knows
5510 # what he's doing.
5511 yes:*:*:yes)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5513 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5514 ;;
5515
5516 # No compiler: if they passed --enable-bootstrap explicitly, fail
5517 no:*:*:yes)
5518 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5519
5520 # Fail if wrong command line
5521 *)
5522 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5523 ;;
5524 esac
5525
5526 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5527 # C++11 compiler can still start the bootstrap.
5528 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5529 CXX="$CXX -std=c++11"
5530 fi
5531
5532 # Used for setting $lt_cv_objdir
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5534 $as_echo_n "checking for objdir... " >&6; }
5535 if ${lt_cv_objdir+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 rm -f .libs 2>/dev/null
5539 mkdir .libs 2>/dev/null
5540 if test -d .libs; then
5541 lt_cv_objdir=.libs
5542 else
5543 # MS-DOS does not allow filenames that begin with a dot.
5544 lt_cv_objdir=_libs
5545 fi
5546 rmdir .libs 2>/dev/null
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5549 $as_echo "$lt_cv_objdir" >&6; }
5550 objdir=$lt_cv_objdir
5551
5552
5553
5554
5555
5556 cat >>confdefs.h <<_ACEOF
5557 #define LT_OBJDIR "$lt_cv_objdir/"
5558 _ACEOF
5559
5560
5561
5562 # Check for GMP, MPFR and MPC
5563 gmplibs="-lmpc -lmpfr -lgmp"
5564 gmpinc=
5565 have_gmp=no
5566
5567 # Specify a location for mpc
5568 # check for this first so it ends up on the link line before mpfr.
5569
5570 # Check whether --with-mpc was given.
5571 if test "${with_mpc+set}" = set; then :
5572 withval=$with_mpc;
5573 fi
5574
5575
5576 # Check whether --with-mpc-include was given.
5577 if test "${with_mpc_include+set}" = set; then :
5578 withval=$with_mpc_include;
5579 fi
5580
5581
5582 # Check whether --with-mpc-lib was given.
5583 if test "${with_mpc_lib+set}" = set; then :
5584 withval=$with_mpc_lib;
5585 fi
5586
5587
5588 if test "x$with_mpc" != x; then
5589 gmplibs="-L$with_mpc/lib $gmplibs"
5590 gmpinc="-I$with_mpc/include $gmpinc"
5591 fi
5592 if test "x$with_mpc_include" != x; then
5593 gmpinc="-I$with_mpc_include $gmpinc"
5594 fi
5595 if test "x$with_mpc_lib" != x; then
5596 gmplibs="-L$with_mpc_lib $gmplibs"
5597 fi
5598 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5599 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5600 gmpinc='-I$$s/mpc/src '"$gmpinc"
5601 # Do not test the mpc version. Assume that it is sufficient, since
5602 # it is in the source tree, and the library has not been built yet
5603 # but it would be included on the link line in the version check below
5604 # hence making the test fail.
5605 have_gmp=yes
5606 fi
5607
5608 # Specify a location for mpfr
5609 # check for this first so it ends up on the link line before gmp.
5610
5611 # Check whether --with-mpfr-dir was given.
5612 if test "${with_mpfr_dir+set}" = set; then :
5613 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5614 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5615 fi
5616
5617
5618
5619 # Check whether --with-mpfr was given.
5620 if test "${with_mpfr+set}" = set; then :
5621 withval=$with_mpfr;
5622 fi
5623
5624
5625 # Check whether --with-mpfr-include was given.
5626 if test "${with_mpfr_include+set}" = set; then :
5627 withval=$with_mpfr_include;
5628 fi
5629
5630
5631 # Check whether --with-mpfr-lib was given.
5632 if test "${with_mpfr_lib+set}" = set; then :
5633 withval=$with_mpfr_lib;
5634 fi
5635
5636
5637 if test "x$with_mpfr" != x; then
5638 gmplibs="-L$with_mpfr/lib $gmplibs"
5639 gmpinc="-I$with_mpfr/include $gmpinc"
5640 fi
5641 if test "x$with_mpfr_include" != x; then
5642 gmpinc="-I$with_mpfr_include $gmpinc"
5643 fi
5644 if test "x$with_mpfr_lib" != x; then
5645 gmplibs="-L$with_mpfr_lib $gmplibs"
5646 fi
5647 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5648 # MPFR v3.1.0 moved the sources into a src sub-directory.
5649 if ! test -d ${srcdir}/mpfr/src; then
5650 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5651 fi
5652 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5653 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5654 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5655 # Do not test the mpfr version. Assume that it is sufficient, since
5656 # it is in the source tree, and the library has not been built yet
5657 # but it would be included on the link line in the version check below
5658 # hence making the test fail.
5659 have_gmp=yes
5660 fi
5661
5662 # Specify a location for gmp
5663
5664 # Check whether --with-gmp-dir was given.
5665 if test "${with_gmp_dir+set}" = set; then :
5666 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5667 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5668 fi
5669
5670
5671
5672 # Check whether --with-gmp was given.
5673 if test "${with_gmp+set}" = set; then :
5674 withval=$with_gmp;
5675 fi
5676
5677
5678 # Check whether --with-gmp-include was given.
5679 if test "${with_gmp_include+set}" = set; then :
5680 withval=$with_gmp_include;
5681 fi
5682
5683
5684 # Check whether --with-gmp-lib was given.
5685 if test "${with_gmp_lib+set}" = set; then :
5686 withval=$with_gmp_lib;
5687 fi
5688
5689
5690
5691 if test "x$with_gmp" != x; then
5692 gmplibs="-L$with_gmp/lib $gmplibs"
5693 gmpinc="-I$with_gmp/include $gmpinc"
5694 fi
5695 if test "x$with_gmp_include" != x; then
5696 gmpinc="-I$with_gmp_include $gmpinc"
5697 fi
5698 if test "x$with_gmp_lib" != x; then
5699 gmplibs="-L$with_gmp_lib $gmplibs"
5700 fi
5701 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5702 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5703 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5704 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5705 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5706 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5707 # Do not test the gmp version. Assume that it is sufficient, since
5708 # it is in the source tree, and the library has not been built yet
5709 # but it would be included on the link line in the version check below
5710 # hence making the test fail.
5711 have_gmp=yes
5712 fi
5713
5714 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5715 have_gmp=yes
5716 saved_CFLAGS="$CFLAGS"
5717 CFLAGS="$CFLAGS $gmpinc"
5718 # Check for the recommended and required versions of GMP.
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5720 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5721
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include "gmp.h"
5725 int
5726 main ()
5727 {
5728
5729 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5730 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5731 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5732 choke me
5733 #endif
5734
5735 ;
5736 return 0;
5737 }
5738 _ACEOF
5739 if ac_fn_c_try_compile "$LINENO"; then :
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <gmp.h>
5743 int
5744 main ()
5745 {
5746
5747 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5748 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5749 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5750 choke me
5751 #endif
5752
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5762 $as_echo "buggy but acceptable" >&6; }
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }; have_gmp=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770
5771 # If we have GMP, check the MPFR version.
5772 if test x"$have_gmp" = xyes; then
5773 # Check for the recommended and required versions of MPFR.
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5775 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <gmp.h>
5779 #include <mpfr.h>
5780 int
5781 main ()
5782 {
5783
5784 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
5785 choke me
5786 #endif
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #include <gmp.h>
5796 #include <mpfr.h>
5797 int
5798 main ()
5799 {
5800
5801 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
5802 choke me
5803 #endif
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5811 $as_echo "yes" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5814 $as_echo "buggy but acceptable" >&6; }
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }; have_gmp=no
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 fi
5823
5824 # Check for the MPC header version.
5825 if test x"$have_gmp" = xyes ; then
5826 # Check for the recommended and required versions of MPC.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5828 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 #include <mpc.h>
5832 int
5833 main ()
5834 {
5835
5836 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5837 choke me
5838 #endif
5839
5840 ;
5841 return 0;
5842 }
5843 _ACEOF
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include <mpc.h>
5848 int
5849 main ()
5850 {
5851
5852 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5853 choke me
5854 #endif
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5862 $as_echo "yes" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5865 $as_echo "buggy but acceptable" >&6; }
5866 fi
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }; have_gmp=no
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 fi
5874
5875 # Now check the MPFR library.
5876 if test x"$have_gmp" = xyes; then
5877 saved_LIBS="$LIBS"
5878 LIBS="$LIBS $gmplibs"
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5880 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #include <mpc.h>
5884 int
5885 main ()
5886 {
5887
5888 mpfr_t n;
5889 mpfr_t x;
5890 mpc_t c;
5891 int t;
5892 mpfr_init (n);
5893 mpfr_init (x);
5894 mpfr_atan2 (n, n, x, MPFR_RNDN);
5895 mpfr_erfc (n, x, MPFR_RNDN);
5896 mpfr_subnormalize (x, t, MPFR_RNDN);
5897 mpfr_clear(n);
5898 mpfr_clear(x);
5899 mpc_init2 (c, 53);
5900 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5901 mpc_cosh (c, c, MPC_RNDNN);
5902 mpc_pow (c, c, c, MPC_RNDNN);
5903 mpc_acosh (c, c, MPC_RNDNN);
5904 mpc_clear (c);
5905
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_link "$LINENO"; then :
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5912 $as_echo "yes" >&6; }
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }; have_gmp=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext \
5918 conftest$ac_exeext conftest.$ac_ext
5919 LIBS="$saved_LIBS"
5920 fi
5921
5922 CFLAGS="$saved_CFLAGS"
5923
5924 # The library versions listed in the error message below should match
5925 # the HARD-minimums enforced above.
5926 if test x$have_gmp != xyes; then
5927 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
5928 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5929 their locations. Source code for these libraries can be found at
5930 their respective hosting sites as well as at
5931 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
5932 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5933 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5934 make sure that you have installed both the libraries and the header
5935 files. They may be located in separate packages." "$LINENO" 5
5936 fi
5937 fi
5938
5939 # Flags needed for both GMP, MPFR and/or MPC.
5940
5941
5942
5943
5944
5945
5946
5947 # Libraries to use for stage1 or when not bootstrapping.
5948
5949 # Check whether --with-stage1-libs was given.
5950 if test "${with_stage1_libs+set}" = set; then :
5951 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5952 stage1_libs=
5953 else
5954 stage1_libs=$withval
5955 fi
5956 else
5957 stage1_libs=
5958 fi
5959
5960
5961
5962 # Whether or not to use -static-libstdc++ and -static-libgcc. The
5963 # default is yes if gcc is being built; no otherwise. The reason for
5964 # this default is that gdb is sometimes linked against GNU Source
5965 # Highlight, which is a shared library that uses C++ exceptions. In
5966 # this case, -static-libstdc++ will cause crashes.
5967
5968 # Check whether --with-static-standard-libraries was given.
5969 if test "${with_static_standard_libraries+set}" = set; then :
5970 withval=$with_static_standard_libraries;
5971 else
5972 with_static_standard_libraries=auto
5973 fi
5974
5975 if test "$with_static_standard_libraries" = auto; then
5976 with_static_standard_libraries=$have_compiler
5977 fi
5978
5979 # Linker flags to use for stage1 or when not bootstrapping.
5980
5981 # Check whether --with-stage1-ldflags was given.
5982 if test "${with_stage1_ldflags+set}" = set; then :
5983 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5984 stage1_ldflags=
5985 else
5986 stage1_ldflags=$withval
5987 fi
5988 else
5989 stage1_ldflags=
5990 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5991 # if supported. But if the user explicitly specified the libraries to use,
5992 # trust that they are doing what they want.
5993 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5994 -a "$have_static_libs" = yes; then
5995 stage1_ldflags="-static-libstdc++ -static-libgcc"
5996 fi
5997 fi
5998
5999
6000
6001 # Libraries to use for stage2 and later builds.
6002
6003 # Check whether --with-boot-libs was given.
6004 if test "${with_boot_libs+set}" = set; then :
6005 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6006 poststage1_libs=
6007 else
6008 poststage1_libs=$withval
6009 fi
6010 else
6011 poststage1_libs=
6012 fi
6013
6014
6015
6016 # Linker flags to use for stage2 and later builds.
6017
6018 # Check whether --with-boot-ldflags was given.
6019 if test "${with_boot_ldflags+set}" = set; then :
6020 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6021 poststage1_ldflags=
6022 else
6023 poststage1_ldflags=$withval
6024 fi
6025 else
6026 poststage1_ldflags=
6027 # In stages 2 and 3, default to linking libstdc++ and libgcc
6028 # statically. But if the user explicitly specified the libraries to
6029 # use, trust that they are doing what they want.
6030 if test "$poststage1_libs" = ""; then
6031 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6032 fi
6033 fi
6034
6035
6036
6037 # GCC GRAPHITE dependency isl.
6038 # Basic setup is inlined here, actual checks are in config/isl.m4
6039
6040
6041 # Check whether --with-isl was given.
6042 if test "${with_isl+set}" = set; then :
6043 withval=$with_isl;
6044 fi
6045
6046
6047 # Treat --without-isl as a request to disable
6048 # GRAPHITE support and skip all following checks.
6049 if test "x$with_isl" != "xno"; then
6050 # Check for isl
6051
6052
6053 # Check whether --with-isl-include was given.
6054 if test "${with_isl_include+set}" = set; then :
6055 withval=$with_isl_include;
6056 fi
6057
6058
6059 # Check whether --with-isl-lib was given.
6060 if test "${with_isl_lib+set}" = set; then :
6061 withval=$with_isl_lib;
6062 fi
6063
6064
6065 # Check whether --enable-isl-version-check was given.
6066 if test "${enable_isl_version_check+set}" = set; then :
6067 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6068 else
6069 ENABLE_ISL_CHECK=yes
6070 fi
6071
6072
6073 # Initialize isllibs and islinc.
6074 case $with_isl in
6075 no)
6076 isllibs=
6077 islinc=
6078 ;;
6079 "" | yes)
6080 ;;
6081 *)
6082 isllibs="-L$with_isl/lib"
6083 islinc="-I$with_isl/include"
6084 ;;
6085 esac
6086 if test "x${with_isl_include}" != x ; then
6087 islinc="-I$with_isl_include"
6088 fi
6089 if test "x${with_isl_lib}" != x; then
6090 isllibs="-L$with_isl_lib"
6091 fi
6092 if test "x${islinc}" = x && test "x${isllibs}" = x \
6093 && test -d ${srcdir}/isl; then
6094 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6095 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6096 ENABLE_ISL_CHECK=no
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6098 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6099 fi
6100
6101 isllibs="${isllibs} -lisl"
6102
6103
6104
6105 if test "${ENABLE_ISL_CHECK}" = yes ; then
6106 _isl_saved_CFLAGS=$CFLAGS
6107 _isl_saved_LDFLAGS=$LDFLAGS
6108 _isl_saved_LIBS=$LIBS
6109
6110 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6111 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6112 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6115 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 #include <isl/schedule.h>
6119 int
6120 main ()
6121 {
6122 isl_options_set_schedule_serialize_sccs (NULL, 0);
6123 ;
6124 return 0;
6125 }
6126 _ACEOF
6127 if ac_fn_c_try_link "$LINENO"; then :
6128 gcc_cv_isl=yes
6129 else
6130 gcc_cv_isl=no
6131 fi
6132 rm -f core conftest.err conftest.$ac_objext \
6133 conftest$ac_exeext conftest.$ac_ext
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6135 $as_echo "$gcc_cv_isl" >&6; }
6136
6137 if test "${gcc_cv_isl}" = no ; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6139 $as_echo "required isl version is 0.15 or later" >&6; }
6140 fi
6141
6142 CFLAGS=$_isl_saved_CFLAGS
6143 LDFLAGS=$_isl_saved_LDFLAGS
6144 LIBS=$_isl_saved_LIBS
6145 fi
6146
6147
6148
6149
6150
6151
6152 if test "x${with_isl}" = xno; then
6153 graphite_requested=no
6154 elif test "x${with_isl}" != x \
6155 || test "x${with_isl_include}" != x \
6156 || test "x${with_isl_lib}" != x ; then
6157 graphite_requested=yes
6158 else
6159 graphite_requested=no
6160 fi
6161
6162
6163
6164 if test "${gcc_cv_isl}" = no ; then
6165 isllibs=
6166 islinc=
6167 fi
6168
6169 if test "${graphite_requested}" = yes \
6170 && test "x${isllibs}" = x \
6171 && test "x${islinc}" = x ; then
6172
6173 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6174 fi
6175
6176
6177 fi
6178
6179 # If the isl check failed, disable builds of in-tree variant of isl
6180 if test "x$with_isl" = xno ||
6181 test "x$gcc_cv_isl" = xno; then
6182 noconfigdirs="$noconfigdirs isl"
6183 islinc=
6184 fi
6185
6186
6187
6188
6189 # Check for LTO support.
6190 # Check whether --enable-lto was given.
6191 if test "${enable_lto+set}" = set; then :
6192 enableval=$enable_lto; enable_lto=$enableval
6193 else
6194 enable_lto=yes; default_enable_lto=yes
6195 fi
6196
6197
6198
6199
6200
6201 target_elf=no
6202 case $target in
6203 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6204 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6205 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6206 nvptx-*-none)
6207 target_elf=no
6208 ;;
6209 *)
6210 target_elf=yes
6211 ;;
6212 esac
6213
6214 if test $target_elf = yes; then :
6215 # ELF platforms build the lto-plugin always.
6216 build_lto_plugin=yes
6217
6218 else
6219 if test x"$default_enable_lto" = x"yes" ; then
6220 case $target in
6221 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6222 # On other non-ELF platforms, LTO has yet to be validated.
6223 *) enable_lto=no ;;
6224 esac
6225 else
6226 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6227 # It would also be nice to check the binutils support, but we don't
6228 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6229 # warn during gcc/ subconfigure; unless you're bootstrapping with
6230 # -flto it won't be needed until after installation anyway.
6231 case $target in
6232 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6233 *) if test x"$enable_lto" = x"yes"; then
6234 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6235 fi
6236 ;;
6237 esac
6238 fi
6239 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6240 # Build it unless LTO was explicitly disabled.
6241 case $target in
6242 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6243 *) ;;
6244 esac
6245
6246 fi
6247
6248
6249 # Check whether --enable-linker-plugin-configure-flags was given.
6250 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6251 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6252 else
6253 extra_linker_plugin_configure_flags=
6254 fi
6255
6256
6257 # Check whether --enable-linker-plugin-flags was given.
6258 if test "${enable_linker_plugin_flags+set}" = set; then :
6259 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6260 else
6261 extra_linker_plugin_flags=
6262 fi
6263
6264
6265
6266 # Enable --enable-host-shared.
6267 # Checked early to determine whether jit is an 'all' language
6268 # Check whether --enable-host-shared was given.
6269 if test "${enable_host_shared+set}" = set; then :
6270 enableval=$enable_host_shared; host_shared=$enableval
6271 else
6272 host_shared=no
6273 fi
6274
6275
6276
6277 # By default, C and C++ are the only stage 1 languages.
6278 stage1_languages=,c,
6279
6280 # Target libraries that we bootstrap.
6281 bootstrap_target_libs=,target-libgcc,
6282
6283 # Figure out what language subdirectories are present.
6284 # Look if the user specified --enable-languages="..."; if not, use
6285 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6286 # go away some day.
6287 # NB: embedded tabs in this IF block -- do not untabify
6288 if test -d ${srcdir}/gcc; then
6289 if test x"${enable_languages+set}" != xset; then
6290 if test x"${LANGUAGES+set}" = xset; then
6291 enable_languages="${LANGUAGES}"
6292 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6293 else
6294 enable_languages=default
6295 fi
6296 else
6297 if test x"${enable_languages}" = x ||
6298 test x"${enable_languages}" = xyes;
6299 then
6300 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6301 exit 1
6302 fi
6303 fi
6304 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6305
6306 # 'f95' is the old name for the 'fortran' language. We issue a warning
6307 # and make the substitution.
6308 case ,${enable_languages}, in
6309 *,f95,*)
6310 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6311 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6312 ;;
6313 esac
6314
6315 # If bootstrapping, C++ must be enabled.
6316 case ",$enable_languages,:$enable_bootstrap" in
6317 *,c++,*:*) ;;
6318 *:yes)
6319 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6320 enable_languages="${enable_languages},c++"
6321 else
6322 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6323 fi
6324 ;;
6325 esac
6326
6327 # First scan to see if an enabled language requires some other language.
6328 # We assume that a given config-lang.in will list all the language
6329 # front ends it requires, even if some are required indirectly.
6330 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6331 case ${lang_frag} in
6332 ..) ;;
6333 # The odd quoting in the next line works around
6334 # an apparent bug in bash 1.12 on linux.
6335 ${srcdir}/gcc/[*]/config-lang.in) ;;
6336 *)
6337 # From the config-lang.in, get $language, $lang_requires, and
6338 # $lang_requires_boot_languages.
6339 language=
6340 lang_requires=
6341 lang_requires_boot_languages=
6342 # set srcdir during sourcing lang_frag to the gcc dir.
6343 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6344 # polutes this shell
6345 saved_srcdir=${srcdir}
6346 srcdir=${srcdir}/gcc . ${lang_frag}
6347 srcdir=${saved_srcdir}
6348 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6349 case ,${enable_languages}, in
6350 *,$other,*) ;;
6351 *,default,*) ;;
6352 *,all,*) ;;
6353 *,$language,*)
6354 echo " \`$other' language required by \`$language'; enabling" 1>&2
6355 enable_languages="${enable_languages},${other}"
6356 ;;
6357 esac
6358 done
6359 for other in ${lang_requires_boot_languages} ; do
6360 if test "$other" != "c"; then
6361 case ,${enable_stage1_languages}, in
6362 *,$other,*) ;;
6363 *,default,*) ;;
6364 *,all,*) ;;
6365 *)
6366 case ,${enable_languages}, in
6367 *,$language,*)
6368 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6369 enable_stage1_languages="$enable_stage1_languages,${other}"
6370 ;;
6371 esac
6372 ;;
6373 esac
6374 fi
6375 done
6376 ;;
6377 esac
6378 done
6379
6380 new_enable_languages=,c,
6381
6382 # If LTO is enabled, add the LTO front end.
6383 if test "$enable_lto" = "yes" ; then
6384 case ,${enable_languages}, in
6385 *,lto,*) ;;
6386 *) enable_languages="${enable_languages},lto" ;;
6387 esac
6388 if test "${build_lto_plugin}" = "yes" ; then
6389 configdirs="$configdirs lto-plugin"
6390 fi
6391 fi
6392
6393 # If we're building an offloading compiler, add the LTO front end.
6394 if test x"$enable_as_accelerator_for" != x ; then
6395 case ,${enable_languages}, in
6396 *,lto,*) ;;
6397 *) enable_languages="${enable_languages},lto" ;;
6398 esac
6399 fi
6400
6401 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6402 potential_languages=,c,
6403
6404 enabled_target_libs=
6405 disabled_target_libs=
6406
6407 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6408 case ${lang_frag} in
6409 ..) ;;
6410 # The odd quoting in the next line works around
6411 # an apparent bug in bash 1.12 on linux.
6412 ${srcdir}/gcc/[*]/config-lang.in) ;;
6413 *)
6414 # From the config-lang.in, get $language, $target_libs,
6415 # $lang_dirs, $boot_language, and $build_by_default
6416 language=
6417 target_libs=
6418 lang_dirs=
6419 subdir_requires=
6420 boot_language=no
6421 build_by_default=yes
6422 # set srcdir during sourcing. See above about save & restore
6423 saved_srcdir=${srcdir}
6424 srcdir=${srcdir}/gcc . ${lang_frag}
6425 srcdir=${saved_srcdir}
6426 if test x${language} = x; then
6427 echo "${lang_frag} doesn't set \$language." 1>&2
6428 exit 1
6429 fi
6430
6431 if test "$language" = "c++"; then
6432 boot_language=yes
6433 fi
6434
6435 add_this_lang=no
6436 # C is always enabled, so no need to add it again
6437 if test "$language" != "c"; then
6438 case ,${enable_languages}, in
6439 *,${language},*)
6440 # Language was explicitly selected; include it
6441 add_this_lang=yes
6442 ;;
6443 *,all,*)
6444 # All languages are enabled
6445 add_this_lang=all
6446 ;;
6447 *,default,*)
6448 # 'default' was selected, select it if it is a default language
6449 add_this_lang=${build_by_default}
6450 ;;
6451 esac
6452 fi
6453
6454 # Disable languages that need other directories if these aren't available.
6455 for i in $subdir_requires; do
6456 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6457 case ${add_this_lang} in
6458 yes)
6459 # Specifically requested language; tell them.
6460 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6461 ;;
6462 all)
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6464 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6465 add_this_lang=unsupported
6466 ;;
6467 *)
6468 # Silently disable.
6469 add_this_lang=unsupported
6470 ;;
6471 esac
6472 done
6473
6474 # Disable Ada if no preexisting GNAT is available.
6475 case ${add_this_lang}:${language}:${have_gnat} in
6476 yes:ada:no)
6477 # Specifically requested language; tell them.
6478 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6479 ;;
6480 all:ada:no)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6482 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6483 add_this_lang=unsupported
6484 ;;
6485 *:ada:no)
6486 # Silently disable.
6487 add_this_lang=unsupported
6488 ;;
6489 esac
6490
6491 # Disable jit if -enable-host-shared not specified
6492 # but not if building for Mingw
6493 case $target in
6494 *mingw*) ;;
6495 *)
6496 case ${add_this_lang}:${language}:${host_shared} in
6497 yes:jit:no)
6498 # PR jit/64780: explicitly specify --enable-host-shared
6499 as_fn_error $? "
6500 Enabling language \"jit\" requires --enable-host-shared.
6501
6502 --enable-host-shared typically slows the rest of the compiler down by
6503 a few %, so you must explicitly enable it.
6504
6505 If you want to build both the jit and the regular compiler, it is often
6506 best to do this via two separate configure/builds, in separate
6507 directories, to avoid imposing the performance cost of
6508 --enable-host-shared on the regular compiler." "$LINENO" 5
6509 ;;
6510 all:jit:no)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6512 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6513 add_this_lang=unsupported
6514 ;;
6515 *:jit:no)
6516 # Silently disable.
6517 add_this_lang=unsupported
6518 ;;
6519 esac
6520 ;;
6521 esac
6522
6523 # Disable a language that is unsupported by the target.
6524 case "${add_this_lang}: $unsupported_languages " in
6525 no:*) ;;
6526 unsupported:*) ;;
6527 *:*" $language "*)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6529 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6530 add_this_lang=unsupported
6531 ;;
6532 esac
6533
6534 case $add_this_lang in
6535 unsupported)
6536 # Remove language-dependent dirs.
6537 disabled_target_libs="$disabled_target_libs $target_libs"
6538 noconfigdirs="$noconfigdirs $lang_dirs"
6539 ;;
6540 no)
6541 # Remove language-dependent dirs; still show language as supported.
6542 disabled_target_libs="$disabled_target_libs $target_libs"
6543 noconfigdirs="$noconfigdirs $lang_dirs"
6544 potential_languages="${potential_languages}${language},"
6545 ;;
6546 all|yes)
6547 new_enable_languages="${new_enable_languages}${language},"
6548 potential_languages="${potential_languages}${language},"
6549 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6550 enabled_target_libs="$enabled_target_libs $target_libs"
6551 case "${boot_language}:,$enable_stage1_languages," in
6552 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6553 # Add to (comma-separated) list of stage 1 languages.
6554 case ",$stage1_languages," in
6555 *,$language,* | ,yes, | ,all,) ;;
6556 *) stage1_languages="${stage1_languages}${language}," ;;
6557 esac
6558 # We need to bootstrap any supporting libraries.
6559 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6560 ;;
6561 esac
6562 ;;
6563 esac
6564 ;;
6565 esac
6566 done
6567
6568 # Add target libraries which are only needed for disabled languages
6569 # to noconfigdirs.
6570 if test -n "$disabled_target_libs"; then
6571 for dir in $disabled_target_libs; do
6572 case " $enabled_target_libs " in
6573 *" ${dir} "*) ;;
6574 *) noconfigdirs="$noconfigdirs $dir" ;;
6575 esac
6576 done
6577 fi
6578
6579 # Check whether --enable-stage1-languages was given.
6580 if test "${enable_stage1_languages+set}" = set; then :
6581 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6582 ,no,|,,)
6583 # Set it to something that will have no effect in the loop below
6584 enable_stage1_languages=c ;;
6585 ,yes,)
6586 enable_stage1_languages=`echo $new_enable_languages | \
6587 sed -e "s/^,//" -e "s/,$//" ` ;;
6588 *,all,*)
6589 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6590 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6591 esac
6592
6593 # Add "good" languages from enable_stage1_languages to stage1_languages,
6594 # while "bad" languages go in missing_languages. Leave no duplicates.
6595 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6596 case $potential_languages in
6597 *,$i,*)
6598 case $stage1_languages in
6599 *,$i,*) ;;
6600 *) stage1_languages="$stage1_languages$i," ;;
6601 esac ;;
6602 *)
6603 case $missing_languages in
6604 *,$i,*) ;;
6605 *) missing_languages="$missing_languages$i," ;;
6606 esac ;;
6607 esac
6608 done
6609 fi
6610
6611
6612 # Remove leading/trailing commas that were added for simplicity
6613 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6614 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6615 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6616 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6617
6618 if test "x$missing_languages" != x; then
6619 as_fn_error $? "
6620 The following requested languages could not be built: ${missing_languages}
6621 Supported languages are: ${potential_languages}" "$LINENO" 5
6622 fi
6623 if test "x$new_enable_languages" != "x$enable_languages"; then
6624 echo The following languages will be built: ${new_enable_languages}
6625 enable_languages="$new_enable_languages"
6626 fi
6627
6628
6629 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6630 fi
6631
6632 # Handle --disable-<component> generically.
6633 for dir in $configdirs $build_configdirs $target_configdirs ; do
6634 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6635 varname=`echo $dirname | sed -e s/+/_/g`
6636 if eval test x\${enable_${varname}} "=" xno ; then
6637 noconfigdirs="$noconfigdirs $dir"
6638 fi
6639 done
6640
6641 # Check for Boehm's garbage collector
6642 # Check whether --enable-objc-gc was given.
6643 if test "${enable_objc_gc+set}" = set; then :
6644 enableval=$enable_objc_gc;
6645 fi
6646
6647
6648 # Check whether --with-target-bdw-gc was given.
6649 if test "${with_target_bdw_gc+set}" = set; then :
6650 withval=$with_target_bdw_gc;
6651 fi
6652
6653
6654 # Check whether --with-target-bdw-gc-include was given.
6655 if test "${with_target_bdw_gc_include+set}" = set; then :
6656 withval=$with_target_bdw_gc_include;
6657 fi
6658
6659
6660 # Check whether --with-target-bdw-gc-lib was given.
6661 if test "${with_target_bdw_gc_lib+set}" = set; then :
6662 withval=$with_target_bdw_gc_lib;
6663 fi
6664
6665
6666 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6668 $as_echo_n "checking for bdw garbage collector... " >&6; }
6669 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6671 $as_echo "using bdw-gc in default locations" >&6; }
6672 else
6673 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6674 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6675 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6676 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6679 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6680 fi
6681 fi
6682 esac
6683
6684 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6685 case ,${enable_languages}, in
6686 *,c++,*)
6687 # Disable libitm, libsanitizer if we're not building libstdc++
6688 case "${noconfigdirs}" in
6689 *target-libstdc++-v3*)
6690 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6691 ;;
6692 *) ;;
6693 esac
6694 ;;
6695 *)
6696 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6697 ;;
6698 esac
6699
6700 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6701 # $build_configdirs and $target_configdirs.
6702 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6703
6704 notsupp=""
6705 for dir in . $skipdirs $noconfigdirs ; do
6706 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6707 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6708 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6709 if test -r $srcdir/$dirname/configure ; then
6710 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6711 true
6712 else
6713 notsupp="$notsupp $dir"
6714 fi
6715 fi
6716 fi
6717 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6718 build_configdirs=`echo " ${build_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 " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6728 target_configdirs=`echo " ${target_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 done
6738
6739 # Quietly strip out all directories which aren't configurable in this tree.
6740 # This relies on all configurable subdirectories being autoconfiscated, which
6741 # is now the case.
6742 build_configdirs_all="$build_configdirs"
6743 build_configdirs=
6744 for i in ${build_configdirs_all} ; do
6745 j=`echo $i | sed -e s/build-//g`
6746 if test -f ${srcdir}/$j/configure ; then
6747 build_configdirs="${build_configdirs} $i"
6748 fi
6749 done
6750
6751 configdirs_all="$configdirs"
6752 configdirs=
6753 for i in ${configdirs_all} ; do
6754 if test -f ${srcdir}/$i/configure ; then
6755 configdirs="${configdirs} $i"
6756 fi
6757 done
6758
6759 target_configdirs_all="$target_configdirs"
6760 target_configdirs=
6761 for i in ${target_configdirs_all} ; do
6762 j=`echo $i | sed -e s/target-//g`
6763 if test -f ${srcdir}/$j/configure ; then
6764 target_configdirs="${target_configdirs} $i"
6765 fi
6766 done
6767
6768 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6769 # so we have to add it after the preceding checks.
6770 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6771 then
6772 case " $configdirs " in
6773 *" libiberty "*)
6774 # If we can build libiberty, we can also build libiberty-linker-plugin.
6775 configdirs="$configdirs libiberty-linker-plugin"
6776 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6777 --with-libiberty=../libiberty-linker-plugin";;
6778 *)
6779 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6780 esac
6781 fi
6782
6783 # Sometimes we have special requirements for the host libiberty.
6784 extra_host_libiberty_configure_flags=
6785 extra_host_zlib_configure_flags=
6786 case " $configdirs " in
6787 *" lto-plugin "* | *" libcc1 "*)
6788 # When these are to be built as shared libraries, the same applies to
6789 # libiberty.
6790 extra_host_libiberty_configure_flags=--enable-shared
6791 ;;
6792 *" bfd "*)
6793 # When bfd is to be built as a shared library, the same applies to
6794 # zlib.
6795 if test "$enable_shared" = "yes"; then
6796 extra_host_zlib_configure_flags=--enable-host-shared
6797 fi
6798 ;;
6799 esac
6800
6801
6802
6803 # Produce a warning message for the subdirs we can't configure.
6804 # This isn't especially interesting in the Cygnus tree, but in the individual
6805 # FSF releases, it's important to let people know when their machine isn't
6806 # supported by the one or two programs in a package.
6807
6808 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6809 # If $appdirs is non-empty, at least one of those directories must still
6810 # be configured, or we error out. (E.g., if the gas release supports a
6811 # specified target in some subdirs but not the gas subdir, we shouldn't
6812 # pretend that all is well.)
6813 if test -n "$appdirs" ; then
6814 for dir in $appdirs ; do
6815 if test -r $dir/Makefile.in ; then
6816 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6817 appdirs=""
6818 break
6819 fi
6820 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6821 appdirs=""
6822 break
6823 fi
6824 fi
6825 done
6826 if test -n "$appdirs" ; then
6827 echo "*** This configuration is not supported by this package." 1>&2
6828 exit 1
6829 fi
6830 fi
6831 # Okay, some application will build, or we don't care to check. Still
6832 # notify of subdirs not getting built.
6833 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6834 echo " ${notsupp}" 1>&2
6835 echo " (Any other directories should still work fine.)" 1>&2
6836 fi
6837
6838 case "$host" in
6839 *msdosdjgpp*)
6840 enable_gdbtk=no ;;
6841 esac
6842
6843 # To find our prefix, in gcc_cv_tool_prefix.
6844
6845 # The user is always right.
6846 if test "${PATH_SEPARATOR+set}" != set; then
6847 echo "#! /bin/sh" >conf$$.sh
6848 echo "exit 0" >>conf$$.sh
6849 chmod +x conf$$.sh
6850 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6851 PATH_SEPARATOR=';'
6852 else
6853 PATH_SEPARATOR=:
6854 fi
6855 rm -f conf$$.sh
6856 fi
6857
6858
6859 get_gcc_base_ver="cat"
6860
6861 # Check whether --with-gcc-major-version-only was given.
6862 if test "${with_gcc_major_version_only+set}" = set; then :
6863 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6864 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6865 fi
6866
6867 fi
6868
6869
6870
6871
6872
6873
6874 if test "x$exec_prefix" = xNONE; then
6875 if test "x$prefix" = xNONE; then
6876 gcc_cv_tool_prefix=$ac_default_prefix
6877 else
6878 gcc_cv_tool_prefix=$prefix
6879 fi
6880 else
6881 gcc_cv_tool_prefix=$exec_prefix
6882 fi
6883
6884 # If there is no compiler in the tree, use the PATH only. In any
6885 # case, if there is no compiler in the tree nobody should use
6886 # AS_FOR_TARGET and LD_FOR_TARGET.
6887 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6888 if test x$with_gcc_major_version_only = xyes ; then
6889 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6890 else
6891 gcc_version=`cat $srcdir/gcc/BASE-VER`
6892 fi
6893 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6894 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6895 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6896 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6897 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6898 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6899 else
6900 gcc_cv_tool_dirs=
6901 fi
6902
6903 if test x$build = x$target && test -n "$md_exec_prefix"; then
6904 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6905 fi
6906
6907
6908
6909 copy_dirs=
6910
6911
6912 # Check whether --with-build-sysroot was given.
6913 if test "${with_build_sysroot+set}" = set; then :
6914 withval=$with_build_sysroot; if test x"$withval" != x ; then
6915 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6916 fi
6917 else
6918 SYSROOT_CFLAGS_FOR_TARGET=
6919 fi
6920
6921
6922
6923
6924 # Check whether --with-debug-prefix-map was given.
6925 if test "${with_debug_prefix_map+set}" = set; then :
6926 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6927 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6928 for debug_map in $withval; do
6929 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6930 done
6931 fi
6932 else
6933 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6934 fi
6935
6936
6937
6938 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6939 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6940 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6941 # We want to ensure that TARGET libraries (which we know are built with
6942 # gcc) are built with "-O2 -g", so include those options when setting
6943 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6944 if test "x$CFLAGS_FOR_TARGET" = x; then
6945 if test "x${is_cross_compiler}" = xyes; then
6946 CFLAGS_FOR_TARGET="-g -O2"
6947 else
6948 CFLAGS_FOR_TARGET=$CFLAGS
6949 case " $CFLAGS " in
6950 *" -O2 "*) ;;
6951 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6952 esac
6953 case " $CFLAGS " in
6954 *" -g "* | *" -g3 "*) ;;
6955 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6956 esac
6957 fi
6958 fi
6959
6960
6961 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6962 if test "x${is_cross_compiler}" = xyes; then
6963 CXXFLAGS_FOR_TARGET="-g -O2"
6964 else
6965 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6966 case " $CXXFLAGS " in
6967 *" -O2 "*) ;;
6968 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6969 esac
6970 case " $CXXFLAGS " in
6971 *" -g "* | *" -g3 "*) ;;
6972 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6973 esac
6974 fi
6975 fi
6976
6977
6978
6979
6980 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6981 # the named directory are copied to $(tooldir)/sys-include.
6982 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6983 if test x${is_cross_compiler} = xno ; then
6984 echo 1>&2 '***' --with-headers is only supported when cross compiling
6985 exit 1
6986 fi
6987 if test x"${with_headers}" != xyes ; then
6988 x=${gcc_cv_tool_prefix}
6989 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6990 fi
6991 fi
6992
6993 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6994 # the name directories are copied to $(tooldir)/lib. Multiple directories
6995 # are permitted.
6996 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6997 if test x${is_cross_compiler} = xno ; then
6998 echo 1>&2 '***' --with-libs is only supported when cross compiling
6999 exit 1
7000 fi
7001 if test x"${with_libs}" != xyes ; then
7002 # Copy the libraries in reverse order, so that files in the first named
7003 # library override files in subsequent libraries.
7004 x=${gcc_cv_tool_prefix}
7005 for l in ${with_libs}; do
7006 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7007 done
7008 fi
7009 fi
7010
7011 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7012 #
7013 # This is done by determining whether or not the appropriate directory
7014 # is available, and by checking whether or not specific configurations
7015 # have requested that this magic not happen.
7016 #
7017 # The command line options always override the explicit settings in
7018 # configure.ac, and the settings in configure.ac override this magic.
7019 #
7020 # If the default for a toolchain is to use GNU as and ld, and you don't
7021 # want to do that, then you should use the --without-gnu-as and
7022 # --without-gnu-ld options for the configure script. Similarly, if
7023 # the default is to use the included zlib and you don't want to do that,
7024 # you should use the --with-system-zlib option for the configure script.
7025
7026 if test x${use_gnu_as} = x &&
7027 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7028 with_gnu_as=yes
7029 extra_host_args="$extra_host_args --with-gnu-as"
7030 fi
7031
7032 if test x${use_gnu_ld} = x &&
7033 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7034 with_gnu_ld=yes
7035 extra_host_args="$extra_host_args --with-gnu-ld"
7036 fi
7037
7038 if test x${use_included_zlib} = x &&
7039 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7040 :
7041 else
7042 with_system_zlib=yes
7043 extra_host_args="$extra_host_args --with-system-zlib"
7044 fi
7045
7046 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7047 # can detect this case.
7048
7049 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7050 with_newlib=yes
7051 extra_host_args="$extra_host_args --with-newlib"
7052 fi
7053
7054 # Handle ${copy_dirs}
7055 set fnord ${copy_dirs}
7056 shift
7057 while test $# != 0 ; do
7058 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7059 :
7060 else
7061 echo Copying $1 to $2
7062
7063 # Use the install script to create the directory and all required
7064 # parent directories.
7065 if test -d $2 ; then
7066 :
7067 else
7068 echo >config.temp
7069 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7070 fi
7071
7072 # Copy the directory, assuming we have tar.
7073 # FIXME: Should we use B in the second tar? Not all systems support it.
7074 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7075
7076 # It is the responsibility of the user to correctly adjust all
7077 # symlinks. If somebody can figure out how to handle them correctly
7078 # here, feel free to add the code.
7079
7080 echo $1 > $2/COPIED
7081 fi
7082 shift; shift
7083 done
7084
7085 # Determine a target-dependent exec_prefix that the installed
7086 # gcc will search in. Keep this list sorted by triplet, with
7087 # the *-*-osname triplets last.
7088 md_exec_prefix=
7089 case "${target}" in
7090 i[34567]86-pc-msdosdjgpp*)
7091 md_exec_prefix=/dev/env/DJDIR/bin
7092 ;;
7093 *-*-hpux* | \
7094 *-*-nto-qnx* | \
7095 *-*-solaris2*)
7096 md_exec_prefix=/usr/ccs/bin
7097 ;;
7098 esac
7099
7100 extra_arflags_for_target=
7101 extra_nmflags_for_target=
7102 extra_ranlibflags_for_target=
7103 target_makefile_frag=/dev/null
7104 case "${target}" in
7105 spu-*-*)
7106 target_makefile_frag="config/mt-spu"
7107 ;;
7108 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7109 target_makefile_frag="config/mt-sde"
7110 ;;
7111 mipsisa*-*-elfoabi*)
7112 target_makefile_frag="config/mt-mips-elfoabi"
7113 ;;
7114 mips*-*-*linux* | mips*-*-gnu*)
7115 target_makefile_frag="config/mt-mips-gnu"
7116 ;;
7117 nios2-*-elf*)
7118 target_makefile_frag="config/mt-nios2-elf"
7119 ;;
7120 *-*-linux-android*)
7121 target_makefile_frag="config/mt-android"
7122 ;;
7123 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7124 target_makefile_frag="config/mt-gnu"
7125 ;;
7126 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7127 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7128 # commands to handle both 32-bit and 64-bit objects. These flags are
7129 # harmless if we're using GNU nm or ar.
7130 extra_arflags_for_target=" -X32_64"
7131 extra_nmflags_for_target=" -B -X32_64"
7132 ;;
7133 esac
7134
7135 alphaieee_frag=/dev/null
7136 case $target in
7137 alpha*-*-*)
7138 # This just makes sure to use the -mieee option to build target libs.
7139 # This should probably be set individually by each library.
7140 alphaieee_frag="config/mt-alphaieee"
7141 ;;
7142 esac
7143
7144 # If --enable-target-optspace always use -Os instead of -O2 to build
7145 # the target libraries, similarly if it is not specified, use -Os
7146 # on selected platforms.
7147 ospace_frag=/dev/null
7148 case "${enable_target_optspace}:${target}" in
7149 yes:*)
7150 ospace_frag="config/mt-ospace"
7151 ;;
7152 :d30v-*)
7153 ospace_frag="config/mt-d30v"
7154 ;;
7155 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7156 ospace_frag="config/mt-ospace"
7157 ;;
7158 no:* | :*)
7159 ;;
7160 *)
7161 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7162 ;;
7163 esac
7164
7165 # Some systems (e.g., one of the i386-aix systems the gas testers are
7166 # using) don't handle "\$" correctly, so don't use it here.
7167 tooldir='${exec_prefix}'/${target_noncanonical}
7168 build_tooldir=${tooldir}
7169
7170 # Create a .gdbinit file which runs the one in srcdir
7171 # and tells GDB to look there for source files.
7172
7173 if test -r ${srcdir}/.gdbinit ; then
7174 case ${srcdir} in
7175 .) ;;
7176 *) cat > ./.gdbinit <<EOF
7177 # ${NO_EDIT}
7178 dir ${srcdir}
7179 dir .
7180 source ${srcdir}/.gdbinit
7181 EOF
7182 ;;
7183 esac
7184 fi
7185
7186 # Make sure that the compiler is able to generate an executable. If it
7187 # can't, we are probably in trouble. We don't care whether we can run the
7188 # executable--we might be using a cross compiler--we only care whether it
7189 # can be created. At this point the main configure script has set CC.
7190 we_are_ok=no
7191 echo "int main () { return 0; }" > conftest.c
7192 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7193 if test $? = 0 ; then
7194 if test -s conftest || test -s conftest.exe ; then
7195 we_are_ok=yes
7196 fi
7197 fi
7198 case $we_are_ok in
7199 no)
7200 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7201 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7202 rm -f conftest*
7203 exit 1
7204 ;;
7205 esac
7206 rm -f conftest*
7207
7208 # Decide which environment variable is used to find dynamic libraries.
7209 case "${host}" in
7210 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7211 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7212 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7213 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7214 esac
7215
7216 # On systems where the dynamic library environment variable is PATH,
7217 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7218 # built executables to PATH.
7219 if test "$RPATH_ENVVAR" = PATH; then
7220 GCC_SHLIB_SUBDIR=/shlib
7221 else
7222 GCC_SHLIB_SUBDIR=
7223 fi
7224
7225 # Adjust the toplevel makefile according to whether bootstrap was selected.
7226 case $enable_bootstrap in
7227 yes)
7228 bootstrap_suffix=bootstrap
7229 BUILD_CONFIG=bootstrap-debug
7230 ;;
7231 no)
7232 bootstrap_suffix=no-bootstrap
7233 BUILD_CONFIG=
7234 ;;
7235 esac
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7238 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7239
7240
7241 # Check whether --with-build-config was given.
7242 if test "${with_build_config+set}" = set; then :
7243 withval=$with_build_config; case $with_build_config in
7244 yes) with_build_config= ;;
7245 no) with_build_config= BUILD_CONFIG= ;;
7246 esac
7247 fi
7248
7249
7250 if test "x${with_build_config}" != x; then
7251 BUILD_CONFIG=$with_build_config
7252 else
7253 case $BUILD_CONFIG in
7254 bootstrap-debug)
7255 if echo "int f (void) { return 0; }" > conftest.c &&
7256 ${CC} -c conftest.c &&
7257 mv conftest.o conftest.o.g0 &&
7258 ${CC} -c -g conftest.c &&
7259 mv conftest.o conftest.o.g &&
7260 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7261 :
7262 else
7263 BUILD_CONFIG=
7264 fi
7265 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7266 ;;
7267 esac
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7270 $as_echo "$BUILD_CONFIG" >&6; }
7271
7272
7273 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7275 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7276 # Check whether --enable-vtable-verify was given.
7277 if test "${enable_vtable_verify+set}" = set; then :
7278 enableval=$enable_vtable_verify; case "$enableval" in
7279 yes) enable_vtable_verify=yes ;;
7280 no) enable_vtable_verify=no ;;
7281 *) enable_vtable_verify=no;;
7282 esac
7283 else
7284 enable_vtable_verify=no
7285 fi
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7288 $as_echo "$enable_vtable_verify" >&6; }
7289
7290 # Record target_configdirs and the configure arguments for target and
7291 # build configuration in Makefile.
7292 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7293 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7294 bootstrap_fixincludes=no
7295
7296 # If we are building libgomp, bootstrap it.
7297 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7298 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7299 fi
7300
7301 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7302 # or bootstrap-ubsan, bootstrap it.
7303 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7304 case "$BUILD_CONFIG" in
7305 *bootstrap-asan* | *bootstrap-ubsan* )
7306 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7307 bootstrap_fixincludes=yes
7308 ;;
7309 esac
7310 fi
7311
7312 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7313 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7314 test "$enable_vtable_verify" != no; then
7315 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7316 fi
7317
7318 # Determine whether gdb needs tk/tcl or not.
7319 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7320 # and in that case we want gdb to be built without tk. Ugh!
7321 # In fact I believe gdb is the *only* package directly dependent on tk,
7322 # so we should be able to put the 'maybe's in unconditionally and
7323 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7324 # 100% sure that that's safe though.
7325
7326 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7327 case "$enable_gdbtk" in
7328 no)
7329 GDB_TK="" ;;
7330 yes)
7331 GDB_TK="${gdb_tk}" ;;
7332 *)
7333 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7334 # distro. Eventually someone will fix this and move Insight, nee
7335 # gdbtk to a separate directory.
7336 if test -d ${srcdir}/gdb/gdbtk ; then
7337 GDB_TK="${gdb_tk}"
7338 else
7339 GDB_TK=""
7340 fi
7341 ;;
7342 esac
7343 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7344 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7345
7346 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7347 # else does, only include them if one of these is built. The Makefile
7348 # provides the ordering, so it's enough here to add to the list.
7349 case " ${configdirs} " in
7350 *\ gdb\ *)
7351 configdirs="${configdirs} gnulib gdbsupport"
7352 ;;
7353 *\ gdbserver\ *)
7354 configdirs="${configdirs} gnulib gdbsupport"
7355 ;;
7356 esac
7357
7358 # Strip out unwanted targets.
7359
7360 # While at that, we remove Makefiles if we were started for recursive
7361 # configuration, so that the top-level Makefile reconfigures them,
7362 # like we used to do when configure itself was recursive.
7363
7364 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7365 # but now we're fixing up the Makefile ourselves with the additional
7366 # commands passed to AC_CONFIG_FILES. Use separate variables
7367 # extrasub-{build,host,target} not because there is any reason to split
7368 # the substitutions up that way, but only to remain below the limit of
7369 # 99 commands in a script, for HP-UX sed.
7370
7371 # Do not nest @if/@endif or @unless/@endunless pairs, because
7372 # configure will not warn you at all.
7373
7374 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7375 yes:yes:*\ gold\ *:*,c++,*) ;;
7376 yes:yes:*\ gold\ *:*)
7377 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7378 ;;
7379 esac
7380
7381 extrasub_build=
7382 for module in ${build_configdirs} ; do
7383 if test -z "${no_recursion}" \
7384 && test -f ${build_subdir}/${module}/Makefile; then
7385 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7386 rm -f ${build_subdir}/${module}/Makefile
7387 fi
7388 extrasub_build="$extrasub_build
7389 /^@if build-$module\$/d
7390 /^@endif build-$module\$/d
7391 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7392 /^@if build-$module-$bootstrap_suffix\$/d
7393 /^@endif build-$module-$bootstrap_suffix\$/d
7394 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7395 done
7396 extrasub_host=
7397 for module in ${configdirs} ; do
7398 if test -z "${no_recursion}"; then
7399 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7400 if test -f ${file}; then
7401 echo 1>&2 "*** removing ${file} to force reconfigure"
7402 rm -f ${file}
7403 fi
7404 done
7405 fi
7406 case ${module},${bootstrap_fixincludes} in
7407 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7408 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7409 esac
7410 extrasub_host="$extrasub_host
7411 /^@if $module\$/d
7412 /^@endif $module\$/d
7413 /^@unless $module\$/,/^@endunless $module\$/d
7414 /^@if $module-$host_bootstrap_suffix\$/d
7415 /^@endif $module-$host_bootstrap_suffix\$/d
7416 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7417 done
7418 extrasub_target=
7419 for module in ${target_configdirs} ; do
7420 if test -z "${no_recursion}" \
7421 && test -f ${target_subdir}/${module}/Makefile; then
7422 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7423 rm -f ${target_subdir}/${module}/Makefile
7424 fi
7425
7426 # We only bootstrap target libraries listed in bootstrap_target_libs.
7427 case $bootstrap_target_libs in
7428 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7429 *) target_bootstrap_suffix=no-bootstrap ;;
7430 esac
7431
7432 extrasub_target="$extrasub_target
7433 /^@if target-$module\$/d
7434 /^@endif target-$module\$/d
7435 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7436 /^@if target-$module-$target_bootstrap_suffix\$/d
7437 /^@endif target-$module-$target_bootstrap_suffix\$/d
7438 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7439 done
7440
7441 # Do the final fixup along with target modules.
7442 extrasub_target="$extrasub_target
7443 /^@if /,/^@endif /d
7444 /^@unless /d
7445 /^@endunless /d"
7446
7447 # Create the serialization dependencies. This uses a temporary file.
7448
7449 # Check whether --enable-serial-configure was given.
7450 if test "${enable_serial_configure+set}" = set; then :
7451 enableval=$enable_serial_configure;
7452 fi
7453
7454
7455 case ${enable_serial_configure} in
7456 yes)
7457 enable_serial_build_configure=yes
7458 enable_serial_host_configure=yes
7459 enable_serial_target_configure=yes
7460 ;;
7461 esac
7462
7463 # These force 'configure's to be done one at a time, to avoid problems
7464 # with contention over a shared config.cache.
7465 rm -f serdep.tmp
7466 echo '# serdep.tmp' > serdep.tmp
7467 olditem=
7468 test "x${enable_serial_build_configure}" = xyes &&
7469 for item in ${build_configdirs} ; do
7470 case ${olditem} in
7471 "") ;;
7472 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7473 esac
7474 olditem=${item}
7475 done
7476 olditem=
7477 test "x${enable_serial_host_configure}" = xyes &&
7478 for item in ${configdirs} ; do
7479 case ${olditem} in
7480 "") ;;
7481 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7482 esac
7483 olditem=${item}
7484 done
7485 olditem=
7486 test "x${enable_serial_target_configure}" = xyes &&
7487 for item in ${target_configdirs} ; do
7488 case ${olditem} in
7489 "") ;;
7490 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7491 esac
7492 olditem=${item}
7493 done
7494 serialization_dependencies=serdep.tmp
7495
7496
7497 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7498 # target, nonopt, and variable assignments. These are the ones we
7499 # might not want to pass down to subconfigures. The exception being
7500 # --cache-file=/dev/null, which is used to turn off the use of cache
7501 # files altogether, and which should be passed on to subconfigures.
7502 # Also strip program-prefix, program-suffix, and program-transform-name,
7503 # so that we can pass down a consistent program-transform-name.
7504 baseargs=
7505 tbaseargs=
7506 keep_next=no
7507 skip_next=no
7508 eval "set -- $ac_configure_args"
7509 for ac_arg
7510 do
7511 if test X"$skip_next" = X"yes"; then
7512 skip_next=no
7513 continue
7514 fi
7515 if test X"$keep_next" = X"yes"; then
7516 case $ac_arg in
7517 *\'*)
7518 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7519 esac
7520 baseargs="$baseargs '$ac_arg'"
7521 tbaseargs="$tbaseargs '$ac_arg'"
7522 keep_next=no
7523 continue
7524 fi
7525
7526 # Handle separated arguments. Based on the logic generated by
7527 # autoconf 2.59.
7528 case $ac_arg in
7529 *=* | --config-cache | -C | -disable-* | --disable-* \
7530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7532 | -with-* | --with-* | -without-* | --without-* | --x)
7533 separate_arg=no
7534 ;;
7535 -*)
7536 separate_arg=yes
7537 ;;
7538 *)
7539 separate_arg=no
7540 ;;
7541 esac
7542
7543 skip_targ=no
7544 case $ac_arg in
7545
7546 --with-* | --without-*)
7547 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7548
7549 case $libopt in
7550 *[-_]include)
7551 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7552 ;;
7553 *[-_]lib)
7554 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7555 ;;
7556 *)
7557 lib=$libopt
7558 ;;
7559 esac
7560
7561
7562 case $lib in
7563 mpc | mpfr | gmp | isl)
7564 # If we're processing --with-$lib, --with-$lib-include or
7565 # --with-$lib-lib, for one of the libs above, and target is
7566 # different from host, don't pass the current argument to any
7567 # target library's configure.
7568 if test x$is_cross_compiler = xyes; then
7569 skip_targ=yes
7570 fi
7571 ;;
7572 esac
7573 ;;
7574 esac
7575
7576 case "$ac_arg" in
7577 --cache-file=/dev/null | \
7578 -cache-file=/dev/null )
7579 # Handled here to avoid the test to skip args below.
7580 baseargs="$baseargs '$ac_arg'"
7581 tbaseargs="$tbaseargs '$ac_arg'"
7582 # Assert: $separate_arg should always be no.
7583 keep_next=$separate_arg
7584 ;;
7585 --no*)
7586 continue
7587 ;;
7588 --c* | \
7589 --sr* | \
7590 --ho* | \
7591 --bu* | \
7592 --t* | \
7593 --program-* | \
7594 -cache_file* | \
7595 -srcdir* | \
7596 -host* | \
7597 -build* | \
7598 -target* | \
7599 -program-prefix* | \
7600 -program-suffix* | \
7601 -program-transform-name* )
7602 skip_next=$separate_arg
7603 continue
7604 ;;
7605 -*)
7606 # An option. Add it.
7607 case $ac_arg in
7608 *\'*)
7609 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7610 esac
7611 baseargs="$baseargs '$ac_arg'"
7612 if test X"$skip_targ" = Xno; then
7613 tbaseargs="$tbaseargs '$ac_arg'"
7614 fi
7615 keep_next=$separate_arg
7616 ;;
7617 *)
7618 # Either a variable assignment, or a nonopt (triplet). Don't
7619 # pass it down; let the Makefile handle this.
7620 continue
7621 ;;
7622 esac
7623 done
7624 # Remove the initial space we just introduced and, as these will be
7625 # expanded by make, quote '$'.
7626 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7627
7628 # Add in --program-transform-name, after --program-prefix and
7629 # --program-suffix have been applied to it. Autoconf has already
7630 # doubled dollar signs and backslashes in program_transform_name; we want
7631 # the backslashes un-doubled, and then the entire thing wrapped in single
7632 # quotes, because this will be expanded first by make and then by the shell.
7633 # Also, because we want to override the logic in subdir configure scripts to
7634 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7635 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7636 ${program_transform_name}
7637 EOF_SED
7638 gcc_transform_name=`cat conftestsed.out`
7639 rm -f conftestsed.out
7640 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7641 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7642 if test "$silent" = yes; then
7643 baseargs="$baseargs --silent"
7644 tbaseargs="$tbaseargs --silent"
7645 fi
7646 baseargs="$baseargs --disable-option-checking"
7647 tbaseargs="$tbaseargs --disable-option-checking"
7648
7649 # Record and document user additions to sub configure arguments.
7650
7651
7652
7653
7654 # For the build-side libraries, we just need to pretend we're native,
7655 # and not use the same cache file. Multilibs are neither needed nor
7656 # desired. We can't even use the same cache file for all build-side
7657 # libraries, as they're compiled differently; some with C, some with
7658 # C++ or with different feature-enabling options.
7659 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7660
7661 # For host modules, accept cache file option, or specification as blank.
7662 case "${cache_file}" in
7663 "") # empty
7664 cache_file_option="" ;;
7665 /* | [A-Za-z]:[\\/]* ) # absolute path
7666 cache_file_option="--cache-file=${cache_file}" ;;
7667 *) # relative path
7668 cache_file_option="--cache-file=../${cache_file}" ;;
7669 esac
7670
7671 # Host dirs don't like to share a cache file either, horribly enough.
7672 # This seems to be due to autoconf 2.5x stupidity.
7673 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7674
7675 target_configargs="$target_configargs ${tbaseargs}"
7676
7677 # Passing a --with-cross-host argument lets the target libraries know
7678 # whether they are being built with a cross-compiler or being built
7679 # native. However, it would be better to use other mechanisms to make the
7680 # sorts of decisions they want to make on this basis. Please consider
7681 # this option to be deprecated. FIXME.
7682 if test x${is_cross_compiler} = xyes ; then
7683 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7684 fi
7685
7686 # Special user-friendly check for native x86_64-linux build, if
7687 # multilib is not explicitly enabled.
7688 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7689 x86_64-*linux*:yes:$build:$build:)
7690 # Make sure we have a development environment that handles 32-bit
7691 dev64=no
7692 echo "int main () { return 0; }" > conftest.c
7693 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7694 if test $? = 0 ; then
7695 if test -s conftest || test -s conftest.exe ; then
7696 dev64=yes
7697 fi
7698 fi
7699 rm -f conftest*
7700 if test x${dev64} != xyes ; then
7701 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
7702 fi
7703 ;;
7704 esac
7705
7706 # Default to --enable-multilib.
7707 if test x${enable_multilib} = x ; then
7708 target_configargs="--enable-multilib ${target_configargs}"
7709 fi
7710
7711 # Pass --with-newlib if appropriate. Note that target_configdirs has
7712 # changed from the earlier setting of with_newlib.
7713 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7714 target_configargs="--with-newlib ${target_configargs}"
7715 fi
7716
7717 # Different target subdirs use different values of certain variables
7718 # (notably CXX). Worse, multilibs use *lots* of different values.
7719 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7720 # it doesn't automatically accept command-line overrides of them.
7721 # This means it's not safe for target subdirs to share a cache file,
7722 # which is disgusting, but there you have it. Hopefully this can be
7723 # fixed in future. It's still worthwhile to use a cache file for each
7724 # directory. I think.
7725
7726 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7727 # We need to pass --target, as newer autoconf's requires consistency
7728 # for target_alias and gcc doesn't manage it consistently.
7729 target_configargs="--cache-file=./config.cache ${target_configargs}"
7730
7731 FLAGS_FOR_TARGET=
7732 case " $target_configdirs " in
7733 *" newlib "*)
7734 case " $target_configargs " in
7735 *" --with-newlib "*)
7736 case "$target" in
7737 *-cygwin*)
7738 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7739 ;;
7740 esac
7741
7742 # If we're not building GCC, don't discard standard headers.
7743 if test -d ${srcdir}/gcc; then
7744 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7745
7746 if test "${build}" != "${host}"; then
7747 # On Canadian crosses, CC_FOR_TARGET will have already been set
7748 # by `configure', so we won't have an opportunity to add -Bgcc/
7749 # to it. This is right: we don't want to search that directory
7750 # for binaries, but we want the header files in there, so add
7751 # them explicitly.
7752 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7753
7754 # Someone might think of using the pre-installed headers on
7755 # Canadian crosses, in case the installed compiler is not fully
7756 # compatible with the compiler being built. In this case, it
7757 # would be better to flag an error than risking having
7758 # incompatible object files being constructed. We can't
7759 # guarantee that an error will be flagged, but let's hope the
7760 # compiler will do it, when presented with incompatible header
7761 # files.
7762 fi
7763 fi
7764
7765 case "${target}-${is_cross_compiler}" in
7766 i[3456789]86-*-linux*-no)
7767 # Here host == target, so we don't need to build gcc,
7768 # so we don't want to discard standard headers.
7769 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7770 ;;
7771 *)
7772 # If we're building newlib, use its generic headers last, but search
7773 # for any libc-related directories first (so make it the last -B
7774 # switch).
7775 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7776
7777 # If we're building libgloss, find the startup file, simulator library
7778 # and linker script.
7779 case " $target_configdirs " in
7780 *" libgloss "*)
7781 # Look for startup file, simulator library and maybe linker script.
7782 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7783 # Look for libnosys.a in case the target needs it.
7784 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7785 # Most targets have the linker script in the source directory.
7786 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7787 ;;
7788 esac
7789 ;;
7790 esac
7791 ;;
7792 esac
7793 ;;
7794 esac
7795
7796 case "$target" in
7797 x86_64-*mingw* | *-w64-mingw*)
7798 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7799 # however, use a symlink named 'mingw' in ${prefix} .
7800 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7801 ;;
7802 *-mingw*)
7803 # MinGW can't be handled as Cygwin above since it does not use newlib.
7804 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'
7805 ;;
7806 esac
7807
7808 # Allow the user to override the flags for
7809 # our build compiler if desired.
7810 if test x"${build}" = x"${host}" ; then
7811 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7812 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7813 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7814 fi
7815
7816 # On Canadian crosses, we'll be searching the right directories for
7817 # the previously-installed cross compiler, so don't bother to add
7818 # flags for directories within the install tree of the compiler
7819 # being built; programs in there won't even run.
7820 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7821 # Search for pre-installed headers if nothing else fits.
7822 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7823 fi
7824
7825 if test "x${use_gnu_ld}" = x &&
7826 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7827 # Arrange for us to find uninstalled linker scripts.
7828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7829 fi
7830
7831 # Search for other target-specific linker scripts and such.
7832 case "${target}" in
7833 mep*)
7834 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7835 ;;
7836 esac
7837
7838 # Makefile fragments.
7839 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7840 do
7841 eval fragval=\$$frag
7842 if test $fragval != /dev/null; then
7843 eval $frag=${srcdir}/$fragval
7844 fi
7845 done
7846
7847
7848
7849
7850
7851 # Miscellanea: directories, flags, etc.
7852
7853
7854
7855
7856
7857
7858
7859
7860 # Build module lists & subconfigure args.
7861
7862
7863
7864 # Host module lists & subconfigure args.
7865
7866
7867
7868
7869 # Target module lists & subconfigure args.
7870
7871
7872
7873 # Build tools.
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891 # Generate default definitions for YACC, M4, LEX and other programs that run
7892 # on the build machine. These are used if the Makefile can't locate these
7893 # programs in objdir.
7894 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7895
7896 for ac_prog in 'bison -y' byacc yacc
7897 do
7898 # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_prog_YACC+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$YACC"; then
7906 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_YACC="$ac_prog"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 YACC=$ac_cv_prog_YACC
7926 if test -n "$YACC"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7928 $as_echo "$YACC" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933
7934
7935 test -n "$YACC" && break
7936 done
7937 test -n "$YACC" || YACC="$MISSING bison -y"
7938
7939 case " $build_configdirs " in
7940 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7941 esac
7942
7943 for ac_prog in bison
7944 do
7945 # Extract the first word of "$ac_prog", so it can be a program name with args.
7946 set dummy $ac_prog; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_BISON+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$BISON"; then
7953 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_BISON="$ac_prog"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 BISON=$ac_cv_prog_BISON
7973 if test -n "$BISON"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7975 $as_echo "$BISON" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 test -n "$BISON" && break
7983 done
7984 test -n "$BISON" || BISON="$MISSING bison"
7985
7986 case " $build_configdirs " in
7987 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7988 esac
7989
7990 for ac_prog in gm4 gnum4 m4
7991 do
7992 # Extract the first word of "$ac_prog", so it can be a program name with args.
7993 set dummy $ac_prog; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_M4+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$M4"; then
8000 ac_cv_prog_M4="$M4" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_M4="$ac_prog"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 M4=$ac_cv_prog_M4
8020 if test -n "$M4"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8022 $as_echo "$M4" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 test -n "$M4" && break
8030 done
8031 test -n "$M4" || M4="$MISSING m4"
8032
8033 case " $build_configdirs " in
8034 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8035 esac
8036
8037 for ac_prog in flex lex
8038 do
8039 # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if ${ac_cv_prog_LEX+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 if test -n "$LEX"; then
8047 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056 ac_cv_prog_LEX="$ac_prog"
8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060 done
8061 done
8062 IFS=$as_save_IFS
8063
8064 fi
8065 fi
8066 LEX=$ac_cv_prog_LEX
8067 if test -n "$LEX"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8069 $as_echo "$LEX" >&6; }
8070 else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8073 fi
8074
8075
8076 test -n "$LEX" && break
8077 done
8078 test -n "$LEX" || LEX="$MISSING flex"
8079
8080 case " $build_configdirs " in
8081 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8082 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8083 esac
8084
8085 for ac_prog in flex
8086 do
8087 # Extract the first word of "$ac_prog", so it can be a program name with args.
8088 set dummy $ac_prog; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_FLEX+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 if test -n "$FLEX"; then
8095 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_FLEX="$ac_prog"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 break 2
8107 fi
8108 done
8109 done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 FLEX=$ac_cv_prog_FLEX
8115 if test -n "$FLEX"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8117 $as_echo "$FLEX" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124 test -n "$FLEX" && break
8125 done
8126 test -n "$FLEX" || FLEX="$MISSING flex"
8127
8128 case " $build_configdirs " in
8129 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8130 esac
8131
8132 for ac_prog in makeinfo
8133 do
8134 # Extract the first word of "$ac_prog", so it can be a program name with args.
8135 set dummy $ac_prog; ac_word=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if ${ac_cv_prog_MAKEINFO+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 if test -n "$MAKEINFO"; then
8142 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_MAKEINFO="$ac_prog"
8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8154 fi
8155 done
8156 done
8157 IFS=$as_save_IFS
8158
8159 fi
8160 fi
8161 MAKEINFO=$ac_cv_prog_MAKEINFO
8162 if test -n "$MAKEINFO"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8164 $as_echo "$MAKEINFO" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8168 fi
8169
8170
8171 test -n "$MAKEINFO" && break
8172 done
8173 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8174
8175 case " $build_configdirs " in
8176 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8177 *)
8178
8179 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8180 # higher, else we use the "missing" dummy.
8181 if ${MAKEINFO} --version \
8182 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8183 :
8184 else
8185 MAKEINFO="$MISSING makeinfo"
8186 fi
8187 ;;
8188
8189 esac
8190
8191 # FIXME: expect and dejagnu may become build tools?
8192
8193 for ac_prog in expect
8194 do
8195 # Extract the first word of "$ac_prog", so it can be a program name with args.
8196 set dummy $ac_prog; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_EXPECT+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$EXPECT"; then
8203 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_EXPECT="$ac_prog"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 EXPECT=$ac_cv_prog_EXPECT
8223 if test -n "$EXPECT"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8225 $as_echo "$EXPECT" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232 test -n "$EXPECT" && break
8233 done
8234 test -n "$EXPECT" || EXPECT="expect"
8235
8236 case " $configdirs " in
8237 *" expect "*)
8238 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8239 ;;
8240 esac
8241
8242 for ac_prog in runtest
8243 do
8244 # Extract the first word of "$ac_prog", so it can be a program name with args.
8245 set dummy $ac_prog; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_prog_RUNTEST+:} false; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$RUNTEST"; then
8252 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8261 ac_cv_prog_RUNTEST="$ac_prog"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8264 fi
8265 done
8266 done
8267 IFS=$as_save_IFS
8268
8269 fi
8270 fi
8271 RUNTEST=$ac_cv_prog_RUNTEST
8272 if test -n "$RUNTEST"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8274 $as_echo "$RUNTEST" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280
8281 test -n "$RUNTEST" && break
8282 done
8283 test -n "$RUNTEST" || RUNTEST="runtest"
8284
8285 case " $configdirs " in
8286 *" dejagnu "*)
8287 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8288 ;;
8289 esac
8290
8291
8292 # Host tools.
8293 ncn_tool_prefix=
8294 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8295 ncn_target_tool_prefix=
8296 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8297
8298
8299
8300 if test -n "$AR"; then
8301 ac_cv_prog_AR=$AR
8302 elif test -n "$ac_cv_prog_AR"; then
8303 AR=$ac_cv_prog_AR
8304 fi
8305
8306 if test -n "$ac_cv_prog_AR"; then
8307 for ncn_progname in ar; do
8308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8309 set dummy ${ncn_progname}; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_AR+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$AR"; then
8316 ac_cv_prog_AR="$AR" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_AR="${ncn_progname}"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 AR=$ac_cv_prog_AR
8336 if test -n "$AR"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8338 $as_echo "$AR" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344
8345 done
8346 fi
8347
8348 for ncn_progname in ar; do
8349 if test -n "$ncn_tool_prefix"; then
8350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_prog_AR+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 if test -n "$AR"; then
8358 ac_cv_prog_AR="$AR" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8370 fi
8371 done
8372 done
8373 IFS=$as_save_IFS
8374
8375 fi
8376 fi
8377 AR=$ac_cv_prog_AR
8378 if test -n "$AR"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8380 $as_echo "$AR" >&6; }
8381 else
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8384 fi
8385
8386
8387 fi
8388 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8390 set dummy ${ncn_progname}; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_prog_AR+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 if test -n "$AR"; then
8397 ac_cv_prog_AR="$AR" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406 ac_cv_prog_AR="${ncn_progname}"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8409 fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 AR=$ac_cv_prog_AR
8417 if test -n "$AR"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8419 $as_echo "$AR" >&6; }
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424
8425
8426 fi
8427 test -n "$ac_cv_prog_AR" && break
8428 done
8429
8430 if test -z "$ac_cv_prog_AR" ; then
8431 set dummy ar
8432 if test $build = $host ; then
8433 AR="$2"
8434 else
8435 AR="${ncn_tool_prefix}$2"
8436 fi
8437 fi
8438
8439
8440
8441 if test -n "$AS"; then
8442 ac_cv_prog_AS=$AS
8443 elif test -n "$ac_cv_prog_AS"; then
8444 AS=$ac_cv_prog_AS
8445 fi
8446
8447 if test -n "$ac_cv_prog_AS"; then
8448 for ncn_progname in as; do
8449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8450 set dummy ${ncn_progname}; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_prog_AS+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$AS"; then
8457 ac_cv_prog_AS="$AS" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8461 do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_AS="${ncn_progname}"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8469 fi
8470 done
8471 done
8472 IFS=$as_save_IFS
8473
8474 fi
8475 fi
8476 AS=$ac_cv_prog_AS
8477 if test -n "$AS"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8479 $as_echo "$AS" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 fi
8484
8485
8486 done
8487 fi
8488
8489 for ncn_progname in as; do
8490 if test -n "$ncn_tool_prefix"; then
8491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_AS+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 if test -n "$AS"; then
8499 ac_cv_prog_AS="$AS" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504 IFS=$as_save_IFS
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 break 2
8511 fi
8512 done
8513 done
8514 IFS=$as_save_IFS
8515
8516 fi
8517 fi
8518 AS=$ac_cv_prog_AS
8519 if test -n "$AS"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8521 $as_echo "$AS" >&6; }
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526
8527
8528 fi
8529 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8531 set dummy ${ncn_progname}; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_AS+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 if test -n "$AS"; then
8538 ac_cv_prog_AS="$AS" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8542 do
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_AS="${ncn_progname}"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8550 fi
8551 done
8552 done
8553 IFS=$as_save_IFS
8554
8555 fi
8556 fi
8557 AS=$ac_cv_prog_AS
8558 if test -n "$AS"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8560 $as_echo "$AS" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8564 fi
8565
8566
8567 fi
8568 test -n "$ac_cv_prog_AS" && break
8569 done
8570
8571 if test -z "$ac_cv_prog_AS" ; then
8572 set dummy as
8573 if test $build = $host ; then
8574 AS="$2"
8575 else
8576 AS="${ncn_tool_prefix}$2"
8577 fi
8578 fi
8579
8580
8581
8582 if test -n "$DLLTOOL"; then
8583 ac_cv_prog_DLLTOOL=$DLLTOOL
8584 elif test -n "$ac_cv_prog_DLLTOOL"; then
8585 DLLTOOL=$ac_cv_prog_DLLTOOL
8586 fi
8587
8588 if test -n "$ac_cv_prog_DLLTOOL"; then
8589 for ncn_progname in dlltool; do
8590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8591 set dummy ${ncn_progname}; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if ${ac_cv_prog_DLLTOOL+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 if test -n "$DLLTOOL"; then
8598 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8602 do
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607 ac_cv_prog_DLLTOOL="${ncn_progname}"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8610 fi
8611 done
8612 done
8613 IFS=$as_save_IFS
8614
8615 fi
8616 fi
8617 DLLTOOL=$ac_cv_prog_DLLTOOL
8618 if test -n "$DLLTOOL"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8620 $as_echo "$DLLTOOL" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 fi
8625
8626
8627 done
8628 fi
8629
8630 for ncn_progname in dlltool; do
8631 if test -n "$ncn_tool_prefix"; then
8632 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8633 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_prog_DLLTOOL+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 if test -n "$DLLTOOL"; then
8640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8652 fi
8653 done
8654 done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 DLLTOOL=$ac_cv_prog_DLLTOOL
8660 if test -n "$DLLTOOL"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8662 $as_echo "$DLLTOOL" >&6; }
8663 else
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668
8669 fi
8670 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8672 set dummy ${ncn_progname}; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_prog_DLLTOOL+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 if test -n "$DLLTOOL"; then
8679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8680 else
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8683 do
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688 ac_cv_prog_DLLTOOL="${ncn_progname}"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 break 2
8691 fi
8692 done
8693 done
8694 IFS=$as_save_IFS
8695
8696 fi
8697 fi
8698 DLLTOOL=$ac_cv_prog_DLLTOOL
8699 if test -n "$DLLTOOL"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8701 $as_echo "$DLLTOOL" >&6; }
8702 else
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8705 fi
8706
8707
8708 fi
8709 test -n "$ac_cv_prog_DLLTOOL" && break
8710 done
8711
8712 if test -z "$ac_cv_prog_DLLTOOL" ; then
8713 set dummy dlltool
8714 if test $build = $host ; then
8715 DLLTOOL="$2"
8716 else
8717 DLLTOOL="${ncn_tool_prefix}$2"
8718 fi
8719 fi
8720
8721
8722
8723 if test -n "$LD"; then
8724 ac_cv_prog_LD=$LD
8725 elif test -n "$ac_cv_prog_LD"; then
8726 LD=$ac_cv_prog_LD
8727 fi
8728
8729 if test -n "$ac_cv_prog_LD"; then
8730 for ncn_progname in ld; do
8731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8732 set dummy ${ncn_progname}; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_prog_LD+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 if test -n "$LD"; then
8739 ac_cv_prog_LD="$LD" # Let the user override the test.
8740 else
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8743 do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8748 ac_cv_prog_LD="${ncn_progname}"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752 done
8753 done
8754 IFS=$as_save_IFS
8755
8756 fi
8757 fi
8758 LD=$ac_cv_prog_LD
8759 if test -n "$LD"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8761 $as_echo "$LD" >&6; }
8762 else
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8765 fi
8766
8767
8768 done
8769 fi
8770
8771 for ncn_progname in ld; do
8772 if test -n "$ncn_tool_prefix"; then
8773 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8774 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_prog_LD+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 if test -n "$LD"; then
8781 ac_cv_prog_LD="$LD" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794 done
8795 done
8796 IFS=$as_save_IFS
8797
8798 fi
8799 fi
8800 LD=$ac_cv_prog_LD
8801 if test -n "$LD"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8803 $as_echo "$LD" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8807 fi
8808
8809
8810 fi
8811 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8813 set dummy ${ncn_progname}; ac_word=$2
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815 $as_echo_n "checking for $ac_word... " >&6; }
8816 if ${ac_cv_prog_LD+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 if test -n "$LD"; then
8820 ac_cv_prog_LD="$LD" # Let the user override the test.
8821 else
8822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 for as_dir in $PATH
8824 do
8825 IFS=$as_save_IFS
8826 test -z "$as_dir" && as_dir=.
8827 for ac_exec_ext in '' $ac_executable_extensions; do
8828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8829 ac_cv_prog_LD="${ncn_progname}"
8830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 break 2
8832 fi
8833 done
8834 done
8835 IFS=$as_save_IFS
8836
8837 fi
8838 fi
8839 LD=$ac_cv_prog_LD
8840 if test -n "$LD"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8842 $as_echo "$LD" >&6; }
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8846 fi
8847
8848
8849 fi
8850 test -n "$ac_cv_prog_LD" && break
8851 done
8852
8853 if test -z "$ac_cv_prog_LD" ; then
8854 set dummy ld
8855 if test $build = $host ; then
8856 LD="$2"
8857 else
8858 LD="${ncn_tool_prefix}$2"
8859 fi
8860 fi
8861
8862
8863
8864 if test -n "$LIPO"; then
8865 ac_cv_prog_LIPO=$LIPO
8866 elif test -n "$ac_cv_prog_LIPO"; then
8867 LIPO=$ac_cv_prog_LIPO
8868 fi
8869
8870 if test -n "$ac_cv_prog_LIPO"; then
8871 for ncn_progname in lipo; do
8872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8873 set dummy ${ncn_progname}; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_LIPO+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 if test -n "$LIPO"; then
8880 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_prog_LIPO="${ncn_progname}"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893 done
8894 done
8895 IFS=$as_save_IFS
8896
8897 fi
8898 fi
8899 LIPO=$ac_cv_prog_LIPO
8900 if test -n "$LIPO"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8902 $as_echo "$LIPO" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907
8908
8909 done
8910 fi
8911
8912 for ncn_progname in lipo; do
8913 if test -n "$ncn_tool_prefix"; then
8914 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8915 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if ${ac_cv_prog_LIPO+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 if test -n "$LIPO"; then
8922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8923 else
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8926 do
8927 IFS=$as_save_IFS
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 break 2
8934 fi
8935 done
8936 done
8937 IFS=$as_save_IFS
8938
8939 fi
8940 fi
8941 LIPO=$ac_cv_prog_LIPO
8942 if test -n "$LIPO"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8944 $as_echo "$LIPO" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8948 fi
8949
8950
8951 fi
8952 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8954 set dummy ${ncn_progname}; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_prog_LIPO+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 if test -n "$LIPO"; then
8961 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8962 else
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966 IFS=$as_save_IFS
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_LIPO="${ncn_progname}"
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8972 break 2
8973 fi
8974 done
8975 done
8976 IFS=$as_save_IFS
8977
8978 fi
8979 fi
8980 LIPO=$ac_cv_prog_LIPO
8981 if test -n "$LIPO"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8983 $as_echo "$LIPO" >&6; }
8984 else
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8987 fi
8988
8989
8990 fi
8991 test -n "$ac_cv_prog_LIPO" && break
8992 done
8993
8994 if test -z "$ac_cv_prog_LIPO" ; then
8995 set dummy lipo
8996 if test $build = $host ; then
8997 LIPO="$2"
8998 else
8999 LIPO="${ncn_tool_prefix}$2"
9000 fi
9001 fi
9002
9003
9004
9005 if test -n "$NM"; then
9006 ac_cv_prog_NM=$NM
9007 elif test -n "$ac_cv_prog_NM"; then
9008 NM=$ac_cv_prog_NM
9009 fi
9010
9011 if test -n "$ac_cv_prog_NM"; then
9012 for ncn_progname in nm; do
9013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9014 set dummy ${ncn_progname}; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if ${ac_cv_prog_NM+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 if test -n "$NM"; then
9021 ac_cv_prog_NM="$NM" # Let the user override the test.
9022 else
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 for as_dir in $PATH
9025 do
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030 ac_cv_prog_NM="${ncn_progname}"
9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9033 fi
9034 done
9035 done
9036 IFS=$as_save_IFS
9037
9038 fi
9039 fi
9040 NM=$ac_cv_prog_NM
9041 if test -n "$NM"; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9043 $as_echo "$NM" >&6; }
9044 else
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9047 fi
9048
9049
9050 done
9051 fi
9052
9053 for ncn_progname in nm; do
9054 if test -n "$ncn_tool_prefix"; then
9055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_prog_NM+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 if test -n "$NM"; then
9063 ac_cv_prog_NM="$NM" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9075 fi
9076 done
9077 done
9078 IFS=$as_save_IFS
9079
9080 fi
9081 fi
9082 NM=$ac_cv_prog_NM
9083 if test -n "$NM"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9085 $as_echo "$NM" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090
9091
9092 fi
9093 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9095 set dummy ${ncn_progname}; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_prog_NM+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 if test -n "$NM"; then
9102 ac_cv_prog_NM="$NM" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111 ac_cv_prog_NM="${ncn_progname}"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9114 fi
9115 done
9116 done
9117 IFS=$as_save_IFS
9118
9119 fi
9120 fi
9121 NM=$ac_cv_prog_NM
9122 if test -n "$NM"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9124 $as_echo "$NM" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9128 fi
9129
9130
9131 fi
9132 test -n "$ac_cv_prog_NM" && break
9133 done
9134
9135 if test -z "$ac_cv_prog_NM" ; then
9136 set dummy nm
9137 if test $build = $host ; then
9138 NM="$2"
9139 else
9140 NM="${ncn_tool_prefix}$2"
9141 fi
9142 fi
9143
9144
9145
9146 if test -n "$RANLIB"; then
9147 ac_cv_prog_RANLIB=$RANLIB
9148 elif test -n "$ac_cv_prog_RANLIB"; then
9149 RANLIB=$ac_cv_prog_RANLIB
9150 fi
9151
9152 if test -n "$ac_cv_prog_RANLIB"; then
9153 for ncn_progname in ranlib; do
9154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9155 set dummy ${ncn_progname}; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_prog_RANLIB+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 if test -n "$RANLIB"; then
9162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_RANLIB="${ncn_progname}"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175 done
9176 done
9177 IFS=$as_save_IFS
9178
9179 fi
9180 fi
9181 RANLIB=$ac_cv_prog_RANLIB
9182 if test -n "$RANLIB"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9184 $as_echo "$RANLIB" >&6; }
9185 else
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9188 fi
9189
9190
9191 done
9192 fi
9193
9194 for ncn_progname in ranlib; do
9195 if test -n "$ncn_tool_prefix"; then
9196 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9197 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if ${ac_cv_prog_RANLIB+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 if test -n "$RANLIB"; then
9204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9205 else
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9208 do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217 done
9218 done
9219 IFS=$as_save_IFS
9220
9221 fi
9222 fi
9223 RANLIB=$ac_cv_prog_RANLIB
9224 if test -n "$RANLIB"; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9226 $as_echo "$RANLIB" >&6; }
9227 else
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9230 fi
9231
9232
9233 fi
9234 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9236 set dummy ${ncn_progname}; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_prog_RANLIB+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test -n "$RANLIB"; then
9243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9247 do
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252 ac_cv_prog_RANLIB="${ncn_progname}"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9255 fi
9256 done
9257 done
9258 IFS=$as_save_IFS
9259
9260 fi
9261 fi
9262 RANLIB=$ac_cv_prog_RANLIB
9263 if test -n "$RANLIB"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9265 $as_echo "$RANLIB" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9269 fi
9270
9271
9272 fi
9273 test -n "$ac_cv_prog_RANLIB" && break
9274 done
9275
9276 if test -z "$ac_cv_prog_RANLIB" ; then
9277 RANLIB="true"
9278 fi
9279
9280
9281
9282 if test -n "$STRIP"; then
9283 ac_cv_prog_STRIP=$STRIP
9284 elif test -n "$ac_cv_prog_STRIP"; then
9285 STRIP=$ac_cv_prog_STRIP
9286 fi
9287
9288 if test -n "$ac_cv_prog_STRIP"; then
9289 for ncn_progname in strip; do
9290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9291 set dummy ${ncn_progname}; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if ${ac_cv_prog_STRIP+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 if test -n "$STRIP"; then
9298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9302 do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9307 ac_cv_prog_STRIP="${ncn_progname}"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 break 2
9310 fi
9311 done
9312 done
9313 IFS=$as_save_IFS
9314
9315 fi
9316 fi
9317 STRIP=$ac_cv_prog_STRIP
9318 if test -n "$STRIP"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9320 $as_echo "$STRIP" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9324 fi
9325
9326
9327 done
9328 fi
9329
9330 for ncn_progname in strip; do
9331 if test -n "$ncn_tool_prefix"; then
9332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_prog_STRIP+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 if test -n "$STRIP"; then
9340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9344 do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9349 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353 done
9354 done
9355 IFS=$as_save_IFS
9356
9357 fi
9358 fi
9359 STRIP=$ac_cv_prog_STRIP
9360 if test -n "$STRIP"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9362 $as_echo "$STRIP" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9366 fi
9367
9368
9369 fi
9370 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9372 set dummy ${ncn_progname}; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_prog_STRIP+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 if test -n "$STRIP"; then
9379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388 ac_cv_prog_STRIP="${ncn_progname}"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9391 fi
9392 done
9393 done
9394 IFS=$as_save_IFS
9395
9396 fi
9397 fi
9398 STRIP=$ac_cv_prog_STRIP
9399 if test -n "$STRIP"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9401 $as_echo "$STRIP" >&6; }
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406
9407
9408 fi
9409 test -n "$ac_cv_prog_STRIP" && break
9410 done
9411
9412 if test -z "$ac_cv_prog_STRIP" ; then
9413 STRIP="true"
9414 fi
9415
9416
9417
9418 if test -n "$WINDRES"; then
9419 ac_cv_prog_WINDRES=$WINDRES
9420 elif test -n "$ac_cv_prog_WINDRES"; then
9421 WINDRES=$ac_cv_prog_WINDRES
9422 fi
9423
9424 if test -n "$ac_cv_prog_WINDRES"; then
9425 for ncn_progname in windres; do
9426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9427 set dummy ${ncn_progname}; ac_word=$2
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 $as_echo_n "checking for $ac_word... " >&6; }
9430 if ${ac_cv_prog_WINDRES+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 if test -n "$WINDRES"; then
9434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9435 else
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9438 do
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9443 ac_cv_prog_WINDRES="${ncn_progname}"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9446 fi
9447 done
9448 done
9449 IFS=$as_save_IFS
9450
9451 fi
9452 fi
9453 WINDRES=$ac_cv_prog_WINDRES
9454 if test -n "$WINDRES"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9456 $as_echo "$WINDRES" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9460 fi
9461
9462
9463 done
9464 fi
9465
9466 for ncn_progname in windres; do
9467 if test -n "$ncn_tool_prefix"; then
9468 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9469 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if ${ac_cv_prog_WINDRES+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 if test -n "$WINDRES"; then
9476 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9477 else
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in $PATH
9480 do
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9488 fi
9489 done
9490 done
9491 IFS=$as_save_IFS
9492
9493 fi
9494 fi
9495 WINDRES=$ac_cv_prog_WINDRES
9496 if test -n "$WINDRES"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9498 $as_echo "$WINDRES" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9502 fi
9503
9504
9505 fi
9506 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9508 set dummy ${ncn_progname}; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_prog_WINDRES+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 if test -n "$WINDRES"; then
9515 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9516 else
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9519 do
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9524 ac_cv_prog_WINDRES="${ncn_progname}"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9527 fi
9528 done
9529 done
9530 IFS=$as_save_IFS
9531
9532 fi
9533 fi
9534 WINDRES=$ac_cv_prog_WINDRES
9535 if test -n "$WINDRES"; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9537 $as_echo "$WINDRES" >&6; }
9538 else
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9541 fi
9542
9543
9544 fi
9545 test -n "$ac_cv_prog_WINDRES" && break
9546 done
9547
9548 if test -z "$ac_cv_prog_WINDRES" ; then
9549 set dummy windres
9550 if test $build = $host ; then
9551 WINDRES="$2"
9552 else
9553 WINDRES="${ncn_tool_prefix}$2"
9554 fi
9555 fi
9556
9557
9558
9559 if test -n "$WINDMC"; then
9560 ac_cv_prog_WINDMC=$WINDMC
9561 elif test -n "$ac_cv_prog_WINDMC"; then
9562 WINDMC=$ac_cv_prog_WINDMC
9563 fi
9564
9565 if test -n "$ac_cv_prog_WINDMC"; then
9566 for ncn_progname in windmc; do
9567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9568 set dummy ${ncn_progname}; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if ${ac_cv_prog_WINDMC+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 if test -n "$WINDMC"; then
9575 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_WINDMC="${ncn_progname}"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588 done
9589 done
9590 IFS=$as_save_IFS
9591
9592 fi
9593 fi
9594 WINDMC=$ac_cv_prog_WINDMC
9595 if test -n "$WINDMC"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9597 $as_echo "$WINDMC" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 fi
9602
9603
9604 done
9605 fi
9606
9607 for ncn_progname in windmc; do
9608 if test -n "$ncn_tool_prefix"; then
9609 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9610 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if ${ac_cv_prog_WINDMC+:} false; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 if test -n "$WINDMC"; then
9617 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9618 else
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9621 do
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9629 fi
9630 done
9631 done
9632 IFS=$as_save_IFS
9633
9634 fi
9635 fi
9636 WINDMC=$ac_cv_prog_WINDMC
9637 if test -n "$WINDMC"; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9639 $as_echo "$WINDMC" >&6; }
9640 else
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9643 fi
9644
9645
9646 fi
9647 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9649 set dummy ${ncn_progname}; ac_word=$2
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9651 $as_echo_n "checking for $ac_word... " >&6; }
9652 if ${ac_cv_prog_WINDMC+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 if test -n "$WINDMC"; then
9656 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9657 else
9658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659 for as_dir in $PATH
9660 do
9661 IFS=$as_save_IFS
9662 test -z "$as_dir" && as_dir=.
9663 for ac_exec_ext in '' $ac_executable_extensions; do
9664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9665 ac_cv_prog_WINDMC="${ncn_progname}"
9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 break 2
9668 fi
9669 done
9670 done
9671 IFS=$as_save_IFS
9672
9673 fi
9674 fi
9675 WINDMC=$ac_cv_prog_WINDMC
9676 if test -n "$WINDMC"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9678 $as_echo "$WINDMC" >&6; }
9679 else
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 $as_echo "no" >&6; }
9682 fi
9683
9684
9685 fi
9686 test -n "$ac_cv_prog_WINDMC" && break
9687 done
9688
9689 if test -z "$ac_cv_prog_WINDMC" ; then
9690 set dummy windmc
9691 if test $build = $host ; then
9692 WINDMC="$2"
9693 else
9694 WINDMC="${ncn_tool_prefix}$2"
9695 fi
9696 fi
9697
9698
9699
9700 if test -n "$OBJCOPY"; then
9701 ac_cv_prog_OBJCOPY=$OBJCOPY
9702 elif test -n "$ac_cv_prog_OBJCOPY"; then
9703 OBJCOPY=$ac_cv_prog_OBJCOPY
9704 fi
9705
9706 if test -n "$ac_cv_prog_OBJCOPY"; then
9707 for ncn_progname in objcopy; do
9708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9709 set dummy ${ncn_progname}; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if ${ac_cv_prog_OBJCOPY+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 if test -n "$OBJCOPY"; then
9716 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9717 else
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725 ac_cv_prog_OBJCOPY="${ncn_progname}"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9728 fi
9729 done
9730 done
9731 IFS=$as_save_IFS
9732
9733 fi
9734 fi
9735 OBJCOPY=$ac_cv_prog_OBJCOPY
9736 if test -n "$OBJCOPY"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9738 $as_echo "$OBJCOPY" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743
9744
9745 done
9746 fi
9747
9748 for ncn_progname in objcopy; do
9749 if test -n "$ncn_tool_prefix"; then
9750 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9751 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_prog_OBJCOPY+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test -n "$OBJCOPY"; then
9758 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9759 else
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9762 do
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9770 fi
9771 done
9772 done
9773 IFS=$as_save_IFS
9774
9775 fi
9776 fi
9777 OBJCOPY=$ac_cv_prog_OBJCOPY
9778 if test -n "$OBJCOPY"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9780 $as_echo "$OBJCOPY" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9784 fi
9785
9786
9787 fi
9788 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9790 set dummy ${ncn_progname}; ac_word=$2
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 $as_echo_n "checking for $ac_word... " >&6; }
9793 if ${ac_cv_prog_OBJCOPY+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 if test -n "$OBJCOPY"; then
9797 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9798 else
9799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800 for as_dir in $PATH
9801 do
9802 IFS=$as_save_IFS
9803 test -z "$as_dir" && as_dir=.
9804 for ac_exec_ext in '' $ac_executable_extensions; do
9805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9806 ac_cv_prog_OBJCOPY="${ncn_progname}"
9807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9808 break 2
9809 fi
9810 done
9811 done
9812 IFS=$as_save_IFS
9813
9814 fi
9815 fi
9816 OBJCOPY=$ac_cv_prog_OBJCOPY
9817 if test -n "$OBJCOPY"; then
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9819 $as_echo "$OBJCOPY" >&6; }
9820 else
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 $as_echo "no" >&6; }
9823 fi
9824
9825
9826 fi
9827 test -n "$ac_cv_prog_OBJCOPY" && break
9828 done
9829
9830 if test -z "$ac_cv_prog_OBJCOPY" ; then
9831 set dummy objcopy
9832 if test $build = $host ; then
9833 OBJCOPY="$2"
9834 else
9835 OBJCOPY="${ncn_tool_prefix}$2"
9836 fi
9837 fi
9838
9839
9840
9841 if test -n "$OBJDUMP"; then
9842 ac_cv_prog_OBJDUMP=$OBJDUMP
9843 elif test -n "$ac_cv_prog_OBJDUMP"; then
9844 OBJDUMP=$ac_cv_prog_OBJDUMP
9845 fi
9846
9847 if test -n "$ac_cv_prog_OBJDUMP"; then
9848 for ncn_progname in objdump; do
9849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9850 set dummy ${ncn_progname}; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if ${ac_cv_prog_OBJDUMP+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 if test -n "$OBJDUMP"; then
9857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9858 else
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH
9861 do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866 ac_cv_prog_OBJDUMP="${ncn_progname}"
9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870 done
9871 done
9872 IFS=$as_save_IFS
9873
9874 fi
9875 fi
9876 OBJDUMP=$ac_cv_prog_OBJDUMP
9877 if test -n "$OBJDUMP"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9879 $as_echo "$OBJDUMP" >&6; }
9880 else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9883 fi
9884
9885
9886 done
9887 fi
9888
9889 for ncn_progname in objdump; do
9890 if test -n "$ncn_tool_prefix"; then
9891 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9892 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 $as_echo_n "checking for $ac_word... " >&6; }
9895 if ${ac_cv_prog_OBJDUMP+:} false; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 if test -n "$OBJDUMP"; then
9899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9903 do
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9911 fi
9912 done
9913 done
9914 IFS=$as_save_IFS
9915
9916 fi
9917 fi
9918 OBJDUMP=$ac_cv_prog_OBJDUMP
9919 if test -n "$OBJDUMP"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9921 $as_echo "$OBJDUMP" >&6; }
9922 else
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9925 fi
9926
9927
9928 fi
9929 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9931 set dummy ${ncn_progname}; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if ${ac_cv_prog_OBJDUMP+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test -n "$OBJDUMP"; then
9938 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9939 else
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 for as_dir in $PATH
9942 do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9947 ac_cv_prog_OBJDUMP="${ncn_progname}"
9948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 break 2
9950 fi
9951 done
9952 done
9953 IFS=$as_save_IFS
9954
9955 fi
9956 fi
9957 OBJDUMP=$ac_cv_prog_OBJDUMP
9958 if test -n "$OBJDUMP"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9960 $as_echo "$OBJDUMP" >&6; }
9961 else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9964 fi
9965
9966
9967 fi
9968 test -n "$ac_cv_prog_OBJDUMP" && break
9969 done
9970
9971 if test -z "$ac_cv_prog_OBJDUMP" ; then
9972 set dummy objdump
9973 if test $build = $host ; then
9974 OBJDUMP="$2"
9975 else
9976 OBJDUMP="${ncn_tool_prefix}$2"
9977 fi
9978 fi
9979
9980
9981
9982 if test -n "$OTOOL"; then
9983 ac_cv_prog_OTOOL=$OTOOL
9984 elif test -n "$ac_cv_prog_OTOOL"; then
9985 OTOOL=$ac_cv_prog_OTOOL
9986 fi
9987
9988 if test -n "$ac_cv_prog_OTOOL"; then
9989 for ncn_progname in otool; do
9990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9991 set dummy ${ncn_progname}; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if ${ac_cv_prog_OTOOL+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 if test -n "$OTOOL"; then
9998 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9999 else
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10002 do
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10007 ac_cv_prog_OTOOL="${ncn_progname}"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 break 2
10010 fi
10011 done
10012 done
10013 IFS=$as_save_IFS
10014
10015 fi
10016 fi
10017 OTOOL=$ac_cv_prog_OTOOL
10018 if test -n "$OTOOL"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10020 $as_echo "$OTOOL" >&6; }
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10024 fi
10025
10026
10027 done
10028 fi
10029
10030 for ncn_progname in otool; do
10031 if test -n "$ncn_tool_prefix"; then
10032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10033 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_prog_OTOOL+:} false; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 if test -n "$OTOOL"; then
10040 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10041 else
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10044 do
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10049 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10052 fi
10053 done
10054 done
10055 IFS=$as_save_IFS
10056
10057 fi
10058 fi
10059 OTOOL=$ac_cv_prog_OTOOL
10060 if test -n "$OTOOL"; then
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10062 $as_echo "$OTOOL" >&6; }
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10066 fi
10067
10068
10069 fi
10070 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10072 set dummy ${ncn_progname}; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if ${ac_cv_prog_OTOOL+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 if test -n "$OTOOL"; then
10079 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10080 else
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10083 do
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_prog_OTOOL="${ncn_progname}"
10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10090 break 2
10091 fi
10092 done
10093 done
10094 IFS=$as_save_IFS
10095
10096 fi
10097 fi
10098 OTOOL=$ac_cv_prog_OTOOL
10099 if test -n "$OTOOL"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10101 $as_echo "$OTOOL" >&6; }
10102 else
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10105 fi
10106
10107
10108 fi
10109 test -n "$ac_cv_prog_OTOOL" && break
10110 done
10111
10112 if test -z "$ac_cv_prog_OTOOL" ; then
10113 set dummy otool
10114 if test $build = $host ; then
10115 OTOOL="$2"
10116 else
10117 OTOOL="${ncn_tool_prefix}$2"
10118 fi
10119 fi
10120
10121
10122
10123 if test -n "$READELF"; then
10124 ac_cv_prog_READELF=$READELF
10125 elif test -n "$ac_cv_prog_READELF"; then
10126 READELF=$ac_cv_prog_READELF
10127 fi
10128
10129 if test -n "$ac_cv_prog_READELF"; then
10130 for ncn_progname in readelf; do
10131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10132 set dummy ${ncn_progname}; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if ${ac_cv_prog_READELF+:} false; then :
10136 $as_echo_n "(cached) " >&6
10137 else
10138 if test -n "$READELF"; then
10139 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_READELF="${ncn_progname}"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10151 fi
10152 done
10153 done
10154 IFS=$as_save_IFS
10155
10156 fi
10157 fi
10158 READELF=$ac_cv_prog_READELF
10159 if test -n "$READELF"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10161 $as_echo "$READELF" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 fi
10166
10167
10168 done
10169 fi
10170
10171 for ncn_progname in readelf; do
10172 if test -n "$ncn_tool_prefix"; then
10173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10174 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176 $as_echo_n "checking for $ac_word... " >&6; }
10177 if ${ac_cv_prog_READELF+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 if test -n "$READELF"; then
10181 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194 done
10195 done
10196 IFS=$as_save_IFS
10197
10198 fi
10199 fi
10200 READELF=$ac_cv_prog_READELF
10201 if test -n "$READELF"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10203 $as_echo "$READELF" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10207 fi
10208
10209
10210 fi
10211 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10213 set dummy ${ncn_progname}; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_prog_READELF+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 if test -n "$READELF"; then
10220 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10221 else
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10224 do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229 ac_cv_prog_READELF="${ncn_progname}"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10232 fi
10233 done
10234 done
10235 IFS=$as_save_IFS
10236
10237 fi
10238 fi
10239 READELF=$ac_cv_prog_READELF
10240 if test -n "$READELF"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10242 $as_echo "$READELF" >&6; }
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10246 fi
10247
10248
10249 fi
10250 test -n "$ac_cv_prog_READELF" && break
10251 done
10252
10253 if test -z "$ac_cv_prog_READELF" ; then
10254 set dummy readelf
10255 if test $build = $host ; then
10256 READELF="$2"
10257 else
10258 READELF="${ncn_tool_prefix}$2"
10259 fi
10260 fi
10261
10262
10263
10264
10265
10266
10267 # Target tools.
10268
10269 # Check whether --with-build-time-tools was given.
10270 if test "${with_build_time_tools+set}" = set; then :
10271 withval=$with_build_time_tools; case x"$withval" in
10272 x/*) ;;
10273 *)
10274 with_build_time_tools=
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10276 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10277 ;;
10278 esac
10279 else
10280 with_build_time_tools=
10281 fi
10282
10283
10284
10285
10286 if test -n "$CC_FOR_TARGET"; then
10287 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10288 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10289 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10290 fi
10291
10292 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10293 for ncn_progname in cc gcc; do
10294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10295 set dummy ${ncn_progname}; ac_word=$2
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297 $as_echo_n "checking for $ac_word... " >&6; }
10298 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 if test -n "$CC_FOR_TARGET"; then
10302 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10303 else
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in $PATH
10306 do
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10311 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10314 fi
10315 done
10316 done
10317 IFS=$as_save_IFS
10318
10319 fi
10320 fi
10321 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10322 if test -n "$CC_FOR_TARGET"; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10324 $as_echo "$CC_FOR_TARGET" >&6; }
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10328 fi
10329
10330
10331 done
10332 fi
10333
10334 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10335 for ncn_progname in cc gcc; do
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10337 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10338 if test -x $with_build_time_tools/${ncn_progname}; then
10339 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10341 $as_echo "yes" >&6; }
10342 break
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10346 fi
10347 done
10348 fi
10349
10350 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10351 for ncn_progname in cc gcc; do
10352 if test -n "$ncn_target_tool_prefix"; then
10353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10354 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test -n "$CC_FOR_TARGET"; then
10361 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10365 do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374 done
10375 done
10376 IFS=$as_save_IFS
10377
10378 fi
10379 fi
10380 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10381 if test -n "$CC_FOR_TARGET"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10383 $as_echo "$CC_FOR_TARGET" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10387 fi
10388
10389
10390 fi
10391 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10393 set dummy ${ncn_progname}; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 if test -n "$CC_FOR_TARGET"; then
10400 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10404 do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10412 fi
10413 done
10414 done
10415 IFS=$as_save_IFS
10416
10417 fi
10418 fi
10419 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10420 if test -n "$CC_FOR_TARGET"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10422 $as_echo "$CC_FOR_TARGET" >&6; }
10423 else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10426 fi
10427
10428
10429 fi
10430 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10431 done
10432 fi
10433
10434 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10435 set dummy cc gcc
10436 if test $build = $target ; then
10437 CC_FOR_TARGET="$2"
10438 else
10439 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10440 fi
10441 else
10442 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10443 fi
10444
10445
10446
10447 if test -n "$CXX_FOR_TARGET"; then
10448 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10449 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10450 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10451 fi
10452
10453 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10454 for ncn_progname in c++ g++ cxx gxx; do
10455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10456 set dummy ${ncn_progname}; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 if test -n "$CXX_FOR_TARGET"; then
10463 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10464 else
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10467 do
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10472 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10475 fi
10476 done
10477 done
10478 IFS=$as_save_IFS
10479
10480 fi
10481 fi
10482 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10483 if test -n "$CXX_FOR_TARGET"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10485 $as_echo "$CXX_FOR_TARGET" >&6; }
10486 else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; }
10489 fi
10490
10491
10492 done
10493 fi
10494
10495 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10496 for ncn_progname in c++ g++ cxx gxx; do
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10498 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10499 if test -x $with_build_time_tools/${ncn_progname}; then
10500 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502 $as_echo "yes" >&6; }
10503 break
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508 done
10509 fi
10510
10511 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10512 for ncn_progname in c++ g++ cxx gxx; do
10513 if test -n "$ncn_target_tool_prefix"; then
10514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10515 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 if test -n "$CXX_FOR_TARGET"; then
10522 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10523 else
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10526 do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535 done
10536 done
10537 IFS=$as_save_IFS
10538
10539 fi
10540 fi
10541 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10542 if test -n "$CXX_FOR_TARGET"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10544 $as_echo "$CXX_FOR_TARGET" >&6; }
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10548 fi
10549
10550
10551 fi
10552 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10554 set dummy ${ncn_progname}; ac_word=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 if test -n "$CXX_FOR_TARGET"; then
10561 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10562 else
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574 done
10575 done
10576 IFS=$as_save_IFS
10577
10578 fi
10579 fi
10580 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10581 if test -n "$CXX_FOR_TARGET"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10583 $as_echo "$CXX_FOR_TARGET" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588
10589
10590 fi
10591 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10592 done
10593 fi
10594
10595 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10596 set dummy c++ g++ cxx gxx
10597 if test $build = $target ; then
10598 CXX_FOR_TARGET="$2"
10599 else
10600 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10601 fi
10602 else
10603 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10604 fi
10605
10606
10607
10608 if test -n "$GCC_FOR_TARGET"; then
10609 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10610 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10611 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10612 fi
10613
10614 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10615 for ncn_progname in gcc; do
10616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10617 set dummy ${ncn_progname}; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 if test -n "$GCC_FOR_TARGET"; then
10624 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10625 else
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10628 do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637 done
10638 done
10639 IFS=$as_save_IFS
10640
10641 fi
10642 fi
10643 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10644 if test -n "$GCC_FOR_TARGET"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10646 $as_echo "$GCC_FOR_TARGET" >&6; }
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 fi
10651
10652
10653 done
10654 fi
10655
10656 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10657 for ncn_progname in gcc; do
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10659 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10660 if test -x $with_build_time_tools/${ncn_progname}; then
10661 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; }
10664 break
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 fi
10669 done
10670 fi
10671
10672 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10673 for ncn_progname in gcc; do
10674 if test -n "$ncn_target_tool_prefix"; then
10675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10676 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 if test -n "$GCC_FOR_TARGET"; then
10683 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10684 else
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10687 do
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 break 2
10695 fi
10696 done
10697 done
10698 IFS=$as_save_IFS
10699
10700 fi
10701 fi
10702 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10703 if test -n "$GCC_FOR_TARGET"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10705 $as_echo "$GCC_FOR_TARGET" >&6; }
10706 else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10709 fi
10710
10711
10712 fi
10713 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10715 set dummy ${ncn_progname}; ac_word=$2
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10717 $as_echo_n "checking for $ac_word... " >&6; }
10718 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 if test -n "$GCC_FOR_TARGET"; then
10722 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10723 else
10724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725 for as_dir in $PATH
10726 do
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10731 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10734 fi
10735 done
10736 done
10737 IFS=$as_save_IFS
10738
10739 fi
10740 fi
10741 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10742 if test -n "$GCC_FOR_TARGET"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10744 $as_echo "$GCC_FOR_TARGET" >&6; }
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10748 fi
10749
10750
10751 fi
10752 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10753 done
10754 fi
10755
10756 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10757 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10758 else
10759 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10760 fi
10761
10762
10763
10764 if test -n "$GFORTRAN_FOR_TARGET"; then
10765 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10766 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10767 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10768 fi
10769
10770 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10771 for ncn_progname in gfortran; do
10772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10773 set dummy ${ncn_progname}; ac_word=$2
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10775 $as_echo_n "checking for $ac_word... " >&6; }
10776 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 if test -n "$GFORTRAN_FOR_TARGET"; then
10780 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10781 else
10782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10783 for as_dir in $PATH
10784 do
10785 IFS=$as_save_IFS
10786 test -z "$as_dir" && as_dir=.
10787 for ac_exec_ext in '' $ac_executable_extensions; do
10788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10789 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 break 2
10792 fi
10793 done
10794 done
10795 IFS=$as_save_IFS
10796
10797 fi
10798 fi
10799 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10800 if test -n "$GFORTRAN_FOR_TARGET"; then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10802 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; }
10806 fi
10807
10808
10809 done
10810 fi
10811
10812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10813 for ncn_progname in gfortran; do
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10815 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10816 if test -x $with_build_time_tools/${ncn_progname}; then
10817 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10819 $as_echo "yes" >&6; }
10820 break
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10824 fi
10825 done
10826 fi
10827
10828 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10829 for ncn_progname in gfortran; do
10830 if test -n "$ncn_target_tool_prefix"; then
10831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 if test -n "$GFORTRAN_FOR_TARGET"; then
10839 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10840 else
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10843 do
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10848 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10850 break 2
10851 fi
10852 done
10853 done
10854 IFS=$as_save_IFS
10855
10856 fi
10857 fi
10858 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10859 if test -n "$GFORTRAN_FOR_TARGET"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10861 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10865 fi
10866
10867
10868 fi
10869 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10871 set dummy ${ncn_progname}; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 if test -n "$GFORTRAN_FOR_TARGET"; then
10878 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10882 do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891 done
10892 done
10893 IFS=$as_save_IFS
10894
10895 fi
10896 fi
10897 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10898 if test -n "$GFORTRAN_FOR_TARGET"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10900 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905
10906
10907 fi
10908 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10909 done
10910 fi
10911
10912 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10913 set dummy gfortran
10914 if test $build = $target ; then
10915 GFORTRAN_FOR_TARGET="$2"
10916 else
10917 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10918 fi
10919 else
10920 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10921 fi
10922
10923
10924
10925 if test -n "$GOC_FOR_TARGET"; then
10926 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10927 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10928 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10929 fi
10930
10931 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10932 for ncn_progname in gccgo; do
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$GOC_FOR_TARGET"; then
10941 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10945 do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10953 fi
10954 done
10955 done
10956 IFS=$as_save_IFS
10957
10958 fi
10959 fi
10960 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10961 if test -n "$GOC_FOR_TARGET"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10963 $as_echo "$GOC_FOR_TARGET" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968
10969
10970 done
10971 fi
10972
10973 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10974 for ncn_progname in gccgo; do
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10976 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10977 if test -x $with_build_time_tools/${ncn_progname}; then
10978 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10980 $as_echo "yes" >&6; }
10981 break
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10985 fi
10986 done
10987 fi
10988
10989 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10990 for ncn_progname in gccgo; do
10991 if test -n "$ncn_target_tool_prefix"; then
10992 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10993 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 if test -n "$GOC_FOR_TARGET"; then
11000 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11012 fi
11013 done
11014 done
11015 IFS=$as_save_IFS
11016
11017 fi
11018 fi
11019 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11020 if test -n "$GOC_FOR_TARGET"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11022 $as_echo "$GOC_FOR_TARGET" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027
11028
11029 fi
11030 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 if test -n "$GOC_FOR_TARGET"; then
11039 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11040 else
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11051 fi
11052 done
11053 done
11054 IFS=$as_save_IFS
11055
11056 fi
11057 fi
11058 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11059 if test -n "$GOC_FOR_TARGET"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11061 $as_echo "$GOC_FOR_TARGET" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066
11067
11068 fi
11069 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11070 done
11071 fi
11072
11073 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11074 set dummy gccgo
11075 if test $build = $target ; then
11076 GOC_FOR_TARGET="$2"
11077 else
11078 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11079 fi
11080 else
11081 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11082 fi
11083
11084
11085
11086 if test -n "$GDC_FOR_TARGET"; then
11087 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11088 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11089 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11090 fi
11091
11092 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11093 for ncn_progname in gdc; do
11094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11095 set dummy ${ncn_progname}; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test -n "$GDC_FOR_TARGET"; then
11102 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11111 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115 done
11116 done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11122 if test -n "$GDC_FOR_TARGET"; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11124 $as_echo "$GDC_FOR_TARGET" >&6; }
11125 else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129
11130
11131 done
11132 fi
11133
11134 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11135 for ncn_progname in gdc; do
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11137 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11138 if test -x $with_build_time_tools/${ncn_progname}; then
11139 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141 $as_echo "yes" >&6; }
11142 break
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 fi
11147 done
11148 fi
11149
11150 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11151 for ncn_progname in gdc; do
11152 if test -n "$ncn_target_tool_prefix"; then
11153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 if test -n "$GDC_FOR_TARGET"; then
11161 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174 done
11175 done
11176 IFS=$as_save_IFS
11177
11178 fi
11179 fi
11180 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11181 if test -n "$GDC_FOR_TARGET"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11183 $as_echo "$GDC_FOR_TARGET" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11187 fi
11188
11189
11190 fi
11191 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193 set dummy ${ncn_progname}; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 if test -n "$GDC_FOR_TARGET"; then
11200 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11201 else
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11204 do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213 done
11214 done
11215 IFS=$as_save_IFS
11216
11217 fi
11218 fi
11219 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11220 if test -n "$GDC_FOR_TARGET"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11222 $as_echo "$GDC_FOR_TARGET" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228
11229 fi
11230 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11231 done
11232 fi
11233
11234 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11235 set dummy gdc
11236 if test $build = $target ; then
11237 GDC_FOR_TARGET="$2"
11238 else
11239 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11240 fi
11241 else
11242 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11243 fi
11244
11245
11246
11247 cat > conftest.c << \EOF
11248 #ifdef __GNUC__
11249 gcc_yay;
11250 #endif
11251 EOF
11252 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11253 have_gcc_for_target=yes
11254 else
11255 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11256 have_gcc_for_target=no
11257 fi
11258 rm conftest.c
11259
11260
11261
11262
11263 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11264 if test -n "$with_build_time_tools"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11266 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11267 if test -x $with_build_time_tools/ar; then
11268 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11269 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11271 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276 elif test $build != $host && test $have_gcc_for_target = yes; then
11277 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11278 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11279 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11280 fi
11281 fi
11282 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11283 # Extract the first word of "ar", so it can be a program name with args.
11284 set dummy ar; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 case $AR_FOR_TARGET in
11291 [\\/]* | ?:[\\/]*)
11292 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11293 ;;
11294 *)
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $gcc_cv_tool_dirs
11297 do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306 done
11307 done
11308 IFS=$as_save_IFS
11309
11310 ;;
11311 esac
11312 fi
11313 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11314 if test -n "$AR_FOR_TARGET"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11316 $as_echo "$AR_FOR_TARGET" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11320 fi
11321
11322
11323 fi
11324 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11325
11326
11327 if test -n "$AR_FOR_TARGET"; then
11328 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11329 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11330 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11331 fi
11332
11333 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11334 for ncn_progname in ar; do
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336 set dummy ${ncn_progname}; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -n "$AR_FOR_TARGET"; then
11343 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11344 else
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11347 do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11355 fi
11356 done
11357 done
11358 IFS=$as_save_IFS
11359
11360 fi
11361 fi
11362 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11363 if test -n "$AR_FOR_TARGET"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11365 $as_echo "$AR_FOR_TARGET" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 fi
11370
11371
11372 done
11373 fi
11374
11375 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11376 for ncn_progname in ar; do
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11378 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11379 if test -x $with_build_time_tools/${ncn_progname}; then
11380 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382 $as_echo "yes" >&6; }
11383 break
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388 done
11389 fi
11390
11391 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11392 for ncn_progname in ar; do
11393 if test -n "$ncn_target_tool_prefix"; then
11394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$AR_FOR_TARGET"; then
11402 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11414 fi
11415 done
11416 done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11422 if test -n "$AR_FOR_TARGET"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11424 $as_echo "$AR_FOR_TARGET" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 fi
11432 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11434 set dummy ${ncn_progname}; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 if test -n "$AR_FOR_TARGET"; then
11441 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11450 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454 done
11455 done
11456 IFS=$as_save_IFS
11457
11458 fi
11459 fi
11460 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11461 if test -n "$AR_FOR_TARGET"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11463 $as_echo "$AR_FOR_TARGET" >&6; }
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11467 fi
11468
11469
11470 fi
11471 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11472 done
11473 fi
11474
11475 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11476 set dummy ar
11477 if test $build = $target ; then
11478 AR_FOR_TARGET="$2"
11479 else
11480 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11481 fi
11482 else
11483 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11484 fi
11485
11486 else
11487 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11488 fi
11489
11490
11491
11492
11493 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11494 if test -n "$with_build_time_tools"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11496 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11497 if test -x $with_build_time_tools/as; then
11498 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11499 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11501 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 fi
11506 elif test $build != $host && test $have_gcc_for_target = yes; then
11507 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11508 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11509 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11510 fi
11511 fi
11512 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11513 # Extract the first word of "as", so it can be a program name with args.
11514 set dummy as; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $AS_FOR_TARGET in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11523 ;;
11524 *)
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $gcc_cv_tool_dirs
11527 do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536 done
11537 done
11538 IFS=$as_save_IFS
11539
11540 ;;
11541 esac
11542 fi
11543 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11544 if test -n "$AS_FOR_TARGET"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11546 $as_echo "$AS_FOR_TARGET" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550 fi
11551
11552
11553 fi
11554 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11555
11556
11557 if test -n "$AS_FOR_TARGET"; then
11558 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11559 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11560 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11561 fi
11562
11563 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11564 for ncn_progname in as; do
11565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11566 set dummy ${ncn_progname}; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test -n "$AS_FOR_TARGET"; then
11573 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11577 do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11582 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586 done
11587 done
11588 IFS=$as_save_IFS
11589
11590 fi
11591 fi
11592 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11593 if test -n "$AS_FOR_TARGET"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11595 $as_echo "$AS_FOR_TARGET" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602 done
11603 fi
11604
11605 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11606 for ncn_progname in as; do
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11608 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11609 if test -x $with_build_time_tools/${ncn_progname}; then
11610 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612 $as_echo "yes" >&6; }
11613 break
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618 done
11619 fi
11620
11621 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11622 for ncn_progname in as; do
11623 if test -n "$ncn_target_tool_prefix"; then
11624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test -n "$AS_FOR_TARGET"; then
11632 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645 done
11646 done
11647 IFS=$as_save_IFS
11648
11649 fi
11650 fi
11651 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11652 if test -n "$AS_FOR_TARGET"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11654 $as_echo "$AS_FOR_TARGET" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660
11661 fi
11662 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11664 set dummy ${ncn_progname}; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 if test -n "$AS_FOR_TARGET"; then
11671 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11672 else
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684 done
11685 done
11686 IFS=$as_save_IFS
11687
11688 fi
11689 fi
11690 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11691 if test -n "$AS_FOR_TARGET"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11693 $as_echo "$AS_FOR_TARGET" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11697 fi
11698
11699
11700 fi
11701 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11702 done
11703 fi
11704
11705 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11706 set dummy as
11707 if test $build = $target ; then
11708 AS_FOR_TARGET="$2"
11709 else
11710 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11711 fi
11712 else
11713 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11714 fi
11715
11716 else
11717 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11718 fi
11719
11720
11721
11722
11723 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11724 if test -n "$with_build_time_tools"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11726 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11727 if test -x $with_build_time_tools/dlltool; then
11728 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11729 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11731 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 fi
11736 elif test $build != $host && test $have_gcc_for_target = yes; then
11737 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11738 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11739 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11740 fi
11741 fi
11742 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11743 # Extract the first word of "dlltool", so it can be a program name with args.
11744 set dummy dlltool; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 case $DLLTOOL_FOR_TARGET in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11753 ;;
11754 *)
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $gcc_cv_tool_dirs
11757 do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11765 fi
11766 done
11767 done
11768 IFS=$as_save_IFS
11769
11770 ;;
11771 esac
11772 fi
11773 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11774 if test -n "$DLLTOOL_FOR_TARGET"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11776 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11777 else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11780 fi
11781
11782
11783 fi
11784 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11785
11786
11787 if test -n "$DLLTOOL_FOR_TARGET"; then
11788 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11789 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11790 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11791 fi
11792
11793 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11794 for ncn_progname in dlltool; do
11795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11796 set dummy ${ncn_progname}; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test -n "$DLLTOOL_FOR_TARGET"; then
11803 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816 done
11817 done
11818 IFS=$as_save_IFS
11819
11820 fi
11821 fi
11822 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11823 if test -n "$DLLTOOL_FOR_TARGET"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11825 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832 done
11833 fi
11834
11835 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11836 for ncn_progname in dlltool; do
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11838 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11839 if test -x $with_build_time_tools/${ncn_progname}; then
11840 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 break
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 fi
11848 done
11849 fi
11850
11851 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11852 for ncn_progname in dlltool; do
11853 if test -n "$ncn_target_tool_prefix"; then
11854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$DLLTOOL_FOR_TARGET"; then
11862 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11874 fi
11875 done
11876 done
11877 IFS=$as_save_IFS
11878
11879 fi
11880 fi
11881 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11882 if test -n "$DLLTOOL_FOR_TARGET"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11884 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891 fi
11892 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11894 set dummy ${ncn_progname}; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 if test -n "$DLLTOOL_FOR_TARGET"; then
11901 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11902 else
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11905 do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11913 fi
11914 done
11915 done
11916 IFS=$as_save_IFS
11917
11918 fi
11919 fi
11920 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11921 if test -n "$DLLTOOL_FOR_TARGET"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11923 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11927 fi
11928
11929
11930 fi
11931 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11932 done
11933 fi
11934
11935 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11936 set dummy dlltool
11937 if test $build = $target ; then
11938 DLLTOOL_FOR_TARGET="$2"
11939 else
11940 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11941 fi
11942 else
11943 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11944 fi
11945
11946 else
11947 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11948 fi
11949
11950
11951
11952
11953 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11954 if test -n "$with_build_time_tools"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11956 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11957 if test -x $with_build_time_tools/ld; then
11958 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11959 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11961 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966 elif test $build != $host && test $have_gcc_for_target = yes; then
11967 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11968 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11969 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11970 fi
11971 fi
11972 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11973 # Extract the first word of "ld", so it can be a program name with args.
11974 set dummy ld; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 case $LD_FOR_TARGET in
11981 [\\/]* | ?:[\\/]*)
11982 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11983 ;;
11984 *)
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $gcc_cv_tool_dirs
11987 do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11995 fi
11996 done
11997 done
11998 IFS=$as_save_IFS
11999
12000 ;;
12001 esac
12002 fi
12003 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12004 if test -n "$LD_FOR_TARGET"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12006 $as_echo "$LD_FOR_TARGET" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 fi
12011
12012
12013 fi
12014 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12015
12016
12017 if test -n "$LD_FOR_TARGET"; then
12018 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12019 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12020 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12021 fi
12022
12023 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12024 for ncn_progname in ld; do
12025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12026 set dummy ${ncn_progname}; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 if test -n "$LD_FOR_TARGET"; then
12033 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12034 else
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12045 fi
12046 done
12047 done
12048 IFS=$as_save_IFS
12049
12050 fi
12051 fi
12052 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12053 if test -n "$LD_FOR_TARGET"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12055 $as_echo "$LD_FOR_TARGET" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12059 fi
12060
12061
12062 done
12063 fi
12064
12065 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12066 for ncn_progname in ld; do
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12068 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/${ncn_progname}; then
12070 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12073 break
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078 done
12079 fi
12080
12081 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12082 for ncn_progname in ld; do
12083 if test -n "$ncn_target_tool_prefix"; then
12084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if test -n "$LD_FOR_TARGET"; then
12092 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105 done
12106 done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12112 if test -n "$LD_FOR_TARGET"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12114 $as_echo "$LD_FOR_TARGET" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121 fi
12122 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12124 set dummy ${ncn_progname}; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 if test -n "$LD_FOR_TARGET"; then
12131 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12132 else
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12143 fi
12144 done
12145 done
12146 IFS=$as_save_IFS
12147
12148 fi
12149 fi
12150 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12151 if test -n "$LD_FOR_TARGET"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12153 $as_echo "$LD_FOR_TARGET" >&6; }
12154 else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12157 fi
12158
12159
12160 fi
12161 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12162 done
12163 fi
12164
12165 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12166 set dummy ld
12167 if test $build = $target ; then
12168 LD_FOR_TARGET="$2"
12169 else
12170 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12171 fi
12172 else
12173 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12174 fi
12175
12176 else
12177 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12178 fi
12179
12180
12181
12182
12183 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12184 if test -n "$with_build_time_tools"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12186 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12187 if test -x $with_build_time_tools/lipo; then
12188 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12189 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12191 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12195 fi
12196 elif test $build != $host && test $have_gcc_for_target = yes; then
12197 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12198 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12199 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12200 fi
12201 fi
12202 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12203 # Extract the first word of "lipo", so it can be a program name with args.
12204 set dummy lipo; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $LIPO_FOR_TARGET in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12213 ;;
12214 *)
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $gcc_cv_tool_dirs
12217 do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12222 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12225 fi
12226 done
12227 done
12228 IFS=$as_save_IFS
12229
12230 ;;
12231 esac
12232 fi
12233 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12234 if test -n "$LIPO_FOR_TARGET"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12236 $as_echo "$LIPO_FOR_TARGET" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240 fi
12241
12242
12243 fi
12244 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12245
12246
12247 if test -n "$LIPO_FOR_TARGET"; then
12248 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12249 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12250 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12251 fi
12252
12253 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12254 for ncn_progname in lipo; do
12255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12256 set dummy ${ncn_progname}; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 if test -n "$LIPO_FOR_TARGET"; then
12263 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12264 else
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12267 do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12272 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276 done
12277 done
12278 IFS=$as_save_IFS
12279
12280 fi
12281 fi
12282 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12283 if test -n "$LIPO_FOR_TARGET"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12285 $as_echo "$LIPO_FOR_TARGET" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290
12291
12292 done
12293 fi
12294
12295 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12296 for ncn_progname in lipo; do
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12299 if test -x $with_build_time_tools/${ncn_progname}; then
12300 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 $as_echo "yes" >&6; }
12303 break
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12307 fi
12308 done
12309 fi
12310
12311 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12312 for ncn_progname in lipo; do
12313 if test -n "$ncn_target_tool_prefix"; then
12314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test -n "$LIPO_FOR_TARGET"; then
12322 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335 done
12336 done
12337 IFS=$as_save_IFS
12338
12339 fi
12340 fi
12341 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12342 if test -n "$LIPO_FOR_TARGET"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12344 $as_echo "$LIPO_FOR_TARGET" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351 fi
12352 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12354 set dummy ${ncn_progname}; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if test -n "$LIPO_FOR_TARGET"; then
12361 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12362 else
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12365 do
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12370 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 break 2
12373 fi
12374 done
12375 done
12376 IFS=$as_save_IFS
12377
12378 fi
12379 fi
12380 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12381 if test -n "$LIPO_FOR_TARGET"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12383 $as_echo "$LIPO_FOR_TARGET" >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12387 fi
12388
12389
12390 fi
12391 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12392 done
12393 fi
12394
12395 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12396 set dummy lipo
12397 if test $build = $target ; then
12398 LIPO_FOR_TARGET="$2"
12399 else
12400 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12401 fi
12402 else
12403 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12404 fi
12405
12406 else
12407 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12408 fi
12409
12410
12411
12412
12413 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12414 if test -n "$with_build_time_tools"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12416 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12417 if test -x $with_build_time_tools/nm; then
12418 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12419 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12421 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12425 fi
12426 elif test $build != $host && test $have_gcc_for_target = yes; then
12427 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12428 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12429 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12430 fi
12431 fi
12432 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12433 # Extract the first word of "nm", so it can be a program name with args.
12434 set dummy nm; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 case $NM_FOR_TARGET in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12443 ;;
12444 *)
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $gcc_cv_tool_dirs
12447 do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12455 fi
12456 done
12457 done
12458 IFS=$as_save_IFS
12459
12460 ;;
12461 esac
12462 fi
12463 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12464 if test -n "$NM_FOR_TARGET"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12466 $as_echo "$NM_FOR_TARGET" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12470 fi
12471
12472
12473 fi
12474 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12475
12476
12477 if test -n "$NM_FOR_TARGET"; then
12478 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12479 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12480 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12481 fi
12482
12483 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12484 for ncn_progname in nm; do
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$NM_FOR_TARGET"; then
12493 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12513 if test -n "$NM_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12515 $as_echo "$NM_FOR_TARGET" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522 done
12523 fi
12524
12525 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12526 for ncn_progname in nm; do
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/${ncn_progname}; then
12530 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533 break
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538 done
12539 fi
12540
12541 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12542 for ncn_progname in nm; do
12543 if test -n "$ncn_target_tool_prefix"; then
12544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if test -n "$NM_FOR_TARGET"; then
12552 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12556 do
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12561 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12564 fi
12565 done
12566 done
12567 IFS=$as_save_IFS
12568
12569 fi
12570 fi
12571 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12572 if test -n "$NM_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12574 $as_echo "$NM_FOR_TARGET" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578 fi
12579
12580
12581 fi
12582 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12584 set dummy ${ncn_progname}; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 if test -n "$NM_FOR_TARGET"; then
12591 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12592 else
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12595 do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604 done
12605 done
12606 IFS=$as_save_IFS
12607
12608 fi
12609 fi
12610 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12611 if test -n "$NM_FOR_TARGET"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12613 $as_echo "$NM_FOR_TARGET" >&6; }
12614 else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617 fi
12618
12619
12620 fi
12621 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12622 done
12623 fi
12624
12625 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12626 set dummy nm
12627 if test $build = $target ; then
12628 NM_FOR_TARGET="$2"
12629 else
12630 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12631 fi
12632 else
12633 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12634 fi
12635
12636 else
12637 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12638 fi
12639
12640
12641
12642
12643 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12644 if test -n "$with_build_time_tools"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12646 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12647 if test -x $with_build_time_tools/objcopy; then
12648 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12649 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12651 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12655 fi
12656 elif test $build != $host && test $have_gcc_for_target = yes; then
12657 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12658 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12659 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12660 fi
12661 fi
12662 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12663 # Extract the first word of "objcopy", so it can be a program name with args.
12664 set dummy objcopy; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 case $OBJCOPY_FOR_TARGET in
12671 [\\/]* | ?:[\\/]*)
12672 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12673 ;;
12674 *)
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $gcc_cv_tool_dirs
12677 do
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12682 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12685 fi
12686 done
12687 done
12688 IFS=$as_save_IFS
12689
12690 ;;
12691 esac
12692 fi
12693 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12694 if test -n "$OBJCOPY_FOR_TARGET"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12696 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12697 else
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 $as_echo "no" >&6; }
12700 fi
12701
12702
12703 fi
12704 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12705
12706
12707 if test -n "$OBJCOPY_FOR_TARGET"; then
12708 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12709 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12710 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12711 fi
12712
12713 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12714 for ncn_progname in objcopy; do
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 if test -n "$OBJCOPY_FOR_TARGET"; then
12723 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12724 else
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12735 fi
12736 done
12737 done
12738 IFS=$as_save_IFS
12739
12740 fi
12741 fi
12742 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12743 if test -n "$OBJCOPY_FOR_TARGET"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12745 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750
12751
12752 done
12753 fi
12754
12755 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12756 for ncn_progname in objcopy; do
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/${ncn_progname}; then
12760 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762 $as_echo "yes" >&6; }
12763 break
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768 done
12769 fi
12770
12771 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12772 for ncn_progname in objcopy; do
12773 if test -n "$ncn_target_tool_prefix"; then
12774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$OBJCOPY_FOR_TARGET"; then
12782 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 fi
12800 fi
12801 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12802 if test -n "$OBJCOPY_FOR_TARGET"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12804 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811 fi
12812 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 if test -n "$OBJCOPY_FOR_TARGET"; then
12821 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12822 else
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12825 do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12833 fi
12834 done
12835 done
12836 IFS=$as_save_IFS
12837
12838 fi
12839 fi
12840 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12841 if test -n "$OBJCOPY_FOR_TARGET"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12843 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12847 fi
12848
12849
12850 fi
12851 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12852 done
12853 fi
12854
12855 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12856 set dummy objcopy
12857 if test $build = $target ; then
12858 OBJCOPY_FOR_TARGET="$2"
12859 else
12860 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12861 fi
12862 else
12863 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12864 fi
12865
12866 else
12867 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12868 fi
12869
12870
12871
12872
12873 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12874 if test -n "$with_build_time_tools"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12876 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12877 if test -x $with_build_time_tools/objdump; then
12878 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12879 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12881 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12885 fi
12886 elif test $build != $host && test $have_gcc_for_target = yes; then
12887 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12888 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12889 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12890 fi
12891 fi
12892 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12893 # Extract the first word of "objdump", so it can be a program name with args.
12894 set dummy objdump; ac_word=$2
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896 $as_echo_n "checking for $ac_word... " >&6; }
12897 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 case $OBJDUMP_FOR_TARGET in
12901 [\\/]* | ?:[\\/]*)
12902 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12903 ;;
12904 *)
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $gcc_cv_tool_dirs
12907 do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12912 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916 done
12917 done
12918 IFS=$as_save_IFS
12919
12920 ;;
12921 esac
12922 fi
12923 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12924 if test -n "$OBJDUMP_FOR_TARGET"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12926 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931
12932
12933 fi
12934 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12935
12936
12937 if test -n "$OBJDUMP_FOR_TARGET"; then
12938 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12939 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12940 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12941 fi
12942
12943 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12944 for ncn_progname in objdump; do
12945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12946 set dummy ${ncn_progname}; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 if test -n "$OBJDUMP_FOR_TARGET"; then
12953 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12962 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12965 fi
12966 done
12967 done
12968 IFS=$as_save_IFS
12969
12970 fi
12971 fi
12972 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12973 if test -n "$OBJDUMP_FOR_TARGET"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12975 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980
12981
12982 done
12983 fi
12984
12985 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12986 for ncn_progname in objdump; do
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/${ncn_progname}; then
12990 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992 $as_echo "yes" >&6; }
12993 break
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997 fi
12998 done
12999 fi
13000
13001 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13002 for ncn_progname in objdump; do
13003 if test -n "$ncn_target_tool_prefix"; then
13004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$OBJDUMP_FOR_TARGET"; then
13012 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13021 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 fi
13030 fi
13031 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13032 if test -n "$OBJDUMP_FOR_TARGET"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13034 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038 fi
13039
13040
13041 fi
13042 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13044 set dummy ${ncn_progname}; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 if test -n "$OBJDUMP_FOR_TARGET"; then
13051 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13052 else
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13060 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 break 2
13063 fi
13064 done
13065 done
13066 IFS=$as_save_IFS
13067
13068 fi
13069 fi
13070 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13071 if test -n "$OBJDUMP_FOR_TARGET"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13073 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13077 fi
13078
13079
13080 fi
13081 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13082 done
13083 fi
13084
13085 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13086 set dummy objdump
13087 if test $build = $target ; then
13088 OBJDUMP_FOR_TARGET="$2"
13089 else
13090 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13091 fi
13092 else
13093 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13094 fi
13095
13096 else
13097 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13098 fi
13099
13100
13101
13102
13103 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13104 if test -n "$with_build_time_tools"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13106 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13107 if test -x $with_build_time_tools/otool; then
13108 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13109 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13111 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116 elif test $build != $host && test $have_gcc_for_target = yes; then
13117 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13118 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13119 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13120 fi
13121 fi
13122 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13123 # Extract the first word of "otool", so it can be a program name with args.
13124 set dummy otool; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 case $OTOOL_FOR_TARGET in
13131 [\\/]* | ?:[\\/]*)
13132 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13133 ;;
13134 *)
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $gcc_cv_tool_dirs
13137 do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13142 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13145 fi
13146 done
13147 done
13148 IFS=$as_save_IFS
13149
13150 ;;
13151 esac
13152 fi
13153 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13154 if test -n "$OTOOL_FOR_TARGET"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13156 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 fi
13161
13162
13163 fi
13164 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13165
13166
13167 if test -n "$OTOOL_FOR_TARGET"; then
13168 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13169 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13170 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13171 fi
13172
13173 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13174 for ncn_progname in otool; do
13175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13176 set dummy ${ncn_progname}; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 if test -n "$OTOOL_FOR_TARGET"; then
13183 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13184 else
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13192 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13195 fi
13196 done
13197 done
13198 IFS=$as_save_IFS
13199
13200 fi
13201 fi
13202 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13203 if test -n "$OTOOL_FOR_TARGET"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13205 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209 fi
13210
13211
13212 done
13213 fi
13214
13215 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13216 for ncn_progname in otool; do
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13219 if test -x $with_build_time_tools/${ncn_progname}; then
13220 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222 $as_echo "yes" >&6; }
13223 break
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228 done
13229 fi
13230
13231 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13232 for ncn_progname in otool; do
13233 if test -n "$ncn_target_tool_prefix"; then
13234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 if test -n "$OTOOL_FOR_TARGET"; then
13242 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13254 fi
13255 done
13256 done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13262 if test -n "$OTOOL_FOR_TARGET"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13264 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270
13271 fi
13272 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13274 set dummy ${ncn_progname}; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$OTOOL_FOR_TARGET"; then
13281 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13285 do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13290 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294 done
13295 done
13296 IFS=$as_save_IFS
13297
13298 fi
13299 fi
13300 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13301 if test -n "$OTOOL_FOR_TARGET"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13303 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13308
13309
13310 fi
13311 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13312 done
13313 fi
13314
13315 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13316 set dummy otool
13317 if test $build = $target ; then
13318 OTOOL_FOR_TARGET="$2"
13319 else
13320 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13321 fi
13322 else
13323 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13324 fi
13325
13326 else
13327 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13328 fi
13329
13330
13331
13332
13333 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13334 if test -n "$with_build_time_tools"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13336 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13337 if test -x $with_build_time_tools/ranlib; then
13338 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13339 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13341 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13345 fi
13346 elif test $build != $host && test $have_gcc_for_target = yes; then
13347 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13348 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13349 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13350 fi
13351 fi
13352 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13353 # Extract the first word of "ranlib", so it can be a program name with args.
13354 set dummy ranlib; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 case $RANLIB_FOR_TARGET in
13361 [\\/]* | ?:[\\/]*)
13362 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13363 ;;
13364 *)
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $gcc_cv_tool_dirs
13367 do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13372 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376 done
13377 done
13378 IFS=$as_save_IFS
13379
13380 ;;
13381 esac
13382 fi
13383 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13384 if test -n "$RANLIB_FOR_TARGET"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13386 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390 fi
13391
13392
13393 fi
13394 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13395
13396
13397 if test -n "$RANLIB_FOR_TARGET"; then
13398 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13399 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13400 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13401 fi
13402
13403 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13404 for ncn_progname in ranlib; do
13405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13406 set dummy ${ncn_progname}; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 if test -n "$RANLIB_FOR_TARGET"; then
13413 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13414 else
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13417 do
13418 IFS=$as_save_IFS
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13422 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424 break 2
13425 fi
13426 done
13427 done
13428 IFS=$as_save_IFS
13429
13430 fi
13431 fi
13432 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13433 if test -n "$RANLIB_FOR_TARGET"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13435 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13439 fi
13440
13441
13442 done
13443 fi
13444
13445 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13446 for ncn_progname in ranlib; do
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13449 if test -x $with_build_time_tools/${ncn_progname}; then
13450 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13452 $as_echo "yes" >&6; }
13453 break
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458 done
13459 fi
13460
13461 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13462 for ncn_progname in ranlib; do
13463 if test -n "$ncn_target_tool_prefix"; then
13464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 if test -n "$RANLIB_FOR_TARGET"; then
13472 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13473 else
13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475 for as_dir in $PATH
13476 do
13477 IFS=$as_save_IFS
13478 test -z "$as_dir" && as_dir=.
13479 for ac_exec_ext in '' $ac_executable_extensions; do
13480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13481 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483 break 2
13484 fi
13485 done
13486 done
13487 IFS=$as_save_IFS
13488
13489 fi
13490 fi
13491 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13492 if test -n "$RANLIB_FOR_TARGET"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13494 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498 fi
13499
13500
13501 fi
13502 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13504 set dummy ${ncn_progname}; ac_word=$2
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13506 $as_echo_n "checking for $ac_word... " >&6; }
13507 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 if test -n "$RANLIB_FOR_TARGET"; then
13511 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13512 else
13513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514 for as_dir in $PATH
13515 do
13516 IFS=$as_save_IFS
13517 test -z "$as_dir" && as_dir=.
13518 for ac_exec_ext in '' $ac_executable_extensions; do
13519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13520 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13522 break 2
13523 fi
13524 done
13525 done
13526 IFS=$as_save_IFS
13527
13528 fi
13529 fi
13530 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13531 if test -n "$RANLIB_FOR_TARGET"; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13533 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13534 else
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13537 fi
13538
13539
13540 fi
13541 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13542 done
13543 fi
13544
13545 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13546 set dummy ranlib
13547 if test $build = $target ; then
13548 RANLIB_FOR_TARGET="$2"
13549 else
13550 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13551 fi
13552 else
13553 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13554 fi
13555
13556 else
13557 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13558 fi
13559
13560
13561
13562
13563 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13564 if test -n "$with_build_time_tools"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13566 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13567 if test -x $with_build_time_tools/readelf; then
13568 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13569 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13571 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13575 fi
13576 elif test $build != $host && test $have_gcc_for_target = yes; then
13577 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13578 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13579 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13580 fi
13581 fi
13582 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13583 # Extract the first word of "readelf", so it can be a program name with args.
13584 set dummy readelf; ac_word=$2
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586 $as_echo_n "checking for $ac_word... " >&6; }
13587 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 case $READELF_FOR_TARGET in
13591 [\\/]* | ?:[\\/]*)
13592 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13593 ;;
13594 *)
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $gcc_cv_tool_dirs
13597 do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13605 fi
13606 done
13607 done
13608 IFS=$as_save_IFS
13609
13610 ;;
13611 esac
13612 fi
13613 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13614 if test -n "$READELF_FOR_TARGET"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13616 $as_echo "$READELF_FOR_TARGET" >&6; }
13617 else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13620 fi
13621
13622
13623 fi
13624 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13625
13626
13627 if test -n "$READELF_FOR_TARGET"; then
13628 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13629 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13630 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13631 fi
13632
13633 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13634 for ncn_progname in readelf; do
13635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13636 set dummy ${ncn_progname}; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 if test -n "$READELF_FOR_TARGET"; then
13643 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13644 else
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13647 do
13648 IFS=$as_save_IFS
13649 test -z "$as_dir" && as_dir=.
13650 for ac_exec_ext in '' $ac_executable_extensions; do
13651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13652 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654 break 2
13655 fi
13656 done
13657 done
13658 IFS=$as_save_IFS
13659
13660 fi
13661 fi
13662 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13663 if test -n "$READELF_FOR_TARGET"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13665 $as_echo "$READELF_FOR_TARGET" >&6; }
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13669 fi
13670
13671
13672 done
13673 fi
13674
13675 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13676 for ncn_progname in readelf; do
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13678 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13679 if test -x $with_build_time_tools/${ncn_progname}; then
13680 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13682 $as_echo "yes" >&6; }
13683 break
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13687 fi
13688 done
13689 fi
13690
13691 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13692 for ncn_progname in readelf; do
13693 if test -n "$ncn_target_tool_prefix"; then
13694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 if test -n "$READELF_FOR_TARGET"; then
13702 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13706 do
13707 IFS=$as_save_IFS
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13711 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 break 2
13714 fi
13715 done
13716 done
13717 IFS=$as_save_IFS
13718
13719 fi
13720 fi
13721 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13722 if test -n "$READELF_FOR_TARGET"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13724 $as_echo "$READELF_FOR_TARGET" >&6; }
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13728 fi
13729
13730
13731 fi
13732 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13734 set dummy ${ncn_progname}; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 if test -n "$READELF_FOR_TARGET"; then
13741 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13742 else
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13745 do
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13750 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 break 2
13753 fi
13754 done
13755 done
13756 IFS=$as_save_IFS
13757
13758 fi
13759 fi
13760 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13761 if test -n "$READELF_FOR_TARGET"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13763 $as_echo "$READELF_FOR_TARGET" >&6; }
13764 else
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13767 fi
13768
13769
13770 fi
13771 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13772 done
13773 fi
13774
13775 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13776 set dummy readelf
13777 if test $build = $target ; then
13778 READELF_FOR_TARGET="$2"
13779 else
13780 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13781 fi
13782 else
13783 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13784 fi
13785
13786 else
13787 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13788 fi
13789
13790
13791
13792
13793 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13794 if test -n "$with_build_time_tools"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13796 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13797 if test -x $with_build_time_tools/strip; then
13798 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13799 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13801 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13802 else
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13805 fi
13806 elif test $build != $host && test $have_gcc_for_target = yes; then
13807 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13808 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13809 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13810 fi
13811 fi
13812 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13813 # Extract the first word of "strip", so it can be a program name with args.
13814 set dummy strip; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 case $STRIP_FOR_TARGET in
13821 [\\/]* | ?:[\\/]*)
13822 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13823 ;;
13824 *)
13825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826 for as_dir in $gcc_cv_tool_dirs
13827 do
13828 IFS=$as_save_IFS
13829 test -z "$as_dir" && as_dir=.
13830 for ac_exec_ext in '' $ac_executable_extensions; do
13831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13832 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13834 break 2
13835 fi
13836 done
13837 done
13838 IFS=$as_save_IFS
13839
13840 ;;
13841 esac
13842 fi
13843 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13844 if test -n "$STRIP_FOR_TARGET"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13846 $as_echo "$STRIP_FOR_TARGET" >&6; }
13847 else
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13850 fi
13851
13852
13853 fi
13854 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13855
13856
13857 if test -n "$STRIP_FOR_TARGET"; then
13858 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13859 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13860 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13861 fi
13862
13863 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13864 for ncn_progname in strip; do
13865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13866 set dummy ${ncn_progname}; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 if test -n "$STRIP_FOR_TARGET"; then
13873 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13877 do
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13882 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884 break 2
13885 fi
13886 done
13887 done
13888 IFS=$as_save_IFS
13889
13890 fi
13891 fi
13892 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13893 if test -n "$STRIP_FOR_TARGET"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13895 $as_echo "$STRIP_FOR_TARGET" >&6; }
13896 else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13899 fi
13900
13901
13902 done
13903 fi
13904
13905 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13906 for ncn_progname in strip; do
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13909 if test -x $with_build_time_tools/${ncn_progname}; then
13910 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13912 $as_echo "yes" >&6; }
13913 break
13914 else
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13917 fi
13918 done
13919 fi
13920
13921 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13922 for ncn_progname in strip; do
13923 if test -n "$ncn_target_tool_prefix"; then
13924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13927 $as_echo_n "checking for $ac_word... " >&6; }
13928 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 if test -n "$STRIP_FOR_TARGET"; then
13932 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13933 else
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13936 do
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13941 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13944 fi
13945 done
13946 done
13947 IFS=$as_save_IFS
13948
13949 fi
13950 fi
13951 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13952 if test -n "$STRIP_FOR_TARGET"; then
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13954 $as_echo "$STRIP_FOR_TARGET" >&6; }
13955 else
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957 $as_echo "no" >&6; }
13958 fi
13959
13960
13961 fi
13962 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13964 set dummy ${ncn_progname}; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 if test -n "$STRIP_FOR_TARGET"; then
13971 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13972 else
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13975 do
13976 IFS=$as_save_IFS
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13980 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13982 break 2
13983 fi
13984 done
13985 done
13986 IFS=$as_save_IFS
13987
13988 fi
13989 fi
13990 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13991 if test -n "$STRIP_FOR_TARGET"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13993 $as_echo "$STRIP_FOR_TARGET" >&6; }
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13997 fi
13998
13999
14000 fi
14001 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
14002 done
14003 fi
14004
14005 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
14006 set dummy strip
14007 if test $build = $target ; then
14008 STRIP_FOR_TARGET="$2"
14009 else
14010 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
14011 fi
14012 else
14013 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
14014 fi
14015
14016 else
14017 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
14018 fi
14019
14020
14021
14022
14023 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14024 if test -n "$with_build_time_tools"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
14026 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
14027 if test -x $with_build_time_tools/windres; then
14028 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
14029 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
14031 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035 fi
14036 elif test $build != $host && test $have_gcc_for_target = yes; then
14037 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
14038 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14039 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14040 fi
14041 fi
14042 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14043 # Extract the first word of "windres", so it can be a program name with args.
14044 set dummy windres; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14046 $as_echo_n "checking for $ac_word... " >&6; }
14047 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 case $WINDRES_FOR_TARGET in
14051 [\\/]* | ?:[\\/]*)
14052 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14053 ;;
14054 *)
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $gcc_cv_tool_dirs
14057 do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14062 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066 done
14067 done
14068 IFS=$as_save_IFS
14069
14070 ;;
14071 esac
14072 fi
14073 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14074 if test -n "$WINDRES_FOR_TARGET"; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14076 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14077 else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14080 fi
14081
14082
14083 fi
14084 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14085
14086
14087 if test -n "$WINDRES_FOR_TARGET"; then
14088 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14089 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14090 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14091 fi
14092
14093 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14094 for ncn_progname in windres; do
14095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14096 set dummy ${ncn_progname}; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 if test -n "$WINDRES_FOR_TARGET"; then
14103 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14112 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14115 fi
14116 done
14117 done
14118 IFS=$as_save_IFS
14119
14120 fi
14121 fi
14122 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14123 if test -n "$WINDRES_FOR_TARGET"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14125 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131
14132 done
14133 fi
14134
14135 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
14136 for ncn_progname in windres; do
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14139 if test -x $with_build_time_tools/${ncn_progname}; then
14140 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14142 $as_echo "yes" >&6; }
14143 break
14144 else
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 $as_echo "no" >&6; }
14147 fi
14148 done
14149 fi
14150
14151 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14152 for ncn_progname in windres; do
14153 if test -n "$ncn_target_tool_prefix"; then
14154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 if test -n "$WINDRES_FOR_TARGET"; then
14162 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14163 else
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14166 do
14167 IFS=$as_save_IFS
14168 test -z "$as_dir" && as_dir=.
14169 for ac_exec_ext in '' $ac_executable_extensions; do
14170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14171 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173 break 2
14174 fi
14175 done
14176 done
14177 IFS=$as_save_IFS
14178
14179 fi
14180 fi
14181 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14182 if test -n "$WINDRES_FOR_TARGET"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14184 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14185 else
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14188 fi
14189
14190
14191 fi
14192 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14194 set dummy ${ncn_progname}; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 if test -n "$WINDRES_FOR_TARGET"; then
14201 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14205 do
14206 IFS=$as_save_IFS
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14210 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 break 2
14213 fi
14214 done
14215 done
14216 IFS=$as_save_IFS
14217
14218 fi
14219 fi
14220 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14221 if test -n "$WINDRES_FOR_TARGET"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14223 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 fi
14228
14229
14230 fi
14231 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14232 done
14233 fi
14234
14235 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14236 set dummy windres
14237 if test $build = $target ; then
14238 WINDRES_FOR_TARGET="$2"
14239 else
14240 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14241 fi
14242 else
14243 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14244 fi
14245
14246 else
14247 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14248 fi
14249
14250
14251
14252
14253 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14254 if test -n "$with_build_time_tools"; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14256 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14257 if test -x $with_build_time_tools/windmc; then
14258 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14259 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14261 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14262 else
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265 fi
14266 elif test $build != $host && test $have_gcc_for_target = yes; then
14267 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14268 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14269 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14270 fi
14271 fi
14272 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14273 # Extract the first word of "windmc", so it can be a program name with args.
14274 set dummy windmc; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276 $as_echo_n "checking for $ac_word... " >&6; }
14277 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 case $WINDMC_FOR_TARGET in
14281 [\\/]* | ?:[\\/]*)
14282 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14283 ;;
14284 *)
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $gcc_cv_tool_dirs
14287 do
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14295 fi
14296 done
14297 done
14298 IFS=$as_save_IFS
14299
14300 ;;
14301 esac
14302 fi
14303 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14304 if test -n "$WINDMC_FOR_TARGET"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14306 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 fi
14311
14312
14313 fi
14314 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14315
14316
14317 if test -n "$WINDMC_FOR_TARGET"; then
14318 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14319 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14320 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14321 fi
14322
14323 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14324 for ncn_progname in windmc; do
14325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14326 set dummy ${ncn_progname}; ac_word=$2
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14328 $as_echo_n "checking for $ac_word... " >&6; }
14329 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 if test -n "$WINDMC_FOR_TARGET"; then
14333 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14334 else
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14337 do
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 break 2
14345 fi
14346 done
14347 done
14348 IFS=$as_save_IFS
14349
14350 fi
14351 fi
14352 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14353 if test -n "$WINDMC_FOR_TARGET"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14355 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14356 else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 $as_echo "no" >&6; }
14359 fi
14360
14361
14362 done
14363 fi
14364
14365 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14366 for ncn_progname in windmc; do
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14369 if test -x $with_build_time_tools/${ncn_progname}; then
14370 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14372 $as_echo "yes" >&6; }
14373 break
14374 else
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 $as_echo "no" >&6; }
14377 fi
14378 done
14379 fi
14380
14381 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14382 for ncn_progname in windmc; do
14383 if test -n "$ncn_target_tool_prefix"; then
14384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 if test -n "$WINDMC_FOR_TARGET"; then
14392 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14396 do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14401 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405 done
14406 done
14407 IFS=$as_save_IFS
14408
14409 fi
14410 fi
14411 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14412 if test -n "$WINDMC_FOR_TARGET"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14414 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420
14421 fi
14422 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14424 set dummy ${ncn_progname}; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14428 $as_echo_n "(cached) " >&6
14429 else
14430 if test -n "$WINDMC_FOR_TARGET"; then
14431 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14435 do
14436 IFS=$as_save_IFS
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 break 2
14443 fi
14444 done
14445 done
14446 IFS=$as_save_IFS
14447
14448 fi
14449 fi
14450 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14451 if test -n "$WINDMC_FOR_TARGET"; then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14453 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14454 else
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 $as_echo "no" >&6; }
14457 fi
14458
14459
14460 fi
14461 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14462 done
14463 fi
14464
14465 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14466 set dummy windmc
14467 if test $build = $target ; then
14468 WINDMC_FOR_TARGET="$2"
14469 else
14470 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14471 fi
14472 else
14473 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14474 fi
14475
14476 else
14477 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14478 fi
14479
14480
14481 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14484 $as_echo_n "checking where to find the target ar... " >&6; }
14485 if test "x${build}" != "x${host}" ; then
14486 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14487 # We already found the complete path
14488 ac_dir=`dirname $AR_FOR_TARGET`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14490 $as_echo "pre-installed in $ac_dir" >&6; }
14491 else
14492 # Canadian cross, just use what we found
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14494 $as_echo "pre-installed" >&6; }
14495 fi
14496 else
14497 ok=yes
14498 case " ${configdirs} " in
14499 *" binutils "*) ;;
14500 *) ok=no ;;
14501 esac
14502
14503 if test $ok = yes; then
14504 # An in-tree tool is available and we can use it
14505 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14507 $as_echo "just compiled" >&6; }
14508 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14509 # We already found the complete path
14510 ac_dir=`dirname $AR_FOR_TARGET`
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14512 $as_echo "pre-installed in $ac_dir" >&6; }
14513 elif test "x$target" = "x$host"; then
14514 # We can use an host tool
14515 AR_FOR_TARGET='$(AR)'
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14517 $as_echo "host tool" >&6; }
14518 else
14519 # We need a cross tool
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14521 $as_echo "pre-installed" >&6; }
14522 fi
14523 fi
14524
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14526 $as_echo_n "checking where to find the target as... " >&6; }
14527 if test "x${build}" != "x${host}" ; then
14528 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14529 # We already found the complete path
14530 ac_dir=`dirname $AS_FOR_TARGET`
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14532 $as_echo "pre-installed in $ac_dir" >&6; }
14533 else
14534 # Canadian cross, just use what we found
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14536 $as_echo "pre-installed" >&6; }
14537 fi
14538 else
14539 ok=yes
14540 case " ${configdirs} " in
14541 *" gas "*) ;;
14542 *) ok=no ;;
14543 esac
14544
14545 if test $ok = yes; then
14546 # An in-tree tool is available and we can use it
14547 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14549 $as_echo "just compiled" >&6; }
14550 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14551 # We already found the complete path
14552 ac_dir=`dirname $AS_FOR_TARGET`
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14554 $as_echo "pre-installed in $ac_dir" >&6; }
14555 elif test "x$target" = "x$host"; then
14556 # We can use an host tool
14557 AS_FOR_TARGET='$(AS)'
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14559 $as_echo "host tool" >&6; }
14560 else
14561 # We need a cross tool
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14563 $as_echo "pre-installed" >&6; }
14564 fi
14565 fi
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14568 $as_echo_n "checking where to find the target cc... " >&6; }
14569 if test "x${build}" != "x${host}" ; then
14570 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14571 # We already found the complete path
14572 ac_dir=`dirname $CC_FOR_TARGET`
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14574 $as_echo "pre-installed in $ac_dir" >&6; }
14575 else
14576 # Canadian cross, just use what we found
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14578 $as_echo "pre-installed" >&6; }
14579 fi
14580 else
14581 ok=yes
14582 case " ${configdirs} " in
14583 *" gcc "*) ;;
14584 *) ok=no ;;
14585 esac
14586
14587 if test $ok = yes; then
14588 # An in-tree tool is available and we can use it
14589 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14591 $as_echo "just compiled" >&6; }
14592 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14593 # We already found the complete path
14594 ac_dir=`dirname $CC_FOR_TARGET`
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14596 $as_echo "pre-installed in $ac_dir" >&6; }
14597 elif test "x$target" = "x$host"; then
14598 # We can use an host tool
14599 CC_FOR_TARGET='$(CC)'
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14601 $as_echo "host tool" >&6; }
14602 else
14603 # We need a cross tool
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14605 $as_echo "pre-installed" >&6; }
14606 fi
14607 fi
14608
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14610 $as_echo_n "checking where to find the target c++... " >&6; }
14611 if test "x${build}" != "x${host}" ; then
14612 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14613 # We already found the complete path
14614 ac_dir=`dirname $CXX_FOR_TARGET`
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14616 $as_echo "pre-installed in $ac_dir" >&6; }
14617 else
14618 # Canadian cross, just use what we found
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14620 $as_echo "pre-installed" >&6; }
14621 fi
14622 else
14623 ok=yes
14624 case " ${configdirs} " in
14625 *" gcc "*) ;;
14626 *) ok=no ;;
14627 esac
14628 case ,${enable_languages}, in
14629 *,c++,*) ;;
14630 *) ok=no ;;
14631 esac
14632 if test $ok = yes; then
14633 # An in-tree tool is available and we can use it
14634 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'
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14636 $as_echo "just compiled" >&6; }
14637 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14638 # We already found the complete path
14639 ac_dir=`dirname $CXX_FOR_TARGET`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14641 $as_echo "pre-installed in $ac_dir" >&6; }
14642 elif test "x$target" = "x$host"; then
14643 # We can use an host tool
14644 CXX_FOR_TARGET='$(CXX)'
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14646 $as_echo "host tool" >&6; }
14647 else
14648 # We need a cross tool
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14650 $as_echo "pre-installed" >&6; }
14651 fi
14652 fi
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14655 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14656 if test "x${build}" != "x${host}" ; then
14657 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
14659 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661 $as_echo "pre-installed in $ac_dir" >&6; }
14662 else
14663 # Canadian cross, just use what we found
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14665 $as_echo "pre-installed" >&6; }
14666 fi
14667 else
14668 ok=yes
14669 case " ${configdirs} " in
14670 *" gcc "*) ;;
14671 *) ok=no ;;
14672 esac
14673 case ,${enable_languages}, in
14674 *,c++,*) ;;
14675 *) ok=no ;;
14676 esac
14677 if test $ok = yes; then
14678 # An in-tree tool is available and we can use it
14679 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'
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14681 $as_echo "just compiled" >&6; }
14682 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14683 # We already found the complete path
14684 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14686 $as_echo "pre-installed in $ac_dir" >&6; }
14687 elif test "x$target" = "x$host"; then
14688 # We can use an host tool
14689 RAW_CXX_FOR_TARGET='$(CXX)'
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14691 $as_echo "host tool" >&6; }
14692 else
14693 # We need a cross tool
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14695 $as_echo "pre-installed" >&6; }
14696 fi
14697 fi
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14700 $as_echo_n "checking where to find the target dlltool... " >&6; }
14701 if test "x${build}" != "x${host}" ; then
14702 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14703 # We already found the complete path
14704 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14706 $as_echo "pre-installed in $ac_dir" >&6; }
14707 else
14708 # Canadian cross, just use what we found
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14710 $as_echo "pre-installed" >&6; }
14711 fi
14712 else
14713 ok=yes
14714 case " ${configdirs} " in
14715 *" binutils "*) ;;
14716 *) ok=no ;;
14717 esac
14718
14719 if test $ok = yes; then
14720 # An in-tree tool is available and we can use it
14721 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14723 $as_echo "just compiled" >&6; }
14724 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14725 # We already found the complete path
14726 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14728 $as_echo "pre-installed in $ac_dir" >&6; }
14729 elif test "x$target" = "x$host"; then
14730 # We can use an host tool
14731 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14733 $as_echo "host tool" >&6; }
14734 else
14735 # We need a cross tool
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14737 $as_echo "pre-installed" >&6; }
14738 fi
14739 fi
14740
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14742 $as_echo_n "checking where to find the target gcc... " >&6; }
14743 if test "x${build}" != "x${host}" ; then
14744 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14745 # We already found the complete path
14746 ac_dir=`dirname $GCC_FOR_TARGET`
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14748 $as_echo "pre-installed in $ac_dir" >&6; }
14749 else
14750 # Canadian cross, just use what we found
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14752 $as_echo "pre-installed" >&6; }
14753 fi
14754 else
14755 ok=yes
14756 case " ${configdirs} " in
14757 *" gcc "*) ;;
14758 *) ok=no ;;
14759 esac
14760
14761 if test $ok = yes; then
14762 # An in-tree tool is available and we can use it
14763 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14765 $as_echo "just compiled" >&6; }
14766 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14767 # We already found the complete path
14768 ac_dir=`dirname $GCC_FOR_TARGET`
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14770 $as_echo "pre-installed in $ac_dir" >&6; }
14771 elif test "x$target" = "x$host"; then
14772 # We can use an host tool
14773 GCC_FOR_TARGET='$()'
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14775 $as_echo "host tool" >&6; }
14776 else
14777 # We need a cross tool
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14779 $as_echo "pre-installed" >&6; }
14780 fi
14781 fi
14782
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14784 $as_echo_n "checking where to find the target gfortran... " >&6; }
14785 if test "x${build}" != "x${host}" ; then
14786 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14787 # We already found the complete path
14788 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14790 $as_echo "pre-installed in $ac_dir" >&6; }
14791 else
14792 # Canadian cross, just use what we found
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14794 $as_echo "pre-installed" >&6; }
14795 fi
14796 else
14797 ok=yes
14798 case " ${configdirs} " in
14799 *" gcc "*) ;;
14800 *) ok=no ;;
14801 esac
14802 case ,${enable_languages}, in
14803 *,fortran,*) ;;
14804 *) ok=no ;;
14805 esac
14806 if test $ok = yes; then
14807 # An in-tree tool is available and we can use it
14808 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14810 $as_echo "just compiled" >&6; }
14811 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14812 # We already found the complete path
14813 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14815 $as_echo "pre-installed in $ac_dir" >&6; }
14816 elif test "x$target" = "x$host"; then
14817 # We can use an host tool
14818 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14820 $as_echo "host tool" >&6; }
14821 else
14822 # We need a cross tool
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14824 $as_echo "pre-installed" >&6; }
14825 fi
14826 fi
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14829 $as_echo_n "checking where to find the target gccgo... " >&6; }
14830 if test "x${build}" != "x${host}" ; then
14831 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14832 # We already found the complete path
14833 ac_dir=`dirname $GOC_FOR_TARGET`
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14835 $as_echo "pre-installed in $ac_dir" >&6; }
14836 else
14837 # Canadian cross, just use what we found
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14839 $as_echo "pre-installed" >&6; }
14840 fi
14841 else
14842 ok=yes
14843 case " ${configdirs} " in
14844 *" gcc "*) ;;
14845 *) ok=no ;;
14846 esac
14847 case ,${enable_languages}, in
14848 *,go,*) ;;
14849 *) ok=no ;;
14850 esac
14851 if test $ok = yes; then
14852 # An in-tree tool is available and we can use it
14853 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14855 $as_echo "just compiled" >&6; }
14856 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14857 # We already found the complete path
14858 ac_dir=`dirname $GOC_FOR_TARGET`
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14860 $as_echo "pre-installed in $ac_dir" >&6; }
14861 elif test "x$target" = "x$host"; then
14862 # We can use an host tool
14863 GOC_FOR_TARGET='$(GOC)'
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14865 $as_echo "host tool" >&6; }
14866 else
14867 # We need a cross tool
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14869 $as_echo "pre-installed" >&6; }
14870 fi
14871 fi
14872
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14874 $as_echo_n "checking where to find the target gdc... " >&6; }
14875 if test "x${build}" != "x${host}" ; then
14876 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14877 # We already found the complete path
14878 ac_dir=`dirname $GDC_FOR_TARGET`
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14880 $as_echo "pre-installed in $ac_dir" >&6; }
14881 else
14882 # Canadian cross, just use what we found
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14884 $as_echo "pre-installed" >&6; }
14885 fi
14886 else
14887 ok=yes
14888 case " ${configdirs} " in
14889 *" gcc "*) ;;
14890 *) ok=no ;;
14891 esac
14892 case ,${enable_languages}, in
14893 *,d,*) ;;
14894 *) ok=no ;;
14895 esac
14896 if test $ok = yes; then
14897 # An in-tree tool is available and we can use it
14898 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14900 $as_echo "just compiled" >&6; }
14901 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14902 # We already found the complete path
14903 ac_dir=`dirname $GDC_FOR_TARGET`
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14905 $as_echo "pre-installed in $ac_dir" >&6; }
14906 elif test "x$target" = "x$host"; then
14907 # We can use an host tool
14908 GDC_FOR_TARGET='$(GDC)'
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14910 $as_echo "host tool" >&6; }
14911 else
14912 # We need a cross tool
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14914 $as_echo "pre-installed" >&6; }
14915 fi
14916 fi
14917
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14919 $as_echo_n "checking where to find the target ld... " >&6; }
14920 if test "x${build}" != "x${host}" ; then
14921 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14922 # We already found the complete path
14923 ac_dir=`dirname $LD_FOR_TARGET`
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14925 $as_echo "pre-installed in $ac_dir" >&6; }
14926 else
14927 # Canadian cross, just use what we found
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14929 $as_echo "pre-installed" >&6; }
14930 fi
14931 else
14932 ok=yes
14933 case " ${configdirs} " in
14934 *" ld "*) ;;
14935 *) ok=no ;;
14936 esac
14937
14938 if test $ok = yes; then
14939 # An in-tree tool is available and we can use it
14940 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14942 $as_echo "just compiled" >&6; }
14943 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14944 # We already found the complete path
14945 ac_dir=`dirname $LD_FOR_TARGET`
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14947 $as_echo "pre-installed in $ac_dir" >&6; }
14948 elif test "x$target" = "x$host"; then
14949 # We can use an host tool
14950 LD_FOR_TARGET='$(LD)'
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14952 $as_echo "host tool" >&6; }
14953 else
14954 # We need a cross tool
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14956 $as_echo "pre-installed" >&6; }
14957 fi
14958 fi
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14961 $as_echo_n "checking where to find the target lipo... " >&6; }
14962 if test "x${build}" != "x${host}" ; then
14963 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14964 # We already found the complete path
14965 ac_dir=`dirname $LIPO_FOR_TARGET`
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14967 $as_echo "pre-installed in $ac_dir" >&6; }
14968 else
14969 # Canadian cross, just use what we found
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14971 $as_echo "pre-installed" >&6; }
14972 fi
14973 else
14974 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14975 # We already found the complete path
14976 ac_dir=`dirname $LIPO_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 LIPO_FOR_TARGET='$(LIPO)'
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 nm" >&5
14992 $as_echo_n "checking where to find the target nm... " >&6; }
14993 if test "x${build}" != "x${host}" ; then
14994 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14995 # We already found the complete path
14996 ac_dir=`dirname $NM_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 *" binutils "*) ;;
15008 *) ok=no ;;
15009 esac
15010
15011 if test $ok = yes; then
15012 # An in-tree tool is available and we can use it
15013 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15015 $as_echo "just compiled" >&6; }
15016 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15017 # We already found the complete path
15018 ac_dir=`dirname $NM_FOR_TARGET`
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15020 $as_echo "pre-installed in $ac_dir" >&6; }
15021 elif test "x$target" = "x$host"; then
15022 # We can use an host tool
15023 NM_FOR_TARGET='$(NM)'
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15025 $as_echo "host tool" >&6; }
15026 else
15027 # We need a cross tool
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15029 $as_echo "pre-installed" >&6; }
15030 fi
15031 fi
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
15034 $as_echo_n "checking where to find the target objcopy... " >&6; }
15035 if test "x${build}" != "x${host}" ; then
15036 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15037 # We already found the complete path
15038 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15040 $as_echo "pre-installed in $ac_dir" >&6; }
15041 else
15042 # Canadian cross, just use what we found
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15044 $as_echo "pre-installed" >&6; }
15045 fi
15046 else
15047 ok=yes
15048 case " ${configdirs} " in
15049 *" binutils "*) ;;
15050 *) ok=no ;;
15051 esac
15052
15053 if test $ok = yes; then
15054 # An in-tree tool is available and we can use it
15055 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15057 $as_echo "just compiled" >&6; }
15058 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15059 # We already found the complete path
15060 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15062 $as_echo "pre-installed in $ac_dir" >&6; }
15063 elif test "x$target" = "x$host"; then
15064 # We can use an host tool
15065 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15067 $as_echo "host tool" >&6; }
15068 else
15069 # We need a cross tool
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15071 $as_echo "pre-installed" >&6; }
15072 fi
15073 fi
15074
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15076 $as_echo_n "checking where to find the target objdump... " >&6; }
15077 if test "x${build}" != "x${host}" ; then
15078 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15079 # We already found the complete path
15080 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15082 $as_echo "pre-installed in $ac_dir" >&6; }
15083 else
15084 # Canadian cross, just use what we found
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15086 $as_echo "pre-installed" >&6; }
15087 fi
15088 else
15089 ok=yes
15090 case " ${configdirs} " in
15091 *" binutils "*) ;;
15092 *) ok=no ;;
15093 esac
15094
15095 if test $ok = yes; then
15096 # An in-tree tool is available and we can use it
15097 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15099 $as_echo "just compiled" >&6; }
15100 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15101 # We already found the complete path
15102 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15104 $as_echo "pre-installed in $ac_dir" >&6; }
15105 elif test "x$target" = "x$host"; then
15106 # We can use an host tool
15107 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15109 $as_echo "host tool" >&6; }
15110 else
15111 # We need a cross tool
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15113 $as_echo "pre-installed" >&6; }
15114 fi
15115 fi
15116
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15118 $as_echo_n "checking where to find the target otool... " >&6; }
15119 if test "x${build}" != "x${host}" ; then
15120 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15121 # We already found the complete path
15122 ac_dir=`dirname $OTOOL_FOR_TARGET`
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15124 $as_echo "pre-installed in $ac_dir" >&6; }
15125 else
15126 # Canadian cross, just use what we found
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15128 $as_echo "pre-installed" >&6; }
15129 fi
15130 else
15131 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15132 # We already found the complete path
15133 ac_dir=`dirname $OTOOL_FOR_TARGET`
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15135 $as_echo "pre-installed in $ac_dir" >&6; }
15136 elif test "x$target" = "x$host"; then
15137 # We can use an host tool
15138 OTOOL_FOR_TARGET='$(OTOOL)'
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15140 $as_echo "host tool" >&6; }
15141 else
15142 # We need a cross tool
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15144 $as_echo "pre-installed" >&6; }
15145 fi
15146 fi
15147
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15149 $as_echo_n "checking where to find the target ranlib... " >&6; }
15150 if test "x${build}" != "x${host}" ; then
15151 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15152 # We already found the complete path
15153 ac_dir=`dirname $RANLIB_FOR_TARGET`
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15155 $as_echo "pre-installed in $ac_dir" >&6; }
15156 else
15157 # Canadian cross, just use what we found
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15159 $as_echo "pre-installed" >&6; }
15160 fi
15161 else
15162 ok=yes
15163 case " ${configdirs} " in
15164 *" binutils "*) ;;
15165 *) ok=no ;;
15166 esac
15167
15168 if test $ok = yes; then
15169 # An in-tree tool is available and we can use it
15170 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15172 $as_echo "just compiled" >&6; }
15173 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15174 # We already found the complete path
15175 ac_dir=`dirname $RANLIB_FOR_TARGET`
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15177 $as_echo "pre-installed in $ac_dir" >&6; }
15178 elif test "x$target" = "x$host"; then
15179 # We can use an host tool
15180 RANLIB_FOR_TARGET='$(RANLIB)'
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15182 $as_echo "host tool" >&6; }
15183 else
15184 # We need a cross tool
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15186 $as_echo "pre-installed" >&6; }
15187 fi
15188 fi
15189
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15191 $as_echo_n "checking where to find the target readelf... " >&6; }
15192 if test "x${build}" != "x${host}" ; then
15193 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15194 # We already found the complete path
15195 ac_dir=`dirname $READELF_FOR_TARGET`
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15197 $as_echo "pre-installed in $ac_dir" >&6; }
15198 else
15199 # Canadian cross, just use what we found
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15201 $as_echo "pre-installed" >&6; }
15202 fi
15203 else
15204 ok=yes
15205 case " ${configdirs} " in
15206 *" binutils "*) ;;
15207 *) ok=no ;;
15208 esac
15209
15210 if test $ok = yes; then
15211 # An in-tree tool is available and we can use it
15212 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15214 $as_echo "just compiled" >&6; }
15215 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15216 # We already found the complete path
15217 ac_dir=`dirname $READELF_FOR_TARGET`
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15219 $as_echo "pre-installed in $ac_dir" >&6; }
15220 elif test "x$target" = "x$host"; then
15221 # We can use an host tool
15222 READELF_FOR_TARGET='$(READELF)'
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15224 $as_echo "host tool" >&6; }
15225 else
15226 # We need a cross tool
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15228 $as_echo "pre-installed" >&6; }
15229 fi
15230 fi
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15233 $as_echo_n "checking where to find the target strip... " >&6; }
15234 if test "x${build}" != "x${host}" ; then
15235 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15236 # We already found the complete path
15237 ac_dir=`dirname $STRIP_FOR_TARGET`
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15239 $as_echo "pre-installed in $ac_dir" >&6; }
15240 else
15241 # Canadian cross, just use what we found
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15243 $as_echo "pre-installed" >&6; }
15244 fi
15245 else
15246 ok=yes
15247 case " ${configdirs} " in
15248 *" binutils "*) ;;
15249 *) ok=no ;;
15250 esac
15251
15252 if test $ok = yes; then
15253 # An in-tree tool is available and we can use it
15254 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15256 $as_echo "just compiled" >&6; }
15257 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15258 # We already found the complete path
15259 ac_dir=`dirname $STRIP_FOR_TARGET`
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15261 $as_echo "pre-installed in $ac_dir" >&6; }
15262 elif test "x$target" = "x$host"; then
15263 # We can use an host tool
15264 STRIP_FOR_TARGET='$(STRIP)'
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15266 $as_echo "host tool" >&6; }
15267 else
15268 # We need a cross tool
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15270 $as_echo "pre-installed" >&6; }
15271 fi
15272 fi
15273
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15275 $as_echo_n "checking where to find the target windres... " >&6; }
15276 if test "x${build}" != "x${host}" ; then
15277 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15278 # We already found the complete path
15279 ac_dir=`dirname $WINDRES_FOR_TARGET`
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15281 $as_echo "pre-installed in $ac_dir" >&6; }
15282 else
15283 # Canadian cross, just use what we found
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15285 $as_echo "pre-installed" >&6; }
15286 fi
15287 else
15288 ok=yes
15289 case " ${configdirs} " in
15290 *" binutils "*) ;;
15291 *) ok=no ;;
15292 esac
15293
15294 if test $ok = yes; then
15295 # An in-tree tool is available and we can use it
15296 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15298 $as_echo "just compiled" >&6; }
15299 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15300 # We already found the complete path
15301 ac_dir=`dirname $WINDRES_FOR_TARGET`
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15303 $as_echo "pre-installed in $ac_dir" >&6; }
15304 elif test "x$target" = "x$host"; then
15305 # We can use an host tool
15306 WINDRES_FOR_TARGET='$(WINDRES)'
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15308 $as_echo "host tool" >&6; }
15309 else
15310 # We need a cross tool
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15312 $as_echo "pre-installed" >&6; }
15313 fi
15314 fi
15315
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15317 $as_echo_n "checking where to find the target windmc... " >&6; }
15318 if test "x${build}" != "x${host}" ; then
15319 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15320 # We already found the complete path
15321 ac_dir=`dirname $WINDMC_FOR_TARGET`
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15323 $as_echo "pre-installed in $ac_dir" >&6; }
15324 else
15325 # Canadian cross, just use what we found
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15327 $as_echo "pre-installed" >&6; }
15328 fi
15329 else
15330 ok=yes
15331 case " ${configdirs} " in
15332 *" binutils "*) ;;
15333 *) ok=no ;;
15334 esac
15335
15336 if test $ok = yes; then
15337 # An in-tree tool is available and we can use it
15338 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15340 $as_echo "just compiled" >&6; }
15341 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15342 # We already found the complete path
15343 ac_dir=`dirname $WINDMC_FOR_TARGET`
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15345 $as_echo "pre-installed in $ac_dir" >&6; }
15346 elif test "x$target" = "x$host"; then
15347 # We can use an host tool
15348 WINDMC_FOR_TARGET='$(WINDMC)'
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15350 $as_echo "host tool" >&6; }
15351 else
15352 # We need a cross tool
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15354 $as_echo "pre-installed" >&6; }
15355 fi
15356 fi
15357
15358
15359
15360
15361
15362 # Certain tools may need extra flags.
15363 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15364 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15365 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15366
15367 # When building target libraries, except in a Canadian cross, we use
15368 # the same toolchain as the compiler we just built.
15369 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15370 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15371 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15372 if test $host = $build; then
15373 case " $configdirs " in
15374 *" gcc "*)
15375 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15376 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15377 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15378 ;;
15379 esac
15380 fi
15381
15382
15383
15384
15385
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15387 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15388 # Check whether --enable-maintainer-mode was given.
15389 if test "${enable_maintainer_mode+set}" = set; then :
15390 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15391 else
15392 USE_MAINTAINER_MODE=no
15393 fi
15394
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15396 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15397
15398
15399 if test "$USE_MAINTAINER_MODE" = yes; then
15400 MAINTAINER_MODE_TRUE=
15401 MAINTAINER_MODE_FALSE='#'
15402 else
15403 MAINTAINER_MODE_TRUE='#'
15404 MAINTAINER_MODE_FALSE=
15405 fi
15406 MAINT=$MAINTAINER_MODE_TRUE
15407
15408 # ---------------------
15409 # GCC bootstrap support
15410 # ---------------------
15411
15412 # Stage specific cflags for build.
15413 stage1_cflags="-g"
15414 case $build in
15415 vax-*-*)
15416 case ${GCC} in
15417 yes) stage1_cflags="-g -Wa,-J" ;;
15418 *) stage1_cflags="-g -J" ;;
15419 esac ;;
15420 esac
15421
15422
15423
15424 # Enable --enable-checking in stage1 of the compiler.
15425 # Check whether --enable-stage1-checking was given.
15426 if test "${enable_stage1_checking+set}" = set; then :
15427 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15428 else
15429 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15430 # For --disable-checking or implicit --enable-checking=release, avoid
15431 # setting --enable-checking=gc in the default stage1 checking for LTO
15432 # bootstraps. See PR62077.
15433 case $BUILD_CONFIG in
15434 *lto*)
15435 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15436 *)
15437 stage1_checking=--enable-checking=yes,types;;
15438 esac
15439 if test "x$enable_checking" = x && \
15440 test -d ${srcdir}/gcc && \
15441 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15442 stage1_checking=--enable-checking=yes,types,extra
15443 fi
15444 else
15445 stage1_checking=--enable-checking=$enable_checking,types
15446 fi
15447 fi
15448
15449
15450
15451 # Enable -Werror in bootstrap stage2 and later.
15452 # Check whether --enable-werror was given.
15453 if test "${enable_werror+set}" = set; then :
15454 enableval=$enable_werror;
15455 case ${enable_werror} in
15456 yes) stage2_werror_flag="--enable-werror-always" ;;
15457 *) stage2_werror_flag="" ;;
15458 esac
15459
15460 else
15461
15462 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15463 case $BUILD_CONFIG in
15464 bootstrap-debug)
15465 stage2_werror_flag="--enable-werror-always" ;;
15466 "")
15467 stage2_werror_flag="--enable-werror-always" ;;
15468 esac
15469 fi
15470
15471 fi
15472
15473
15474
15475
15476 # Specify what files to not compare during bootstrap.
15477
15478 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15479 case "$target" in
15480 hppa*64*-*-hpux*) ;;
15481 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
15482 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
15483 esac
15484
15485
15486 ac_config_files="$ac_config_files Makefile"
15487
15488 cat >confcache <<\_ACEOF
15489 # This file is a shell script that caches the results of configure
15490 # tests run on this system so they can be shared between configure
15491 # scripts and configure runs, see configure's option --config-cache.
15492 # It is not useful on other systems. If it contains results you don't
15493 # want to keep, you may remove or edit it.
15494 #
15495 # config.status only pays attention to the cache file if you give it
15496 # the --recheck option to rerun configure.
15497 #
15498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15500 # following values.
15501
15502 _ACEOF
15503
15504 # The following way of writing the cache mishandles newlines in values,
15505 # but we know of no workaround that is simple, portable, and efficient.
15506 # So, we kill variables containing newlines.
15507 # Ultrix sh set writes to stderr and can't be redirected directly,
15508 # and sets the high bit in the cache file unless we assign to the vars.
15509 (
15510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15511 eval ac_val=\$$ac_var
15512 case $ac_val in #(
15513 *${as_nl}*)
15514 case $ac_var in #(
15515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15517 esac
15518 case $ac_var in #(
15519 _ | IFS | as_nl) ;; #(
15520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15521 *) { eval $ac_var=; unset $ac_var;} ;;
15522 esac ;;
15523 esac
15524 done
15525
15526 (set) 2>&1 |
15527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15528 *${as_nl}ac_space=\ *)
15529 # `set' does not quote correctly, so add quotes: double-quote
15530 # substitution turns \\\\ into \\, and sed turns \\ into \.
15531 sed -n \
15532 "s/'/'\\\\''/g;
15533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15534 ;; #(
15535 *)
15536 # `set' quotes correctly as required by POSIX, so do not add quotes.
15537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15538 ;;
15539 esac |
15540 sort
15541 ) |
15542 sed '
15543 /^ac_cv_env_/b end
15544 t clear
15545 :clear
15546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15547 t end
15548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15549 :end' >>confcache
15550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15551 if test -w "$cache_file"; then
15552 if test "x$cache_file" != "x/dev/null"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15554 $as_echo "$as_me: updating cache $cache_file" >&6;}
15555 if test ! -f "$cache_file" || test -h "$cache_file"; then
15556 cat confcache >"$cache_file"
15557 else
15558 case $cache_file in #(
15559 */* | ?:*)
15560 mv -f confcache "$cache_file"$$ &&
15561 mv -f "$cache_file"$$ "$cache_file" ;; #(
15562 *)
15563 mv -f confcache "$cache_file" ;;
15564 esac
15565 fi
15566 fi
15567 else
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15569 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15570 fi
15571 fi
15572 rm -f confcache
15573
15574 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15575 # Let make expand exec_prefix.
15576 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15577
15578 # Transform confdefs.h into DEFS.
15579 # Protect against shell expansion while executing Makefile rules.
15580 # Protect against Makefile macro expansion.
15581 #
15582 # If the first sed substitution is executed (which looks for macros that
15583 # take arguments), then branch to the quote section. Otherwise,
15584 # look for a macro that doesn't take arguments.
15585 ac_script='
15586 :mline
15587 /\\$/{
15588 N
15589 s,\\\n,,
15590 b mline
15591 }
15592 t clear
15593 :clear
15594 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15595 t quote
15596 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15597 t quote
15598 b any
15599 :quote
15600 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15601 s/\[/\\&/g
15602 s/\]/\\&/g
15603 s/\$/$$/g
15604 H
15605 :any
15606 ${
15607 g
15608 s/^\n//
15609 s/\n/ /g
15610 p
15611 }
15612 '
15613 DEFS=`sed -n "$ac_script" confdefs.h`
15614
15615
15616 ac_libobjs=
15617 ac_ltlibobjs=
15618 U=
15619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15620 # 1. Remove the extension, and $U if already installed.
15621 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15622 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15623 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15624 # will be set to the directory where LIBOBJS objects are built.
15625 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15626 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15627 done
15628 LIBOBJS=$ac_libobjs
15629
15630 LTLIBOBJS=$ac_ltlibobjs
15631
15632
15633
15634 : "${CONFIG_STATUS=./config.status}"
15635 ac_write_fail=0
15636 ac_clean_files_save=$ac_clean_files
15637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15640 as_write_fail=0
15641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15642 #! $SHELL
15643 # Generated by $as_me.
15644 # Run this file to recreate the current configuration.
15645 # Compiler output produced by configure, useful for debugging
15646 # configure, is in config.log if it exists.
15647
15648 debug=false
15649 ac_cs_recheck=false
15650 ac_cs_silent=false
15651
15652 SHELL=\${CONFIG_SHELL-$SHELL}
15653 export SHELL
15654 _ASEOF
15655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15656 ## -------------------- ##
15657 ## M4sh Initialization. ##
15658 ## -------------------- ##
15659
15660 # Be more Bourne compatible
15661 DUALCASE=1; export DUALCASE # for MKS sh
15662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15663 emulate sh
15664 NULLCMD=:
15665 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15666 # is contrary to our usage. Disable this feature.
15667 alias -g '${1+"$@"}'='"$@"'
15668 setopt NO_GLOB_SUBST
15669 else
15670 case `(set -o) 2>/dev/null` in #(
15671 *posix*) :
15672 set -o posix ;; #(
15673 *) :
15674 ;;
15675 esac
15676 fi
15677
15678
15679 as_nl='
15680 '
15681 export as_nl
15682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15686 # Prefer a ksh shell builtin over an external printf program on Solaris,
15687 # but without wasting forks for bash or zsh.
15688 if test -z "$BASH_VERSION$ZSH_VERSION" \
15689 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15690 as_echo='print -r --'
15691 as_echo_n='print -rn --'
15692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15693 as_echo='printf %s\n'
15694 as_echo_n='printf %s'
15695 else
15696 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15697 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15698 as_echo_n='/usr/ucb/echo -n'
15699 else
15700 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15701 as_echo_n_body='eval
15702 arg=$1;
15703 case $arg in #(
15704 *"$as_nl"*)
15705 expr "X$arg" : "X\\(.*\\)$as_nl";
15706 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15707 esac;
15708 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15709 '
15710 export as_echo_n_body
15711 as_echo_n='sh -c $as_echo_n_body as_echo'
15712 fi
15713 export as_echo_body
15714 as_echo='sh -c $as_echo_body as_echo'
15715 fi
15716
15717 # The user is always right.
15718 if test "${PATH_SEPARATOR+set}" != set; then
15719 PATH_SEPARATOR=:
15720 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15721 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15722 PATH_SEPARATOR=';'
15723 }
15724 fi
15725
15726
15727 # IFS
15728 # We need space, tab and new line, in precisely that order. Quoting is
15729 # there to prevent editors from complaining about space-tab.
15730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15731 # splitting by setting IFS to empty value.)
15732 IFS=" "" $as_nl"
15733
15734 # Find who we are. Look in the path if we contain no directory separator.
15735 as_myself=
15736 case $0 in #((
15737 *[\\/]* ) as_myself=$0 ;;
15738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15739 for as_dir in $PATH
15740 do
15741 IFS=$as_save_IFS
15742 test -z "$as_dir" && as_dir=.
15743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15744 done
15745 IFS=$as_save_IFS
15746
15747 ;;
15748 esac
15749 # We did not find ourselves, most probably we were run as `sh COMMAND'
15750 # in which case we are not to be found in the path.
15751 if test "x$as_myself" = x; then
15752 as_myself=$0
15753 fi
15754 if test ! -f "$as_myself"; then
15755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15756 exit 1
15757 fi
15758
15759 # Unset variables that we do not need and which cause bugs (e.g. in
15760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15761 # suppresses any "Segmentation fault" message there. '((' could
15762 # trigger a bug in pdksh 5.2.14.
15763 for as_var in BASH_ENV ENV MAIL MAILPATH
15764 do eval test x\${$as_var+set} = xset \
15765 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15766 done
15767 PS1='$ '
15768 PS2='> '
15769 PS4='+ '
15770
15771 # NLS nuisances.
15772 LC_ALL=C
15773 export LC_ALL
15774 LANGUAGE=C
15775 export LANGUAGE
15776
15777 # CDPATH.
15778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15779
15780
15781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15782 # ----------------------------------------
15783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15785 # script with STATUS, using 1 if that was 0.
15786 as_fn_error ()
15787 {
15788 as_status=$1; test $as_status -eq 0 && as_status=1
15789 if test "$4"; then
15790 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15792 fi
15793 $as_echo "$as_me: error: $2" >&2
15794 as_fn_exit $as_status
15795 } # as_fn_error
15796
15797
15798 # as_fn_set_status STATUS
15799 # -----------------------
15800 # Set $? to STATUS, without forking.
15801 as_fn_set_status ()
15802 {
15803 return $1
15804 } # as_fn_set_status
15805
15806 # as_fn_exit STATUS
15807 # -----------------
15808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15809 as_fn_exit ()
15810 {
15811 set +e
15812 as_fn_set_status $1
15813 exit $1
15814 } # as_fn_exit
15815
15816 # as_fn_unset VAR
15817 # ---------------
15818 # Portably unset VAR.
15819 as_fn_unset ()
15820 {
15821 { eval $1=; unset $1;}
15822 }
15823 as_unset=as_fn_unset
15824 # as_fn_append VAR VALUE
15825 # ----------------------
15826 # Append the text in VALUE to the end of the definition contained in VAR. Take
15827 # advantage of any shell optimizations that allow amortized linear growth over
15828 # repeated appends, instead of the typical quadratic growth present in naive
15829 # implementations.
15830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15831 eval 'as_fn_append ()
15832 {
15833 eval $1+=\$2
15834 }'
15835 else
15836 as_fn_append ()
15837 {
15838 eval $1=\$$1\$2
15839 }
15840 fi # as_fn_append
15841
15842 # as_fn_arith ARG...
15843 # ------------------
15844 # Perform arithmetic evaluation on the ARGs, and store the result in the
15845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15846 # must be portable across $(()) and expr.
15847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15848 eval 'as_fn_arith ()
15849 {
15850 as_val=$(( $* ))
15851 }'
15852 else
15853 as_fn_arith ()
15854 {
15855 as_val=`expr "$@" || test $? -eq 1`
15856 }
15857 fi # as_fn_arith
15858
15859
15860 if expr a : '\(a\)' >/dev/null 2>&1 &&
15861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15862 as_expr=expr
15863 else
15864 as_expr=false
15865 fi
15866
15867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15868 as_basename=basename
15869 else
15870 as_basename=false
15871 fi
15872
15873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15874 as_dirname=dirname
15875 else
15876 as_dirname=false
15877 fi
15878
15879 as_me=`$as_basename -- "$0" ||
15880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15881 X"$0" : 'X\(//\)$' \| \
15882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15883 $as_echo X/"$0" |
15884 sed '/^.*\/\([^/][^/]*\)\/*$/{
15885 s//\1/
15886 q
15887 }
15888 /^X\/\(\/\/\)$/{
15889 s//\1/
15890 q
15891 }
15892 /^X\/\(\/\).*/{
15893 s//\1/
15894 q
15895 }
15896 s/.*/./; q'`
15897
15898 # Avoid depending upon Character Ranges.
15899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15902 as_cr_digits='0123456789'
15903 as_cr_alnum=$as_cr_Letters$as_cr_digits
15904
15905 ECHO_C= ECHO_N= ECHO_T=
15906 case `echo -n x` in #(((((
15907 -n*)
15908 case `echo 'xy\c'` in
15909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15910 xy) ECHO_C='\c';;
15911 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15912 ECHO_T=' ';;
15913 esac;;
15914 *)
15915 ECHO_N='-n';;
15916 esac
15917
15918 rm -f conf$$ conf$$.exe conf$$.file
15919 if test -d conf$$.dir; then
15920 rm -f conf$$.dir/conf$$.file
15921 else
15922 rm -f conf$$.dir
15923 mkdir conf$$.dir 2>/dev/null
15924 fi
15925 if (echo >conf$$.file) 2>/dev/null; then
15926 if ln -s conf$$.file conf$$ 2>/dev/null; then
15927 as_ln_s='ln -s'
15928 # ... but there are two gotchas:
15929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15931 # In both cases, we have to default to `cp -pR'.
15932 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15933 as_ln_s='cp -pR'
15934 elif ln conf$$.file conf$$ 2>/dev/null; then
15935 as_ln_s=ln
15936 else
15937 as_ln_s='cp -pR'
15938 fi
15939 else
15940 as_ln_s='cp -pR'
15941 fi
15942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15943 rmdir conf$$.dir 2>/dev/null
15944
15945
15946 # as_fn_mkdir_p
15947 # -------------
15948 # Create "$as_dir" as a directory, including parents if necessary.
15949 as_fn_mkdir_p ()
15950 {
15951
15952 case $as_dir in #(
15953 -*) as_dir=./$as_dir;;
15954 esac
15955 test -d "$as_dir" || eval $as_mkdir_p || {
15956 as_dirs=
15957 while :; do
15958 case $as_dir in #(
15959 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15960 *) as_qdir=$as_dir;;
15961 esac
15962 as_dirs="'$as_qdir' $as_dirs"
15963 as_dir=`$as_dirname -- "$as_dir" ||
15964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15965 X"$as_dir" : 'X\(//\)[^/]' \| \
15966 X"$as_dir" : 'X\(//\)$' \| \
15967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15968 $as_echo X"$as_dir" |
15969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15970 s//\1/
15971 q
15972 }
15973 /^X\(\/\/\)[^/].*/{
15974 s//\1/
15975 q
15976 }
15977 /^X\(\/\/\)$/{
15978 s//\1/
15979 q
15980 }
15981 /^X\(\/\).*/{
15982 s//\1/
15983 q
15984 }
15985 s/.*/./; q'`
15986 test -d "$as_dir" && break
15987 done
15988 test -z "$as_dirs" || eval "mkdir $as_dirs"
15989 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15990
15991
15992 } # as_fn_mkdir_p
15993 if mkdir -p . 2>/dev/null; then
15994 as_mkdir_p='mkdir -p "$as_dir"'
15995 else
15996 test -d ./-p && rmdir ./-p
15997 as_mkdir_p=false
15998 fi
15999
16000
16001 # as_fn_executable_p FILE
16002 # -----------------------
16003 # Test if FILE is an executable regular file.
16004 as_fn_executable_p ()
16005 {
16006 test -f "$1" && test -x "$1"
16007 } # as_fn_executable_p
16008 as_test_x='test -x'
16009 as_executable_p=as_fn_executable_p
16010
16011 # Sed expression to map a string onto a valid CPP name.
16012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16013
16014 # Sed expression to map a string onto a valid variable name.
16015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16016
16017
16018 exec 6>&1
16019 ## ----------------------------------- ##
16020 ## Main body of $CONFIG_STATUS script. ##
16021 ## ----------------------------------- ##
16022 _ASEOF
16023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16024
16025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026 # Save the log message, to keep $0 and so on meaningful, and to
16027 # report actual input values of CONFIG_FILES etc. instead of their
16028 # values after options handling.
16029 ac_log="
16030 This file was extended by $as_me, which was
16031 generated by GNU Autoconf 2.69. Invocation command line was
16032
16033 CONFIG_FILES = $CONFIG_FILES
16034 CONFIG_HEADERS = $CONFIG_HEADERS
16035 CONFIG_LINKS = $CONFIG_LINKS
16036 CONFIG_COMMANDS = $CONFIG_COMMANDS
16037 $ $0 $@
16038
16039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16040 "
16041
16042 _ACEOF
16043
16044 case $ac_config_files in *"
16045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16046 esac
16047
16048
16049
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 # Files that config.status was made for.
16052 config_files="$ac_config_files"
16053
16054 _ACEOF
16055
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 ac_cs_usage="\
16058 \`$as_me' instantiates files and other configuration actions
16059 from templates according to the current configuration. Unless the files
16060 and actions are specified as TAGs, all are instantiated by default.
16061
16062 Usage: $0 [OPTION]... [TAG]...
16063
16064 -h, --help print this help, then exit
16065 -V, --version print version number and configuration settings, then exit
16066 --config print configuration, then exit
16067 -q, --quiet, --silent
16068 do not print progress messages
16069 -d, --debug don't remove temporary files
16070 --recheck update $as_me by reconfiguring in the same conditions
16071 --file=FILE[:TEMPLATE]
16072 instantiate the configuration file FILE
16073
16074 Configuration files:
16075 $config_files
16076
16077 Report bugs to the package provider."
16078
16079 _ACEOF
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16082 ac_cs_version="\\
16083 config.status
16084 configured by $0, generated by GNU Autoconf 2.69,
16085 with options \\"\$ac_cs_config\\"
16086
16087 Copyright (C) 2012 Free Software Foundation, Inc.
16088 This config.status script is free software; the Free Software Foundation
16089 gives unlimited permission to copy, distribute and modify it."
16090
16091 ac_pwd='$ac_pwd'
16092 srcdir='$srcdir'
16093 INSTALL='$INSTALL'
16094 AWK='$AWK'
16095 test -n "\$AWK" || AWK=awk
16096 _ACEOF
16097
16098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16099 # The default lists apply if the user does not specify any file.
16100 ac_need_defaults=:
16101 while test $# != 0
16102 do
16103 case $1 in
16104 --*=?*)
16105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16106 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16107 ac_shift=:
16108 ;;
16109 --*=)
16110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16111 ac_optarg=
16112 ac_shift=:
16113 ;;
16114 *)
16115 ac_option=$1
16116 ac_optarg=$2
16117 ac_shift=shift
16118 ;;
16119 esac
16120
16121 case $ac_option in
16122 # Handling of the options.
16123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16124 ac_cs_recheck=: ;;
16125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16126 $as_echo "$ac_cs_version"; exit ;;
16127 --config | --confi | --conf | --con | --co | --c )
16128 $as_echo "$ac_cs_config"; exit ;;
16129 --debug | --debu | --deb | --de | --d | -d )
16130 debug=: ;;
16131 --file | --fil | --fi | --f )
16132 $ac_shift
16133 case $ac_optarg in
16134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16135 '') as_fn_error $? "missing file argument" ;;
16136 esac
16137 as_fn_append CONFIG_FILES " '$ac_optarg'"
16138 ac_need_defaults=false;;
16139 --he | --h | --help | --hel | -h )
16140 $as_echo "$ac_cs_usage"; exit ;;
16141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16143 ac_cs_silent=: ;;
16144
16145 # This is an error.
16146 -*) as_fn_error $? "unrecognized option: \`$1'
16147 Try \`$0 --help' for more information." ;;
16148
16149 *) as_fn_append ac_config_targets " $1"
16150 ac_need_defaults=false ;;
16151
16152 esac
16153 shift
16154 done
16155
16156 ac_configure_extra_args=
16157
16158 if $ac_cs_silent; then
16159 exec 6>/dev/null
16160 ac_configure_extra_args="$ac_configure_extra_args --silent"
16161 fi
16162
16163 _ACEOF
16164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16165 if \$ac_cs_recheck; then
16166 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16167 shift
16168 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16169 CONFIG_SHELL='$SHELL'
16170 export CONFIG_SHELL
16171 exec "\$@"
16172 fi
16173
16174 _ACEOF
16175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16176 exec 5>>config.log
16177 {
16178 echo
16179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16180 ## Running $as_me. ##
16181 _ASBOX
16182 $as_echo "$ac_log"
16183 } >&5
16184
16185 _ACEOF
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 #
16188 # INIT-COMMANDS
16189 #
16190 extrasub_build="$extrasub_build"
16191 extrasub_host="$extrasub_host"
16192 extrasub_target="$extrasub_target"
16193
16194 _ACEOF
16195
16196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197
16198 # Handling of arguments.
16199 for ac_config_target in $ac_config_targets
16200 do
16201 case $ac_config_target in
16202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16203
16204 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16205 esac
16206 done
16207
16208
16209 # If the user did not use the arguments to specify the items to instantiate,
16210 # then the envvar interface is used. Set only those that are not.
16211 # We use the long form for the default assignment because of an extremely
16212 # bizarre bug on SunOS 4.1.3.
16213 if $ac_need_defaults; then
16214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16215 fi
16216
16217 # Have a temporary directory for convenience. Make it in the build tree
16218 # simply because there is no reason against having it here, and in addition,
16219 # creating and moving files from /tmp can sometimes cause problems.
16220 # Hook for its removal unless debugging.
16221 # Note that there is a small window in which the directory will not be cleaned:
16222 # after its creation but before its name has been assigned to `$tmp'.
16223 $debug ||
16224 {
16225 tmp= ac_tmp=
16226 trap 'exit_status=$?
16227 : "${ac_tmp:=$tmp}"
16228 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16229 ' 0
16230 trap 'as_fn_exit 1' 1 2 13 15
16231 }
16232 # Create a (secure) tmp directory for tmp files.
16233
16234 {
16235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16236 test -d "$tmp"
16237 } ||
16238 {
16239 tmp=./conf$$-$RANDOM
16240 (umask 077 && mkdir "$tmp")
16241 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16242 ac_tmp=$tmp
16243
16244 # Set up the scripts for CONFIG_FILES section.
16245 # No need to generate them if there are no CONFIG_FILES.
16246 # This happens for instance with `./config.status config.h'.
16247 if test -n "$CONFIG_FILES"; then
16248
16249 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16250 ac_cs_awk_getline=:
16251 ac_cs_awk_pipe_init=
16252 ac_cs_awk_read_file='
16253 while ((getline aline < (F[key])) > 0)
16254 print(aline)
16255 close(F[key])'
16256 ac_cs_awk_pipe_fini=
16257 else
16258 ac_cs_awk_getline=false
16259 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16260 ac_cs_awk_read_file='
16261 print "|#_!!_#|"
16262 print "cat " F[key] " &&"
16263 '$ac_cs_awk_pipe_init
16264 # The final `:' finishes the AND list.
16265 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16266 fi
16267 ac_cr=`echo X | tr X '\015'`
16268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16269 # But we know of no other shell where ac_cr would be empty at this
16270 # point, so we can use a bashism as a fallback.
16271 if test "x$ac_cr" = x; then
16272 eval ac_cr=\$\'\\r\'
16273 fi
16274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16276 ac_cs_awk_cr='\\r'
16277 else
16278 ac_cs_awk_cr=$ac_cr
16279 fi
16280
16281 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16282 _ACEOF
16283
16284 # Create commands to substitute file output variables.
16285 {
16286 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16287 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16288 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16289 echo "_ACAWK" &&
16290 echo "_ACEOF"
16291 } >conf$$files.sh &&
16292 . ./conf$$files.sh ||
16293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16294 rm -f conf$$files.sh
16295
16296 {
16297 echo "cat >conf$$subs.awk <<_ACEOF" &&
16298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16299 echo "_ACEOF"
16300 } >conf$$subs.sh ||
16301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16303 ac_delim='%!_!# '
16304 for ac_last_try in false false false false false :; do
16305 . ./conf$$subs.sh ||
16306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16307
16308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16309 if test $ac_delim_n = $ac_delim_num; then
16310 break
16311 elif $ac_last_try; then
16312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16313 else
16314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16315 fi
16316 done
16317 rm -f conf$$subs.sh
16318
16319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16320 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16321 _ACEOF
16322 sed -n '
16323 h
16324 s/^/S["/; s/!.*/"]=/
16325 p
16326 g
16327 s/^[^!]*!//
16328 :repl
16329 t repl
16330 s/'"$ac_delim"'$//
16331 t delim
16332 :nl
16333 h
16334 s/\(.\{148\}\)..*/\1/
16335 t more1
16336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16337 p
16338 n
16339 b repl
16340 :more1
16341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16342 p
16343 g
16344 s/.\{148\}//
16345 t nl
16346 :delim
16347 h
16348 s/\(.\{148\}\)..*/\1/
16349 t more2
16350 s/["\\]/\\&/g; s/^/"/; s/$/"/
16351 p
16352 b
16353 :more2
16354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16355 p
16356 g
16357 s/.\{148\}//
16358 t delim
16359 ' <conf$$subs.awk | sed '
16360 /^[^""]/{
16361 N
16362 s/\n//
16363 }
16364 ' >>$CONFIG_STATUS || ac_write_fail=1
16365 rm -f conf$$subs.awk
16366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16367 _ACAWK
16368 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16369 for (key in S) S_is_set[key] = 1
16370 FS = "\a"
16371 \$ac_cs_awk_pipe_init
16372 }
16373 {
16374 line = $ 0
16375 nfields = split(line, field, "@")
16376 substed = 0
16377 len = length(field[1])
16378 for (i = 2; i < nfields; i++) {
16379 key = field[i]
16380 keylen = length(key)
16381 if (S_is_set[key]) {
16382 value = S[key]
16383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16384 len += length(value) + length(field[++i])
16385 substed = 1
16386 } else
16387 len += 1 + keylen
16388 }
16389 if (nfields == 3 && !substed) {
16390 key = field[2]
16391 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16392 \$ac_cs_awk_read_file
16393 next
16394 }
16395 }
16396 print line
16397 }
16398 \$ac_cs_awk_pipe_fini
16399 _ACAWK
16400 _ACEOF
16401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16404 else
16405 cat
16406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16407 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16408 _ACEOF
16409
16410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16412 # trailing colons and then remove the whole line if VPATH becomes empty
16413 # (actually we leave an empty line to preserve line numbers).
16414 if test "x$srcdir" = x.; then
16415 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16416 h
16417 s///
16418 s/^/:/
16419 s/[ ]*$/:/
16420 s/:\$(srcdir):/:/g
16421 s/:\${srcdir}:/:/g
16422 s/:@srcdir@:/:/g
16423 s/^:*//
16424 s/:*$//
16425 x
16426 s/\(=[ ]*\).*/\1/
16427 G
16428 s/\n//
16429 s/^[^=]*=[ ]*$//
16430 }'
16431 fi
16432
16433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16434 fi # test -n "$CONFIG_FILES"
16435
16436
16437 eval set X " :F $CONFIG_FILES "
16438 shift
16439 for ac_tag
16440 do
16441 case $ac_tag in
16442 :[FHLC]) ac_mode=$ac_tag; continue;;
16443 esac
16444 case $ac_mode$ac_tag in
16445 :[FHL]*:*);;
16446 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16447 :[FH]-) ac_tag=-:-;;
16448 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16449 esac
16450 ac_save_IFS=$IFS
16451 IFS=:
16452 set x $ac_tag
16453 IFS=$ac_save_IFS
16454 shift
16455 ac_file=$1
16456 shift
16457
16458 case $ac_mode in
16459 :L) ac_source=$1;;
16460 :[FH])
16461 ac_file_inputs=
16462 for ac_f
16463 do
16464 case $ac_f in
16465 -) ac_f="$ac_tmp/stdin";;
16466 *) # Look for the file first in the build tree, then in the source tree
16467 # (if the path is not absolute). The absolute path cannot be DOS-style,
16468 # because $ac_f cannot contain `:'.
16469 test -f "$ac_f" ||
16470 case $ac_f in
16471 [\\/$]*) false;;
16472 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16473 esac ||
16474 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16475 esac
16476 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16477 as_fn_append ac_file_inputs " '$ac_f'"
16478 done
16479
16480 # Let's still pretend it is `configure' which instantiates (i.e., don't
16481 # use $as_me), people would be surprised to read:
16482 # /* config.h. Generated by config.status. */
16483 configure_input='Generated from '`
16484 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16485 `' by configure.'
16486 if test x"$ac_file" != x-; then
16487 configure_input="$ac_file. $configure_input"
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16489 $as_echo "$as_me: creating $ac_file" >&6;}
16490 fi
16491 # Neutralize special characters interpreted by sed in replacement strings.
16492 case $configure_input in #(
16493 *\&* | *\|* | *\\* )
16494 ac_sed_conf_input=`$as_echo "$configure_input" |
16495 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16496 *) ac_sed_conf_input=$configure_input;;
16497 esac
16498
16499 case $ac_tag in
16500 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16502 esac
16503 ;;
16504 esac
16505
16506 ac_dir=`$as_dirname -- "$ac_file" ||
16507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16508 X"$ac_file" : 'X\(//\)[^/]' \| \
16509 X"$ac_file" : 'X\(//\)$' \| \
16510 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16511 $as_echo X"$ac_file" |
16512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16513 s//\1/
16514 q
16515 }
16516 /^X\(\/\/\)[^/].*/{
16517 s//\1/
16518 q
16519 }
16520 /^X\(\/\/\)$/{
16521 s//\1/
16522 q
16523 }
16524 /^X\(\/\).*/{
16525 s//\1/
16526 q
16527 }
16528 s/.*/./; q'`
16529 as_dir="$ac_dir"; as_fn_mkdir_p
16530 ac_builddir=.
16531
16532 case "$ac_dir" in
16533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16534 *)
16535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16536 # A ".." for each directory in $ac_dir_suffix.
16537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16538 case $ac_top_builddir_sub in
16539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16541 esac ;;
16542 esac
16543 ac_abs_top_builddir=$ac_pwd
16544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16545 # for backward compatibility:
16546 ac_top_builddir=$ac_top_build_prefix
16547
16548 case $srcdir in
16549 .) # We are building in place.
16550 ac_srcdir=.
16551 ac_top_srcdir=$ac_top_builddir_sub
16552 ac_abs_top_srcdir=$ac_pwd ;;
16553 [\\/]* | ?:[\\/]* ) # Absolute name.
16554 ac_srcdir=$srcdir$ac_dir_suffix;
16555 ac_top_srcdir=$srcdir
16556 ac_abs_top_srcdir=$srcdir ;;
16557 *) # Relative name.
16558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16559 ac_top_srcdir=$ac_top_build_prefix$srcdir
16560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16561 esac
16562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16563
16564
16565 case $ac_mode in
16566 :F)
16567 #
16568 # CONFIG_FILE
16569 #
16570
16571 case $INSTALL in
16572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16573 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16574 esac
16575 _ACEOF
16576
16577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16578 # If the template does not know about datarootdir, expand it.
16579 # FIXME: This hack should be removed a few years after 2.60.
16580 ac_datarootdir_hack=; ac_datarootdir_seen=
16581 ac_sed_dataroot='
16582 /datarootdir/ {
16583 p
16584 q
16585 }
16586 /@datadir@/p
16587 /@docdir@/p
16588 /@infodir@/p
16589 /@localedir@/p
16590 /@mandir@/p'
16591 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16592 *datarootdir*) ac_datarootdir_seen=yes;;
16593 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16595 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16596 _ACEOF
16597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16598 ac_datarootdir_hack='
16599 s&@datadir@&$datadir&g
16600 s&@docdir@&$docdir&g
16601 s&@infodir@&$infodir&g
16602 s&@localedir@&$localedir&g
16603 s&@mandir@&$mandir&g
16604 s&\\\${datarootdir}&$datarootdir&g' ;;
16605 esac
16606 _ACEOF
16607
16608 # Neutralize VPATH when `$srcdir' = `.'.
16609 # Shell code in configure.ac might set extrasub.
16610 # FIXME: do we really want to maintain this feature?
16611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16612 ac_sed_extra="$ac_vpsub
16613 $extrasub
16614 _ACEOF
16615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16616 :t
16617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16618 s|@configure_input@|$ac_sed_conf_input|;t t
16619 s&@top_builddir@&$ac_top_builddir_sub&;t t
16620 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16621 s&@srcdir@&$ac_srcdir&;t t
16622 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16623 s&@top_srcdir@&$ac_top_srcdir&;t t
16624 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16625 s&@builddir@&$ac_builddir&;t t
16626 s&@abs_builddir@&$ac_abs_builddir&;t t
16627 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16628 s&@INSTALL@&$ac_INSTALL&;t t
16629 $ac_datarootdir_hack
16630 "
16631 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16632 if $ac_cs_awk_getline; then
16633 $AWK -f "$ac_tmp/subs.awk"
16634 else
16635 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16636 fi \
16637 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16638
16639 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16640 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16641 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16642 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16644 which seems to be undefined. Please make sure it is defined" >&5
16645 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16646 which seems to be undefined. Please make sure it is defined" >&2;}
16647
16648 rm -f "$ac_tmp/stdin"
16649 case $ac_file in
16650 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16651 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16652 esac \
16653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16654 ;;
16655
16656
16657
16658 esac
16659
16660
16661 case $ac_file$ac_mode in
16662 "Makefile":F) sed "$extrasub_build" Makefile |
16663 sed "$extrasub_host" |
16664 sed "$extrasub_target" > mf$$
16665 mv -f mf$$ Makefile ;;
16666
16667 esac
16668 done # for ac_tag
16669
16670
16671 as_fn_exit 0
16672 _ACEOF
16673 ac_clean_files=$ac_clean_files_save
16674
16675 test $ac_write_fail = 0 ||
16676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16677
16678
16679 # configure is writing to config.log, and then calls config.status.
16680 # config.status does its own redirection, appending to config.log.
16681 # Unfortunately, on DOS this fails, as config.log is still kept open
16682 # by configure, so config.status won't be able to write to it; its
16683 # output is simply discarded. So we exec the FD to /dev/null,
16684 # effectively closing config.log, so it can be properly (re)opened and
16685 # appended to by config.status. When coming back to configure, we
16686 # need to make the FD available again.
16687 if test "$no_create" != yes; then
16688 ac_cs_success=:
16689 ac_config_status_args=
16690 test "$silent" = yes &&
16691 ac_config_status_args="$ac_config_status_args --quiet"
16692 exec 5>/dev/null
16693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16694 exec 5>>config.log
16695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16696 # would make configure fail if this is the last instruction.
16697 $ac_cs_success || as_fn_exit 1
16698 fi
16699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16702 fi
16703