]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - configure
Do not build libctf for targets that do not use the ELF file format.
[thirdparty/binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 READELF
620 OBJDUMP
621 OBJCOPY
622 WINDMC
623 WINDRES
624 STRIP
625 RANLIB
626 NM
627 LIPO
628 LD
629 DLLTOOL
630 AS
631 AR
632 RUNTEST
633 EXPECT
634 MAKEINFO
635 FLEX
636 LEX
637 M4
638 BISON
639 YACC
640 WINDRES_FOR_BUILD
641 WINDMC_FOR_BUILD
642 RANLIB_FOR_BUILD
643 NM_FOR_BUILD
644 LD_FOR_BUILD
645 LDFLAGS_FOR_BUILD
646 GOC_FOR_BUILD
647 GFORTRAN_FOR_BUILD
648 DLLTOOL_FOR_BUILD
649 CXX_FOR_BUILD
650 CXXFLAGS_FOR_BUILD
651 CFLAGS_FOR_BUILD
652 CC_FOR_BUILD
653 AS_FOR_BUILD
654 AR_FOR_BUILD
655 target_configdirs
656 configdirs
657 build_configdirs
658 INSTALL_GDB_TK
659 GDB_TK
660 CONFIGURE_GDB_TK
661 build_tooldir
662 tooldir
663 GCC_SHLIB_SUBDIR
664 RPATH_ENVVAR
665 target_configargs
666 host_configargs
667 build_configargs
668 BUILD_CONFIG
669 LDFLAGS_FOR_TARGET
670 CXXFLAGS_FOR_TARGET
671 CFLAGS_FOR_TARGET
672 DEBUG_PREFIX_CFLAGS_FOR_TARGET
673 SYSROOT_CFLAGS_FOR_TARGET
674 get_gcc_base_ver
675 extra_host_zlib_configure_flags
676 extra_host_libiberty_configure_flags
677 stage1_languages
678 host_shared
679 extra_linker_plugin_flags
680 extra_linker_plugin_configure_flags
681 islinc
682 isllibs
683 poststage1_ldflags
684 poststage1_libs
685 stage1_ldflags
686 stage1_libs
687 extra_isl_gmp_configure_flags
688 extra_mpc_mpfr_configure_flags
689 extra_mpc_gmp_configure_flags
690 extra_mpfr_configure_flags
691 gmpinc
692 gmplibs
693 do_compare
694 GNATMAKE
695 GNATBIND
696 ac_ct_CXX
697 CXXFLAGS
698 CXX
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 extra_liboffloadmic_configure_flags
707 target_subdir
708 host_subdir
709 build_subdir
710 build_libsubdir
711 AWK
712 SED
713 LN_S
714 LN
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_os
719 target_vendor
720 target_cpu
721 target
722 host_os
723 host_vendor
724 host_cpu
725 host
726 target_noncanonical
727 host_noncanonical
728 build_noncanonical
729 build_os
730 build_vendor
731 build_cpu
732 build
733 TOPLEVEL_CONFIGURE_ARGUMENTS
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='serialization_dependencies
773 host_makefile_frag
774 target_makefile_frag
775 alphaieee_frag
776 ospace_frag'
777 ac_user_opts='
778 enable_option_checking
779 with_build_libsubdir
780 with_system_zlib
781 enable_as_accelerator_for
782 enable_offload_targets
783 enable_gold
784 enable_ld
785 enable_compressed_debug_sections
786 enable_libquadmath
787 enable_libquadmath_support
788 enable_libada
789 enable_libssp
790 enable_libstdcxx
791 enable_liboffloadmic
792 enable_bootstrap
793 with_mpc
794 with_mpc_include
795 with_mpc_lib
796 with_mpfr_dir
797 with_mpfr
798 with_mpfr_include
799 with_mpfr_lib
800 with_gmp_dir
801 with_gmp
802 with_gmp_include
803 with_gmp_lib
804 with_stage1_libs
805 with_stage1_ldflags
806 with_boot_libs
807 with_boot_ldflags
808 with_isl
809 with_isl_include
810 with_isl_lib
811 enable_isl_version_check
812 enable_lto
813 enable_linker_plugin_configure_flags
814 enable_linker_plugin_flags
815 enable_host_shared
816 enable_stage1_languages
817 enable_objc_gc
818 with_target_bdw_gc
819 with_target_bdw_gc_include
820 with_target_bdw_gc_lib
821 with_gcc_major_version_only
822 with_build_sysroot
823 with_debug_prefix_map
824 with_build_config
825 enable_vtable_verify
826 enable_serial_configure
827 with_build_time_tools
828 enable_maintainer_mode
829 enable_stage1_checking
830 enable_werror
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 CXX
841 CXXFLAGS
842 CCC
843 build_configargs
844 host_configargs
845 target_configargs
846 AR
847 AS
848 DLLTOOL
849 LD
850 LIPO
851 NM
852 RANLIB
853 STRIP
854 WINDRES
855 WINDMC
856 OBJCOPY
857 OBJDUMP
858 READELF
859 CC_FOR_TARGET
860 CXX_FOR_TARGET
861 GCC_FOR_TARGET
862 GFORTRAN_FOR_TARGET
863 GOC_FOR_TARGET
864 AR_FOR_TARGET
865 AS_FOR_TARGET
866 DLLTOOL_FOR_TARGET
867 LD_FOR_TARGET
868 LIPO_FOR_TARGET
869 NM_FOR_TARGET
870 OBJCOPY_FOR_TARGET
871 OBJDUMP_FOR_TARGET
872 RANLIB_FOR_TARGET
873 READELF_FOR_TARGET
874 STRIP_FOR_TARGET
875 WINDRES_FOR_TARGET
876 WINDMC_FOR_TARGET'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 ;;
1283
1284 esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1381 fi
1382 else
1383 ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 case $srcdir in
1404 *" "*)
1405 as_fn_error $? "path to source, $srcdir, contains spaces"
1406 ;;
1407 esac
1408 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1409
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures this package to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 --target=TARGET configure for building compilers for TARGET [HOST]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494
1495 cat <<\_ACEOF
1496
1497 Optional Features:
1498 --disable-option-checking ignore unrecognized --enable/--with options
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --enable-as-accelerator-for=ARG
1502 build as offload target compiler. Specify offload
1503 host triple by ARG
1504 --enable-offload-targets=LIST
1505 enable offloading to devices from comma-separated
1506 LIST of TARGET[=DIR]. Use optional path to find
1507 offload target compiler during the build
1508 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1509 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1510 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1511 Enable compressed debug sections for gas, gold or ld
1512 by default
1513 --disable-libquadmath do not build libquadmath directory
1514 --disable-libquadmath-support
1515 disable libquadmath support for Fortran
1516 --enable-libada build libada directory
1517 --enable-libssp build libssp directory
1518 --disable-libstdcxx do not build libstdc++-v3 directory
1519 --enable-liboffloadmic=ARG
1520 build liboffloadmic [ARG={no,host,target}]
1521 --enable-bootstrap enable bootstrapping [yes if native build]
1522 --disable-isl-version-check
1523 disable check for isl version
1524 --enable-lto enable link time optimization support
1525 --enable-linker-plugin-configure-flags=FLAGS
1526 additional flags for configuring linker plugins
1527 [none]
1528 --enable-linker-plugin-flags=FLAGS
1529 additional flags for configuring and building linker
1530 plugins [none]
1531 --enable-host-shared build host code as shared libraries
1532 --enable-stage1-languages[=all]
1533 choose additional languages to build during stage1.
1534 Mostly useful for compiler development
1535 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1536 Objective-C runtime
1537 --enable-vtable-verify Enable vtable verification feature
1538 --enable-serial-[{host,target,build}-]configure
1539 force sequential configuration of sub-packages for
1540 the host, target or build machine, or all
1541 sub-packages
1542 --enable-maintainer-mode
1543 enable make rules and dependencies not useful (and
1544 sometimes confusing) to the casual installer
1545 --enable-stage1-checking[=all]
1546 choose additional checking for stage1 of the
1547 compiler
1548 --enable-werror enable -Werror in bootstrap stage2 and later
1549
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-build-libsubdir=DIR Directory where to find libraries for build system
1554 --with-system-zlib use installed libz
1555 --with-mpc=PATH specify prefix directory for installed MPC package.
1556 Equivalent to --with-mpc-include=PATH/include plus
1557 --with-mpc-lib=PATH/lib
1558 --with-mpc-include=PATH specify directory for installed MPC include files
1559 --with-mpc-lib=PATH specify directory for the installed MPC library
1560 --with-mpfr-dir=PATH this option has been REMOVED
1561 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1562 Equivalent to --with-mpfr-include=PATH/include plus
1563 --with-mpfr-lib=PATH/lib
1564 --with-mpfr-include=PATH
1565 specify directory for installed MPFR include files
1566 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1567 --with-gmp-dir=PATH this option has been REMOVED
1568 --with-gmp=PATH specify prefix directory for the installed GMP
1569 package. Equivalent to
1570 --with-gmp-include=PATH/include plus
1571 --with-gmp-lib=PATH/lib
1572 --with-gmp-include=PATH specify directory for installed GMP include files
1573 --with-gmp-lib=PATH specify directory for the installed GMP library
1574 --with-stage1-libs=LIBS libraries for stage1
1575 --with-stage1-ldflags=FLAGS
1576 linker flags for stage1
1577 --with-boot-libs=LIBS libraries for stage2 and later
1578 --with-boot-ldflags=FLAGS
1579 linker flags for stage2 and later
1580 --with-isl=PATH Specify prefix directory for the installed isl
1581 package. Equivalent to
1582 --with-isl-include=PATH/include plus
1583 --with-isl-lib=PATH/lib
1584 --with-isl-include=PATH Specify directory for installed isl include files
1585 --with-isl-lib=PATH Specify the directory for the installed isl library
1586 --with-target-bdw-gc=PATHLIST
1587 specify prefix directory for installed bdw-gc
1588 package. Equivalent to
1589 --with-target-bdw-gc-include=PATH/include plus
1590 --with-target-bdw-gc-lib=PATH/lib
1591 --with-target-bdw-gc-include=PATHLIST
1592 specify directories for installed bdw-gc include
1593 files
1594 --with-target-bdw-gc-lib=PATHLIST
1595 specify directories for installed bdw-gc library
1596 --with-gcc-major-version-only
1597 use only GCC major number in filesystem paths
1598 --with-build-sysroot=SYSROOT
1599 use sysroot as the system root during the build
1600 --with-debug-prefix-map='A=B C=D ...'
1601 map A to B, C to D ... in debug information
1602 --with-build-config='NAME NAME2...'
1603 use config/NAME.mk build configuration
1604 --with-build-time-tools=PATH
1605 use given path to find target tools during the build
1606
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
1617 build_configargs
1618 additional configure arguments for build directories
1619 host_configargs
1620 additional configure arguments for host directories
1621 target_configargs
1622 additional configure arguments for target directories
1623 AR AR for the host
1624 AS AS for the host
1625 DLLTOOL DLLTOOL for the host
1626 LD LD for the host
1627 LIPO LIPO for the host
1628 NM NM for the host
1629 RANLIB RANLIB for the host
1630 STRIP STRIP for the host
1631 WINDRES WINDRES for the host
1632 WINDMC WINDMC for the host
1633 OBJCOPY OBJCOPY for the host
1634 OBJDUMP OBJDUMP for the host
1635 READELF READELF for the host
1636 CC_FOR_TARGET
1637 CC for the target
1638 CXX_FOR_TARGET
1639 CXX for the target
1640 GCC_FOR_TARGET
1641 GCC for the target
1642 GFORTRAN_FOR_TARGET
1643 GFORTRAN for the target
1644 GOC_FOR_TARGET
1645 GOC for the target
1646 AR_FOR_TARGET
1647 AR for the target
1648 AS_FOR_TARGET
1649 AS for the target
1650 DLLTOOL_FOR_TARGET
1651 DLLTOOL for the target
1652 LD_FOR_TARGET
1653 LD for the target
1654 LIPO_FOR_TARGET
1655 LIPO for the target
1656 NM_FOR_TARGET
1657 NM for the target
1658 OBJCOPY_FOR_TARGET
1659 OBJCOPY for the target
1660 OBJDUMP_FOR_TARGET
1661 OBJDUMP for the target
1662 RANLIB_FOR_TARGET
1663 RANLIB for the target
1664 READELF_FOR_TARGET
1665 READELF for the target
1666 STRIP_FOR_TARGET
1667 STRIP for the target
1668 WINDRES_FOR_TARGET
1669 WINDRES for the target
1670 WINDMC_FOR_TARGET
1671 WINDMC for the target
1672
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1675
1676 Report bugs to the package provider.
1677 _ACEOF
1678 ac_status=$?
1679 fi
1680
1681 if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 continue
1687 ac_builddir=.
1688
1689 case "$ac_dir" in
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *)
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 esac ;;
1699 esac
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1704
1705 case $srcdir in
1706 .) # We are building in place.
1707 ac_srcdir=.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1714 *) # Relative name.
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1718 esac
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1724 echo &&
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure" --help=recursive
1729 else
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 fi || ac_status=$?
1732 cd "$ac_pwd" || { ac_status=$?; break; }
1733 done
1734 fi
1735
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1738 cat <<\_ACEOF
1739 configure
1740 generated by GNU Autoconf 2.69
1741
1742 Copyright (C) 2012 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1745 _ACEOF
1746 exit
1747 fi
1748
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1752
1753 # ac_fn_c_try_compile LINENO
1754 # --------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_compile
1790
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_cxx_try_compile
1828
1829 # ac_fn_cxx_try_link LINENO
1830 # -------------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_link ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864 fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_cxx_try_link
1874
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_link ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919 } # ac_fn_c_try_link
1920 cat >config.log <<_ACEOF
1921 This file contains any messages produced by compilers while
1922 running configure, to aid debugging if configure makes a mistake.
1923
1924 It was created by $as_me, which was
1925 generated by GNU Autoconf 2.69. Invocation command line was
1926
1927 $ $0 $@
1928
1929 _ACEOF
1930 exec 5>>config.log
1931 {
1932 cat <<_ASUNAME
1933 ## --------- ##
1934 ## Platform. ##
1935 ## --------- ##
1936
1937 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954 _ASUNAME
1955
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 $as_echo "PATH: $as_dir"
1962 done
1963 IFS=$as_save_IFS
1964
1965 } >&5
1966
1967 cat >&5 <<_ACEOF
1968
1969
1970 ## ----------- ##
1971 ## Core tests. ##
1972 ## ----------- ##
1973
1974 _ACEOF
1975
1976
1977 # Keep a trace of the command line.
1978 # Strip out --no-create and --no-recursion so they do not pile up.
1979 # Strip out --silent because we don't want to record it for future runs.
1980 # Also quote any args containing shell meta-characters.
1981 # Make two passes to allow for proper duplicate-argument suppression.
1982 ac_configure_args=
1983 ac_configure_args0=
1984 ac_configure_args1=
1985 ac_must_keep_next=false
1986 for ac_pass in 1 2
1987 do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
1995 *\'*)
1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 esac
1998 case $ac_pass in
1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 2)
2001 as_fn_append ac_configure_args1 " '$ac_arg'"
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
2017 as_fn_append ac_configure_args " '$ac_arg'"
2018 ;;
2019 esac
2020 done
2021 done
2022 { ac_configure_args0=; unset ac_configure_args0;}
2023 { ac_configure_args1=; unset ac_configure_args1;}
2024
2025 # When interrupted or exit'd, cleanup temporary files, and complete
2026 # config.log. We remove comments because anyway the quotes in there
2027 # would cause problems or look ugly.
2028 # WARNING: Use '\'' to represent an apostrophe within the trap.
2029 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030 trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
2035 $as_echo "## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##"
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
2040 (
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
2056 (set) 2>&1 |
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2059 sed -n \
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
2063 *)
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ;;
2066 esac |
2067 sort
2068 )
2069 echo
2070
2071 $as_echo "## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##"
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
2086 $as_echo "## ------------------- ##
2087 ## File substitutions. ##
2088 ## ------------------- ##"
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
2102 $as_echo "## ----------- ##
2103 ## confdefs.h. ##
2104 ## ----------- ##"
2105 echo
2106 cat confdefs.h
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2112 } >&5
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115 exit $exit_status
2116 ' 0
2117 for ac_signal in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2119 done
2120 ac_signal=0
2121
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest* confdefs.h
2124
2125 $as_echo "/* confdefs.h */" > confdefs.h
2126
2127 # Predefined preprocessor variables.
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2151 _ACEOF
2152
2153
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2156 ac_site_file1=NONE
2157 ac_site_file2=NONE
2158 if test -n "$CONFIG_SITE"; then
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168 else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2171 fi
2172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173 do
2174 test "x$ac_site_file" = xNONE && continue
2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 as_fn_error $? "failed to load site script $ac_site_file
2183 See \`config.log' for more details" "$LINENO" 5; }
2184 fi
2185 done
2186
2187 if test -r "$cache_file"; then
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192 $as_echo "$as_me: loading cache $cache_file" >&6;}
2193 case $cache_file in
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
2196 esac
2197 fi
2198 else
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200 $as_echo "$as_me: creating cache $cache_file" >&6;}
2201 >$cache_file
2202 fi
2203
2204 # Check that the precious variables saved in the cache have kept the same
2205 # value.
2206 ac_cache_corrupted=false
2207 for ac_var in $ac_precious_vars; do
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
2212 case $ac_old_set,$ac_new_set in
2213 set,)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,set)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2251 esac
2252 fi
2253 done
2254 if $ac_cache_corrupted; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2260 fi
2261 ## -------------------- ##
2262 ## Main body of script. ##
2263 ## -------------------- ##
2264
2265 ac_ext=c
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272
2273
2274
2275
2276
2277
2278 progname=$0
2279 # if PWD already has a value, it is probably wrong.
2280 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2281
2282 # Export original configure arguments for use by sub-configures.
2283 # Quote arguments with shell meta charatcers.
2284 TOPLEVEL_CONFIGURE_ARGUMENTS=
2285 set -- "$progname" "$@"
2286 for ac_arg
2287 do
2288 case "$ac_arg" in
2289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2290 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2291 # if the argument is of the form -foo=baz, quote the baz part only
2292 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2293 *) ;;
2294 esac
2295 # Add the quoted argument to the list.
2296 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2297 done
2298 if test "$silent" = yes; then
2299 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2300 fi
2301 # Remove the initial space we just introduced and, as these will be
2302 # expanded by make, quote '$'.
2303 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2304
2305
2306 # Find the build, host, and target systems.
2307 ac_aux_dir=
2308 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2309 if test -f "$ac_dir/install-sh"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/install-sh -c"
2312 break
2313 elif test -f "$ac_dir/install.sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install.sh -c"
2316 break
2317 elif test -f "$ac_dir/shtool"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/shtool install -c"
2320 break
2321 fi
2322 done
2323 if test -z "$ac_aux_dir"; then
2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2325 fi
2326
2327 # These three variables are undocumented and unsupported,
2328 # and are intended to be withdrawn in a future Autoconf release.
2329 # They can cause serious problems if a builder's source tree is in a directory
2330 # whose full name contains unusual characters.
2331 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2332 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2333 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2334
2335
2336 # Make sure we can run config.sub.
2337 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2338 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2339
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2341 $as_echo_n "checking build system type... " >&6; }
2342 if ${ac_cv_build+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 ac_build_alias=$build_alias
2346 test "x$ac_build_alias" = x &&
2347 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2348 test "x$ac_build_alias" = x &&
2349 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2350 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2351 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2352
2353 fi
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2355 $as_echo "$ac_cv_build" >&6; }
2356 case $ac_cv_build in
2357 *-*-*) ;;
2358 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2359 esac
2360 build=$ac_cv_build
2361 ac_save_IFS=$IFS; IFS='-'
2362 set x $ac_cv_build
2363 shift
2364 build_cpu=$1
2365 build_vendor=$2
2366 shift; shift
2367 # Remember, the first character of IFS is used to create $*,
2368 # except with old shells:
2369 build_os=$*
2370 IFS=$ac_save_IFS
2371 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2372
2373
2374 case ${build_alias} in
2375 "") build_noncanonical=${build} ;;
2376 *) build_noncanonical=${build_alias} ;;
2377 esac
2378
2379
2380
2381 case ${host_alias} in
2382 "") host_noncanonical=${build_noncanonical} ;;
2383 *) host_noncanonical=${host_alias} ;;
2384 esac
2385
2386
2387
2388 case ${target_alias} in
2389 "") target_noncanonical=${host_noncanonical} ;;
2390 *) target_noncanonical=${target_alias} ;;
2391 esac
2392
2393
2394
2395
2396 test "$host_noncanonical" = "$target_noncanonical" &&
2397 test "$program_prefix$program_suffix$program_transform_name" = \
2398 NONENONEs,x,x, &&
2399 program_transform_name=s,y,y,
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2402 $as_echo_n "checking host system type... " >&6; }
2403 if ${ac_cv_host+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test "x$host_alias" = x; then
2407 ac_cv_host=$ac_cv_build
2408 else
2409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2411 fi
2412
2413 fi
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2415 $as_echo "$ac_cv_host" >&6; }
2416 case $ac_cv_host in
2417 *-*-*) ;;
2418 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2419 esac
2420 host=$ac_cv_host
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_host
2423 shift
2424 host_cpu=$1
2425 host_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 host_os=$*
2430 IFS=$ac_save_IFS
2431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2432
2433
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2435 $as_echo_n "checking target system type... " >&6; }
2436 if ${ac_cv_target+:} false; then :
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test "x$target_alias" = x; then
2440 ac_cv_target=$ac_cv_host
2441 else
2442 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2444 fi
2445
2446 fi
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2448 $as_echo "$ac_cv_target" >&6; }
2449 case $ac_cv_target in
2450 *-*-*) ;;
2451 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2452 esac
2453 target=$ac_cv_target
2454 ac_save_IFS=$IFS; IFS='-'
2455 set x $ac_cv_target
2456 shift
2457 target_cpu=$1
2458 target_vendor=$2
2459 shift; shift
2460 # Remember, the first character of IFS is used to create $*,
2461 # except with old shells:
2462 target_os=$*
2463 IFS=$ac_save_IFS
2464 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2465
2466
2467 # The aliases save the names the user supplied, while $host etc.
2468 # will get canonicalized.
2469 test -n "$target_alias" &&
2470 test "$program_prefix$program_suffix$program_transform_name" = \
2471 NONENONEs,x,x, &&
2472 program_prefix=${target_alias}-
2473
2474 test "$program_prefix" != NONE &&
2475 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2476 # Use a double $ so make ignores it.
2477 test "$program_suffix" != NONE &&
2478 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2479 # Double any \ or $.
2480 # By default was `s,x,x', remove it if useless.
2481 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2482 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2483
2484
2485
2486 # Get 'install' or 'install-sh' and its variants.
2487 # Find a good install program. We prefer a C program (faster),
2488 # so one script is as good as another. But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2493 # AIX /bin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 # Reject install programs that cannot install multiple files.
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2503 if test -z "$INSTALL"; then
2504 if ${ac_cv_path_install+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in #((
2514 ./ | .// | /[cC]/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2528 :
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
2533 else
2534 rm -rf conftest.one conftest.two conftest.dir
2535 echo one > conftest.one
2536 echo two > conftest.two
2537 mkdir conftest.dir
2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539 test -s conftest.one && test -s conftest.two &&
2540 test -s conftest.dir/conftest.one &&
2541 test -s conftest.dir/conftest.two
2542 then
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544 break 3
2545 fi
2546 fi
2547 fi
2548 done
2549 done
2550 ;;
2551 esac
2552
2553 done
2554 IFS=$as_save_IFS
2555
2556 rm -rf conftest.one conftest.two conftest.dir
2557
2558 fi
2559 if test "${ac_cv_path_install+set}" = set; then
2560 INSTALL=$ac_cv_path_install
2561 else
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for INSTALL within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 INSTALL=$ac_install_sh
2567 fi
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570 $as_echo "$INSTALL" >&6; }
2571
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2581 $as_echo_n "checking whether ln works... " >&6; }
2582 if ${acx_cv_prog_LN+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 rm -f conftestdata_t
2586 echo >conftestdata_f
2587 if ln conftestdata_f conftestdata_t 2>/dev/null
2588 then
2589 acx_cv_prog_LN=ln
2590 else
2591 acx_cv_prog_LN=no
2592 fi
2593 rm -f conftestdata_f conftestdata_t
2594
2595 fi
2596 if test $acx_cv_prog_LN = no; then
2597 LN="cp"
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2599 $as_echo "no, using $LN" >&6; }
2600 else
2601 LN="$acx_cv_prog_LN"
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2604 fi
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2607 $as_echo_n "checking whether ln -s works... " >&6; }
2608 LN_S=$as_ln_s
2609 if test "$LN_S" = "ln -s"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2614 $as_echo "no, using $LN_S" >&6; }
2615 fi
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2618 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2619 if ${ac_cv_path_SED+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2623 for ac_i in 1 2 3 4 5 6 7; do
2624 ac_script="$ac_script$as_nl$ac_script"
2625 done
2626 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2627 { ac_script=; unset ac_script;}
2628 if test -z "$SED"; then
2629 ac_path_SED_found=false
2630 # Loop through the user's path and test for each of PROGNAME-LIST
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_prog in sed gsed; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2639 as_fn_executable_p "$ac_path_SED" || continue
2640 # Check for GNU ac_path_SED and select it if it is found.
2641 # Check for GNU $ac_path_SED
2642 case `"$ac_path_SED" --version 2>&1` in
2643 *GNU*)
2644 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2645 *)
2646 ac_count=0
2647 $as_echo_n 0123456789 >"conftest.in"
2648 while :
2649 do
2650 cat "conftest.in" "conftest.in" >"conftest.tmp"
2651 mv "conftest.tmp" "conftest.in"
2652 cp "conftest.in" "conftest.nl"
2653 $as_echo '' >> "conftest.nl"
2654 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2656 as_fn_arith $ac_count + 1 && ac_count=$as_val
2657 if test $ac_count -gt ${ac_path_SED_max-0}; then
2658 # Best one so far, save it but keep looking for a better one
2659 ac_cv_path_SED="$ac_path_SED"
2660 ac_path_SED_max=$ac_count
2661 fi
2662 # 10*(2^10) chars as input seems more than enough
2663 test $ac_count -gt 10 && break
2664 done
2665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2666 esac
2667
2668 $ac_path_SED_found && break 3
2669 done
2670 done
2671 done
2672 IFS=$as_save_IFS
2673 if test -z "$ac_cv_path_SED"; then
2674 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2675 fi
2676 else
2677 ac_cv_path_SED=$SED
2678 fi
2679
2680 fi
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2682 $as_echo "$ac_cv_path_SED" >&6; }
2683 SED="$ac_cv_path_SED"
2684 rm -f conftest.sed
2685
2686 for ac_prog in gawk mawk nawk awk
2687 do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_AWK+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$AWK"; then
2696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_AWK="$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 AWK=$ac_cv_prog_AWK
2716 if test -n "$AWK"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2718 $as_echo "$AWK" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725 test -n "$AWK" && break
2726 done
2727
2728
2729 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2730
2731 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2732 # a relative path.
2733 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2734 INSTALL="${srcpwd}/install-sh -c"
2735 fi
2736
2737 # Set srcdir to "." if that's what it is.
2738 # This is important for multilib support.
2739 pwd=`${PWDCMD-pwd}`
2740 if test "${pwd}" = "${srcpwd}" ; then
2741 srcdir=.
2742 fi
2743
2744 topsrcdir=$srcpwd
2745
2746 extra_host_args=
2747
2748 ### To add a new directory to the tree, first choose whether it is a target
2749 ### or a host dependent tool. Then put it into the appropriate list
2750 ### (library or tools, host or target), doing a dependency sort.
2751
2752 # Subdirs will be configured in the order listed in build_configdirs,
2753 # configdirs, or target_configdirs; see the serialization section below.
2754
2755 # Dependency sorting is only needed when *configuration* must be done in
2756 # a particular order. In all cases a dependency should be specified in
2757 # the Makefile, whether or not it's implicitly specified here.
2758
2759 # Double entries in build_configdirs, configdirs, or target_configdirs may
2760 # cause circular dependencies and break everything horribly.
2761
2762 # these library is used by various programs built for the build
2763 # environment
2764 #
2765 build_libs="build-libiberty build-libcpp"
2766
2767 # these tools are built for the build environment
2768 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2769
2770 # these libraries are used by various programs built for the host environment
2771 #f
2772 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2773
2774 # these tools are built for the host environment
2775 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2776 # know that we are building the simulator.
2777 # binutils, gas and ld appear in that order because it makes sense to run
2778 # "make check" in that particular order.
2779 # If --enable-gold is used, "gold" may replace "ld".
2780 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2781
2782 # these libraries are built for the target environment, and are built after
2783 # the host libraries and the host tools (which may be a cross compiler)
2784 # Note that libiberty is not a target library.
2785 target_libraries="target-libgcc \
2786 target-libbacktrace \
2787 target-libgloss \
2788 target-newlib \
2789 target-libgomp \
2790 target-liboffloadmic \
2791 target-libhsail-rt \
2792 target-libatomic \
2793 target-libitm \
2794 target-libstdc++-v3 \
2795 target-libsanitizer \
2796 target-libvtv \
2797 target-libssp \
2798 target-libquadmath \
2799 target-libgfortran \
2800 target-libffi \
2801 target-libobjc \
2802 target-libada \
2803 target-libgo"
2804
2805 # these tools are built using the target libraries, and are intended to
2806 # run only in the target environment
2807 #
2808 # note: any program that *uses* libraries that are in the "target_libraries"
2809 # list belongs in this list.
2810 #
2811 target_tools="target-rda"
2812
2813 ################################################################################
2814
2815 ## All tools belong in one of the four categories, and are assigned above
2816 ## We assign ${configdirs} this way to remove all embedded newlines. This
2817 ## is important because configure will choke if they ever get through.
2818 ## ${configdirs} is directories we build using the host tools.
2819 ## ${target_configdirs} is directories we build using the target tools.
2820 configdirs=`echo ${host_libs} ${host_tools}`
2821 target_configdirs=`echo ${target_libraries} ${target_tools}`
2822 build_configdirs=`echo ${build_libs} ${build_tools}`
2823
2824
2825
2826 ################################################################################
2827
2828 srcname="gnu development package"
2829
2830 # This gets set non-empty for some net releases of packages.
2831 appdirs=""
2832
2833 # Define is_cross_compiler to save on calls to 'test'.
2834 is_cross_compiler=
2835 if test x"${host}" = x"${target}" ; then
2836 is_cross_compiler=no
2837 else
2838 is_cross_compiler=yes
2839 fi
2840
2841 # Find the build and target subdir names.
2842
2843 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2844 # have matching libraries, they should use host libraries: Makefile.tpl
2845 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2846 # However, they still use the build modules, because the corresponding
2847 # host modules (e.g. bison) are only built for the host when bootstrap
2848 # finishes. So:
2849 # - build_subdir is where we find build modules, and never changes.
2850 # - build_libsubdir is where we find build libraries, and can be overridden.
2851
2852 # Prefix 'build-' so this never conflicts with target_subdir.
2853 build_subdir="build-${build_noncanonical}"
2854
2855 # Check whether --with-build-libsubdir was given.
2856 if test "${with_build_libsubdir+set}" = set; then :
2857 withval=$with_build_libsubdir; build_libsubdir="$withval"
2858 else
2859 build_libsubdir="$build_subdir"
2860 fi
2861
2862 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2863 if ( test $srcdir = . && test -d gcc ) \
2864 || test -d $srcdir/../host-${host_noncanonical}; then
2865 host_subdir="host-${host_noncanonical}"
2866 else
2867 host_subdir=.
2868 fi
2869 # No prefix.
2870 target_subdir=${target_noncanonical}
2871
2872 # Be sure to cover against remnants of an in-tree build.
2873 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2874 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2875 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2876 fi
2877
2878 # Skipdirs are removed silently.
2879 skipdirs=
2880 # Noconfigdirs are removed loudly.
2881 noconfigdirs=""
2882
2883 use_gnu_ld=
2884 # Make sure we don't let GNU ld be added if we didn't want it.
2885 if test x$with_gnu_ld = xno ; then
2886 use_gnu_ld=no
2887 noconfigdirs="$noconfigdirs ld gold"
2888 fi
2889
2890 use_gnu_as=
2891 # Make sure we don't let GNU as be added if we didn't want it.
2892 if test x$with_gnu_as = xno ; then
2893 use_gnu_as=no
2894 noconfigdirs="$noconfigdirs gas"
2895 fi
2896
2897 use_included_zlib=
2898
2899 # Check whether --with-system-zlib was given.
2900 if test "${with_system_zlib+set}" = set; then :
2901 withval=$with_system_zlib;
2902 fi
2903
2904 # Make sure we don't let ZLIB be added if we didn't want it.
2905 if test x$with_system_zlib = xyes ; then
2906 use_included_zlib=no
2907 noconfigdirs="$noconfigdirs zlib"
2908 fi
2909
2910 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2911 # is provided.
2912 if test x$with_system_readline = xyes ; then
2913 noconfigdirs="$noconfigdirs readline"
2914 fi
2915
2916 # some tools are so dependent upon X11 that if we're not building with X,
2917 # it's not even worth trying to configure, much less build, that tool.
2918
2919 case ${with_x} in
2920 yes | "") ;; # the default value for this tree is that X11 is available
2921 no)
2922 skipdirs="${skipdirs} tk itcl libgui"
2923 # We won't be able to build gdbtk without X.
2924 enable_gdbtk=no
2925 ;;
2926 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2927 esac
2928
2929 # Some are only suitable for cross toolchains.
2930 # Remove these if host=target.
2931 cross_only="target-libgloss target-newlib target-opcodes"
2932
2933 case $is_cross_compiler in
2934 no) skipdirs="${skipdirs} ${cross_only}" ;;
2935 esac
2936
2937 # If both --with-headers and --with-libs are specified, default to
2938 # --without-newlib.
2939 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2940 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2941 if test x"${with_newlib}" = x ; then
2942 with_newlib=no
2943 fi
2944 fi
2945
2946 # Recognize --with-newlib/--without-newlib.
2947 case ${with_newlib} in
2948 no) skipdirs="${skipdirs} target-newlib" ;;
2949 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2950 esac
2951
2952 # Check whether --enable-as-accelerator-for was given.
2953 if test "${enable_as_accelerator_for+set}" = set; then :
2954 enableval=$enable_as_accelerator_for;
2955 fi
2956
2957
2958 # Check whether --enable-offload-targets was given.
2959 if test "${enable_offload_targets+set}" = set; then :
2960 enableval=$enable_offload_targets;
2961 if test x"$enable_offload_targets" = x; then
2962 as_fn_error $? "no offload targets specified" "$LINENO" 5
2963 fi
2964
2965 else
2966 enable_offload_targets=
2967 fi
2968
2969
2970 # Handle --enable-gold, --enable-ld.
2971 # --disable-gold [--enable-ld]
2972 # Build only ld. Default option.
2973 # --enable-gold [--enable-ld]
2974 # Build both gold and ld. Install gold as "ld.gold", install ld
2975 # as "ld.bfd" and "ld".
2976 # --enable-gold=default [--enable-ld]
2977 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2978 # install ld as "ld.bfd".
2979 # --enable-gold[=default] --disable-ld
2980 # Build only gold, which is then installed as both "ld.gold" and "ld".
2981 # --enable-gold --enable-ld=default
2982 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2983 # and ld.bfd).
2984 # In other words, ld is default
2985 # --enable-gold=default --enable-ld=default
2986 # Error.
2987
2988 default_ld=
2989 # Check whether --enable-gold was given.
2990 if test "${enable_gold+set}" = set; then :
2991 enableval=$enable_gold; ENABLE_GOLD=$enableval
2992 else
2993 ENABLE_GOLD=no
2994 fi
2995
2996 case "${ENABLE_GOLD}" in
2997 yes|default)
2998 # Check for ELF target.
2999 is_elf=no
3000 case "${target}" in
3001 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3002 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3003 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3004 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3005 case "${target}" in
3006 *-*-linux*aout* | *-*-linux*oldld*)
3007 ;;
3008 *)
3009 is_elf=yes
3010 ;;
3011 esac
3012 esac
3013
3014 if test "$is_elf" = "yes"; then
3015 # Check for target supported by gold.
3016 case "${target}" in
3017 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3018 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3019 configdirs="$configdirs gold"
3020 if test x${ENABLE_GOLD} = xdefault; then
3021 default_ld=gold
3022 fi
3023 ENABLE_GOLD=yes
3024 ;;
3025 esac
3026 fi
3027 ;;
3028 no)
3029 ;;
3030 *)
3031 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3032 ;;
3033 esac
3034
3035 # Check whether --enable-ld was given.
3036 if test "${enable_ld+set}" = set; then :
3037 enableval=$enable_ld; ENABLE_LD=$enableval
3038 else
3039 ENABLE_LD=yes
3040 fi
3041
3042
3043 case "${ENABLE_LD}" in
3044 default)
3045 if test x${default_ld} != x; then
3046 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3047 fi
3048 ;;
3049 yes)
3050 ;;
3051 no)
3052 if test x${ENABLE_GOLD} != xyes; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3054 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3055 fi
3056 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3057 ;;
3058 *)
3059 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3060 ;;
3061 esac
3062
3063 # PR gas/19109
3064 # Decide the default method for compressing debug sections.
3065 # Provide a configure time option to override our default.
3066 # Check whether --enable-compressed_debug_sections was given.
3067 if test "${enable_compressed_debug_sections+set}" = set; then :
3068 enableval=$enable_compressed_debug_sections;
3069 if test x"$enable_compressed_debug_sections" = xyes; then
3070 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3071 fi
3072
3073 else
3074 enable_compressed_debug_sections=
3075 fi
3076
3077
3078 # Configure extra directories which are host specific
3079
3080 case "${host}" in
3081 *-cygwin*)
3082 configdirs="$configdirs libtermcap" ;;
3083 esac
3084
3085 # A target can indicate whether a language isn't supported for some reason.
3086 # Only spaces may be used in this macro; not newlines or tabs.
3087 unsupported_languages=
3088
3089 # Remove more programs from consideration, based on the host or
3090 # target this usually means that a port of the program doesn't
3091 # exist yet.
3092
3093 case "${host}" in
3094 i[3456789]86-*-msdosdjgpp*)
3095 noconfigdirs="$noconfigdirs tcl tk itcl"
3096 ;;
3097 esac
3098
3099
3100 # Check whether --enable-libquadmath was given.
3101 if test "${enable_libquadmath+set}" = set; then :
3102 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3103 else
3104 ENABLE_LIBQUADMATH=yes
3105 fi
3106
3107 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libquadmath"
3109 fi
3110
3111
3112 # Check whether --enable-libquadmath-support was given.
3113 if test "${enable_libquadmath_support+set}" = set; then :
3114 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3115 else
3116 ENABLE_LIBQUADMATH_SUPPORT=yes
3117 fi
3118
3119 enable_libquadmath_support=
3120 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3121 enable_libquadmath_support=no
3122 fi
3123
3124
3125 # Check whether --enable-libada was given.
3126 if test "${enable_libada+set}" = set; then :
3127 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3128 else
3129 ENABLE_LIBADA=yes
3130 fi
3131
3132 if test "${ENABLE_LIBADA}" != "yes" ; then
3133 noconfigdirs="$noconfigdirs gnattools"
3134 fi
3135
3136 # Check whether --enable-libssp was given.
3137 if test "${enable_libssp+set}" = set; then :
3138 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3139 else
3140 ENABLE_LIBSSP=yes
3141 fi
3142
3143
3144 # Check whether --enable-libstdcxx was given.
3145 if test "${enable_libstdcxx+set}" = set; then :
3146 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3147 else
3148 ENABLE_LIBSTDCXX=default
3149 fi
3150
3151 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3152 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3153 fi
3154
3155 # If this is accelerator compiler and its target is intelmic we enable
3156 # target liboffloadmic by default. If this is compiler with offloading
3157 # for intelmic we enable host liboffloadmic by default. Otherwise
3158 # liboffloadmic is disabled by default.
3159 # Check whether --enable-liboffloadmic was given.
3160 if test "${enable_liboffloadmic+set}" = set; then :
3161 enableval=$enable_liboffloadmic; case "$enableval" in
3162 no | host | target)
3163 enable_liboffloadmic=$enableval ;;
3164 *)
3165 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3166 esac
3167 else
3168 if test x"$enable_as_accelerator_for" != x; then
3169 case "${target}" in
3170 *-intelmic-* | *-intelmicemul-*)
3171 enable_liboffloadmic=target
3172 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3173 ;;
3174 *)
3175 enable_liboffloadmic=no
3176 ;;
3177 esac
3178 else
3179 case "${enable_offload_targets}" in
3180 *-intelmic-* | *-intelmicemul-*)
3181 enable_liboffloadmic=host
3182 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3183 ;;
3184 *)
3185 enable_liboffloadmic=no
3186 ;;
3187 esac
3188 fi
3189 fi
3190
3191
3192
3193 # Enable libgomp by default on hosted POSIX systems, and a few others.
3194 if test x$enable_libgomp = x ; then
3195 case "${target}" in
3196 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3197 ;;
3198 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3199 ;;
3200 *-*-solaris2* | *-*-hpux11*)
3201 ;;
3202 *-*-darwin* | *-*-aix*)
3203 ;;
3204 nvptx*-*-*)
3205 ;;
3206 *)
3207 noconfigdirs="$noconfigdirs target-libgomp"
3208 ;;
3209 esac
3210 fi
3211
3212 # Disable libatomic on unsupported systems.
3213 if test -d ${srcdir}/libatomic; then
3214 if test x$enable_libatomic = x; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3216 $as_echo_n "checking for libatomic support... " >&6; }
3217 if (srcdir=${srcdir}/libatomic; \
3218 . ${srcdir}/configure.tgt; \
3219 test -n "$UNSUPPORTED")
3220 then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 noconfigdirs="$noconfigdirs target-libatomic"
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227 fi
3228 fi
3229 fi
3230
3231 # Disable liboffloadmic on unsupported systems.
3232 if test -d ${srcdir}/liboffloadmic; then
3233 if test x$enable_liboffloadmic != xno; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3235 $as_echo_n "checking for liboffloadmic support... " >&6; }
3236 if (srcdir=${srcdir}/liboffloadmic; \
3237 . ${srcdir}/configure.tgt; \
3238 test -n "$UNSUPPORTED")
3239 then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 noconfigdirs="$noconfigdirs target-liboffloadmic"
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245 $as_echo "yes" >&6; }
3246 fi
3247 fi
3248 fi
3249
3250 # Disable libitm on unsupported systems.
3251 if test -d ${srcdir}/libitm; then
3252 if test x$enable_libitm = x; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3254 $as_echo_n "checking for libitm support... " >&6; }
3255 if (srcdir=${srcdir}/libitm; \
3256 . ${srcdir}/configure.tgt; \
3257 test -n "$UNSUPPORTED")
3258 then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 noconfigdirs="$noconfigdirs target-libitm"
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3265 fi
3266 fi
3267 fi
3268
3269 # Disable libsanitizer on unsupported systems.
3270 if test -d ${srcdir}/libsanitizer; then
3271 if test x$enable_libsanitizer = x; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3273 $as_echo_n "checking for libsanitizer support... " >&6; }
3274 if (srcdir=${srcdir}/libsanitizer; \
3275 . ${srcdir}/configure.tgt; \
3276 test -n "$UNSUPPORTED")
3277 then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 noconfigdirs="$noconfigdirs target-libsanitizer"
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284 fi
3285 fi
3286 fi
3287
3288 # Disable libvtv on unsupported systems.
3289 if test -d ${srcdir}/libvtv; then
3290 if test x$enable_libvtv = x; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3292 $as_echo_n "checking for libvtv support... " >&6; }
3293 if (srcdir=${srcdir}/libvtv; \
3294 . ${srcdir}/configure.tgt; \
3295 test "$VTV_SUPPORTED" != "yes")
3296 then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 noconfigdirs="$noconfigdirs target-libvtv"
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3303 fi
3304 fi
3305 fi
3306
3307
3308 # Disable libhsail-rt on unsupported systems.
3309 if test -d ${srcdir}/libhsail-rt; then
3310 if test x$enable_libhsail_rt = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3312 $as_echo_n "checking for libhsail-rt support... " >&6; }
3313 if (srcdir=${srcdir}/libhsail-rt; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 unsupported_languages="$unsupported_languages brig"
3320 # This implicitly disables also target-libhsail-rt as it won't
3321 # get added to the build without BRIG FE.
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325 fi
3326 fi
3327 fi
3328
3329
3330 # Disable libquadmath for some systems.
3331 case "${target}" in
3332 avr-*-*)
3333 noconfigdirs="$noconfigdirs target-libquadmath"
3334 ;;
3335 # libquadmath is unused on AIX and libquadmath build process use of
3336 # LD_LIBRARY_PATH can break AIX bootstrap.
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libquadmath"
3339 ;;
3340 esac
3341
3342 # Disable libssp for some systems.
3343 case "${target}" in
3344 avr-*-*)
3345 # No hosted I/O support.
3346 noconfigdirs="$noconfigdirs target-libssp"
3347 ;;
3348 powerpc-*-aix* | rs6000-*-aix*)
3349 noconfigdirs="$noconfigdirs target-libssp"
3350 ;;
3351 rl78-*-*)
3352 # libssp uses a misaligned load to trigger a fault, but the RL78
3353 # doesn't fault for those - instead, it gives a build-time error
3354 # for explicit misaligned loads.
3355 noconfigdirs="$noconfigdirs target-libssp"
3356 ;;
3357 visium-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 esac
3362
3363 # Disable libstdc++-v3 for some systems.
3364 # Allow user to override this if they pass --enable-libstdc++-v3
3365 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3366 case "${target}" in
3367 *-*-vxworks*)
3368 # VxWorks uses the Dinkumware C++ library.
3369 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3370 ;;
3371 arm*-wince-pe*)
3372 # the C++ libraries don't build on top of CE's C libraries
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 avr-*-*)
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
3378 ft32-*-*)
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380 ;;
3381 esac
3382 fi
3383
3384 # Disable Fortran for some systems.
3385 case "${target}" in
3386 mmix-*-*)
3387 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3388 unsupported_languages="$unsupported_languages fortran"
3389 ;;
3390 esac
3391
3392 # Disable libffi for some systems.
3393 case "${target}" in
3394 powerpc-*-darwin*)
3395 ;;
3396 i[3456789]86-*-darwin*)
3397 ;;
3398 x86_64-*-darwin[912]*)
3399 ;;
3400 *-*-darwin*)
3401 noconfigdirs="$noconfigdirs target-libffi"
3402 ;;
3403 *-*-netware*)
3404 noconfigdirs="$noconfigdirs target-libffi"
3405 ;;
3406 *-*-phoenix*)
3407 noconfigdirs="$noconfigdirs target-libffi"
3408 ;;
3409 *-*-rtems*)
3410 noconfigdirs="$noconfigdirs target-libffi"
3411 ;;
3412 *-*-tpf*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3414 ;;
3415 *-*-uclinux*)
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 *-*-vxworks*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 aarch64*-*-freebsd*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 alpha*-*-*vms*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 arm*-*-freebsd*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 arm-wince-pe)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 arm*-*-symbianelf*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 cris-*-* | crisv32-*-*)
3437 case "${target}" in
3438 *-*-linux*)
3439 ;;
3440 *) # See PR46792 regarding target-libffi.
3441 noconfigdirs="$noconfigdirs target-libffi";;
3442 esac
3443 ;;
3444 hppa*64*-*-hpux*)
3445 noconfigdirs="$noconfigdirs target-libffi"
3446 ;;
3447 hppa*-hp-hpux11*)
3448 ;;
3449 hppa*-*-hpux*)
3450 noconfigdirs="$noconfigdirs target-libffi"
3451 ;;
3452 ia64*-*-*vms*)
3453 noconfigdirs="$noconfigdirs target-libffi"
3454 ;;
3455 i[3456789]86-w64-mingw*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3457 ;;
3458 i[3456789]86-*-mingw*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 x86_64-*-mingw*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 mmix-*-*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 powerpc-*-aix*)
3468 ;;
3469 rs6000-*-aix*)
3470 ;;
3471 ft32-*-*)
3472 noconfigdirs="$noconfigdirs target-libffi"
3473 ;;
3474 *-*-lynxos*)
3475 noconfigdirs="$noconfigdirs target-libffi"
3476 ;;
3477 esac
3478
3479 # Disable the go frontend on systems where it is known to not work. Please keep
3480 # this in sync with contrib/config-list.mk.
3481 case "${target}" in
3482 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3483 unsupported_languages="$unsupported_languages go"
3484 ;;
3485 esac
3486
3487 # Disable libgo for some systems where it is known to not work.
3488 # For testing, you can easily override this with --enable-libgo.
3489 if test x$enable_libgo = x; then
3490 case "${target}" in
3491 *-*-darwin*)
3492 # PR 46986
3493 noconfigdirs="$noconfigdirs target-libgo"
3494 ;;
3495 *-*-cygwin* | *-*-mingw*)
3496 noconfigdirs="$noconfigdirs target-libgo"
3497 ;;
3498 esac
3499 fi
3500
3501 # Default libgloss CPU subdirectory.
3502 libgloss_dir="$target_cpu"
3503
3504 case "${target}" in
3505 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3506 libgloss_dir=wince
3507 ;;
3508 aarch64*-*-* )
3509 libgloss_dir=aarch64
3510 ;;
3511 arm*-*-*)
3512 libgloss_dir=arm
3513 ;;
3514 cris-*-* | crisv32-*-*)
3515 libgloss_dir=cris
3516 ;;
3517 hppa*-*-*)
3518 libgloss_dir=pa
3519 ;;
3520 i[3456789]86-*-*)
3521 libgloss_dir=i386
3522 ;;
3523 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3524 libgloss_dir=m68hc11
3525 ;;
3526 m68*-*-* | fido-*-*)
3527 libgloss_dir=m68k
3528 ;;
3529 mips*-*-*)
3530 libgloss_dir=mips
3531 ;;
3532 powerpc*-*-*)
3533 libgloss_dir=rs6000
3534 ;;
3535 sparc*-*-*)
3536 libgloss_dir=sparc
3537 ;;
3538 esac
3539
3540 # Disable newlib and libgloss for various target OSes.
3541 case "${target}" in
3542 alpha*-dec-osf*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 ;;
3545 i[3456789]86-*-linux*)
3546 # This section makes it possible to build newlib natively on linux.
3547 # If we are using a cross compiler then don't configure newlib.
3548 if test x${is_cross_compiler} != xno ; then
3549 noconfigdirs="$noconfigdirs target-newlib"
3550 fi
3551 noconfigdirs="$noconfigdirs target-libgloss"
3552 # If we are not using a cross compiler, do configure newlib.
3553 # Note however, that newlib will only be configured in this situation
3554 # if the --with-newlib option has been given, because otherwise
3555 # 'target-newlib' will appear in skipdirs.
3556 ;;
3557 i[3456789]86-*-rdos*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 ;;
3563 sparc-*-sunos4*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 *-*-aix*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 ;;
3569 *-*-beos*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 ;;
3572 *-*-chorusos)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 ;;
3575 *-*-dragonfly*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 ;;
3578 *-*-freebsd*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 *-*-lynxos*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 *-*-mingw*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 ;;
3590 *-*-netbsd*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
3593 *-*-netware*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3595 ;;
3596 *-*-tpf*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 *-*-uclinux*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 *-*-vxworks*)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 esac
3606
3607 # Targets that do not use the ELF file format cannot support libctf.
3608 case "${target}" in
3609 *-*-pe | *-*-*vms* | *-*-darwin | *-*-*coff* | *-*-wince | *-*-mingw*)
3610 noconfigdirs="$noconfigdirs libctf"
3611 ;;
3612 *-*-aout | *-*-osf* | *-*-go32 | *-*-macos* | *-*-rhapsody*)
3613 noconfigdirs="$noconfigdirs libctf"
3614 ;;
3615 *-*-netbsdpe | *-*-cygwin* | *-*-pep | *-*-msdos | *-*-winnt)
3616 noconfigdirs="$noconfigdirs libctf"
3617 ;;
3618 ns32k-*-* | pdp11-*-* | *-*-aix* | *-*-netbsdaout)
3619 noconfigdirs="$noconfigdirs libctf"
3620 ;;
3621 esac
3622
3623 case "${target}" in
3624 *-*-chorusos)
3625 ;;
3626 aarch64-*-darwin*)
3627 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3628 noconfigdirs="$noconfigdirs sim target-rda"
3629 ;;
3630 arm-*-darwin*)
3631 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3632 noconfigdirs="$noconfigdirs sim target-rda"
3633 ;;
3634 powerpc-*-darwin*)
3635 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3636 noconfigdirs="$noconfigdirs sim target-rda"
3637 ;;
3638 i[3456789]86-*-darwin*)
3639 noconfigdirs="$noconfigdirs ld gprof"
3640 noconfigdirs="$noconfigdirs sim target-rda"
3641 ;;
3642 x86_64-*-darwin[912]*)
3643 noconfigdirs="$noconfigdirs ld gas gprof"
3644 noconfigdirs="$noconfigdirs sim target-rda"
3645 ;;
3646 *-*-darwin*)
3647 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3648 noconfigdirs="$noconfigdirs sim target-rda"
3649 ;;
3650 *-*-dragonfly*)
3651 ;;
3652 *-*-freebsd*)
3653 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3654 && test -f /usr/local/include/gmp.h; then
3655 with_gmp=/usr/local
3656 fi
3657 ;;
3658 *-*-kaos*)
3659 # Remove unsupported stuff on all kaOS configurations.
3660 noconfigdirs="$noconfigdirs target-libgloss"
3661 ;;
3662 *-*-netbsd*)
3663 ;;
3664 *-*-netware*)
3665 ;;
3666 *-*-phoenix*)
3667 noconfigdirs="$noconfigdirs target-libgloss"
3668 ;;
3669 *-*-rtems*)
3670 noconfigdirs="$noconfigdirs target-libgloss"
3671 ;;
3672 # The tpf target doesn't support gdb yet.
3673 *-*-tpf*)
3674 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3675 ;;
3676 *-*-uclinux*)
3677 noconfigdirs="$noconfigdirs target-rda"
3678 ;;
3679 *-*-vxworks*)
3680 ;;
3681 alpha*-dec-osf*)
3682 # ld works, but does not support shared libraries.
3683 # gas doesn't generate exception information.
3684 noconfigdirs="$noconfigdirs gas ld"
3685 ;;
3686 alpha*-*-*vms*)
3687 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3688 ;;
3689 alpha*-*-*)
3690 # newlib is not 64 bit ready
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3694 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3695 ;;
3696 arc*-*-*)
3697 noconfigdirs="$noconfigdirs sim"
3698 ;;
3699 arm-*-pe*)
3700 noconfigdirs="$noconfigdirs target-libgloss"
3701 ;;
3702 arm-*-riscix*)
3703 noconfigdirs="$noconfigdirs ld target-libgloss"
3704 ;;
3705 avr-*-*)
3706 if test x${with_avrlibc} != xno; then
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 fi
3709 ;;
3710 c4x-*-* | tic4x-*-*)
3711 noconfigdirs="$noconfigdirs target-libgloss"
3712 ;;
3713 tic54x-*-*)
3714 noconfigdirs="$noconfigdirs target-libgloss gdb"
3715 ;;
3716 d10v-*-*)
3717 noconfigdirs="$noconfigdirs target-libgloss"
3718 ;;
3719 d30v-*-*)
3720 noconfigdirs="$noconfigdirs gdb"
3721 ;;
3722 fr30-*-elf*)
3723 noconfigdirs="$noconfigdirs gdb"
3724 ;;
3725 ft32-*-*)
3726 noconfigdirs="$noconfigdirs target-rda gprof"
3727 ;;
3728 moxie-*-*)
3729 noconfigdirs="$noconfigdirs"
3730 ;;
3731 h8300*-*-*)
3732 noconfigdirs="$noconfigdirs target-libgloss"
3733 ;;
3734 h8500-*-*)
3735 noconfigdirs="$noconfigdirs target-libgloss"
3736 ;;
3737 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3738 ;;
3739 hppa*64*-*-hpux*)
3740 noconfigdirs="$noconfigdirs gdb"
3741 ;;
3742 hppa*-*-hpux11*)
3743 noconfigdirs="$noconfigdirs gdb ld"
3744 ;;
3745 hppa*64*-*-linux*)
3746 ;;
3747 hppa*-*-linux*)
3748 ;;
3749 hppa*-*-*elf* | \
3750 hppa*-*-lites* | \
3751 hppa*-*-openbsd* | \
3752 hppa*64*-*-*)
3753 ;;
3754 hppa*-*-pro*)
3755 ;;
3756 hppa*-*-*)
3757 noconfigdirs="$noconfigdirs ld"
3758 ;;
3759 i960-*-*)
3760 noconfigdirs="$noconfigdirs gdb"
3761 ;;
3762 ia64*-*-elf*)
3763 # No gdb support yet.
3764 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3765 ;;
3766 ia64*-**-hpux*)
3767 # No ld support yet.
3768 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3769 ;;
3770 ia64*-*-*vms*)
3771 # No ld support yet.
3772 noconfigdirs="$noconfigdirs libgui itcl ld"
3773 ;;
3774 i[3456789]86-w64-mingw*)
3775 ;;
3776 i[3456789]86-*-mingw*)
3777 target_configdirs="$target_configdirs target-winsup"
3778 ;;
3779 *-*-cygwin*)
3780 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3781 noconfigdirs="$noconfigdirs target-libgloss"
3782 # always build newlib if winsup directory is present.
3783 if test -d "$srcdir/winsup/cygwin"; then
3784 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3785 elif test -d "$srcdir/newlib"; then
3786 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3787 fi
3788 ;;
3789 i[3456789]86-*-pe)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3791 ;;
3792 i[3456789]86-*-sco3.2v5*)
3793 # The linker does not yet know about weak symbols in COFF,
3794 # and is not configured to handle mixed ELF and COFF.
3795 noconfigdirs="$noconfigdirs ld target-libgloss"
3796 ;;
3797 i[3456789]86-*-sco*)
3798 noconfigdirs="$noconfigdirs gprof target-libgloss"
3799 ;;
3800 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3801 noconfigdirs="$noconfigdirs target-libgloss"
3802 ;;
3803 i[3456789]86-*-sysv4*)
3804 noconfigdirs="$noconfigdirs target-libgloss"
3805 ;;
3806 i[3456789]86-*-beos*)
3807 noconfigdirs="$noconfigdirs gdb"
3808 ;;
3809 i[3456789]86-*-rdos*)
3810 noconfigdirs="$noconfigdirs gdb"
3811 ;;
3812 mmix-*-*)
3813 noconfigdirs="$noconfigdirs gdb"
3814 ;;
3815 mt-*-*)
3816 noconfigdirs="$noconfigdirs sim"
3817 ;;
3818 nfp-*-*)
3819 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3820 noconfigdirs="$noconfigdirs $target_libraries"
3821 ;;
3822 powerpc-*-aix*)
3823 # copied from rs6000-*-* entry
3824 noconfigdirs="$noconfigdirs gprof"
3825 ;;
3826 powerpc*-*-winnt* | powerpc*-*-pe*)
3827 target_configdirs="$target_configdirs target-winsup"
3828 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3829 # always build newlib.
3830 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3831 ;;
3832 # This is temporary until we can link against shared libraries
3833 powerpcle-*-solaris*)
3834 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3835 ;;
3836 powerpc-*-beos*)
3837 noconfigdirs="$noconfigdirs gdb"
3838 ;;
3839 rs6000-*-lynxos*)
3840 noconfigdirs="$noconfigdirs gprof"
3841 ;;
3842 rs6000-*-aix*)
3843 noconfigdirs="$noconfigdirs gprof"
3844 ;;
3845 rs6000-*-*)
3846 noconfigdirs="$noconfigdirs gprof"
3847 ;;
3848 m68k-apollo-*)
3849 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3850 ;;
3851 microblaze*)
3852 noconfigdirs="$noconfigdirs gprof"
3853 ;;
3854 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3855 if test x$with_newlib = xyes; then
3856 noconfigdirs="$noconfigdirs gprof"
3857 fi
3858 ;;
3859 mips*-*-irix5*)
3860 noconfigdirs="$noconfigdirs gprof target-libgloss"
3861 ;;
3862 mips*-*-irix6*)
3863 noconfigdirs="$noconfigdirs gprof target-libgloss"
3864 ;;
3865 mips*-*-bsd*)
3866 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3867 ;;
3868 mips*-*-linux*)
3869 ;;
3870 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3871 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3872 noconfigdirs="$noconfigdirs ld gas gprof"
3873 ;;
3874 mips*-*-*)
3875 noconfigdirs="$noconfigdirs gprof"
3876 ;;
3877 nvptx*-*-*)
3878 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3879 ;;
3880 sh-*-*)
3881 case "${target}" in
3882 sh*-*-elf)
3883 ;;
3884 *)
3885 noconfigdirs="$noconfigdirs target-libgloss" ;;
3886 esac
3887 ;;
3888 sparc-*-sunos4*)
3889 if test x${is_cross_compiler} = xno ; then
3890 use_gnu_ld=no
3891 fi
3892 ;;
3893 tic6x-*-*)
3894 noconfigdirs="$noconfigdirs sim"
3895 ;;
3896 tilepro*-*-* | tilegx*-*-*)
3897 noconfigdirs="$noconfigdirs sim"
3898 ;;
3899 v810-*-*)
3900 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3901 ;;
3902 vax-*-*)
3903 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3904 ;;
3905 wasm32-*-*)
3906 noconfigdirs="$noconfigdirs ld"
3907 ;;
3908 esac
3909
3910 # If we aren't building newlib, then don't build libgloss, since libgloss
3911 # depends upon some newlib header files.
3912 case "${noconfigdirs}" in
3913 *target-libgloss*) ;;
3914 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3915 esac
3916
3917 # Work in distributions that contain no compiler tools, like Autoconf.
3918 host_makefile_frag=/dev/null
3919 if test -d ${srcdir}/config ; then
3920 case "${host}" in
3921 i[3456789]86-*-msdosdjgpp*)
3922 host_makefile_frag="config/mh-djgpp"
3923 ;;
3924 *-cygwin*)
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3927 $as_echo_n "checking to see if cat works as expected... " >&6; }
3928 echo a >cygwin-cat-check
3929 if test `cat cygwin-cat-check` = a ; then
3930 rm cygwin-cat-check
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3932 $as_echo "yes" >&6; }
3933 else
3934 rm cygwin-cat-check
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3937 as_fn_error $? "The cat command does not ignore carriage return characters.
3938 Please either mount the build directory in binary mode or run the following
3939 commands before running any configure script:
3940 set -o igncr
3941 export SHELLOPTS
3942 " "$LINENO" 5
3943 fi
3944
3945 host_makefile_frag="config/mh-cygwin"
3946 ;;
3947 *-mingw*)
3948 host_makefile_frag="config/mh-mingw"
3949 ;;
3950 alpha*-linux*)
3951 host_makefile_frag="config/mh-alpha-linux"
3952 ;;
3953 hppa*-hp-hpux10*)
3954 host_makefile_frag="config/mh-pa-hpux10"
3955 ;;
3956 hppa*-hp-hpux*)
3957 host_makefile_frag="config/mh-pa"
3958 ;;
3959 hppa*-*)
3960 host_makefile_frag="config/mh-pa"
3961 ;;
3962 *-*-darwin*)
3963 host_makefile_frag="config/mh-darwin"
3964 ;;
3965 powerpc-*-aix*)
3966 host_makefile_frag="config/mh-ppc-aix"
3967 ;;
3968 rs6000-*-aix*)
3969 host_makefile_frag="config/mh-ppc-aix"
3970 ;;
3971 esac
3972 fi
3973
3974 if test "${build}" != "${host}" ; then
3975 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3976 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3977 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3978 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3979 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3980 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3981 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3982 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3983 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3984 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3985 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3986 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3987 else
3988 AR_FOR_BUILD="\$(AR)"
3989 AS_FOR_BUILD="\$(AS)"
3990 CC_FOR_BUILD="\$(CC)"
3991 CXX_FOR_BUILD="\$(CXX)"
3992 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3993 GOC_FOR_BUILD="\$(GOC)"
3994 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3995 LD_FOR_BUILD="\$(LD)"
3996 NM_FOR_BUILD="\$(NM)"
3997 RANLIB_FOR_BUILD="\$(RANLIB)"
3998 WINDRES_FOR_BUILD="\$(WINDRES)"
3999 WINDMC_FOR_BUILD="\$(WINDMC)"
4000 fi
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if ${ac_cv_prog_CC+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$CC"; then
4016 ac_cv_prog_CC="$CC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 CC=$ac_cv_prog_CC
4036 if test -n "$CC"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4038 $as_echo "$CC" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044
4045 fi
4046 if test -z "$ac_cv_prog_CC"; then
4047 ac_ct_CC=$CC
4048 # Extract the first word of "gcc", so it can be a program name with args.
4049 set dummy gcc; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if test -n "$ac_ct_CC"; then
4056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_ac_ct_CC="gcc"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4068 fi
4069 done
4070 done
4071 IFS=$as_save_IFS
4072
4073 fi
4074 fi
4075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4076 if test -n "$ac_ct_CC"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4078 $as_echo "$ac_ct_CC" >&6; }
4079 else
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 fi
4083
4084 if test "x$ac_ct_CC" = x; then
4085 CC=""
4086 else
4087 case $cross_compiling:$ac_tool_warned in
4088 yes:)
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4091 ac_tool_warned=yes ;;
4092 esac
4093 CC=$ac_ct_CC
4094 fi
4095 else
4096 CC="$ac_cv_prog_CC"
4097 fi
4098
4099 if test -z "$CC"; then
4100 if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}cc; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if ${ac_cv_prog_CC+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$CC"; then
4109 ac_cv_prog_CC="$CC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_CC="${ac_tool_prefix}cc"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi
4127 fi
4128 CC=$ac_cv_prog_CC
4129 if test -n "$CC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4131 $as_echo "$CC" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4135 fi
4136
4137
4138 fi
4139 fi
4140 if test -z "$CC"; then
4141 # Extract the first word of "cc", so it can be a program name with args.
4142 set dummy cc; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 else
4151 ac_prog_rejected=no
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4160 ac_prog_rejected=yes
4161 continue
4162 fi
4163 ac_cv_prog_CC="cc"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167 done
4168 done
4169 IFS=$as_save_IFS
4170
4171 if test $ac_prog_rejected = yes; then
4172 # We found a bogon in the path, so make sure we never use it.
4173 set dummy $ac_cv_prog_CC
4174 shift
4175 if test $# != 0; then
4176 # We chose a different compiler from the bogus one.
4177 # However, it has the same basename, so the bogon will be chosen
4178 # first if we set CC to just the basename; use the full file name.
4179 shift
4180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4181 fi
4182 fi
4183 fi
4184 fi
4185 CC=$ac_cv_prog_CC
4186 if test -n "$CC"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4188 $as_echo "$CC" >&6; }
4189 else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4192 fi
4193
4194
4195 fi
4196 if test -z "$CC"; then
4197 if test -n "$ac_tool_prefix"; then
4198 for ac_prog in cl.exe
4199 do
4200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_CC+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$CC"; then
4208 ac_cv_prog_CC="$CC" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221 done
4222 done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 CC=$ac_cv_prog_CC
4228 if test -n "$CC"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4230 $as_echo "$CC" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235
4236
4237 test -n "$CC" && break
4238 done
4239 fi
4240 if test -z "$CC"; then
4241 ac_ct_CC=$CC
4242 for ac_prog in cl.exe
4243 do
4244 # Extract the first word of "$ac_prog", so it can be a program name with args.
4245 set dummy $ac_prog; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$ac_ct_CC"; then
4252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_ac_ct_CC="$ac_prog"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4272 if test -n "$ac_ct_CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4274 $as_echo "$ac_ct_CC" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281 test -n "$ac_ct_CC" && break
4282 done
4283
4284 if test "x$ac_ct_CC" = x; then
4285 CC=""
4286 else
4287 case $cross_compiling:$ac_tool_warned in
4288 yes:)
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4291 ac_tool_warned=yes ;;
4292 esac
4293 CC=$ac_ct_CC
4294 fi
4295 fi
4296
4297 fi
4298
4299
4300 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4302 as_fn_error $? "no acceptable C compiler found in \$PATH
4303 See \`config.log' for more details" "$LINENO" 5; }
4304
4305 # Provide some information about the compiler.
4306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4307 set X $ac_compile
4308 ac_compiler=$2
4309 for ac_option in --version -v -V -qversion; do
4310 { { ac_try="$ac_compiler $ac_option >&5"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4318 ac_status=$?
4319 if test -s conftest.err; then
4320 sed '10a\
4321 ... rest of stderr output deleted ...
4322 10q' conftest.err >conftest.er1
4323 cat conftest.er1 >&5
4324 fi
4325 rm -f conftest.er1 conftest.err
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }
4328 done
4329
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332
4333 int
4334 main ()
4335 {
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 ac_clean_files_save=$ac_clean_files
4342 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4343 # Try to create an executable without -o first, disregard a.out.
4344 # It will help us diagnose broken compilers, and finding out an intuition
4345 # of exeext.
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4347 $as_echo_n "checking whether the C compiler works... " >&6; }
4348 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4349
4350 # The possible output files:
4351 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4352
4353 ac_rmfiles=
4354 for ac_file in $ac_files
4355 do
4356 case $ac_file in
4357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4358 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4359 esac
4360 done
4361 rm -f $ac_rmfiles
4362
4363 if { { ac_try="$ac_link_default"
4364 case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_link_default") 2>&5
4371 ac_status=$?
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; }; then :
4374 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4375 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4376 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4377 # so that the user can short-circuit this test for compilers unknown to
4378 # Autoconf.
4379 for ac_file in $ac_files ''
4380 do
4381 test -f "$ac_file" || continue
4382 case $ac_file in
4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4384 ;;
4385 [ab].out )
4386 # We found the default executable, but exeext='' is most
4387 # certainly right.
4388 break;;
4389 *.* )
4390 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4391 then :; else
4392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4393 fi
4394 # We set ac_cv_exeext here because the later test for it is not
4395 # safe: cross compilers may not add the suffix if given an `-o'
4396 # argument, so we may need to know it at that point already.
4397 # Even if this section looks crufty: it has the advantage of
4398 # actually working.
4399 break;;
4400 * )
4401 break;;
4402 esac
4403 done
4404 test "$ac_cv_exeext" = no && ac_cv_exeext=
4405
4406 else
4407 ac_file=''
4408 fi
4409 if test -z "$ac_file"; then :
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4412 $as_echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4414
4415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4417 as_fn_error 77 "C compiler cannot create executables
4418 See \`config.log' for more details" "$LINENO" 5; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4421 $as_echo "yes" >&6; }
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4424 $as_echo_n "checking for C compiler default output file name... " >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4426 $as_echo "$ac_file" >&6; }
4427 ac_exeext=$ac_cv_exeext
4428
4429 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4430 ac_clean_files=$ac_clean_files_save
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4432 $as_echo_n "checking for suffix of executables... " >&6; }
4433 if { { ac_try="$ac_link"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_link") 2>&5
4441 ac_status=$?
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }; then :
4444 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4445 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4446 # work properly (i.e., refer to `conftest.exe'), while it won't with
4447 # `rm'.
4448 for ac_file in conftest.exe conftest conftest.*; do
4449 test -f "$ac_file" || continue
4450 case $ac_file in
4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4453 break;;
4454 * ) break;;
4455 esac
4456 done
4457 else
4458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4460 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4461 See \`config.log' for more details" "$LINENO" 5; }
4462 fi
4463 rm -f conftest conftest$ac_cv_exeext
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4465 $as_echo "$ac_cv_exeext" >&6; }
4466
4467 rm -f conftest.$ac_ext
4468 EXEEXT=$ac_cv_exeext
4469 ac_exeext=$EXEEXT
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 #include <stdio.h>
4473 int
4474 main ()
4475 {
4476 FILE *f = fopen ("conftest.out", "w");
4477 return ferror (f) || fclose (f) != 0;
4478
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 ac_clean_files="$ac_clean_files conftest.out"
4484 # Check that the compiler produces executables we can run. If not, either
4485 # the compiler is broken, or we cross compile.
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4487 $as_echo_n "checking whether we are cross compiling... " >&6; }
4488 if test "$cross_compiling" != yes; then
4489 { { ac_try="$ac_link"
4490 case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495 $as_echo "$ac_try_echo"; } >&5
4496 (eval "$ac_link") 2>&5
4497 ac_status=$?
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }
4500 if { ac_try='./conftest$ac_cv_exeext'
4501 { { case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507 (eval "$ac_try") 2>&5
4508 ac_status=$?
4509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; }; }; then
4511 cross_compiling=no
4512 else
4513 if test "$cross_compiling" = maybe; then
4514 cross_compiling=yes
4515 else
4516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error $? "cannot run C compiled programs.
4519 If you meant to cross compile, use \`--host'.
4520 See \`config.log' for more details" "$LINENO" 5; }
4521 fi
4522 fi
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4525 $as_echo "$cross_compiling" >&6; }
4526
4527 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4528 ac_clean_files=$ac_clean_files_save
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4530 $as_echo_n "checking for suffix of object files... " >&6; }
4531 if ${ac_cv_objext+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main ()
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.o conftest.obj
4546 if { { ac_try="$ac_compile"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 $as_echo "$ac_try_echo"; } >&5
4553 (eval "$ac_compile") 2>&5
4554 ac_status=$?
4555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556 test $ac_status = 0; }; then :
4557 for ac_file in conftest.o conftest.obj conftest.*; do
4558 test -f "$ac_file" || continue;
4559 case $ac_file in
4560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4561 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4562 break;;
4563 esac
4564 done
4565 else
4566 $as_echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4571 as_fn_error $? "cannot compute suffix of object files: cannot compile
4572 See \`config.log' for more details" "$LINENO" 5; }
4573 fi
4574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4577 $as_echo "$ac_cv_objext" >&6; }
4578 OBJEXT=$ac_cv_objext
4579 ac_objext=$OBJEXT
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4581 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4582 if ${ac_cv_c_compiler_gnu+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587
4588 int
4589 main ()
4590 {
4591 #ifndef __GNUC__
4592 choke me
4593 #endif
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_compiler_gnu=yes
4601 else
4602 ac_compiler_gnu=no
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4606
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4609 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4610 if test $ac_compiler_gnu = yes; then
4611 GCC=yes
4612 else
4613 GCC=
4614 fi
4615 ac_test_CFLAGS=${CFLAGS+set}
4616 ac_save_CFLAGS=$CFLAGS
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4618 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4619 if ${ac_cv_prog_cc_g+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 ac_save_c_werror_flag=$ac_c_werror_flag
4623 ac_c_werror_flag=yes
4624 ac_cv_prog_cc_g=no
4625 CFLAGS="-g"
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628
4629 int
4630 main ()
4631 {
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638 ac_cv_prog_cc_g=yes
4639 else
4640 CFLAGS=""
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653
4654 else
4655 ac_c_werror_flag=$ac_save_c_werror_flag
4656 CFLAGS="-g"
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659
4660 int
4661 main ()
4662 {
4663
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_cv_prog_cc_g=yes
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 ac_c_werror_flag=$ac_save_c_werror_flag
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4679 $as_echo "$ac_cv_prog_cc_g" >&6; }
4680 if test "$ac_test_CFLAGS" = set; then
4681 CFLAGS=$ac_save_CFLAGS
4682 elif test $ac_cv_prog_cc_g = yes; then
4683 if test "$GCC" = yes; then
4684 CFLAGS="-g -O2"
4685 else
4686 CFLAGS="-g"
4687 fi
4688 else
4689 if test "$GCC" = yes; then
4690 CFLAGS="-O2"
4691 else
4692 CFLAGS=
4693 fi
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4696 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4697 if ${ac_cv_prog_cc_c89+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 ac_cv_prog_cc_c89=no
4701 ac_save_CC=$CC
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <stdarg.h>
4705 #include <stdio.h>
4706 struct stat;
4707 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4708 struct buf { int x; };
4709 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4710 static char *e (p, i)
4711 char **p;
4712 int i;
4713 {
4714 return p[i];
4715 }
4716 static char *f (char * (*g) (char **, int), char **p, ...)
4717 {
4718 char *s;
4719 va_list v;
4720 va_start (v,p);
4721 s = g (p, va_arg (v,int));
4722 va_end (v);
4723 return s;
4724 }
4725
4726 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4727 function prototypes and stuff, but not '\xHH' hex character constants.
4728 These don't provoke an error unfortunately, instead are silently treated
4729 as 'x'. The following induces an error, until -std is added to get
4730 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4731 array size at least. It's necessary to write '\x00'==0 to get something
4732 that's true only with -std. */
4733 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4734
4735 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4736 inside strings and character constants. */
4737 #define FOO(x) 'x'
4738 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4739
4740 int test (int i, double x);
4741 struct s1 {int (*f) (int a);};
4742 struct s2 {int (*f) (double a);};
4743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4744 int argc;
4745 char **argv;
4746 int
4747 main ()
4748 {
4749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4755 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 do
4757 CC="$ac_save_CC $ac_arg"
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_prog_cc_c89=$ac_arg
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext
4762 test "x$ac_cv_prog_cc_c89" != "xno" && break
4763 done
4764 rm -f conftest.$ac_ext
4765 CC=$ac_save_CC
4766
4767 fi
4768 # AC_CACHE_VAL
4769 case "x$ac_cv_prog_cc_c89" in
4770 x)
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4772 $as_echo "none needed" >&6; } ;;
4773 xno)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4775 $as_echo "unsupported" >&6; } ;;
4776 *)
4777 CC="$CC $ac_cv_prog_cc_c89"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4779 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4780 esac
4781 if test "x$ac_cv_prog_cc_c89" != xno; then :
4782
4783 fi
4784
4785 ac_ext=c
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790
4791 ac_ext=cpp
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796 if test -z "$CXX"; then
4797 if test -n "$CCC"; then
4798 CXX=$CCC
4799 else
4800 if test -n "$ac_tool_prefix"; then
4801 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802 do
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_CXX+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$CXX"; then
4811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 CXX=$ac_cv_prog_CXX
4831 if test -n "$CXX"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833 $as_echo "$CXX" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839
4840 test -n "$CXX" && break
4841 done
4842 fi
4843 if test -z "$CXX"; then
4844 ac_ct_CXX=$CXX
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846 do
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -n "$ac_ct_CXX"; then
4855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_ac_ct_CXX="$ac_prog"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872 fi
4873 fi
4874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4875 if test -n "$ac_ct_CXX"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4877 $as_echo "$ac_ct_CXX" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881 fi
4882
4883
4884 test -n "$ac_ct_CXX" && break
4885 done
4886
4887 if test "x$ac_ct_CXX" = x; then
4888 CXX="g++"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896 CXX=$ac_ct_CXX
4897 fi
4898 fi
4899
4900 fi
4901 fi
4902 # Provide some information about the compiler.
4903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4904 set X $ac_compile
4905 ac_compiler=$2
4906 for ac_option in --version -v -V -qversion; do
4907 { { ac_try="$ac_compiler $ac_option >&5"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913 $as_echo "$ac_try_echo"; } >&5
4914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915 ac_status=$?
4916 if test -s conftest.err; then
4917 sed '10a\
4918 ... rest of stderr output deleted ...
4919 10q' conftest.err >conftest.er1
4920 cat conftest.er1 >&5
4921 fi
4922 rm -f conftest.er1 conftest.err
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 done
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4928 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4929 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934
4935 int
4936 main ()
4937 {
4938 #ifndef __GNUC__
4939 choke me
4940 #endif
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_cxx_try_compile "$LINENO"; then :
4947 ac_compiler_gnu=yes
4948 else
4949 ac_compiler_gnu=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4953
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4957 if test $ac_compiler_gnu = yes; then
4958 GXX=yes
4959 else
4960 GXX=
4961 fi
4962 ac_test_CXXFLAGS=${CXXFLAGS+set}
4963 ac_save_CXXFLAGS=$CXXFLAGS
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4965 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4966 if ${ac_cv_prog_cxx_g+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4970 ac_cxx_werror_flag=yes
4971 ac_cv_prog_cxx_g=no
4972 CXXFLAGS="-g"
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975
4976 int
4977 main ()
4978 {
4979
4980 ;
4981 return 0;
4982 }
4983 _ACEOF
4984 if ac_fn_cxx_try_compile "$LINENO"; then :
4985 ac_cv_prog_cxx_g=yes
4986 else
4987 CXXFLAGS=""
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990
4991 int
4992 main ()
4993 {
4994
4995 ;
4996 return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_cxx_try_compile "$LINENO"; then :
5000
5001 else
5002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003 CXXFLAGS="-g"
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006
5007 int
5008 main ()
5009 {
5010
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_cxx_try_compile "$LINENO"; then :
5016 ac_cv_prog_cxx_g=yes
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5026 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5027 if test "$ac_test_CXXFLAGS" = set; then
5028 CXXFLAGS=$ac_save_CXXFLAGS
5029 elif test $ac_cv_prog_cxx_g = yes; then
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-g -O2"
5032 else
5033 CXXFLAGS="-g"
5034 fi
5035 else
5036 if test "$GXX" = yes; then
5037 CXXFLAGS="-O2"
5038 else
5039 CXXFLAGS=
5040 fi
5041 fi
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048
5049 # We must set the default linker to the linker used by gcc for the correct
5050 # operation of libtool. If LD is not defined and we are using gcc, try to
5051 # set the LD default to the ld used by gcc.
5052 if test -z "$LD"; then
5053 if test "$GCC" = yes; then
5054 case $build in
5055 *-*-mingw*)
5056 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5057 *)
5058 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5059 esac
5060 case $gcc_prog_ld in
5061 # Accept absolute paths.
5062 [\\/]* | [A-Za-z]:[\\/]*)
5063 LD="$gcc_prog_ld" ;;
5064 esac
5065 fi
5066 fi
5067
5068 # Check whether -static-libstdc++ -static-libgcc is supported.
5069 have_static_libs=no
5070 if test "$GCC" = yes; then
5071 saved_LDFLAGS="$LDFLAGS"
5072
5073 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5075 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5076 ac_ext=cpp
5077 ac_cpp='$CXXCPP $CPPFLAGS'
5078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5081
5082
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085
5086 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5087 #error -static-libstdc++ not implemented
5088 #endif
5089 int main() {}
5090 _ACEOF
5091 if ac_fn_cxx_try_link "$LINENO"; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5093 $as_echo "yes" >&6; }; have_static_libs=yes
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106
5107 LDFLAGS="$saved_LDFLAGS"
5108 fi
5109
5110
5111
5112
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_GNATBIND+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$GNATBIND"; then
5122 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 GNATBIND=$ac_cv_prog_GNATBIND
5142 if test -n "$GNATBIND"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5144 $as_echo "$GNATBIND" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151 fi
5152 if test -z "$ac_cv_prog_GNATBIND"; then
5153 ac_ct_GNATBIND=$GNATBIND
5154 # Extract the first word of "gnatbind", so it can be a program name with args.
5155 set dummy gnatbind; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_GNATBIND"; then
5162 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179 fi
5180 fi
5181 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5182 if test -n "$ac_ct_GNATBIND"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5184 $as_echo "$ac_ct_GNATBIND" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190 if test "x$ac_ct_GNATBIND" = x; then
5191 GNATBIND="no"
5192 else
5193 case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199 GNATBIND=$ac_ct_GNATBIND
5200 fi
5201 else
5202 GNATBIND="$ac_cv_prog_GNATBIND"
5203 fi
5204
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if ${ac_cv_prog_GNATMAKE+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$GNATMAKE"; then
5214 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 GNATMAKE=$ac_cv_prog_GNATMAKE
5234 if test -n "$GNATMAKE"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5236 $as_echo "$GNATMAKE" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243 fi
5244 if test -z "$ac_cv_prog_GNATMAKE"; then
5245 ac_ct_GNATMAKE=$GNATMAKE
5246 # Extract the first word of "gnatmake", so it can be a program name with args.
5247 set dummy gnatmake; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$ac_ct_GNATMAKE"; then
5254 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5274 if test -n "$ac_ct_GNATMAKE"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5276 $as_echo "$ac_ct_GNATMAKE" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282 if test "x$ac_ct_GNATMAKE" = x; then
5283 GNATMAKE="no"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 GNATMAKE=$ac_ct_GNATMAKE
5292 fi
5293 else
5294 GNATMAKE="$ac_cv_prog_GNATMAKE"
5295 fi
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5298 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5299 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat >conftest.adb <<EOF
5303 procedure conftest is begin null; end conftest;
5304 EOF
5305 acx_cv_cc_gcc_supports_ada=no
5306 # There is a bug in old released versions of GCC which causes the
5307 # driver to exit successfully when the appropriate language module
5308 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5309 # Therefore we must check for the error message as well as an
5310 # unsuccessful exit.
5311 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5312 # given a .adb file, but produce no object file. So we must check
5313 # if an object file was really produced to guard against this.
5314 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5315 if test x"$errors" = x && test -f conftest.$ac_objext; then
5316 acx_cv_cc_gcc_supports_ada=yes
5317 fi
5318 rm -f conftest.*
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5321 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5322
5323 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5324 have_gnat=yes
5325 else
5326 have_gnat=no
5327 fi
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5330 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5331 if ${gcc_cv_prog_cmp_skip+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 echo abfoo >t1
5335 echo cdfoo >t2
5336 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5337 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5338 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5339 :
5340 else
5341 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5342 fi
5343 fi
5344 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5345 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5346 :
5347 else
5348 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5349 fi
5350 fi
5351 rm t1 t2
5352
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5355 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5356 do_compare="$gcc_cv_prog_cmp_skip"
5357
5358
5359
5360 # Check whether --enable-bootstrap was given.
5361 if test "${enable_bootstrap+set}" = set; then :
5362 enableval=$enable_bootstrap;
5363 else
5364 enable_bootstrap=default
5365 fi
5366
5367
5368 # Issue errors and warnings for invalid/strange bootstrap combinations.
5369 if test -r $srcdir/gcc/configure; then
5370 have_compiler=yes
5371 else
5372 have_compiler=no
5373 fi
5374
5375 case "$have_compiler:$host:$target:$enable_bootstrap" in
5376 *:*:*:no) ;;
5377
5378 # Default behavior. Enable bootstrap if we have a compiler
5379 # and we are in a native configuration.
5380 yes:$build:$build:default)
5381 enable_bootstrap=yes ;;
5382
5383 *:*:*:default)
5384 enable_bootstrap=no ;;
5385
5386 # We have a compiler and we are in a native configuration, bootstrap is ok
5387 yes:$build:$build:yes)
5388 ;;
5389
5390 # Other configurations, but we have a compiler. Assume the user knows
5391 # what he's doing.
5392 yes:*:*:yes)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5394 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5395 ;;
5396
5397 # No compiler: if they passed --enable-bootstrap explicitly, fail
5398 no:*:*:yes)
5399 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5400
5401 # Fail if wrong command line
5402 *)
5403 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5404 ;;
5405 esac
5406
5407 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5408 # C++98 compiler can still start the bootstrap.
5409 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5410 CXX="$CXX -std=gnu++98"
5411 fi
5412
5413 # Used for setting $lt_cv_objdir
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5415 $as_echo_n "checking for objdir... " >&6; }
5416 if ${lt_cv_objdir+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 rm -f .libs 2>/dev/null
5420 mkdir .libs 2>/dev/null
5421 if test -d .libs; then
5422 lt_cv_objdir=.libs
5423 else
5424 # MS-DOS does not allow filenames that begin with a dot.
5425 lt_cv_objdir=_libs
5426 fi
5427 rmdir .libs 2>/dev/null
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5430 $as_echo "$lt_cv_objdir" >&6; }
5431 objdir=$lt_cv_objdir
5432
5433
5434
5435
5436
5437 cat >>confdefs.h <<_ACEOF
5438 #define LT_OBJDIR "$lt_cv_objdir/"
5439 _ACEOF
5440
5441
5442
5443 # Check for GMP, MPFR and MPC
5444 gmplibs="-lmpc -lmpfr -lgmp"
5445 gmpinc=
5446 have_gmp=no
5447
5448 # Specify a location for mpc
5449 # check for this first so it ends up on the link line before mpfr.
5450
5451 # Check whether --with-mpc was given.
5452 if test "${with_mpc+set}" = set; then :
5453 withval=$with_mpc;
5454 fi
5455
5456
5457 # Check whether --with-mpc-include was given.
5458 if test "${with_mpc_include+set}" = set; then :
5459 withval=$with_mpc_include;
5460 fi
5461
5462
5463 # Check whether --with-mpc-lib was given.
5464 if test "${with_mpc_lib+set}" = set; then :
5465 withval=$with_mpc_lib;
5466 fi
5467
5468
5469 if test "x$with_mpc" != x; then
5470 gmplibs="-L$with_mpc/lib $gmplibs"
5471 gmpinc="-I$with_mpc/include $gmpinc"
5472 fi
5473 if test "x$with_mpc_include" != x; then
5474 gmpinc="-I$with_mpc_include $gmpinc"
5475 fi
5476 if test "x$with_mpc_lib" != x; then
5477 gmplibs="-L$with_mpc_lib $gmplibs"
5478 fi
5479 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5480 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5481 gmpinc='-I$$s/mpc/src '"$gmpinc"
5482 # Do not test the mpc version. Assume that it is sufficient, since
5483 # it is in the source tree, and the library has not been built yet
5484 # but it would be included on the link line in the version check below
5485 # hence making the test fail.
5486 have_gmp=yes
5487 fi
5488
5489 # Specify a location for mpfr
5490 # check for this first so it ends up on the link line before gmp.
5491
5492 # Check whether --with-mpfr-dir was given.
5493 if test "${with_mpfr_dir+set}" = set; then :
5494 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5495 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5496 fi
5497
5498
5499
5500 # Check whether --with-mpfr was given.
5501 if test "${with_mpfr+set}" = set; then :
5502 withval=$with_mpfr;
5503 fi
5504
5505
5506 # Check whether --with-mpfr-include was given.
5507 if test "${with_mpfr_include+set}" = set; then :
5508 withval=$with_mpfr_include;
5509 fi
5510
5511
5512 # Check whether --with-mpfr-lib was given.
5513 if test "${with_mpfr_lib+set}" = set; then :
5514 withval=$with_mpfr_lib;
5515 fi
5516
5517
5518 if test "x$with_mpfr" != x; then
5519 gmplibs="-L$with_mpfr/lib $gmplibs"
5520 gmpinc="-I$with_mpfr/include $gmpinc"
5521 fi
5522 if test "x$with_mpfr_include" != x; then
5523 gmpinc="-I$with_mpfr_include $gmpinc"
5524 fi
5525 if test "x$with_mpfr_lib" != x; then
5526 gmplibs="-L$with_mpfr_lib $gmplibs"
5527 fi
5528 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5529 # MPFR v3.1.0 moved the sources into a src sub-directory.
5530 if ! test -d ${srcdir}/mpfr/src; then
5531 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5532 fi
5533 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5534 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5535 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5536 # Do not test the mpfr version. Assume that it is sufficient, since
5537 # it is in the source tree, and the library has not been built yet
5538 # but it would be included on the link line in the version check below
5539 # hence making the test fail.
5540 have_gmp=yes
5541 fi
5542
5543 # Specify a location for gmp
5544
5545 # Check whether --with-gmp-dir was given.
5546 if test "${with_gmp_dir+set}" = set; then :
5547 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5548 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5549 fi
5550
5551
5552
5553 # Check whether --with-gmp was given.
5554 if test "${with_gmp+set}" = set; then :
5555 withval=$with_gmp;
5556 fi
5557
5558
5559 # Check whether --with-gmp-include was given.
5560 if test "${with_gmp_include+set}" = set; then :
5561 withval=$with_gmp_include;
5562 fi
5563
5564
5565 # Check whether --with-gmp-lib was given.
5566 if test "${with_gmp_lib+set}" = set; then :
5567 withval=$with_gmp_lib;
5568 fi
5569
5570
5571
5572 if test "x$with_gmp" != x; then
5573 gmplibs="-L$with_gmp/lib $gmplibs"
5574 gmpinc="-I$with_gmp/include $gmpinc"
5575 fi
5576 if test "x$with_gmp_include" != x; then
5577 gmpinc="-I$with_gmp_include $gmpinc"
5578 fi
5579 if test "x$with_gmp_lib" != x; then
5580 gmplibs="-L$with_gmp_lib $gmplibs"
5581 fi
5582 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5583 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5584 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5585 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5586 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5587 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5588 # Do not test the gmp version. Assume that it is sufficient, since
5589 # it is in the source tree, and the library has not been built yet
5590 # but it would be included on the link line in the version check below
5591 # hence making the test fail.
5592 have_gmp=yes
5593 fi
5594
5595 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5596 have_gmp=yes
5597 saved_CFLAGS="$CFLAGS"
5598 CFLAGS="$CFLAGS $gmpinc"
5599 # Check for the recommended and required versions of GMP.
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5601 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5602
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include "gmp.h"
5606 int
5607 main ()
5608 {
5609
5610 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5611 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5612 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5613 choke me
5614 #endif
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <gmp.h>
5624 int
5625 main ()
5626 {
5627
5628 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5629 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5630 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5631 choke me
5632 #endif
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640 $as_echo "yes" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5643 $as_echo "buggy but acceptable" >&6; }
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }; have_gmp=no
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651
5652 # If we have GMP, check the MPFR version.
5653 if test x"$have_gmp" = xyes; then
5654 # Check for the recommended and required versions of MPFR.
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5656 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <gmp.h>
5660 #include <mpfr.h>
5661 int
5662 main ()
5663 {
5664
5665 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5666 choke me
5667 #endif
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <gmp.h>
5677 #include <mpfr.h>
5678 int
5679 main ()
5680 {
5681
5682 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5683 choke me
5684 #endif
5685
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5692 $as_echo "yes" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5695 $as_echo "buggy but acceptable" >&6; }
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }; have_gmp=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 fi
5704
5705 # Check for the MPC header version.
5706 if test x"$have_gmp" = xyes ; then
5707 # Check for the recommended and required versions of MPC.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5709 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <mpc.h>
5713 int
5714 main ()
5715 {
5716
5717 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5718 choke me
5719 #endif
5720
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <mpc.h>
5729 int
5730 main ()
5731 {
5732
5733 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5734 choke me
5735 #endif
5736
5737 ;
5738 return 0;
5739 }
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5743 $as_echo "yes" >&6; }
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5746 $as_echo "buggy but acceptable" >&6; }
5747 fi
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }; have_gmp=no
5752 fi
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754 fi
5755
5756 # Now check the MPFR library.
5757 if test x"$have_gmp" = xyes; then
5758 saved_LIBS="$LIBS"
5759 LIBS="$LIBS $gmplibs"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5761 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764 #include <mpc.h>
5765 int
5766 main ()
5767 {
5768
5769 mpfr_t n;
5770 mpfr_t x;
5771 mpc_t c;
5772 int t;
5773 mpfr_init (n);
5774 mpfr_init (x);
5775 mpfr_atan2 (n, n, x, GMP_RNDN);
5776 mpfr_erfc (n, x, GMP_RNDN);
5777 mpfr_subnormalize (x, t, GMP_RNDN);
5778 mpfr_clear(n);
5779 mpfr_clear(x);
5780 mpc_init2 (c, 53);
5781 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5782 mpc_cosh (c, c, MPC_RNDNN);
5783 mpc_pow (c, c, c, MPC_RNDNN);
5784 mpc_acosh (c, c, MPC_RNDNN);
5785 mpc_clear (c);
5786
5787 ;
5788 return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_c_try_link "$LINENO"; then :
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793 $as_echo "yes" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }; have_gmp=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext \
5799 conftest$ac_exeext conftest.$ac_ext
5800 LIBS="$saved_LIBS"
5801 fi
5802
5803 CFLAGS="$saved_CFLAGS"
5804
5805 # The library versions listed in the error message below should match
5806 # the HARD-minimums enforced above.
5807 if test x$have_gmp != xyes; then
5808 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5809 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5810 their locations. Source code for these libraries can be found at
5811 their respective hosting sites as well as at
5812 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5813 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5814 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5815 make sure that you have installed both the libraries and the header
5816 files. They may be located in separate packages." "$LINENO" 5
5817 fi
5818 fi
5819
5820 # Flags needed for both GMP, MPFR and/or MPC.
5821
5822
5823
5824
5825
5826
5827
5828 # Libraries to use for stage1 or when not bootstrapping.
5829
5830 # Check whether --with-stage1-libs was given.
5831 if test "${with_stage1_libs+set}" = set; then :
5832 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5833 stage1_libs=
5834 else
5835 stage1_libs=$withval
5836 fi
5837 else
5838 stage1_libs=
5839 fi
5840
5841
5842
5843 # Linker flags to use for stage1 or when not bootstrapping.
5844
5845 # Check whether --with-stage1-ldflags was given.
5846 if test "${with_stage1_ldflags+set}" = set; then :
5847 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5848 stage1_ldflags=
5849 else
5850 stage1_ldflags=$withval
5851 fi
5852 else
5853 stage1_ldflags=
5854 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5855 # if supported. But if the user explicitly specified the libraries to use,
5856 # trust that they are doing what they want.
5857 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5858 stage1_ldflags="-static-libstdc++ -static-libgcc"
5859 fi
5860 fi
5861
5862
5863
5864 # Libraries to use for stage2 and later builds.
5865
5866 # Check whether --with-boot-libs was given.
5867 if test "${with_boot_libs+set}" = set; then :
5868 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5869 poststage1_libs=
5870 else
5871 poststage1_libs=$withval
5872 fi
5873 else
5874 poststage1_libs=
5875 fi
5876
5877
5878
5879 # Linker flags to use for stage2 and later builds.
5880
5881 # Check whether --with-boot-ldflags was given.
5882 if test "${with_boot_ldflags+set}" = set; then :
5883 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5884 poststage1_ldflags=
5885 else
5886 poststage1_ldflags=$withval
5887 fi
5888 else
5889 poststage1_ldflags=
5890 # In stages 2 and 3, default to linking libstdc++ and libgcc
5891 # statically. But if the user explicitly specified the libraries to
5892 # use, trust that they are doing what they want.
5893 if test "$poststage1_libs" = ""; then
5894 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5895 fi
5896 fi
5897
5898
5899
5900 # GCC GRAPHITE dependency isl.
5901 # Basic setup is inlined here, actual checks are in config/isl.m4
5902
5903
5904 # Check whether --with-isl was given.
5905 if test "${with_isl+set}" = set; then :
5906 withval=$with_isl;
5907 fi
5908
5909
5910 # Treat --without-isl as a request to disable
5911 # GRAPHITE support and skip all following checks.
5912 if test "x$with_isl" != "xno"; then
5913 # Check for isl
5914
5915
5916 # Check whether --with-isl-include was given.
5917 if test "${with_isl_include+set}" = set; then :
5918 withval=$with_isl_include;
5919 fi
5920
5921
5922 # Check whether --with-isl-lib was given.
5923 if test "${with_isl_lib+set}" = set; then :
5924 withval=$with_isl_lib;
5925 fi
5926
5927
5928 # Check whether --enable-isl-version-check was given.
5929 if test "${enable_isl_version_check+set}" = set; then :
5930 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5931 else
5932 ENABLE_ISL_CHECK=yes
5933 fi
5934
5935
5936 # Initialize isllibs and islinc.
5937 case $with_isl in
5938 no)
5939 isllibs=
5940 islinc=
5941 ;;
5942 "" | yes)
5943 ;;
5944 *)
5945 isllibs="-L$with_isl/lib"
5946 islinc="-I$with_isl/include"
5947 ;;
5948 esac
5949 if test "x${with_isl_include}" != x ; then
5950 islinc="-I$with_isl_include"
5951 fi
5952 if test "x${with_isl_lib}" != x; then
5953 isllibs="-L$with_isl_lib"
5954 fi
5955 if test "x${islinc}" = x && test "x${isllibs}" = x \
5956 && test -d ${srcdir}/isl; then
5957 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5958 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5959 ENABLE_ISL_CHECK=no
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5961 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5962 fi
5963
5964 isllibs="${isllibs} -lisl"
5965
5966
5967
5968 if test "${ENABLE_ISL_CHECK}" = yes ; then
5969 _isl_saved_CFLAGS=$CFLAGS
5970 _isl_saved_LDFLAGS=$LDFLAGS
5971 _isl_saved_LIBS=$LIBS
5972
5973 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5974 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5975 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5976
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5978 $as_echo_n "checking for isl 0.15 or later... " >&6; }
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <isl/schedule.h>
5982 int
5983 main ()
5984 {
5985 isl_options_set_schedule_serialize_sccs (NULL, 0);
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 gcc_cv_isl=yes
5992 else
5993 gcc_cv_isl=no
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5998 $as_echo "$gcc_cv_isl" >&6; }
5999
6000 if test "${gcc_cv_isl}" = no ; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6002 $as_echo "required isl version is 0.15 or later" >&6; }
6003 fi
6004
6005 CFLAGS=$_isl_saved_CFLAGS
6006 LDFLAGS=$_isl_saved_LDFLAGS
6007 LIBS=$_isl_saved_LIBS
6008 fi
6009
6010
6011
6012
6013
6014
6015 if test "x${with_isl}" = xno; then
6016 graphite_requested=no
6017 elif test "x${with_isl}" != x \
6018 || test "x${with_isl_include}" != x \
6019 || test "x${with_isl_lib}" != x ; then
6020 graphite_requested=yes
6021 else
6022 graphite_requested=no
6023 fi
6024
6025
6026
6027 if test "${gcc_cv_isl}" = no ; then
6028 isllibs=
6029 islinc=
6030 fi
6031
6032 if test "${graphite_requested}" = yes \
6033 && test "x${isllibs}" = x \
6034 && test "x${islinc}" = x ; then
6035
6036 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6037 fi
6038
6039
6040 fi
6041
6042 # If the isl check failed, disable builds of in-tree variant of isl
6043 if test "x$with_isl" = xno ||
6044 test "x$gcc_cv_isl" = xno; then
6045 noconfigdirs="$noconfigdirs isl"
6046 islinc=
6047 fi
6048
6049
6050
6051
6052 # Check for LTO support.
6053 # Check whether --enable-lto was given.
6054 if test "${enable_lto+set}" = set; then :
6055 enableval=$enable_lto; enable_lto=$enableval
6056 else
6057 enable_lto=yes; default_enable_lto=yes
6058 fi
6059
6060
6061
6062
6063
6064 target_elf=no
6065 case $target in
6066 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6067 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6068 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6069 nvptx-*-none)
6070 target_elf=no
6071 ;;
6072 *)
6073 target_elf=yes
6074 ;;
6075 esac
6076
6077 if test $target_elf = yes; then :
6078 # ELF platforms build the lto-plugin always.
6079 build_lto_plugin=yes
6080
6081 else
6082 if test x"$default_enable_lto" = x"yes" ; then
6083 case $target in
6084 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6085 # On other non-ELF platforms, LTO has yet to be validated.
6086 *) enable_lto=no ;;
6087 esac
6088 else
6089 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6090 # It would also be nice to check the binutils support, but we don't
6091 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6092 # warn during gcc/ subconfigure; unless you're bootstrapping with
6093 # -flto it won't be needed until after installation anyway.
6094 case $target in
6095 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6096 *) if test x"$enable_lto" = x"yes"; then
6097 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6098 fi
6099 ;;
6100 esac
6101 fi
6102 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6103 # Build it unless LTO was explicitly disabled.
6104 case $target in
6105 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6106 *) ;;
6107 esac
6108
6109 fi
6110
6111
6112 # Check whether --enable-linker-plugin-configure-flags was given.
6113 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6114 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6115 else
6116 extra_linker_plugin_configure_flags=
6117 fi
6118
6119
6120 # Check whether --enable-linker-plugin-flags was given.
6121 if test "${enable_linker_plugin_flags+set}" = set; then :
6122 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6123 else
6124 extra_linker_plugin_flags=
6125 fi
6126
6127
6128
6129 # Enable --enable-host-shared.
6130 # Checked early to determine whether jit is an 'all' language
6131 # Check whether --enable-host-shared was given.
6132 if test "${enable_host_shared+set}" = set; then :
6133 enableval=$enable_host_shared; host_shared=$enableval
6134 else
6135 host_shared=no
6136 fi
6137
6138
6139
6140 # By default, C and C++ are the only stage 1 languages.
6141 stage1_languages=,c,
6142
6143 # Target libraries that we bootstrap.
6144 bootstrap_target_libs=,target-libgcc,
6145
6146 # Figure out what language subdirectories are present.
6147 # Look if the user specified --enable-languages="..."; if not, use
6148 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6149 # go away some day.
6150 # NB: embedded tabs in this IF block -- do not untabify
6151 if test -d ${srcdir}/gcc; then
6152 if test x"${enable_languages+set}" != xset; then
6153 if test x"${LANGUAGES+set}" = xset; then
6154 enable_languages="${LANGUAGES}"
6155 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6156 else
6157 enable_languages=default
6158 fi
6159 else
6160 if test x"${enable_languages}" = x ||
6161 test x"${enable_languages}" = xyes;
6162 then
6163 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6164 exit 1
6165 fi
6166 fi
6167 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6168
6169 # 'f95' is the old name for the 'fortran' language. We issue a warning
6170 # and make the substitution.
6171 case ,${enable_languages}, in
6172 *,f95,*)
6173 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6174 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6175 ;;
6176 esac
6177
6178 # If bootstrapping, C++ must be enabled.
6179 case ",$enable_languages,:$enable_bootstrap" in
6180 *,c++,*:*) ;;
6181 *:yes)
6182 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6183 enable_languages="${enable_languages},c++"
6184 else
6185 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6186 fi
6187 ;;
6188 esac
6189
6190 # First scan to see if an enabled language requires some other language.
6191 # We assume that a given config-lang.in will list all the language
6192 # front ends it requires, even if some are required indirectly.
6193 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6194 case ${lang_frag} in
6195 ..) ;;
6196 # The odd quoting in the next line works around
6197 # an apparent bug in bash 1.12 on linux.
6198 ${srcdir}/gcc/[*]/config-lang.in) ;;
6199 *)
6200 # From the config-lang.in, get $language, $lang_requires, and
6201 # $lang_requires_boot_languages.
6202 language=
6203 lang_requires=
6204 lang_requires_boot_languages=
6205 # set srcdir during sourcing lang_frag to the gcc dir.
6206 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6207 # polutes this shell
6208 saved_srcdir=${srcdir}
6209 srcdir=${srcdir}/gcc . ${lang_frag}
6210 srcdir=${saved_srcdir}
6211 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6212 case ,${enable_languages}, in
6213 *,$other,*) ;;
6214 *,default,*) ;;
6215 *,all,*) ;;
6216 *,$language,*)
6217 echo " \`$other' language required by \`$language'; enabling" 1>&2
6218 enable_languages="${enable_languages},${other}"
6219 ;;
6220 esac
6221 done
6222 for other in ${lang_requires_boot_languages} ; do
6223 if test "$other" != "c"; then
6224 case ,${enable_stage1_languages}, in
6225 *,$other,*) ;;
6226 *,default,*) ;;
6227 *,all,*) ;;
6228 *)
6229 case ,${enable_languages}, in
6230 *,$language,*)
6231 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6232 enable_stage1_languages="$enable_stage1_languages,${other}"
6233 ;;
6234 esac
6235 ;;
6236 esac
6237 fi
6238 done
6239 ;;
6240 esac
6241 done
6242
6243 new_enable_languages=,c,
6244
6245 # If LTO is enabled, add the LTO front end.
6246 if test "$enable_lto" = "yes" ; then
6247 case ,${enable_languages}, in
6248 *,lto,*) ;;
6249 *) enable_languages="${enable_languages},lto" ;;
6250 esac
6251 if test "${build_lto_plugin}" = "yes" ; then
6252 configdirs="$configdirs lto-plugin"
6253 fi
6254 fi
6255
6256 # If we're building an offloading compiler, add the LTO front end.
6257 if test x"$enable_as_accelerator_for" != x ; then
6258 case ,${enable_languages}, in
6259 *,lto,*) ;;
6260 *) enable_languages="${enable_languages},lto" ;;
6261 esac
6262 fi
6263
6264 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6265 potential_languages=,c,
6266
6267 enabled_target_libs=
6268 disabled_target_libs=
6269
6270 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6271 case ${lang_frag} in
6272 ..) ;;
6273 # The odd quoting in the next line works around
6274 # an apparent bug in bash 1.12 on linux.
6275 ${srcdir}/gcc/[*]/config-lang.in) ;;
6276 *)
6277 # From the config-lang.in, get $language, $target_libs,
6278 # $lang_dirs, $boot_language, and $build_by_default
6279 language=
6280 target_libs=
6281 lang_dirs=
6282 subdir_requires=
6283 boot_language=no
6284 build_by_default=yes
6285 # set srcdir during sourcing. See above about save & restore
6286 saved_srcdir=${srcdir}
6287 srcdir=${srcdir}/gcc . ${lang_frag}
6288 srcdir=${saved_srcdir}
6289 if test x${language} = x; then
6290 echo "${lang_frag} doesn't set \$language." 1>&2
6291 exit 1
6292 fi
6293
6294 if test "$language" = "c++"; then
6295 boot_language=yes
6296 fi
6297
6298 add_this_lang=no
6299 # C is always enabled, so no need to add it again
6300 if test "$language" != "c"; then
6301 case ,${enable_languages}, in
6302 *,${language},*)
6303 # Language was explicitly selected; include it
6304 add_this_lang=yes
6305 ;;
6306 *,all,*)
6307 # All languages are enabled
6308 add_this_lang=all
6309 ;;
6310 *,default,*)
6311 # 'default' was selected, select it if it is a default language
6312 add_this_lang=${build_by_default}
6313 ;;
6314 esac
6315 fi
6316
6317 # Disable languages that need other directories if these aren't available.
6318 for i in $subdir_requires; do
6319 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6320 case ${add_this_lang} in
6321 yes)
6322 # Specifically requested language; tell them.
6323 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6324 ;;
6325 all)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6327 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6328 add_this_lang=unsupported
6329 ;;
6330 *)
6331 # Silently disable.
6332 add_this_lang=unsupported
6333 ;;
6334 esac
6335 done
6336
6337 # Disable Ada if no preexisting GNAT is available.
6338 case ${add_this_lang}:${language}:${have_gnat} in
6339 yes:ada:no)
6340 # Specifically requested language; tell them.
6341 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6342 ;;
6343 all:ada:no)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6345 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6346 add_this_lang=unsupported
6347 ;;
6348 *:ada:no)
6349 # Silently disable.
6350 add_this_lang=unsupported
6351 ;;
6352 esac
6353
6354 # Disable jit if -enable-host-shared not specified
6355 case ${add_this_lang}:${language}:${host_shared} in
6356 yes:jit:no)
6357 # PR jit/64780: explicitly specify --enable-host-shared
6358 as_fn_error $? "
6359 Enabling language \"jit\" requires --enable-host-shared.
6360
6361 --enable-host-shared typically slows the rest of the compiler down by
6362 a few %, so you must explicitly enable it.
6363
6364 If you want to build both the jit and the regular compiler, it is often
6365 best to do this via two separate configure/builds, in separate
6366 directories, to avoid imposing the performance cost of
6367 --enable-host-shared on the regular compiler." "$LINENO" 5
6368 ;;
6369 all:jit:no)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6371 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6372 add_this_lang=unsupported
6373 ;;
6374 *:jit:no)
6375 # Silently disable.
6376 add_this_lang=unsupported
6377 ;;
6378 esac
6379
6380 # Disable a language that is unsupported by the target.
6381 case "${add_this_lang}: $unsupported_languages " in
6382 no:*) ;;
6383 unsupported:*) ;;
6384 *:*" $language "*)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6386 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6387 add_this_lang=unsupported
6388 ;;
6389 esac
6390
6391 case $add_this_lang in
6392 unsupported)
6393 # Remove language-dependent dirs.
6394 disabled_target_libs="$disabled_target_libs $target_libs"
6395 noconfigdirs="$noconfigdirs $lang_dirs"
6396 ;;
6397 no)
6398 # Remove language-dependent dirs; still show language as supported.
6399 disabled_target_libs="$disabled_target_libs $target_libs"
6400 noconfigdirs="$noconfigdirs $lang_dirs"
6401 potential_languages="${potential_languages}${language},"
6402 ;;
6403 all|yes)
6404 new_enable_languages="${new_enable_languages}${language},"
6405 potential_languages="${potential_languages}${language},"
6406 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6407 enabled_target_libs="$enabled_target_libs $target_libs"
6408 case "${boot_language}:,$enable_stage1_languages," in
6409 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6410 # Add to (comma-separated) list of stage 1 languages.
6411 case ",$stage1_languages," in
6412 *,$language,* | ,yes, | ,all,) ;;
6413 *) stage1_languages="${stage1_languages}${language}," ;;
6414 esac
6415 # We need to bootstrap any supporting libraries.
6416 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6417 ;;
6418 esac
6419 ;;
6420 esac
6421 ;;
6422 esac
6423 done
6424
6425 # Add target libraries which are only needed for disabled languages
6426 # to noconfigdirs.
6427 if test -n "$disabled_target_libs"; then
6428 for dir in $disabled_target_libs; do
6429 case " $enabled_target_libs " in
6430 *" ${dir} "*) ;;
6431 *) noconfigdirs="$noconfigdirs $dir" ;;
6432 esac
6433 done
6434 fi
6435
6436 # Check whether --enable-stage1-languages was given.
6437 if test "${enable_stage1_languages+set}" = set; then :
6438 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6439 ,no,|,,)
6440 # Set it to something that will have no effect in the loop below
6441 enable_stage1_languages=c ;;
6442 ,yes,)
6443 enable_stage1_languages=`echo $new_enable_languages | \
6444 sed -e "s/^,//" -e "s/,$//" ` ;;
6445 *,all,*)
6446 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6447 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6448 esac
6449
6450 # Add "good" languages from enable_stage1_languages to stage1_languages,
6451 # while "bad" languages go in missing_languages. Leave no duplicates.
6452 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6453 case $potential_languages in
6454 *,$i,*)
6455 case $stage1_languages in
6456 *,$i,*) ;;
6457 *) stage1_languages="$stage1_languages$i," ;;
6458 esac ;;
6459 *)
6460 case $missing_languages in
6461 *,$i,*) ;;
6462 *) missing_languages="$missing_languages$i," ;;
6463 esac ;;
6464 esac
6465 done
6466 fi
6467
6468
6469 # Remove leading/trailing commas that were added for simplicity
6470 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6471 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6472 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6473 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6474
6475 if test "x$missing_languages" != x; then
6476 as_fn_error $? "
6477 The following requested languages could not be built: ${missing_languages}
6478 Supported languages are: ${potential_languages}" "$LINENO" 5
6479 fi
6480 if test "x$new_enable_languages" != "x$enable_languages"; then
6481 echo The following languages will be built: ${new_enable_languages}
6482 enable_languages="$new_enable_languages"
6483 fi
6484
6485
6486 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6487 fi
6488
6489 # Handle --disable-<component> generically.
6490 for dir in $configdirs $build_configdirs $target_configdirs ; do
6491 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6492 varname=`echo $dirname | sed -e s/+/_/g`
6493 if eval test x\${enable_${varname}} "=" xno ; then
6494 noconfigdirs="$noconfigdirs $dir"
6495 fi
6496 done
6497
6498 # Check for Boehm's garbage collector
6499 # Check whether --enable-objc-gc was given.
6500 if test "${enable_objc_gc+set}" = set; then :
6501 enableval=$enable_objc_gc;
6502 fi
6503
6504
6505 # Check whether --with-target-bdw-gc was given.
6506 if test "${with_target_bdw_gc+set}" = set; then :
6507 withval=$with_target_bdw_gc;
6508 fi
6509
6510
6511 # Check whether --with-target-bdw-gc-include was given.
6512 if test "${with_target_bdw_gc_include+set}" = set; then :
6513 withval=$with_target_bdw_gc_include;
6514 fi
6515
6516
6517 # Check whether --with-target-bdw-gc-lib was given.
6518 if test "${with_target_bdw_gc_lib+set}" = set; then :
6519 withval=$with_target_bdw_gc_lib;
6520 fi
6521
6522
6523 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6525 $as_echo_n "checking for bdw garbage collector... " >&6; }
6526 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6528 $as_echo "using bdw-gc in default locations" >&6; }
6529 else
6530 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6531 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6532 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6533 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6536 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6537 fi
6538 fi
6539 esac
6540
6541 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6542 case ,${enable_languages}, in
6543 *,c++,*)
6544 # Disable libitm, libsanitizer if we're not building libstdc++
6545 case "${noconfigdirs}" in
6546 *target-libstdc++-v3*)
6547 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6548 ;;
6549 *) ;;
6550 esac
6551 ;;
6552 *)
6553 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6554 ;;
6555 esac
6556
6557 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6558 # $build_configdirs and $target_configdirs.
6559 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6560
6561 notsupp=""
6562 for dir in . $skipdirs $noconfigdirs ; do
6563 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6564 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6565 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6566 if test -r $srcdir/$dirname/configure ; then
6567 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6568 true
6569 else
6570 notsupp="$notsupp $dir"
6571 fi
6572 fi
6573 fi
6574 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6575 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6576 if test -r $srcdir/$dirname/configure ; then
6577 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6578 true
6579 else
6580 notsupp="$notsupp $dir"
6581 fi
6582 fi
6583 fi
6584 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6585 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6586 if test -r $srcdir/$dirname/configure ; then
6587 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6588 true
6589 else
6590 notsupp="$notsupp $dir"
6591 fi
6592 fi
6593 fi
6594 done
6595
6596 # Quietly strip out all directories which aren't configurable in this tree.
6597 # This relies on all configurable subdirectories being autoconfiscated, which
6598 # is now the case.
6599 build_configdirs_all="$build_configdirs"
6600 build_configdirs=
6601 for i in ${build_configdirs_all} ; do
6602 j=`echo $i | sed -e s/build-//g`
6603 if test -f ${srcdir}/$j/configure ; then
6604 build_configdirs="${build_configdirs} $i"
6605 fi
6606 done
6607
6608 configdirs_all="$configdirs"
6609 configdirs=
6610 for i in ${configdirs_all} ; do
6611 if test -f ${srcdir}/$i/configure ; then
6612 configdirs="${configdirs} $i"
6613 fi
6614 done
6615
6616 target_configdirs_all="$target_configdirs"
6617 target_configdirs=
6618 for i in ${target_configdirs_all} ; do
6619 j=`echo $i | sed -e s/target-//g`
6620 if test -f ${srcdir}/$j/configure ; then
6621 target_configdirs="${target_configdirs} $i"
6622 fi
6623 done
6624
6625 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6626 # so we have to add it after the preceding checks.
6627 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6628 then
6629 case " $configdirs " in
6630 *" libiberty "*)
6631 # If we can build libiberty, we can also build libiberty-linker-plugin.
6632 configdirs="$configdirs libiberty-linker-plugin"
6633 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6634 --with-libiberty=../libiberty-linker-plugin";;
6635 *)
6636 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6637 esac
6638 fi
6639
6640 # Sometimes we have special requirements for the host libiberty.
6641 extra_host_libiberty_configure_flags=
6642 extra_host_zlib_configure_flags=
6643 case " $configdirs " in
6644 *" lto-plugin "* | *" libcc1 "*)
6645 # When these are to be built as shared libraries, the same applies to
6646 # libiberty.
6647 extra_host_libiberty_configure_flags=--enable-shared
6648 ;;
6649 *" bfd "*)
6650 # When bfd is to be built as a shared library, the same applies to
6651 # zlib.
6652 if test "$enable_shared" = "yes"; then
6653 extra_host_zlib_configure_flags=--enable-host-shared
6654 fi
6655 ;;
6656 esac
6657
6658
6659
6660 # Produce a warning message for the subdirs we can't configure.
6661 # This isn't especially interesting in the Cygnus tree, but in the individual
6662 # FSF releases, it's important to let people know when their machine isn't
6663 # supported by the one or two programs in a package.
6664
6665 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6666 # If $appdirs is non-empty, at least one of those directories must still
6667 # be configured, or we error out. (E.g., if the gas release supports a
6668 # specified target in some subdirs but not the gas subdir, we shouldn't
6669 # pretend that all is well.)
6670 if test -n "$appdirs" ; then
6671 for dir in $appdirs ; do
6672 if test -r $dir/Makefile.in ; then
6673 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6674 appdirs=""
6675 break
6676 fi
6677 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6678 appdirs=""
6679 break
6680 fi
6681 fi
6682 done
6683 if test -n "$appdirs" ; then
6684 echo "*** This configuration is not supported by this package." 1>&2
6685 exit 1
6686 fi
6687 fi
6688 # Okay, some application will build, or we don't care to check. Still
6689 # notify of subdirs not getting built.
6690 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6691 echo " ${notsupp}" 1>&2
6692 echo " (Any other directories should still work fine.)" 1>&2
6693 fi
6694
6695 case "$host" in
6696 *msdosdjgpp*)
6697 enable_gdbtk=no ;;
6698 esac
6699
6700 # To find our prefix, in gcc_cv_tool_prefix.
6701
6702 # The user is always right.
6703 if test "${PATH_SEPARATOR+set}" != set; then
6704 echo "#! /bin/sh" >conf$$.sh
6705 echo "exit 0" >>conf$$.sh
6706 chmod +x conf$$.sh
6707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6708 PATH_SEPARATOR=';'
6709 else
6710 PATH_SEPARATOR=:
6711 fi
6712 rm -f conf$$.sh
6713 fi
6714
6715
6716 get_gcc_base_ver="cat"
6717
6718 # Check whether --with-gcc-major-version-only was given.
6719 if test "${with_gcc_major_version_only+set}" = set; then :
6720 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6721 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6722 fi
6723
6724 fi
6725
6726
6727
6728
6729
6730
6731 if test "x$exec_prefix" = xNONE; then
6732 if test "x$prefix" = xNONE; then
6733 gcc_cv_tool_prefix=$ac_default_prefix
6734 else
6735 gcc_cv_tool_prefix=$prefix
6736 fi
6737 else
6738 gcc_cv_tool_prefix=$exec_prefix
6739 fi
6740
6741 # If there is no compiler in the tree, use the PATH only. In any
6742 # case, if there is no compiler in the tree nobody should use
6743 # AS_FOR_TARGET and LD_FOR_TARGET.
6744 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6745 if test x$with_gcc_major_version_only = xyes ; then
6746 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6747 else
6748 gcc_version=`cat $srcdir/gcc/BASE-VER`
6749 fi
6750 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6751 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6752 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6753 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6754 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6755 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6756 else
6757 gcc_cv_tool_dirs=
6758 fi
6759
6760 if test x$build = x$target && test -n "$md_exec_prefix"; then
6761 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6762 fi
6763
6764
6765
6766 copy_dirs=
6767
6768
6769 # Check whether --with-build-sysroot was given.
6770 if test "${with_build_sysroot+set}" = set; then :
6771 withval=$with_build_sysroot; if test x"$withval" != x ; then
6772 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6773 fi
6774 else
6775 SYSROOT_CFLAGS_FOR_TARGET=
6776 fi
6777
6778
6779
6780
6781 # Check whether --with-debug-prefix-map was given.
6782 if test "${with_debug_prefix_map+set}" = set; then :
6783 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6784 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6785 for debug_map in $withval; do
6786 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6787 done
6788 fi
6789 else
6790 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6791 fi
6792
6793
6794
6795 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6796 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6797 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6798 # We want to ensure that TARGET libraries (which we know are built with
6799 # gcc) are built with "-O2 -g", so include those options when setting
6800 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6801 if test "x$CFLAGS_FOR_TARGET" = x; then
6802 if test "x${is_cross_compiler}" = xyes; then
6803 CFLAGS_FOR_TARGET="-g -O2"
6804 else
6805 CFLAGS_FOR_TARGET=$CFLAGS
6806 case " $CFLAGS " in
6807 *" -O2 "*) ;;
6808 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6809 esac
6810 case " $CFLAGS " in
6811 *" -g "* | *" -g3 "*) ;;
6812 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6813 esac
6814 fi
6815 fi
6816
6817
6818 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6819 if test "x${is_cross_compiler}" = xyes; then
6820 CXXFLAGS_FOR_TARGET="-g -O2"
6821 else
6822 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6823 case " $CXXFLAGS " in
6824 *" -O2 "*) ;;
6825 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6826 esac
6827 case " $CXXFLAGS " in
6828 *" -g "* | *" -g3 "*) ;;
6829 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6830 esac
6831 fi
6832 fi
6833
6834
6835
6836
6837 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6838 # the named directory are copied to $(tooldir)/sys-include.
6839 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6840 if test x${is_cross_compiler} = xno ; then
6841 echo 1>&2 '***' --with-headers is only supported when cross compiling
6842 exit 1
6843 fi
6844 if test x"${with_headers}" != xyes ; then
6845 x=${gcc_cv_tool_prefix}
6846 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6847 fi
6848 fi
6849
6850 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6851 # the name directories are copied to $(tooldir)/lib. Multiple directories
6852 # are permitted.
6853 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6854 if test x${is_cross_compiler} = xno ; then
6855 echo 1>&2 '***' --with-libs is only supported when cross compiling
6856 exit 1
6857 fi
6858 if test x"${with_libs}" != xyes ; then
6859 # Copy the libraries in reverse order, so that files in the first named
6860 # library override files in subsequent libraries.
6861 x=${gcc_cv_tool_prefix}
6862 for l in ${with_libs}; do
6863 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6864 done
6865 fi
6866 fi
6867
6868 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6869 #
6870 # This is done by determining whether or not the appropriate directory
6871 # is available, and by checking whether or not specific configurations
6872 # have requested that this magic not happen.
6873 #
6874 # The command line options always override the explicit settings in
6875 # configure.ac, and the settings in configure.ac override this magic.
6876 #
6877 # If the default for a toolchain is to use GNU as and ld, and you don't
6878 # want to do that, then you should use the --without-gnu-as and
6879 # --without-gnu-ld options for the configure script. Similarly, if
6880 # the default is to use the included zlib and you don't want to do that,
6881 # you should use the --with-system-zlib option for the configure script.
6882
6883 if test x${use_gnu_as} = x &&
6884 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6885 with_gnu_as=yes
6886 extra_host_args="$extra_host_args --with-gnu-as"
6887 fi
6888
6889 if test x${use_gnu_ld} = x &&
6890 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6891 with_gnu_ld=yes
6892 extra_host_args="$extra_host_args --with-gnu-ld"
6893 fi
6894
6895 if test x${use_included_zlib} = x &&
6896 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6897 :
6898 else
6899 with_system_zlib=yes
6900 extra_host_args="$extra_host_args --with-system-zlib"
6901 fi
6902
6903 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6904 # can detect this case.
6905
6906 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6907 with_newlib=yes
6908 extra_host_args="$extra_host_args --with-newlib"
6909 fi
6910
6911 # Handle ${copy_dirs}
6912 set fnord ${copy_dirs}
6913 shift
6914 while test $# != 0 ; do
6915 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6916 :
6917 else
6918 echo Copying $1 to $2
6919
6920 # Use the install script to create the directory and all required
6921 # parent directories.
6922 if test -d $2 ; then
6923 :
6924 else
6925 echo >config.temp
6926 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6927 fi
6928
6929 # Copy the directory, assuming we have tar.
6930 # FIXME: Should we use B in the second tar? Not all systems support it.
6931 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6932
6933 # It is the responsibility of the user to correctly adjust all
6934 # symlinks. If somebody can figure out how to handle them correctly
6935 # here, feel free to add the code.
6936
6937 echo $1 > $2/COPIED
6938 fi
6939 shift; shift
6940 done
6941
6942 # Determine a target-dependent exec_prefix that the installed
6943 # gcc will search in. Keep this list sorted by triplet, with
6944 # the *-*-osname triplets last.
6945 md_exec_prefix=
6946 case "${target}" in
6947 i[34567]86-pc-msdosdjgpp*)
6948 md_exec_prefix=/dev/env/DJDIR/bin
6949 ;;
6950 *-*-hpux* | \
6951 *-*-nto-qnx* | \
6952 *-*-solaris2*)
6953 md_exec_prefix=/usr/ccs/bin
6954 ;;
6955 esac
6956
6957 extra_arflags_for_target=
6958 extra_nmflags_for_target=
6959 extra_ranlibflags_for_target=
6960 target_makefile_frag=/dev/null
6961 case "${target}" in
6962 spu-*-*)
6963 target_makefile_frag="config/mt-spu"
6964 ;;
6965 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6966 target_makefile_frag="config/mt-sde"
6967 ;;
6968 mipsisa*-*-elfoabi*)
6969 target_makefile_frag="config/mt-mips-elfoabi"
6970 ;;
6971 mips*-*-*linux* | mips*-*-gnu*)
6972 target_makefile_frag="config/mt-mips-gnu"
6973 ;;
6974 nios2-*-elf*)
6975 target_makefile_frag="config/mt-nios2-elf"
6976 ;;
6977 *-*-linux-android*)
6978 target_makefile_frag="config/mt-android"
6979 ;;
6980 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6981 target_makefile_frag="config/mt-gnu"
6982 ;;
6983 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6984 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6985 # commands to handle both 32-bit and 64-bit objects. These flags are
6986 # harmless if we're using GNU nm or ar.
6987 extra_arflags_for_target=" -X32_64"
6988 extra_nmflags_for_target=" -B -X32_64"
6989 ;;
6990 esac
6991
6992 alphaieee_frag=/dev/null
6993 case $target in
6994 alpha*-*-*)
6995 # This just makes sure to use the -mieee option to build target libs.
6996 # This should probably be set individually by each library.
6997 alphaieee_frag="config/mt-alphaieee"
6998 ;;
6999 esac
7000
7001 # If --enable-target-optspace always use -Os instead of -O2 to build
7002 # the target libraries, similarly if it is not specified, use -Os
7003 # on selected platforms.
7004 ospace_frag=/dev/null
7005 case "${enable_target_optspace}:${target}" in
7006 yes:*)
7007 ospace_frag="config/mt-ospace"
7008 ;;
7009 :d30v-*)
7010 ospace_frag="config/mt-d30v"
7011 ;;
7012 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7013 ospace_frag="config/mt-ospace"
7014 ;;
7015 no:* | :*)
7016 ;;
7017 *)
7018 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7019 ;;
7020 esac
7021
7022 # Some systems (e.g., one of the i386-aix systems the gas testers are
7023 # using) don't handle "\$" correctly, so don't use it here.
7024 tooldir='${exec_prefix}'/${target_noncanonical}
7025 build_tooldir=${tooldir}
7026
7027 # Create a .gdbinit file which runs the one in srcdir
7028 # and tells GDB to look there for source files.
7029
7030 if test -r ${srcdir}/.gdbinit ; then
7031 case ${srcdir} in
7032 .) ;;
7033 *) cat > ./.gdbinit <<EOF
7034 # ${NO_EDIT}
7035 dir ${srcdir}
7036 dir .
7037 source ${srcdir}/.gdbinit
7038 EOF
7039 ;;
7040 esac
7041 fi
7042
7043 # Make sure that the compiler is able to generate an executable. If it
7044 # can't, we are probably in trouble. We don't care whether we can run the
7045 # executable--we might be using a cross compiler--we only care whether it
7046 # can be created. At this point the main configure script has set CC.
7047 we_are_ok=no
7048 echo "int main () { return 0; }" > conftest.c
7049 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7050 if test $? = 0 ; then
7051 if test -s conftest || test -s conftest.exe ; then
7052 we_are_ok=yes
7053 fi
7054 fi
7055 case $we_are_ok in
7056 no)
7057 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7058 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7059 rm -f conftest*
7060 exit 1
7061 ;;
7062 esac
7063 rm -f conftest*
7064
7065 # Decide which environment variable is used to find dynamic libraries.
7066 case "${host}" in
7067 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7068 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7069 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7070 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7071 esac
7072
7073 # On systems where the dynamic library environment variable is PATH,
7074 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7075 # built executables to PATH.
7076 if test "$RPATH_ENVVAR" = PATH; then
7077 GCC_SHLIB_SUBDIR=/shlib
7078 else
7079 GCC_SHLIB_SUBDIR=
7080 fi
7081
7082 # Adjust the toplevel makefile according to whether bootstrap was selected.
7083 case $enable_bootstrap in
7084 yes)
7085 bootstrap_suffix=bootstrap
7086 BUILD_CONFIG=bootstrap-debug
7087 ;;
7088 no)
7089 bootstrap_suffix=no-bootstrap
7090 BUILD_CONFIG=
7091 ;;
7092 esac
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7095 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7096
7097
7098 # Check whether --with-build-config was given.
7099 if test "${with_build_config+set}" = set; then :
7100 withval=$with_build_config; case $with_build_config in
7101 yes) with_build_config= ;;
7102 no) with_build_config= BUILD_CONFIG= ;;
7103 esac
7104 fi
7105
7106
7107 if test "x${with_build_config}" != x; then
7108 BUILD_CONFIG=$with_build_config
7109 else
7110 case $BUILD_CONFIG in
7111 bootstrap-debug)
7112 if echo "int f (void) { return 0; }" > conftest.c &&
7113 ${CC} -c conftest.c &&
7114 mv conftest.o conftest.o.g0 &&
7115 ${CC} -c -g conftest.c &&
7116 mv conftest.o conftest.o.g &&
7117 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7118 :
7119 else
7120 BUILD_CONFIG=
7121 fi
7122 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7123 ;;
7124 esac
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7127 $as_echo "$BUILD_CONFIG" >&6; }
7128
7129
7130 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7132 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7133 # Check whether --enable-vtable-verify was given.
7134 if test "${enable_vtable_verify+set}" = set; then :
7135 enableval=$enable_vtable_verify; case "$enableval" in
7136 yes) enable_vtable_verify=yes ;;
7137 no) enable_vtable_verify=no ;;
7138 *) enable_vtable_verify=no;;
7139 esac
7140 else
7141 enable_vtable_verify=no
7142 fi
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7145 $as_echo "$enable_vtable_verify" >&6; }
7146
7147 # Record target_configdirs and the configure arguments for target and
7148 # build configuration in Makefile.
7149 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7150 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7151 bootstrap_fixincludes=no
7152
7153 # If we are building libgomp, bootstrap it.
7154 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7155 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7156 fi
7157
7158 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7159 # or bootstrap-ubsan, bootstrap it.
7160 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7161 case "$BUILD_CONFIG" in
7162 *bootstrap-asan* | *bootstrap-ubsan* )
7163 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7164 bootstrap_fixincludes=yes
7165 ;;
7166 esac
7167 fi
7168
7169 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7170 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7171 test "$enable_vtable_verify" != no; then
7172 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7173 fi
7174
7175 # Determine whether gdb needs tk/tcl or not.
7176 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7177 # and in that case we want gdb to be built without tk. Ugh!
7178 # In fact I believe gdb is the *only* package directly dependent on tk,
7179 # so we should be able to put the 'maybe's in unconditionally and
7180 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7181 # 100% sure that that's safe though.
7182
7183 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7184 case "$enable_gdbtk" in
7185 no)
7186 GDB_TK="" ;;
7187 yes)
7188 GDB_TK="${gdb_tk}" ;;
7189 *)
7190 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7191 # distro. Eventually someone will fix this and move Insight, nee
7192 # gdbtk to a separate directory.
7193 if test -d ${srcdir}/gdb/gdbtk ; then
7194 GDB_TK="${gdb_tk}"
7195 else
7196 GDB_TK=""
7197 fi
7198 ;;
7199 esac
7200 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7201 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7202
7203 # Strip out unwanted targets.
7204
7205 # While at that, we remove Makefiles if we were started for recursive
7206 # configuration, so that the top-level Makefile reconfigures them,
7207 # like we used to do when configure itself was recursive.
7208
7209 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7210 # but now we're fixing up the Makefile ourselves with the additional
7211 # commands passed to AC_CONFIG_FILES. Use separate variables
7212 # extrasub-{build,host,target} not because there is any reason to split
7213 # the substitutions up that way, but only to remain below the limit of
7214 # 99 commands in a script, for HP-UX sed.
7215
7216 # Do not nest @if/@endif or @unless/@endunless pairs, because
7217 # configure will not warn you at all.
7218
7219 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7220 yes:yes:*\ gold\ *:*,c++,*) ;;
7221 yes:yes:*\ gold\ *:*)
7222 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7223 ;;
7224 esac
7225
7226 extrasub_build=
7227 for module in ${build_configdirs} ; do
7228 if test -z "${no_recursion}" \
7229 && test -f ${build_subdir}/${module}/Makefile; then
7230 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7231 rm -f ${build_subdir}/${module}/Makefile
7232 fi
7233 extrasub_build="$extrasub_build
7234 /^@if build-$module\$/d
7235 /^@endif build-$module\$/d
7236 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7237 /^@if build-$module-$bootstrap_suffix\$/d
7238 /^@endif build-$module-$bootstrap_suffix\$/d
7239 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7240 done
7241 extrasub_host=
7242 for module in ${configdirs} ; do
7243 if test -z "${no_recursion}"; then
7244 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7245 if test -f ${file}; then
7246 echo 1>&2 "*** removing ${file} to force reconfigure"
7247 rm -f ${file}
7248 fi
7249 done
7250 fi
7251 case ${module},${bootstrap_fixincludes} in
7252 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7253 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7254 esac
7255 extrasub_host="$extrasub_host
7256 /^@if $module\$/d
7257 /^@endif $module\$/d
7258 /^@unless $module\$/,/^@endunless $module\$/d
7259 /^@if $module-$host_bootstrap_suffix\$/d
7260 /^@endif $module-$host_bootstrap_suffix\$/d
7261 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7262 done
7263 extrasub_target=
7264 for module in ${target_configdirs} ; do
7265 if test -z "${no_recursion}" \
7266 && test -f ${target_subdir}/${module}/Makefile; then
7267 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7268 rm -f ${target_subdir}/${module}/Makefile
7269 fi
7270
7271 # We only bootstrap target libraries listed in bootstrap_target_libs.
7272 case $bootstrap_target_libs in
7273 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7274 *) target_bootstrap_suffix=no-bootstrap ;;
7275 esac
7276
7277 extrasub_target="$extrasub_target
7278 /^@if target-$module\$/d
7279 /^@endif target-$module\$/d
7280 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7281 /^@if target-$module-$target_bootstrap_suffix\$/d
7282 /^@endif target-$module-$target_bootstrap_suffix\$/d
7283 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7284 done
7285
7286 # Do the final fixup along with target modules.
7287 extrasub_target="$extrasub_target
7288 /^@if /,/^@endif /d
7289 /^@unless /d
7290 /^@endunless /d"
7291
7292 # Create the serialization dependencies. This uses a temporary file.
7293
7294 # Check whether --enable-serial-configure was given.
7295 if test "${enable_serial_configure+set}" = set; then :
7296 enableval=$enable_serial_configure;
7297 fi
7298
7299
7300 case ${enable_serial_configure} in
7301 yes)
7302 enable_serial_build_configure=yes
7303 enable_serial_host_configure=yes
7304 enable_serial_target_configure=yes
7305 ;;
7306 esac
7307
7308 # These force 'configure's to be done one at a time, to avoid problems
7309 # with contention over a shared config.cache.
7310 rm -f serdep.tmp
7311 echo '# serdep.tmp' > serdep.tmp
7312 olditem=
7313 test "x${enable_serial_build_configure}" = xyes &&
7314 for item in ${build_configdirs} ; do
7315 case ${olditem} in
7316 "") ;;
7317 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7318 esac
7319 olditem=${item}
7320 done
7321 olditem=
7322 test "x${enable_serial_host_configure}" = xyes &&
7323 for item in ${configdirs} ; do
7324 case ${olditem} in
7325 "") ;;
7326 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7327 esac
7328 olditem=${item}
7329 done
7330 olditem=
7331 test "x${enable_serial_target_configure}" = xyes &&
7332 for item in ${target_configdirs} ; do
7333 case ${olditem} in
7334 "") ;;
7335 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7336 esac
7337 olditem=${item}
7338 done
7339 serialization_dependencies=serdep.tmp
7340
7341
7342 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7343 # target, nonopt, and variable assignments. These are the ones we
7344 # might not want to pass down to subconfigures. The exception being
7345 # --cache-file=/dev/null, which is used to turn off the use of cache
7346 # files altogether, and which should be passed on to subconfigures.
7347 # Also strip program-prefix, program-suffix, and program-transform-name,
7348 # so that we can pass down a consistent program-transform-name.
7349 baseargs=
7350 tbaseargs=
7351 keep_next=no
7352 skip_next=no
7353 eval "set -- $ac_configure_args"
7354 for ac_arg
7355 do
7356 if test X"$skip_next" = X"yes"; then
7357 skip_next=no
7358 continue
7359 fi
7360 if test X"$keep_next" = X"yes"; then
7361 case $ac_arg in
7362 *\'*)
7363 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7364 esac
7365 baseargs="$baseargs '$ac_arg'"
7366 tbaseargs="$tbaseargs '$ac_arg'"
7367 keep_next=no
7368 continue
7369 fi
7370
7371 # Handle separated arguments. Based on the logic generated by
7372 # autoconf 2.59.
7373 case $ac_arg in
7374 *=* | --config-cache | -C | -disable-* | --disable-* \
7375 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7376 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7377 | -with-* | --with-* | -without-* | --without-* | --x)
7378 separate_arg=no
7379 ;;
7380 -*)
7381 separate_arg=yes
7382 ;;
7383 *)
7384 separate_arg=no
7385 ;;
7386 esac
7387
7388 skip_targ=no
7389 case $ac_arg in
7390
7391 --with-* | --without-*)
7392 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7393
7394 case $libopt in
7395 *[-_]include)
7396 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7397 ;;
7398 *[-_]lib)
7399 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7400 ;;
7401 *)
7402 lib=$libopt
7403 ;;
7404 esac
7405
7406
7407 case $lib in
7408 mpc | mpfr | gmp | isl)
7409 # If we're processing --with-$lib, --with-$lib-include or
7410 # --with-$lib-lib, for one of the libs above, and target is
7411 # different from host, don't pass the current argument to any
7412 # target library's configure.
7413 if test x$is_cross_compiler = xyes; then
7414 skip_targ=yes
7415 fi
7416 ;;
7417 esac
7418 ;;
7419 esac
7420
7421 case "$ac_arg" in
7422 --cache-file=/dev/null | \
7423 -cache-file=/dev/null )
7424 # Handled here to avoid the test to skip args below.
7425 baseargs="$baseargs '$ac_arg'"
7426 tbaseargs="$tbaseargs '$ac_arg'"
7427 # Assert: $separate_arg should always be no.
7428 keep_next=$separate_arg
7429 ;;
7430 --no*)
7431 continue
7432 ;;
7433 --c* | \
7434 --sr* | \
7435 --ho* | \
7436 --bu* | \
7437 --t* | \
7438 --program-* | \
7439 -cache_file* | \
7440 -srcdir* | \
7441 -host* | \
7442 -build* | \
7443 -target* | \
7444 -program-prefix* | \
7445 -program-suffix* | \
7446 -program-transform-name* )
7447 skip_next=$separate_arg
7448 continue
7449 ;;
7450 -*)
7451 # An option. Add it.
7452 case $ac_arg in
7453 *\'*)
7454 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7455 esac
7456 baseargs="$baseargs '$ac_arg'"
7457 if test X"$skip_targ" = Xno; then
7458 tbaseargs="$tbaseargs '$ac_arg'"
7459 fi
7460 keep_next=$separate_arg
7461 ;;
7462 *)
7463 # Either a variable assignment, or a nonopt (triplet). Don't
7464 # pass it down; let the Makefile handle this.
7465 continue
7466 ;;
7467 esac
7468 done
7469 # Remove the initial space we just introduced and, as these will be
7470 # expanded by make, quote '$'.
7471 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7472
7473 # Add in --program-transform-name, after --program-prefix and
7474 # --program-suffix have been applied to it. Autoconf has already
7475 # doubled dollar signs and backslashes in program_transform_name; we want
7476 # the backslashes un-doubled, and then the entire thing wrapped in single
7477 # quotes, because this will be expanded first by make and then by the shell.
7478 # Also, because we want to override the logic in subdir configure scripts to
7479 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7480 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7481 ${program_transform_name}
7482 EOF_SED
7483 gcc_transform_name=`cat conftestsed.out`
7484 rm -f conftestsed.out
7485 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7486 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7487 if test "$silent" = yes; then
7488 baseargs="$baseargs --silent"
7489 tbaseargs="$tbaseargs --silent"
7490 fi
7491 baseargs="$baseargs --disable-option-checking"
7492 tbaseargs="$tbaseargs --disable-option-checking"
7493
7494 # Record and document user additions to sub configure arguments.
7495
7496
7497
7498
7499 # For the build-side libraries, we just need to pretend we're native,
7500 # and not use the same cache file. Multilibs are neither needed nor
7501 # desired. We can't even use the same cache file for all build-side
7502 # libraries, as they're compiled differently; some with C, some with
7503 # C++ or with different feature-enabling options.
7504 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7505
7506 # For host modules, accept cache file option, or specification as blank.
7507 case "${cache_file}" in
7508 "") # empty
7509 cache_file_option="" ;;
7510 /* | [A-Za-z]:[\\/]* ) # absolute path
7511 cache_file_option="--cache-file=${cache_file}" ;;
7512 *) # relative path
7513 cache_file_option="--cache-file=../${cache_file}" ;;
7514 esac
7515
7516 # Host dirs don't like to share a cache file either, horribly enough.
7517 # This seems to be due to autoconf 2.5x stupidity.
7518 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7519
7520 target_configargs="$target_configargs ${tbaseargs}"
7521
7522 # Passing a --with-cross-host argument lets the target libraries know
7523 # whether they are being built with a cross-compiler or being built
7524 # native. However, it would be better to use other mechanisms to make the
7525 # sorts of decisions they want to make on this basis. Please consider
7526 # this option to be deprecated. FIXME.
7527 if test x${is_cross_compiler} = xyes ; then
7528 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7529 fi
7530
7531 # Special user-friendly check for native x86_64-linux build, if
7532 # multilib is not explicitly enabled.
7533 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7534 x86_64-*linux*:yes:$build:$build:)
7535 # Make sure we have a development environment that handles 32-bit
7536 dev64=no
7537 echo "int main () { return 0; }" > conftest.c
7538 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7539 if test $? = 0 ; then
7540 if test -s conftest || test -s conftest.exe ; then
7541 dev64=yes
7542 fi
7543 fi
7544 rm -f conftest*
7545 if test x${dev64} != xyes ; then
7546 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
7547 fi
7548 ;;
7549 esac
7550
7551 # Default to --enable-multilib.
7552 if test x${enable_multilib} = x ; then
7553 target_configargs="--enable-multilib ${target_configargs}"
7554 fi
7555
7556 # Pass --with-newlib if appropriate. Note that target_configdirs has
7557 # changed from the earlier setting of with_newlib.
7558 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7559 target_configargs="--with-newlib ${target_configargs}"
7560 fi
7561
7562 # Different target subdirs use different values of certain variables
7563 # (notably CXX). Worse, multilibs use *lots* of different values.
7564 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7565 # it doesn't automatically accept command-line overrides of them.
7566 # This means it's not safe for target subdirs to share a cache file,
7567 # which is disgusting, but there you have it. Hopefully this can be
7568 # fixed in future. It's still worthwhile to use a cache file for each
7569 # directory. I think.
7570
7571 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7572 # We need to pass --target, as newer autoconf's requires consistency
7573 # for target_alias and gcc doesn't manage it consistently.
7574 target_configargs="--cache-file=./config.cache ${target_configargs}"
7575
7576 FLAGS_FOR_TARGET=
7577 case " $target_configdirs " in
7578 *" newlib "*)
7579 case " $target_configargs " in
7580 *" --with-newlib "*)
7581 case "$target" in
7582 *-cygwin*)
7583 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7584 ;;
7585 esac
7586
7587 # If we're not building GCC, don't discard standard headers.
7588 if test -d ${srcdir}/gcc; then
7589 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7590
7591 if test "${build}" != "${host}"; then
7592 # On Canadian crosses, CC_FOR_TARGET will have already been set
7593 # by `configure', so we won't have an opportunity to add -Bgcc/
7594 # to it. This is right: we don't want to search that directory
7595 # for binaries, but we want the header files in there, so add
7596 # them explicitly.
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7598
7599 # Someone might think of using the pre-installed headers on
7600 # Canadian crosses, in case the installed compiler is not fully
7601 # compatible with the compiler being built. In this case, it
7602 # would be better to flag an error than risking having
7603 # incompatible object files being constructed. We can't
7604 # guarantee that an error will be flagged, but let's hope the
7605 # compiler will do it, when presented with incompatible header
7606 # files.
7607 fi
7608 fi
7609
7610 case "${target}-${is_cross_compiler}" in
7611 i[3456789]86-*-linux*-no)
7612 # Here host == target, so we don't need to build gcc,
7613 # so we don't want to discard standard headers.
7614 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7615 ;;
7616 *)
7617 # If we're building newlib, use its generic headers last, but search
7618 # for any libc-related directories first (so make it the last -B
7619 # switch).
7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7621
7622 # If we're building libgloss, find the startup file, simulator library
7623 # and linker script.
7624 case " $target_configdirs " in
7625 *" libgloss "*)
7626 # Look for startup file, simulator library and maybe linker script.
7627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7628 # Look for libnosys.a in case the target needs it.
7629 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7630 # Most targets have the linker script in the source directory.
7631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7632 ;;
7633 esac
7634 ;;
7635 esac
7636 ;;
7637 esac
7638 ;;
7639 esac
7640
7641 case "$target" in
7642 x86_64-*mingw* | *-w64-mingw*)
7643 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7644 # however, use a symlink named 'mingw' in ${prefix} .
7645 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7646 ;;
7647 *-mingw*)
7648 # MinGW can't be handled as Cygwin above since it does not use newlib.
7649 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'
7650 ;;
7651 esac
7652
7653 # Allow the user to override the flags for
7654 # our build compiler if desired.
7655 if test x"${build}" = x"${host}" ; then
7656 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7657 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7658 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7659 fi
7660
7661 # On Canadian crosses, we'll be searching the right directories for
7662 # the previously-installed cross compiler, so don't bother to add
7663 # flags for directories within the install tree of the compiler
7664 # being built; programs in there won't even run.
7665 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7666 # Search for pre-installed headers if nothing else fits.
7667 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7668 fi
7669
7670 if test "x${use_gnu_ld}" = x &&
7671 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7672 # Arrange for us to find uninstalled linker scripts.
7673 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7674 fi
7675
7676 # Search for other target-specific linker scripts and such.
7677 case "${target}" in
7678 mep*)
7679 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7680 ;;
7681 esac
7682
7683 # Makefile fragments.
7684 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7685 do
7686 eval fragval=\$$frag
7687 if test $fragval != /dev/null; then
7688 eval $frag=${srcdir}/$fragval
7689 fi
7690 done
7691
7692
7693
7694
7695
7696 # Miscellanea: directories, flags, etc.
7697
7698
7699
7700
7701
7702
7703
7704
7705 # Build module lists & subconfigure args.
7706
7707
7708
7709 # Host module lists & subconfigure args.
7710
7711
7712
7713
7714 # Target module lists & subconfigure args.
7715
7716
7717
7718 # Build tools.
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735 # Generate default definitions for YACC, M4, LEX and other programs that run
7736 # on the build machine. These are used if the Makefile can't locate these
7737 # programs in objdir.
7738 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7739
7740 for ac_prog in 'bison -y' byacc yacc
7741 do
7742 # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_YACC+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 if test -n "$YACC"; then
7750 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_YACC="$ac_prog"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7762 fi
7763 done
7764 done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 YACC=$ac_cv_prog_YACC
7770 if test -n "$YACC"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7772 $as_echo "$YACC" >&6; }
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777
7778
7779 test -n "$YACC" && break
7780 done
7781 test -n "$YACC" || YACC="$MISSING bison -y"
7782
7783 case " $build_configdirs " in
7784 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7785 esac
7786
7787 for ac_prog in bison
7788 do
7789 # Extract the first word of "$ac_prog", so it can be a program name with args.
7790 set dummy $ac_prog; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_BISON+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$BISON"; then
7797 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_BISON="$ac_prog"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 BISON=$ac_cv_prog_BISON
7817 if test -n "$BISON"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7819 $as_echo "$BISON" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825
7826 test -n "$BISON" && break
7827 done
7828 test -n "$BISON" || BISON="$MISSING bison"
7829
7830 case " $build_configdirs " in
7831 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7832 esac
7833
7834 for ac_prog in gm4 gnum4 m4
7835 do
7836 # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if ${ac_cv_prog_M4+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$M4"; then
7844 ac_cv_prog_M4="$M4" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_M4="$ac_prog"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 M4=$ac_cv_prog_M4
7864 if test -n "$M4"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7866 $as_echo "$M4" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872
7873 test -n "$M4" && break
7874 done
7875 test -n "$M4" || M4="$MISSING m4"
7876
7877 case " $build_configdirs " in
7878 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7879 esac
7880
7881 for ac_prog in flex lex
7882 do
7883 # Extract the first word of "$ac_prog", so it can be a program name with args.
7884 set dummy $ac_prog; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if ${ac_cv_prog_LEX+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$LEX"; then
7891 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_LEX="$ac_prog"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904 done
7905 done
7906 IFS=$as_save_IFS
7907
7908 fi
7909 fi
7910 LEX=$ac_cv_prog_LEX
7911 if test -n "$LEX"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7913 $as_echo "$LEX" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7917 fi
7918
7919
7920 test -n "$LEX" && break
7921 done
7922 test -n "$LEX" || LEX="$MISSING flex"
7923
7924 case " $build_configdirs " in
7925 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7926 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7927 esac
7928
7929 for ac_prog in flex
7930 do
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_FLEX+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$FLEX"; then
7939 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_FLEX="$ac_prog"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952 done
7953 done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 FLEX=$ac_cv_prog_FLEX
7959 if test -n "$FLEX"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7961 $as_echo "$FLEX" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968 test -n "$FLEX" && break
7969 done
7970 test -n "$FLEX" || FLEX="$MISSING flex"
7971
7972 case " $build_configdirs " in
7973 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7974 esac
7975
7976 for ac_prog in makeinfo
7977 do
7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
7979 set dummy $ac_prog; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_MAKEINFO+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$MAKEINFO"; then
7986 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_MAKEINFO="$ac_prog"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 MAKEINFO=$ac_cv_prog_MAKEINFO
8006 if test -n "$MAKEINFO"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8008 $as_echo "$MAKEINFO" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015 test -n "$MAKEINFO" && break
8016 done
8017 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8018
8019 case " $build_configdirs " in
8020 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8021 *)
8022
8023 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8024 # higher, else we use the "missing" dummy.
8025 if ${MAKEINFO} --version \
8026 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8027 :
8028 else
8029 MAKEINFO="$MISSING makeinfo"
8030 fi
8031 ;;
8032
8033 esac
8034
8035 # FIXME: expect and dejagnu may become build tools?
8036
8037 for ac_prog in expect
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_EXPECT+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 if test -n "$EXPECT"; then
8047 ac_cv_prog_EXPECT="$EXPECT" # 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_EXPECT="$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 EXPECT=$ac_cv_prog_EXPECT
8067 if test -n "$EXPECT"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8069 $as_echo "$EXPECT" >&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 "$EXPECT" && break
8077 done
8078 test -n "$EXPECT" || EXPECT="expect"
8079
8080 case " $configdirs " in
8081 *" expect "*)
8082 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8083 ;;
8084 esac
8085
8086 for ac_prog in runtest
8087 do
8088 # Extract the first word of "$ac_prog", so it can be a program name with args.
8089 set dummy $ac_prog; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_prog_RUNTEST+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if test -n "$RUNTEST"; then
8096 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105 ac_cv_prog_RUNTEST="$ac_prog"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113 fi
8114 fi
8115 RUNTEST=$ac_cv_prog_RUNTEST
8116 if test -n "$RUNTEST"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8118 $as_echo "$RUNTEST" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8122 fi
8123
8124
8125 test -n "$RUNTEST" && break
8126 done
8127 test -n "$RUNTEST" || RUNTEST="runtest"
8128
8129 case " $configdirs " in
8130 *" dejagnu "*)
8131 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8132 ;;
8133 esac
8134
8135
8136 # Host tools.
8137 ncn_tool_prefix=
8138 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8139 ncn_target_tool_prefix=
8140 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8141
8142
8143
8144 if test -n "$AR"; then
8145 ac_cv_prog_AR=$AR
8146 elif test -n "$ac_cv_prog_AR"; then
8147 AR=$ac_cv_prog_AR
8148 fi
8149
8150 if test -n "$ac_cv_prog_AR"; then
8151 for ncn_progname in ar; do
8152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8153 set dummy ${ncn_progname}; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_prog_AR+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test -n "$AR"; then
8160 ac_cv_prog_AR="$AR" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169 ac_cv_prog_AR="${ncn_progname}"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173 done
8174 done
8175 IFS=$as_save_IFS
8176
8177 fi
8178 fi
8179 AR=$ac_cv_prog_AR
8180 if test -n "$AR"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8182 $as_echo "$AR" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187
8188
8189 done
8190 fi
8191
8192 for ncn_progname in ar; do
8193 if test -n "$ncn_tool_prefix"; then
8194 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8195 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if ${ac_cv_prog_AR+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if test -n "$AR"; then
8202 ac_cv_prog_AR="$AR" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215 done
8216 done
8217 IFS=$as_save_IFS
8218
8219 fi
8220 fi
8221 AR=$ac_cv_prog_AR
8222 if test -n "$AR"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8224 $as_echo "$AR" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 fi
8229
8230
8231 fi
8232 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8234 set dummy ${ncn_progname}; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_AR+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 if test -n "$AR"; then
8241 ac_cv_prog_AR="$AR" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_AR="${ncn_progname}"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8253 fi
8254 done
8255 done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 AR=$ac_cv_prog_AR
8261 if test -n "$AR"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8263 $as_echo "$AR" >&6; }
8264 else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269
8270 fi
8271 test -n "$ac_cv_prog_AR" && break
8272 done
8273
8274 if test -z "$ac_cv_prog_AR" ; then
8275 set dummy ar
8276 if test $build = $host ; then
8277 AR="$2"
8278 else
8279 AR="${ncn_tool_prefix}$2"
8280 fi
8281 fi
8282
8283
8284
8285 if test -n "$AS"; then
8286 ac_cv_prog_AS=$AS
8287 elif test -n "$ac_cv_prog_AS"; then
8288 AS=$ac_cv_prog_AS
8289 fi
8290
8291 if test -n "$ac_cv_prog_AS"; then
8292 for ncn_progname in as; do
8293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8294 set dummy ${ncn_progname}; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_AS+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 if test -n "$AS"; then
8301 ac_cv_prog_AS="$AS" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_AS="${ncn_progname}"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 AS=$ac_cv_prog_AS
8321 if test -n "$AS"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8323 $as_echo "$AS" >&6; }
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330 done
8331 fi
8332
8333 for ncn_progname in as; do
8334 if test -n "$ncn_tool_prefix"; then
8335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8336 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_AS+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 if test -n "$AS"; then
8343 ac_cv_prog_AS="$AS" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8347 do
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8355 fi
8356 done
8357 done
8358 IFS=$as_save_IFS
8359
8360 fi
8361 fi
8362 AS=$ac_cv_prog_AS
8363 if test -n "$AS"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8365 $as_echo "$AS" >&6; }
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 fi
8370
8371
8372 fi
8373 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8375 set dummy ${ncn_progname}; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_AS+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 if test -n "$AS"; then
8382 ac_cv_prog_AS="$AS" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8386 do
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_AS="${ncn_progname}"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8394 fi
8395 done
8396 done
8397 IFS=$as_save_IFS
8398
8399 fi
8400 fi
8401 AS=$ac_cv_prog_AS
8402 if test -n "$AS"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8404 $as_echo "$AS" >&6; }
8405 else
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8408 fi
8409
8410
8411 fi
8412 test -n "$ac_cv_prog_AS" && break
8413 done
8414
8415 if test -z "$ac_cv_prog_AS" ; then
8416 set dummy as
8417 if test $build = $host ; then
8418 AS="$2"
8419 else
8420 AS="${ncn_tool_prefix}$2"
8421 fi
8422 fi
8423
8424
8425
8426 if test -n "$DLLTOOL"; then
8427 ac_cv_prog_DLLTOOL=$DLLTOOL
8428 elif test -n "$ac_cv_prog_DLLTOOL"; then
8429 DLLTOOL=$ac_cv_prog_DLLTOOL
8430 fi
8431
8432 if test -n "$ac_cv_prog_DLLTOOL"; then
8433 for ncn_progname in dlltool; do
8434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8435 set dummy ${ncn_progname}; ac_word=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if ${ac_cv_prog_DLLTOOL+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 if test -n "$DLLTOOL"; then
8442 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_DLLTOOL="${ncn_progname}"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi
8460 fi
8461 DLLTOOL=$ac_cv_prog_DLLTOOL
8462 if test -n "$DLLTOOL"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8464 $as_echo "$DLLTOOL" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469
8470
8471 done
8472 fi
8473
8474 for ncn_progname in dlltool; do
8475 if test -n "$ncn_tool_prefix"; then
8476 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8477 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_DLLTOOL+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test -n "$DLLTOOL"; then
8484 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497 done
8498 done
8499 IFS=$as_save_IFS
8500
8501 fi
8502 fi
8503 DLLTOOL=$ac_cv_prog_DLLTOOL
8504 if test -n "$DLLTOOL"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8506 $as_echo "$DLLTOOL" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511
8512
8513 fi
8514 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8516 set dummy ${ncn_progname}; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_DLLTOOL+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 if test -n "$DLLTOOL"; then
8523 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_DLLTOOL="${ncn_progname}"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi
8541 fi
8542 DLLTOOL=$ac_cv_prog_DLLTOOL
8543 if test -n "$DLLTOOL"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8545 $as_echo "$DLLTOOL" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551
8552 fi
8553 test -n "$ac_cv_prog_DLLTOOL" && break
8554 done
8555
8556 if test -z "$ac_cv_prog_DLLTOOL" ; then
8557 set dummy dlltool
8558 if test $build = $host ; then
8559 DLLTOOL="$2"
8560 else
8561 DLLTOOL="${ncn_tool_prefix}$2"
8562 fi
8563 fi
8564
8565
8566
8567 if test -n "$LD"; then
8568 ac_cv_prog_LD=$LD
8569 elif test -n "$ac_cv_prog_LD"; then
8570 LD=$ac_cv_prog_LD
8571 fi
8572
8573 if test -n "$ac_cv_prog_LD"; then
8574 for ncn_progname in ld; do
8575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8576 set dummy ${ncn_progname}; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_LD+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$LD"; then
8583 ac_cv_prog_LD="$LD" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_LD="${ncn_progname}"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596 done
8597 done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 LD=$ac_cv_prog_LD
8603 if test -n "$LD"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8605 $as_echo "$LD" >&6; }
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610
8611
8612 done
8613 fi
8614
8615 for ncn_progname in ld; do
8616 if test -n "$ncn_tool_prefix"; then
8617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8618 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_LD+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test -n "$LD"; then
8625 ac_cv_prog_LD="$LD" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 fi
8643 fi
8644 LD=$ac_cv_prog_LD
8645 if test -n "$LD"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8647 $as_echo "$LD" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8651 fi
8652
8653
8654 fi
8655 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8657 set dummy ${ncn_progname}; ac_word=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if ${ac_cv_prog_LD+:} false; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 if test -n "$LD"; then
8664 ac_cv_prog_LD="$LD" # Let the user override the test.
8665 else
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH
8668 do
8669 IFS=$as_save_IFS
8670 test -z "$as_dir" && as_dir=.
8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8673 ac_cv_prog_LD="${ncn_progname}"
8674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 break 2
8676 fi
8677 done
8678 done
8679 IFS=$as_save_IFS
8680
8681 fi
8682 fi
8683 LD=$ac_cv_prog_LD
8684 if test -n "$LD"; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8686 $as_echo "$LD" >&6; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8690 fi
8691
8692
8693 fi
8694 test -n "$ac_cv_prog_LD" && break
8695 done
8696
8697 if test -z "$ac_cv_prog_LD" ; then
8698 set dummy ld
8699 if test $build = $host ; then
8700 LD="$2"
8701 else
8702 LD="${ncn_tool_prefix}$2"
8703 fi
8704 fi
8705
8706
8707
8708 if test -n "$LIPO"; then
8709 ac_cv_prog_LIPO=$LIPO
8710 elif test -n "$ac_cv_prog_LIPO"; then
8711 LIPO=$ac_cv_prog_LIPO
8712 fi
8713
8714 if test -n "$ac_cv_prog_LIPO"; then
8715 for ncn_progname in lipo; do
8716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8717 set dummy ${ncn_progname}; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_LIPO+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 if test -n "$LIPO"; then
8724 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_LIPO="${ncn_progname}"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 break 2
8736 fi
8737 done
8738 done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 LIPO=$ac_cv_prog_LIPO
8744 if test -n "$LIPO"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8746 $as_echo "$LIPO" >&6; }
8747 else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752
8753 done
8754 fi
8755
8756 for ncn_progname in lipo; do
8757 if test -n "$ncn_tool_prefix"; then
8758 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8759 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_prog_LIPO+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 if test -n "$LIPO"; then
8766 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 break 2
8778 fi
8779 done
8780 done
8781 IFS=$as_save_IFS
8782
8783 fi
8784 fi
8785 LIPO=$ac_cv_prog_LIPO
8786 if test -n "$LIPO"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8788 $as_echo "$LIPO" >&6; }
8789 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8792 fi
8793
8794
8795 fi
8796 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8798 set dummy ${ncn_progname}; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if ${ac_cv_prog_LIPO+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 if test -n "$LIPO"; then
8805 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8806 else
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8809 do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814 ac_cv_prog_LIPO="${ncn_progname}"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8817 fi
8818 done
8819 done
8820 IFS=$as_save_IFS
8821
8822 fi
8823 fi
8824 LIPO=$ac_cv_prog_LIPO
8825 if test -n "$LIPO"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8827 $as_echo "$LIPO" >&6; }
8828 else
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831 fi
8832
8833
8834 fi
8835 test -n "$ac_cv_prog_LIPO" && break
8836 done
8837
8838 if test -z "$ac_cv_prog_LIPO" ; then
8839 set dummy lipo
8840 if test $build = $host ; then
8841 LIPO="$2"
8842 else
8843 LIPO="${ncn_tool_prefix}$2"
8844 fi
8845 fi
8846
8847
8848
8849 if test -n "$NM"; then
8850 ac_cv_prog_NM=$NM
8851 elif test -n "$ac_cv_prog_NM"; then
8852 NM=$ac_cv_prog_NM
8853 fi
8854
8855 if test -n "$ac_cv_prog_NM"; then
8856 for ncn_progname in nm; do
8857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8858 set dummy ${ncn_progname}; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if ${ac_cv_prog_NM+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 if test -n "$NM"; then
8865 ac_cv_prog_NM="$NM" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8869 do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_NM="${ncn_progname}"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878 done
8879 done
8880 IFS=$as_save_IFS
8881
8882 fi
8883 fi
8884 NM=$ac_cv_prog_NM
8885 if test -n "$NM"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8887 $as_echo "$NM" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8891 fi
8892
8893
8894 done
8895 fi
8896
8897 for ncn_progname in nm; do
8898 if test -n "$ncn_tool_prefix"; then
8899 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8900 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if ${ac_cv_prog_NM+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -n "$NM"; then
8907 ac_cv_prog_NM="$NM" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8911 do
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8916 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922 IFS=$as_save_IFS
8923
8924 fi
8925 fi
8926 NM=$ac_cv_prog_NM
8927 if test -n "$NM"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8929 $as_echo "$NM" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8933 fi
8934
8935
8936 fi
8937 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8939 set dummy ${ncn_progname}; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_NM+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$NM"; then
8946 ac_cv_prog_NM="$NM" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_NM="${ncn_progname}"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8958 fi
8959 done
8960 done
8961 IFS=$as_save_IFS
8962
8963 fi
8964 fi
8965 NM=$ac_cv_prog_NM
8966 if test -n "$NM"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8968 $as_echo "$NM" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8972 fi
8973
8974
8975 fi
8976 test -n "$ac_cv_prog_NM" && break
8977 done
8978
8979 if test -z "$ac_cv_prog_NM" ; then
8980 set dummy nm
8981 if test $build = $host ; then
8982 NM="$2"
8983 else
8984 NM="${ncn_tool_prefix}$2"
8985 fi
8986 fi
8987
8988
8989
8990 if test -n "$RANLIB"; then
8991 ac_cv_prog_RANLIB=$RANLIB
8992 elif test -n "$ac_cv_prog_RANLIB"; then
8993 RANLIB=$ac_cv_prog_RANLIB
8994 fi
8995
8996 if test -n "$ac_cv_prog_RANLIB"; then
8997 for ncn_progname in ranlib; do
8998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8999 set dummy ${ncn_progname}; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if ${ac_cv_prog_RANLIB+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 if test -n "$RANLIB"; then
9006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9010 do
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_RANLIB="${ncn_progname}"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9018 fi
9019 done
9020 done
9021 IFS=$as_save_IFS
9022
9023 fi
9024 fi
9025 RANLIB=$ac_cv_prog_RANLIB
9026 if test -n "$RANLIB"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9028 $as_echo "$RANLIB" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033
9034
9035 done
9036 fi
9037
9038 for ncn_progname in ranlib; do
9039 if test -n "$ncn_tool_prefix"; then
9040 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9041 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_prog_RANLIB+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 if test -n "$RANLIB"; then
9048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9049 else
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9052 do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9060 fi
9061 done
9062 done
9063 IFS=$as_save_IFS
9064
9065 fi
9066 fi
9067 RANLIB=$ac_cv_prog_RANLIB
9068 if test -n "$RANLIB"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9070 $as_echo "$RANLIB" >&6; }
9071 else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9074 fi
9075
9076
9077 fi
9078 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9080 set dummy ${ncn_progname}; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_prog_RANLIB+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 if test -n "$RANLIB"; then
9087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9091 do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_prog_RANLIB="${ncn_progname}"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100 done
9101 done
9102 IFS=$as_save_IFS
9103
9104 fi
9105 fi
9106 RANLIB=$ac_cv_prog_RANLIB
9107 if test -n "$RANLIB"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9109 $as_echo "$RANLIB" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115
9116 fi
9117 test -n "$ac_cv_prog_RANLIB" && break
9118 done
9119
9120 if test -z "$ac_cv_prog_RANLIB" ; then
9121 RANLIB="true"
9122 fi
9123
9124
9125
9126 if test -n "$STRIP"; then
9127 ac_cv_prog_STRIP=$STRIP
9128 elif test -n "$ac_cv_prog_STRIP"; then
9129 STRIP=$ac_cv_prog_STRIP
9130 fi
9131
9132 if test -n "$ac_cv_prog_STRIP"; then
9133 for ncn_progname in strip; do
9134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9135 set dummy ${ncn_progname}; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_STRIP+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test -n "$STRIP"; then
9142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_prog_STRIP="${ncn_progname}"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9154 fi
9155 done
9156 done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 STRIP=$ac_cv_prog_STRIP
9162 if test -n "$STRIP"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9164 $as_echo "$STRIP" >&6; }
9165 else
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170
9171 done
9172 fi
9173
9174 for ncn_progname in strip; do
9175 if test -n "$ncn_tool_prefix"; then
9176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9177 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_prog_STRIP+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 if test -n "$STRIP"; then
9184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9188 do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197 done
9198 done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 STRIP=$ac_cv_prog_STRIP
9204 if test -n "$STRIP"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9206 $as_echo "$STRIP" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211
9212
9213 fi
9214 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216 set dummy ${ncn_progname}; ac_word=$2
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 $as_echo_n "checking for $ac_word... " >&6; }
9219 if ${ac_cv_prog_STRIP+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 if test -n "$STRIP"; then
9223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9224 else
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9227 do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9232 ac_cv_prog_STRIP="${ncn_progname}"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9235 fi
9236 done
9237 done
9238 IFS=$as_save_IFS
9239
9240 fi
9241 fi
9242 STRIP=$ac_cv_prog_STRIP
9243 if test -n "$STRIP"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9245 $as_echo "$STRIP" >&6; }
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9249 fi
9250
9251
9252 fi
9253 test -n "$ac_cv_prog_STRIP" && break
9254 done
9255
9256 if test -z "$ac_cv_prog_STRIP" ; then
9257 STRIP="true"
9258 fi
9259
9260
9261
9262 if test -n "$WINDRES"; then
9263 ac_cv_prog_WINDRES=$WINDRES
9264 elif test -n "$ac_cv_prog_WINDRES"; then
9265 WINDRES=$ac_cv_prog_WINDRES
9266 fi
9267
9268 if test -n "$ac_cv_prog_WINDRES"; then
9269 for ncn_progname in windres; do
9270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9271 set dummy ${ncn_progname}; ac_word=$2
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273 $as_echo_n "checking for $ac_word... " >&6; }
9274 if ${ac_cv_prog_WINDRES+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 if test -n "$WINDRES"; then
9278 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9279 else
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9282 do
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_prog_WINDRES="${ncn_progname}"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9290 fi
9291 done
9292 done
9293 IFS=$as_save_IFS
9294
9295 fi
9296 fi
9297 WINDRES=$ac_cv_prog_WINDRES
9298 if test -n "$WINDRES"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9300 $as_echo "$WINDRES" >&6; }
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9304 fi
9305
9306
9307 done
9308 fi
9309
9310 for ncn_progname in windres; do
9311 if test -n "$ncn_tool_prefix"; then
9312 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9313 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_prog_WINDRES+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test -n "$WINDRES"; then
9320 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9321 else
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9324 do
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9329 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9332 fi
9333 done
9334 done
9335 IFS=$as_save_IFS
9336
9337 fi
9338 fi
9339 WINDRES=$ac_cv_prog_WINDRES
9340 if test -n "$WINDRES"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9342 $as_echo "$WINDRES" >&6; }
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9346 fi
9347
9348
9349 fi
9350 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9352 set dummy ${ncn_progname}; ac_word=$2
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354 $as_echo_n "checking for $ac_word... " >&6; }
9355 if ${ac_cv_prog_WINDRES+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 if test -n "$WINDRES"; then
9359 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9360 else
9361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9362 for as_dir in $PATH
9363 do
9364 IFS=$as_save_IFS
9365 test -z "$as_dir" && as_dir=.
9366 for ac_exec_ext in '' $ac_executable_extensions; do
9367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9368 ac_cv_prog_WINDRES="${ncn_progname}"
9369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 break 2
9371 fi
9372 done
9373 done
9374 IFS=$as_save_IFS
9375
9376 fi
9377 fi
9378 WINDRES=$ac_cv_prog_WINDRES
9379 if test -n "$WINDRES"; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9381 $as_echo "$WINDRES" >&6; }
9382 else
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384 $as_echo "no" >&6; }
9385 fi
9386
9387
9388 fi
9389 test -n "$ac_cv_prog_WINDRES" && break
9390 done
9391
9392 if test -z "$ac_cv_prog_WINDRES" ; then
9393 set dummy windres
9394 if test $build = $host ; then
9395 WINDRES="$2"
9396 else
9397 WINDRES="${ncn_tool_prefix}$2"
9398 fi
9399 fi
9400
9401
9402
9403 if test -n "$WINDMC"; then
9404 ac_cv_prog_WINDMC=$WINDMC
9405 elif test -n "$ac_cv_prog_WINDMC"; then
9406 WINDMC=$ac_cv_prog_WINDMC
9407 fi
9408
9409 if test -n "$ac_cv_prog_WINDMC"; then
9410 for ncn_progname in windmc; do
9411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9412 set dummy ${ncn_progname}; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_prog_WINDMC+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 if test -n "$WINDMC"; then
9419 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9420 else
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422 for as_dir in $PATH
9423 do
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428 ac_cv_prog_WINDMC="${ncn_progname}"
9429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 break 2
9431 fi
9432 done
9433 done
9434 IFS=$as_save_IFS
9435
9436 fi
9437 fi
9438 WINDMC=$ac_cv_prog_WINDMC
9439 if test -n "$WINDMC"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9441 $as_echo "$WINDMC" >&6; }
9442 else
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9445 fi
9446
9447
9448 done
9449 fi
9450
9451 for ncn_progname in windmc; do
9452 if test -n "$ncn_tool_prefix"; then
9453 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9454 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if ${ac_cv_prog_WINDMC+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 if test -n "$WINDMC"; then
9461 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9462 else
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 for as_dir in $PATH
9465 do
9466 IFS=$as_save_IFS
9467 test -z "$as_dir" && as_dir=.
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9470 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9472 break 2
9473 fi
9474 done
9475 done
9476 IFS=$as_save_IFS
9477
9478 fi
9479 fi
9480 WINDMC=$ac_cv_prog_WINDMC
9481 if test -n "$WINDMC"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9483 $as_echo "$WINDMC" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 fi
9488
9489
9490 fi
9491 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9493 set dummy ${ncn_progname}; ac_word=$2
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 $as_echo_n "checking for $ac_word... " >&6; }
9496 if ${ac_cv_prog_WINDMC+:} false; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 if test -n "$WINDMC"; then
9500 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9501 else
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in $PATH
9504 do
9505 IFS=$as_save_IFS
9506 test -z "$as_dir" && as_dir=.
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9509 ac_cv_prog_WINDMC="${ncn_progname}"
9510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 break 2
9512 fi
9513 done
9514 done
9515 IFS=$as_save_IFS
9516
9517 fi
9518 fi
9519 WINDMC=$ac_cv_prog_WINDMC
9520 if test -n "$WINDMC"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9522 $as_echo "$WINDMC" >&6; }
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9526 fi
9527
9528
9529 fi
9530 test -n "$ac_cv_prog_WINDMC" && break
9531 done
9532
9533 if test -z "$ac_cv_prog_WINDMC" ; then
9534 set dummy windmc
9535 if test $build = $host ; then
9536 WINDMC="$2"
9537 else
9538 WINDMC="${ncn_tool_prefix}$2"
9539 fi
9540 fi
9541
9542
9543
9544 if test -n "$OBJCOPY"; then
9545 ac_cv_prog_OBJCOPY=$OBJCOPY
9546 elif test -n "$ac_cv_prog_OBJCOPY"; then
9547 OBJCOPY=$ac_cv_prog_OBJCOPY
9548 fi
9549
9550 if test -n "$ac_cv_prog_OBJCOPY"; then
9551 for ncn_progname in objcopy; do
9552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9553 set dummy ${ncn_progname}; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_prog_OBJCOPY+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 if test -n "$OBJCOPY"; then
9560 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9561 else
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9564 do
9565 IFS=$as_save_IFS
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569 ac_cv_prog_OBJCOPY="${ncn_progname}"
9570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 break 2
9572 fi
9573 done
9574 done
9575 IFS=$as_save_IFS
9576
9577 fi
9578 fi
9579 OBJCOPY=$ac_cv_prog_OBJCOPY
9580 if test -n "$OBJCOPY"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9582 $as_echo "$OBJCOPY" >&6; }
9583 else
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588
9589 done
9590 fi
9591
9592 for ncn_progname in objcopy; do
9593 if test -n "$ncn_tool_prefix"; then
9594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9595 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_prog_OBJCOPY+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 if test -n "$OBJCOPY"; then
9602 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9603 else
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9606 do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615 done
9616 done
9617 IFS=$as_save_IFS
9618
9619 fi
9620 fi
9621 OBJCOPY=$ac_cv_prog_OBJCOPY
9622 if test -n "$OBJCOPY"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9624 $as_echo "$OBJCOPY" >&6; }
9625 else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9628 fi
9629
9630
9631 fi
9632 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9634 set dummy ${ncn_progname}; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if ${ac_cv_prog_OBJCOPY+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 if test -n "$OBJCOPY"; then
9641 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9642 else
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9645 do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650 ac_cv_prog_OBJCOPY="${ncn_progname}"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9653 fi
9654 done
9655 done
9656 IFS=$as_save_IFS
9657
9658 fi
9659 fi
9660 OBJCOPY=$ac_cv_prog_OBJCOPY
9661 if test -n "$OBJCOPY"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9663 $as_echo "$OBJCOPY" >&6; }
9664 else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9667 fi
9668
9669
9670 fi
9671 test -n "$ac_cv_prog_OBJCOPY" && break
9672 done
9673
9674 if test -z "$ac_cv_prog_OBJCOPY" ; then
9675 set dummy objcopy
9676 if test $build = $host ; then
9677 OBJCOPY="$2"
9678 else
9679 OBJCOPY="${ncn_tool_prefix}$2"
9680 fi
9681 fi
9682
9683
9684
9685 if test -n "$OBJDUMP"; then
9686 ac_cv_prog_OBJDUMP=$OBJDUMP
9687 elif test -n "$ac_cv_prog_OBJDUMP"; then
9688 OBJDUMP=$ac_cv_prog_OBJDUMP
9689 fi
9690
9691 if test -n "$ac_cv_prog_OBJDUMP"; then
9692 for ncn_progname in objdump; do
9693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9694 set dummy ${ncn_progname}; ac_word=$2
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696 $as_echo_n "checking for $ac_word... " >&6; }
9697 if ${ac_cv_prog_OBJDUMP+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699 else
9700 if test -n "$OBJDUMP"; then
9701 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9702 else
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 for as_dir in $PATH
9705 do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9710 ac_cv_prog_OBJDUMP="${ncn_progname}"
9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9713 fi
9714 done
9715 done
9716 IFS=$as_save_IFS
9717
9718 fi
9719 fi
9720 OBJDUMP=$ac_cv_prog_OBJDUMP
9721 if test -n "$OBJDUMP"; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9723 $as_echo "$OBJDUMP" >&6; }
9724 else
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726 $as_echo "no" >&6; }
9727 fi
9728
9729
9730 done
9731 fi
9732
9733 for ncn_progname in objdump; do
9734 if test -n "$ncn_tool_prefix"; then
9735 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9736 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_OBJDUMP+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 if test -n "$OBJDUMP"; then
9743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756 done
9757 done
9758 IFS=$as_save_IFS
9759
9760 fi
9761 fi
9762 OBJDUMP=$ac_cv_prog_OBJDUMP
9763 if test -n "$OBJDUMP"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9765 $as_echo "$OBJDUMP" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9769 fi
9770
9771
9772 fi
9773 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9775 set dummy ${ncn_progname}; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if ${ac_cv_prog_OBJDUMP+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 if test -n "$OBJDUMP"; then
9782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9783 else
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791 ac_cv_prog_OBJDUMP="${ncn_progname}"
9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 break 2
9794 fi
9795 done
9796 done
9797 IFS=$as_save_IFS
9798
9799 fi
9800 fi
9801 OBJDUMP=$ac_cv_prog_OBJDUMP
9802 if test -n "$OBJDUMP"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9804 $as_echo "$OBJDUMP" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9808 fi
9809
9810
9811 fi
9812 test -n "$ac_cv_prog_OBJDUMP" && break
9813 done
9814
9815 if test -z "$ac_cv_prog_OBJDUMP" ; then
9816 set dummy objdump
9817 if test $build = $host ; then
9818 OBJDUMP="$2"
9819 else
9820 OBJDUMP="${ncn_tool_prefix}$2"
9821 fi
9822 fi
9823
9824
9825
9826 if test -n "$READELF"; then
9827 ac_cv_prog_READELF=$READELF
9828 elif test -n "$ac_cv_prog_READELF"; then
9829 READELF=$ac_cv_prog_READELF
9830 fi
9831
9832 if test -n "$ac_cv_prog_READELF"; then
9833 for ncn_progname in readelf; do
9834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9835 set dummy ${ncn_progname}; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_prog_READELF+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 if test -n "$READELF"; then
9842 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851 ac_cv_prog_READELF="${ncn_progname}"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 break 2
9854 fi
9855 done
9856 done
9857 IFS=$as_save_IFS
9858
9859 fi
9860 fi
9861 READELF=$ac_cv_prog_READELF
9862 if test -n "$READELF"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9864 $as_echo "$READELF" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9868 fi
9869
9870
9871 done
9872 fi
9873
9874 for ncn_progname in readelf; do
9875 if test -n "$ncn_tool_prefix"; then
9876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9877 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if ${ac_cv_prog_READELF+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 if test -n "$READELF"; then
9884 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9888 do
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9896 fi
9897 done
9898 done
9899 IFS=$as_save_IFS
9900
9901 fi
9902 fi
9903 READELF=$ac_cv_prog_READELF
9904 if test -n "$READELF"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9906 $as_echo "$READELF" >&6; }
9907 else
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 fi
9911
9912
9913 fi
9914 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9916 set dummy ${ncn_progname}; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if ${ac_cv_prog_READELF+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 if test -n "$READELF"; then
9923 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9924 else
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in $PATH
9927 do
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9932 ac_cv_prog_READELF="${ncn_progname}"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 break 2
9935 fi
9936 done
9937 done
9938 IFS=$as_save_IFS
9939
9940 fi
9941 fi
9942 READELF=$ac_cv_prog_READELF
9943 if test -n "$READELF"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9945 $as_echo "$READELF" >&6; }
9946 else
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9949 fi
9950
9951
9952 fi
9953 test -n "$ac_cv_prog_READELF" && break
9954 done
9955
9956 if test -z "$ac_cv_prog_READELF" ; then
9957 set dummy readelf
9958 if test $build = $host ; then
9959 READELF="$2"
9960 else
9961 READELF="${ncn_tool_prefix}$2"
9962 fi
9963 fi
9964
9965
9966
9967
9968
9969
9970 # Target tools.
9971
9972 # Check whether --with-build-time-tools was given.
9973 if test "${with_build_time_tools+set}" = set; then :
9974 withval=$with_build_time_tools; case x"$withval" in
9975 x/*) ;;
9976 *)
9977 with_build_time_tools=
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9979 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9980 ;;
9981 esac
9982 else
9983 with_build_time_tools=
9984 fi
9985
9986
9987
9988
9989 if test -n "$CC_FOR_TARGET"; then
9990 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9991 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9992 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9993 fi
9994
9995 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9996 for ncn_progname in cc gcc; do
9997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9998 set dummy ${ncn_progname}; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 if test -n "$CC_FOR_TARGET"; then
10005 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10006 else
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10009 do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018 done
10019 done
10020 IFS=$as_save_IFS
10021
10022 fi
10023 fi
10024 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10025 if test -n "$CC_FOR_TARGET"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10027 $as_echo "$CC_FOR_TARGET" >&6; }
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032
10033
10034 done
10035 fi
10036
10037 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10038 for ncn_progname in cc gcc; do
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10040 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10041 if test -x $with_build_time_tools/${ncn_progname}; then
10042 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10044 $as_echo "yes" >&6; }
10045 break
10046 else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10049 fi
10050 done
10051 fi
10052
10053 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10054 for ncn_progname in cc gcc; do
10055 if test -n "$ncn_target_tool_prefix"; then
10056 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10057 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059 $as_echo_n "checking for $ac_word... " >&6; }
10060 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 if test -n "$CC_FOR_TARGET"; then
10064 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10065 else
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067 for as_dir in $PATH
10068 do
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10073 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10076 fi
10077 done
10078 done
10079 IFS=$as_save_IFS
10080
10081 fi
10082 fi
10083 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10084 if test -n "$CC_FOR_TARGET"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10086 $as_echo "$CC_FOR_TARGET" >&6; }
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10090 fi
10091
10092
10093 fi
10094 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10096 set dummy ${ncn_progname}; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 if test -n "$CC_FOR_TARGET"; then
10103 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10104 else
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10107 do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10112 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10115 fi
10116 done
10117 done
10118 IFS=$as_save_IFS
10119
10120 fi
10121 fi
10122 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10123 if test -n "$CC_FOR_TARGET"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10125 $as_echo "$CC_FOR_TARGET" >&6; }
10126 else
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10129 fi
10130
10131
10132 fi
10133 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10134 done
10135 fi
10136
10137 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10138 set dummy cc gcc
10139 if test $build = $target ; then
10140 CC_FOR_TARGET="$2"
10141 else
10142 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10143 fi
10144 else
10145 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10146 fi
10147
10148
10149
10150 if test -n "$CXX_FOR_TARGET"; then
10151 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10152 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10153 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10154 fi
10155
10156 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10157 for ncn_progname in c++ g++ cxx gxx; do
10158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10159 set dummy ${ncn_progname}; ac_word=$2
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10161 $as_echo_n "checking for $ac_word... " >&6; }
10162 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 if test -n "$CXX_FOR_TARGET"; then
10166 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10167 else
10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10170 do
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10175 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 break 2
10178 fi
10179 done
10180 done
10181 IFS=$as_save_IFS
10182
10183 fi
10184 fi
10185 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10186 if test -n "$CXX_FOR_TARGET"; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10188 $as_echo "$CXX_FOR_TARGET" >&6; }
10189 else
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10192 fi
10193
10194
10195 done
10196 fi
10197
10198 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10199 for ncn_progname in c++ g++ cxx gxx; do
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10201 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10202 if test -x $with_build_time_tools/${ncn_progname}; then
10203 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10205 $as_echo "yes" >&6; }
10206 break
10207 else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 $as_echo "no" >&6; }
10210 fi
10211 done
10212 fi
10213
10214 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10215 for ncn_progname in c++ g++ cxx gxx; do
10216 if test -n "$ncn_target_tool_prefix"; then
10217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10218 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 if test -n "$CXX_FOR_TARGET"; then
10225 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10226 else
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10229 do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10237 fi
10238 done
10239 done
10240 IFS=$as_save_IFS
10241
10242 fi
10243 fi
10244 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10245 if test -n "$CXX_FOR_TARGET"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10247 $as_echo "$CXX_FOR_TARGET" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 fi
10252
10253
10254 fi
10255 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10257 set dummy ${ncn_progname}; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 if test -n "$CXX_FOR_TARGET"; then
10264 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10265 else
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10268 do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10276 fi
10277 done
10278 done
10279 IFS=$as_save_IFS
10280
10281 fi
10282 fi
10283 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10284 if test -n "$CXX_FOR_TARGET"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10286 $as_echo "$CXX_FOR_TARGET" >&6; }
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10290 fi
10291
10292
10293 fi
10294 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10295 done
10296 fi
10297
10298 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10299 set dummy c++ g++ cxx gxx
10300 if test $build = $target ; then
10301 CXX_FOR_TARGET="$2"
10302 else
10303 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10304 fi
10305 else
10306 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10307 fi
10308
10309
10310
10311 if test -n "$GCC_FOR_TARGET"; then
10312 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10313 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10314 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10315 fi
10316
10317 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10318 for ncn_progname in gcc; do
10319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10320 set dummy ${ncn_progname}; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 if test -n "$GCC_FOR_TARGET"; then
10327 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10328 else
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10339 fi
10340 done
10341 done
10342 IFS=$as_save_IFS
10343
10344 fi
10345 fi
10346 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10347 if test -n "$GCC_FOR_TARGET"; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10349 $as_echo "$GCC_FOR_TARGET" >&6; }
10350 else
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10353 fi
10354
10355
10356 done
10357 fi
10358
10359 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10360 for ncn_progname in gcc; do
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10362 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10363 if test -x $with_build_time_tools/${ncn_progname}; then
10364 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10366 $as_echo "yes" >&6; }
10367 break
10368 else
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10371 fi
10372 done
10373 fi
10374
10375 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10376 for ncn_progname in gcc; do
10377 if test -n "$ncn_target_tool_prefix"; then
10378 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10379 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 if test -n "$GCC_FOR_TARGET"; then
10386 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10395 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10398 fi
10399 done
10400 done
10401 IFS=$as_save_IFS
10402
10403 fi
10404 fi
10405 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10406 if test -n "$GCC_FOR_TARGET"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10408 $as_echo "$GCC_FOR_TARGET" >&6; }
10409 else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10412 fi
10413
10414
10415 fi
10416 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10418 set dummy ${ncn_progname}; ac_word=$2
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420 $as_echo_n "checking for $ac_word... " >&6; }
10421 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 if test -n "$GCC_FOR_TARGET"; then
10425 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10426 else
10427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428 for as_dir in $PATH
10429 do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_exec_ext in '' $ac_executable_extensions; do
10433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10434 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 break 2
10437 fi
10438 done
10439 done
10440 IFS=$as_save_IFS
10441
10442 fi
10443 fi
10444 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10445 if test -n "$GCC_FOR_TARGET"; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10447 $as_echo "$GCC_FOR_TARGET" >&6; }
10448 else
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10451 fi
10452
10453
10454 fi
10455 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10456 done
10457 fi
10458
10459 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10460 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10461 else
10462 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10463 fi
10464
10465
10466
10467 if test -n "$GFORTRAN_FOR_TARGET"; then
10468 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10469 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10470 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10471 fi
10472
10473 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10474 for ncn_progname in gfortran; do
10475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10476 set dummy ${ncn_progname}; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 if test -n "$GFORTRAN_FOR_TARGET"; then
10483 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10484 else
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10487 do
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10492 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 break 2
10495 fi
10496 done
10497 done
10498 IFS=$as_save_IFS
10499
10500 fi
10501 fi
10502 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10503 if test -n "$GFORTRAN_FOR_TARGET"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10505 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10509 fi
10510
10511
10512 done
10513 fi
10514
10515 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10516 for ncn_progname in gfortran; do
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10518 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10519 if test -x $with_build_time_tools/${ncn_progname}; then
10520 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10522 $as_echo "yes" >&6; }
10523 break
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 fi
10528 done
10529 fi
10530
10531 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10532 for ncn_progname in gfortran; do
10533 if test -n "$ncn_target_tool_prefix"; then
10534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10535 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 $as_echo_n "checking for $ac_word... " >&6; }
10538 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 if test -n "$GFORTRAN_FOR_TARGET"; then
10542 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10543 else
10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545 for as_dir in $PATH
10546 do
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10551 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10554 fi
10555 done
10556 done
10557 IFS=$as_save_IFS
10558
10559 fi
10560 fi
10561 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10562 if test -n "$GFORTRAN_FOR_TARGET"; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10564 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10568 fi
10569
10570
10571 fi
10572 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10574 set dummy ${ncn_progname}; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 if test -n "$GFORTRAN_FOR_TARGET"; then
10581 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10582 else
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584 for as_dir in $PATH
10585 do
10586 IFS=$as_save_IFS
10587 test -z "$as_dir" && as_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
10589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10590 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 break 2
10593 fi
10594 done
10595 done
10596 IFS=$as_save_IFS
10597
10598 fi
10599 fi
10600 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10601 if test -n "$GFORTRAN_FOR_TARGET"; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10603 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 fi
10608
10609
10610 fi
10611 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10612 done
10613 fi
10614
10615 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10616 set dummy gfortran
10617 if test $build = $target ; then
10618 GFORTRAN_FOR_TARGET="$2"
10619 else
10620 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10621 fi
10622 else
10623 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10624 fi
10625
10626
10627
10628 if test -n "$GOC_FOR_TARGET"; then
10629 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10630 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10631 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10632 fi
10633
10634 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10635 for ncn_progname in gccgo; do
10636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10637 set dummy ${ncn_progname}; ac_word=$2
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639 $as_echo_n "checking for $ac_word... " >&6; }
10640 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 if test -n "$GOC_FOR_TARGET"; then
10644 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10645 else
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10648 do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10656 fi
10657 done
10658 done
10659 IFS=$as_save_IFS
10660
10661 fi
10662 fi
10663 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10664 if test -n "$GOC_FOR_TARGET"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10666 $as_echo "$GOC_FOR_TARGET" >&6; }
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; }
10670 fi
10671
10672
10673 done
10674 fi
10675
10676 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10677 for ncn_progname in gccgo; do
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10679 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10680 if test -x $with_build_time_tools/${ncn_progname}; then
10681 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10683 $as_echo "yes" >&6; }
10684 break
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }
10688 fi
10689 done
10690 fi
10691
10692 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10693 for ncn_progname in gccgo; do
10694 if test -n "$ncn_target_tool_prefix"; then
10695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10696 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 if test -n "$GOC_FOR_TARGET"; then
10703 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10704 else
10705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in $PATH
10707 do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10712 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10714 break 2
10715 fi
10716 done
10717 done
10718 IFS=$as_save_IFS
10719
10720 fi
10721 fi
10722 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10723 if test -n "$GOC_FOR_TARGET"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10725 $as_echo "$GOC_FOR_TARGET" >&6; }
10726 else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10729 fi
10730
10731
10732 fi
10733 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10735 set dummy ${ncn_progname}; ac_word=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 if test -n "$GOC_FOR_TARGET"; then
10742 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10743 else
10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745 for as_dir in $PATH
10746 do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10751 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 break 2
10754 fi
10755 done
10756 done
10757 IFS=$as_save_IFS
10758
10759 fi
10760 fi
10761 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10762 if test -n "$GOC_FOR_TARGET"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10764 $as_echo "$GOC_FOR_TARGET" >&6; }
10765 else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10768 fi
10769
10770
10771 fi
10772 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10773 done
10774 fi
10775
10776 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10777 set dummy gccgo
10778 if test $build = $target ; then
10779 GOC_FOR_TARGET="$2"
10780 else
10781 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10782 fi
10783 else
10784 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10785 fi
10786
10787
10788
10789 cat > conftest.c << \EOF
10790 #ifdef __GNUC__
10791 gcc_yay;
10792 #endif
10793 EOF
10794 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10795 have_gcc_for_target=yes
10796 else
10797 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10798 have_gcc_for_target=no
10799 fi
10800 rm conftest.c
10801
10802
10803
10804
10805 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10806 if test -n "$with_build_time_tools"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10808 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10809 if test -x $with_build_time_tools/ar; then
10810 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10811 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10813 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10817 fi
10818 elif test $build != $host && test $have_gcc_for_target = yes; then
10819 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10820 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10821 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10822 fi
10823 fi
10824 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10825 # Extract the first word of "ar", so it can be a program name with args.
10826 set dummy ar; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 case $AR_FOR_TARGET in
10833 [\\/]* | ?:[\\/]*)
10834 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10835 ;;
10836 *)
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $gcc_cv_tool_dirs
10839 do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848 done
10849 done
10850 IFS=$as_save_IFS
10851
10852 ;;
10853 esac
10854 fi
10855 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10856 if test -n "$AR_FOR_TARGET"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10858 $as_echo "$AR_FOR_TARGET" >&6; }
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862 fi
10863
10864
10865 fi
10866 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10867
10868
10869 if test -n "$AR_FOR_TARGET"; then
10870 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10871 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10872 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10873 fi
10874
10875 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10876 for ncn_progname in ar; do
10877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10878 set dummy ${ncn_progname}; ac_word=$2
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880 $as_echo_n "checking for $ac_word... " >&6; }
10881 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 if test -n "$AR_FOR_TARGET"; then
10885 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10886 else
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10889 do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10897 fi
10898 done
10899 done
10900 IFS=$as_save_IFS
10901
10902 fi
10903 fi
10904 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10905 if test -n "$AR_FOR_TARGET"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10907 $as_echo "$AR_FOR_TARGET" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912
10913
10914 done
10915 fi
10916
10917 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10918 for ncn_progname in ar; do
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10920 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10921 if test -x $with_build_time_tools/${ncn_progname}; then
10922 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10924 $as_echo "yes" >&6; }
10925 break
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10929 fi
10930 done
10931 fi
10932
10933 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10934 for ncn_progname in ar; do
10935 if test -n "$ncn_target_tool_prefix"; then
10936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10937 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 if test -n "$AR_FOR_TARGET"; then
10944 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10945 else
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 break 2
10956 fi
10957 done
10958 done
10959 IFS=$as_save_IFS
10960
10961 fi
10962 fi
10963 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10964 if test -n "$AR_FOR_TARGET"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10966 $as_echo "$AR_FOR_TARGET" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10970 fi
10971
10972
10973 fi
10974 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10976 set dummy ${ncn_progname}; ac_word=$2
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978 $as_echo_n "checking for $ac_word... " >&6; }
10979 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 if test -n "$AR_FOR_TARGET"; then
10983 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10984 else
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $PATH
10987 do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996 done
10997 done
10998 IFS=$as_save_IFS
10999
11000 fi
11001 fi
11002 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11003 if test -n "$AR_FOR_TARGET"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11005 $as_echo "$AR_FOR_TARGET" >&6; }
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11009 fi
11010
11011
11012 fi
11013 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11014 done
11015 fi
11016
11017 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11018 set dummy ar
11019 if test $build = $target ; then
11020 AR_FOR_TARGET="$2"
11021 else
11022 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11023 fi
11024 else
11025 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11026 fi
11027
11028 else
11029 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11030 fi
11031
11032
11033
11034
11035 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11036 if test -n "$with_build_time_tools"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11038 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11039 if test -x $with_build_time_tools/as; then
11040 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11041 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11043 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11044 else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046 $as_echo "no" >&6; }
11047 fi
11048 elif test $build != $host && test $have_gcc_for_target = yes; then
11049 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11050 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11051 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11052 fi
11053 fi
11054 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11055 # Extract the first word of "as", so it can be a program name with args.
11056 set dummy as; ac_word=$2
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058 $as_echo_n "checking for $ac_word... " >&6; }
11059 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 case $AS_FOR_TARGET in
11063 [\\/]* | ?:[\\/]*)
11064 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11065 ;;
11066 *)
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $gcc_cv_tool_dirs
11069 do
11070 IFS=$as_save_IFS
11071 test -z "$as_dir" && as_dir=.
11072 for ac_exec_ext in '' $ac_executable_extensions; do
11073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076 break 2
11077 fi
11078 done
11079 done
11080 IFS=$as_save_IFS
11081
11082 ;;
11083 esac
11084 fi
11085 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11086 if test -n "$AS_FOR_TARGET"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11088 $as_echo "$AS_FOR_TARGET" >&6; }
11089 else
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11092 fi
11093
11094
11095 fi
11096 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11097
11098
11099 if test -n "$AS_FOR_TARGET"; then
11100 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11101 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11102 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11103 fi
11104
11105 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11106 for ncn_progname in as; do
11107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11108 set dummy ${ncn_progname}; ac_word=$2
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110 $as_echo_n "checking for $ac_word... " >&6; }
11111 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 if test -n "$AS_FOR_TARGET"; then
11115 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11116 else
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11119 do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11127 fi
11128 done
11129 done
11130 IFS=$as_save_IFS
11131
11132 fi
11133 fi
11134 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11135 if test -n "$AS_FOR_TARGET"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11137 $as_echo "$AS_FOR_TARGET" >&6; }
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11141 fi
11142
11143
11144 done
11145 fi
11146
11147 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11148 for ncn_progname in as; do
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11150 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11151 if test -x $with_build_time_tools/${ncn_progname}; then
11152 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11154 $as_echo "yes" >&6; }
11155 break
11156 else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 $as_echo "no" >&6; }
11159 fi
11160 done
11161 fi
11162
11163 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11164 for ncn_progname in as; do
11165 if test -n "$ncn_target_tool_prefix"; then
11166 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11167 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169 $as_echo_n "checking for $ac_word... " >&6; }
11170 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 if test -n "$AS_FOR_TARGET"; then
11174 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11175 else
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11186 fi
11187 done
11188 done
11189 IFS=$as_save_IFS
11190
11191 fi
11192 fi
11193 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11194 if test -n "$AS_FOR_TARGET"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11196 $as_echo "$AS_FOR_TARGET" >&6; }
11197 else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 fi
11201
11202
11203 fi
11204 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11206 set dummy ${ncn_progname}; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 if test -n "$AS_FOR_TARGET"; then
11213 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11214 else
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11217 do
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11225 fi
11226 done
11227 done
11228 IFS=$as_save_IFS
11229
11230 fi
11231 fi
11232 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11233 if test -n "$AS_FOR_TARGET"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11235 $as_echo "$AS_FOR_TARGET" >&6; }
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11239 fi
11240
11241
11242 fi
11243 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11244 done
11245 fi
11246
11247 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11248 set dummy as
11249 if test $build = $target ; then
11250 AS_FOR_TARGET="$2"
11251 else
11252 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11253 fi
11254 else
11255 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11256 fi
11257
11258 else
11259 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11260 fi
11261
11262
11263
11264
11265 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11266 if test -n "$with_build_time_tools"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11268 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11269 if test -x $with_build_time_tools/dlltool; then
11270 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11271 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11273 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11274 else
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277 fi
11278 elif test $build != $host && test $have_gcc_for_target = yes; then
11279 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11280 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11281 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11282 fi
11283 fi
11284 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11285 # Extract the first word of "dlltool", so it can be a program name with args.
11286 set dummy dlltool; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 case $DLLTOOL_FOR_TARGET in
11293 [\\/]* | ?:[\\/]*)
11294 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11295 ;;
11296 *)
11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in $gcc_cv_tool_dirs
11299 do
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11304 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 break 2
11307 fi
11308 done
11309 done
11310 IFS=$as_save_IFS
11311
11312 ;;
11313 esac
11314 fi
11315 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11316 if test -n "$DLLTOOL_FOR_TARGET"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11318 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11322 fi
11323
11324
11325 fi
11326 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11327
11328
11329 if test -n "$DLLTOOL_FOR_TARGET"; then
11330 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11331 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11332 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11333 fi
11334
11335 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11336 for ncn_progname in dlltool; do
11337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11338 set dummy ${ncn_progname}; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 if test -n "$DLLTOOL_FOR_TARGET"; then
11345 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11346 else
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11349 do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11357 fi
11358 done
11359 done
11360 IFS=$as_save_IFS
11361
11362 fi
11363 fi
11364 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11365 if test -n "$DLLTOOL_FOR_TARGET"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11367 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372
11373
11374 done
11375 fi
11376
11377 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11378 for ncn_progname in dlltool; do
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11380 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11381 if test -x $with_build_time_tools/${ncn_progname}; then
11382 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11384 $as_echo "yes" >&6; }
11385 break
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11389 fi
11390 done
11391 fi
11392
11393 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11394 for ncn_progname in dlltool; do
11395 if test -n "$ncn_target_tool_prefix"; then
11396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11397 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 if test -n "$DLLTOOL_FOR_TARGET"; then
11404 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11405 else
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH
11408 do
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
11411 for ac_exec_ext in '' $ac_executable_extensions; do
11412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11413 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11415 break 2
11416 fi
11417 done
11418 done
11419 IFS=$as_save_IFS
11420
11421 fi
11422 fi
11423 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11424 if test -n "$DLLTOOL_FOR_TARGET"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11426 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11430 fi
11431
11432
11433 fi
11434 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11436 set dummy ${ncn_progname}; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 if test -n "$DLLTOOL_FOR_TARGET"; then
11443 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11444 else
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11447 do
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11455 fi
11456 done
11457 done
11458 IFS=$as_save_IFS
11459
11460 fi
11461 fi
11462 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11463 if test -n "$DLLTOOL_FOR_TARGET"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11465 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11469 fi
11470
11471
11472 fi
11473 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11474 done
11475 fi
11476
11477 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11478 set dummy dlltool
11479 if test $build = $target ; then
11480 DLLTOOL_FOR_TARGET="$2"
11481 else
11482 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11483 fi
11484 else
11485 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11486 fi
11487
11488 else
11489 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11490 fi
11491
11492
11493
11494
11495 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11496 if test -n "$with_build_time_tools"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11498 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11499 if test -x $with_build_time_tools/ld; then
11500 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11501 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11503 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11504 else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 fi
11508 elif test $build != $host && test $have_gcc_for_target = yes; then
11509 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11510 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11511 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11512 fi
11513 fi
11514 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11515 # Extract the first word of "ld", so it can be a program name with args.
11516 set dummy ld; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 case $LD_FOR_TARGET in
11523 [\\/]* | ?:[\\/]*)
11524 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11525 ;;
11526 *)
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $gcc_cv_tool_dirs
11529 do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11534 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11537 fi
11538 done
11539 done
11540 IFS=$as_save_IFS
11541
11542 ;;
11543 esac
11544 fi
11545 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11546 if test -n "$LD_FOR_TARGET"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11548 $as_echo "$LD_FOR_TARGET" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 fi
11553
11554
11555 fi
11556 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11557
11558
11559 if test -n "$LD_FOR_TARGET"; then
11560 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11561 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11562 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11563 fi
11564
11565 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11566 for ncn_progname in ld; do
11567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11568 set dummy ${ncn_progname}; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 if test -n "$LD_FOR_TARGET"; then
11575 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11576 else
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 break 2
11587 fi
11588 done
11589 done
11590 IFS=$as_save_IFS
11591
11592 fi
11593 fi
11594 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11595 if test -n "$LD_FOR_TARGET"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11597 $as_echo "$LD_FOR_TARGET" >&6; }
11598 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11601 fi
11602
11603
11604 done
11605 fi
11606
11607 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11608 for ncn_progname in ld; do
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11610 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11611 if test -x $with_build_time_tools/${ncn_progname}; then
11612 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 $as_echo "yes" >&6; }
11615 break
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620 done
11621 fi
11622
11623 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11624 for ncn_progname in ld; do
11625 if test -n "$ncn_target_tool_prefix"; then
11626 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11627 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11631 $as_echo_n "(cached) " >&6
11632 else
11633 if test -n "$LD_FOR_TARGET"; then
11634 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11635 else
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11638 do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11643 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 break 2
11646 fi
11647 done
11648 done
11649 IFS=$as_save_IFS
11650
11651 fi
11652 fi
11653 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11654 if test -n "$LD_FOR_TARGET"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11656 $as_echo "$LD_FOR_TARGET" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 fi
11661
11662
11663 fi
11664 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11666 set dummy ${ncn_progname}; ac_word=$2
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 if test -n "$LD_FOR_TARGET"; then
11673 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11674 else
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11682 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11685 fi
11686 done
11687 done
11688 IFS=$as_save_IFS
11689
11690 fi
11691 fi
11692 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11693 if test -n "$LD_FOR_TARGET"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11695 $as_echo "$LD_FOR_TARGET" >&6; }
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11699 fi
11700
11701
11702 fi
11703 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11704 done
11705 fi
11706
11707 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11708 set dummy ld
11709 if test $build = $target ; then
11710 LD_FOR_TARGET="$2"
11711 else
11712 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11713 fi
11714 else
11715 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11716 fi
11717
11718 else
11719 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11720 fi
11721
11722
11723
11724
11725 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11726 if test -n "$with_build_time_tools"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11728 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11729 if test -x $with_build_time_tools/lipo; then
11730 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11731 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11733 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738 elif test $build != $host && test $have_gcc_for_target = yes; then
11739 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11740 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11741 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11742 fi
11743 fi
11744 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11745 # Extract the first word of "lipo", so it can be a program name with args.
11746 set dummy lipo; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 case $LIPO_FOR_TARGET in
11753 [\\/]* | ?:[\\/]*)
11754 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11755 ;;
11756 *)
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $gcc_cv_tool_dirs
11759 do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768 done
11769 done
11770 IFS=$as_save_IFS
11771
11772 ;;
11773 esac
11774 fi
11775 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11776 if test -n "$LIPO_FOR_TARGET"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11778 $as_echo "$LIPO_FOR_TARGET" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782 fi
11783
11784
11785 fi
11786 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11787
11788
11789 if test -n "$LIPO_FOR_TARGET"; then
11790 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11791 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11792 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11793 fi
11794
11795 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11796 for ncn_progname in lipo; do
11797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11798 set dummy ${ncn_progname}; ac_word=$2
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800 $as_echo_n "checking for $ac_word... " >&6; }
11801 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11804 if test -n "$LIPO_FOR_TARGET"; then
11805 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11806 else
11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808 for as_dir in $PATH
11809 do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11814 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11816 break 2
11817 fi
11818 done
11819 done
11820 IFS=$as_save_IFS
11821
11822 fi
11823 fi
11824 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11825 if test -n "$LIPO_FOR_TARGET"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11827 $as_echo "$LIPO_FOR_TARGET" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11831 fi
11832
11833
11834 done
11835 fi
11836
11837 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11838 for ncn_progname in lipo; do
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11840 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11841 if test -x $with_build_time_tools/${ncn_progname}; then
11842 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844 $as_echo "yes" >&6; }
11845 break
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849 fi
11850 done
11851 fi
11852
11853 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11854 for ncn_progname in lipo; do
11855 if test -n "$ncn_target_tool_prefix"; then
11856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11857 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859 $as_echo_n "checking for $ac_word... " >&6; }
11860 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 if test -n "$LIPO_FOR_TARGET"; then
11864 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11865 else
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11868 do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877 done
11878 done
11879 IFS=$as_save_IFS
11880
11881 fi
11882 fi
11883 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11884 if test -n "$LIPO_FOR_TARGET"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11886 $as_echo "$LIPO_FOR_TARGET" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893 fi
11894 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11896 set dummy ${ncn_progname}; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 if test -n "$LIPO_FOR_TARGET"; then
11903 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11915 fi
11916 done
11917 done
11918 IFS=$as_save_IFS
11919
11920 fi
11921 fi
11922 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11923 if test -n "$LIPO_FOR_TARGET"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11925 $as_echo "$LIPO_FOR_TARGET" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11929 fi
11930
11931
11932 fi
11933 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11934 done
11935 fi
11936
11937 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11938 set dummy lipo
11939 if test $build = $target ; then
11940 LIPO_FOR_TARGET="$2"
11941 else
11942 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11943 fi
11944 else
11945 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11946 fi
11947
11948 else
11949 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11950 fi
11951
11952
11953
11954
11955 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11956 if test -n "$with_build_time_tools"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11958 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11959 if test -x $with_build_time_tools/nm; then
11960 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11961 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11963 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11964 else
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11967 fi
11968 elif test $build != $host && test $have_gcc_for_target = yes; then
11969 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11970 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11971 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11972 fi
11973 fi
11974 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11975 # Extract the first word of "nm", so it can be a program name with args.
11976 set dummy nm; ac_word=$2
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 $as_echo_n "checking for $ac_word... " >&6; }
11979 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 case $NM_FOR_TARGET in
11983 [\\/]* | ?:[\\/]*)
11984 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11985 ;;
11986 *)
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $gcc_cv_tool_dirs
11989 do
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 break 2
11997 fi
11998 done
11999 done
12000 IFS=$as_save_IFS
12001
12002 ;;
12003 esac
12004 fi
12005 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12006 if test -n "$NM_FOR_TARGET"; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12008 $as_echo "$NM_FOR_TARGET" >&6; }
12009 else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012 fi
12013
12014
12015 fi
12016 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12017
12018
12019 if test -n "$NM_FOR_TARGET"; then
12020 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12021 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12022 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12023 fi
12024
12025 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12026 for ncn_progname in nm; do
12027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12028 set dummy ${ncn_progname}; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 if test -n "$NM_FOR_TARGET"; then
12035 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12036 else
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12039 do
12040 IFS=$as_save_IFS
12041 test -z "$as_dir" && as_dir=.
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 break 2
12047 fi
12048 done
12049 done
12050 IFS=$as_save_IFS
12051
12052 fi
12053 fi
12054 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12055 if test -n "$NM_FOR_TARGET"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12057 $as_echo "$NM_FOR_TARGET" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12061 fi
12062
12063
12064 done
12065 fi
12066
12067 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12068 for ncn_progname in nm; do
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12070 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12071 if test -x $with_build_time_tools/${ncn_progname}; then
12072 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12074 $as_echo "yes" >&6; }
12075 break
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12079 fi
12080 done
12081 fi
12082
12083 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12084 for ncn_progname in nm; do
12085 if test -n "$ncn_target_tool_prefix"; then
12086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089 $as_echo_n "checking for $ac_word... " >&6; }
12090 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 if test -n "$NM_FOR_TARGET"; then
12094 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12095 else
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH
12098 do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12103 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12105 break 2
12106 fi
12107 done
12108 done
12109 IFS=$as_save_IFS
12110
12111 fi
12112 fi
12113 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12114 if test -n "$NM_FOR_TARGET"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12116 $as_echo "$NM_FOR_TARGET" >&6; }
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120 fi
12121
12122
12123 fi
12124 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12126 set dummy ${ncn_progname}; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 if test -n "$NM_FOR_TARGET"; then
12133 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12142 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12145 fi
12146 done
12147 done
12148 IFS=$as_save_IFS
12149
12150 fi
12151 fi
12152 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12153 if test -n "$NM_FOR_TARGET"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12155 $as_echo "$NM_FOR_TARGET" >&6; }
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12159 fi
12160
12161
12162 fi
12163 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12164 done
12165 fi
12166
12167 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12168 set dummy nm
12169 if test $build = $target ; then
12170 NM_FOR_TARGET="$2"
12171 else
12172 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12173 fi
12174 else
12175 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12176 fi
12177
12178 else
12179 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12180 fi
12181
12182
12183
12184
12185 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12186 if test -n "$with_build_time_tools"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12188 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12189 if test -x $with_build_time_tools/objcopy; then
12190 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12191 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12193 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12197 fi
12198 elif test $build != $host && test $have_gcc_for_target = yes; then
12199 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12200 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12201 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12202 fi
12203 fi
12204 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12205 # Extract the first word of "objcopy", so it can be a program name with args.
12206 set dummy objcopy; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 case $OBJCOPY_FOR_TARGET in
12213 [\\/]* | ?:[\\/]*)
12214 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12215 ;;
12216 *)
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $gcc_cv_tool_dirs
12219 do
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226 break 2
12227 fi
12228 done
12229 done
12230 IFS=$as_save_IFS
12231
12232 ;;
12233 esac
12234 fi
12235 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12236 if test -n "$OBJCOPY_FOR_TARGET"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12238 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12242 fi
12243
12244
12245 fi
12246 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12247
12248
12249 if test -n "$OBJCOPY_FOR_TARGET"; then
12250 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12251 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12252 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12253 fi
12254
12255 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12256 for ncn_progname in objcopy; do
12257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12258 set dummy ${ncn_progname}; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 if test -n "$OBJCOPY_FOR_TARGET"; then
12265 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12266 else
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12269 do
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 break 2
12277 fi
12278 done
12279 done
12280 IFS=$as_save_IFS
12281
12282 fi
12283 fi
12284 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12285 if test -n "$OBJCOPY_FOR_TARGET"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12287 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291 fi
12292
12293
12294 done
12295 fi
12296
12297 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12298 for ncn_progname in objcopy; do
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12300 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12301 if test -x $with_build_time_tools/${ncn_progname}; then
12302 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12304 $as_echo "yes" >&6; }
12305 break
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309 fi
12310 done
12311 fi
12312
12313 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12314 for ncn_progname in objcopy; do
12315 if test -n "$ncn_target_tool_prefix"; then
12316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12317 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 if test -n "$OBJCOPY_FOR_TARGET"; then
12324 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12325 else
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327 for as_dir in $PATH
12328 do
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 break 2
12336 fi
12337 done
12338 done
12339 IFS=$as_save_IFS
12340
12341 fi
12342 fi
12343 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12344 if test -n "$OBJCOPY_FOR_TARGET"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12346 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350 fi
12351
12352
12353 fi
12354 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12356 set dummy ${ncn_progname}; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 if test -n "$OBJCOPY_FOR_TARGET"; then
12363 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12364 else
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12367 do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12372 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12375 fi
12376 done
12377 done
12378 IFS=$as_save_IFS
12379
12380 fi
12381 fi
12382 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12383 if test -n "$OBJCOPY_FOR_TARGET"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12385 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12389 fi
12390
12391
12392 fi
12393 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12394 done
12395 fi
12396
12397 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12398 set dummy objcopy
12399 if test $build = $target ; then
12400 OBJCOPY_FOR_TARGET="$2"
12401 else
12402 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12403 fi
12404 else
12405 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12406 fi
12407
12408 else
12409 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12410 fi
12411
12412
12413
12414
12415 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12416 if test -n "$with_build_time_tools"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12418 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12419 if test -x $with_build_time_tools/objdump; then
12420 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12421 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12423 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12424 else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12427 fi
12428 elif test $build != $host && test $have_gcc_for_target = yes; then
12429 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12430 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12431 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12432 fi
12433 fi
12434 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12435 # Extract the first word of "objdump", so it can be a program name with args.
12436 set dummy objdump; ac_word=$2
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 $as_echo_n "checking for $ac_word... " >&6; }
12439 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 case $OBJDUMP_FOR_TARGET in
12443 [\\/]* | ?:[\\/]*)
12444 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12445 ;;
12446 *)
12447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448 for as_dir in $gcc_cv_tool_dirs
12449 do
12450 IFS=$as_save_IFS
12451 test -z "$as_dir" && as_dir=.
12452 for ac_exec_ext in '' $ac_executable_extensions; do
12453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12454 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456 break 2
12457 fi
12458 done
12459 done
12460 IFS=$as_save_IFS
12461
12462 ;;
12463 esac
12464 fi
12465 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12466 if test -n "$OBJDUMP_FOR_TARGET"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12468 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12472 fi
12473
12474
12475 fi
12476 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12477
12478
12479 if test -n "$OBJDUMP_FOR_TARGET"; then
12480 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12481 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12482 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12483 fi
12484
12485 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12486 for ncn_progname in objdump; do
12487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12488 set dummy ${ncn_progname}; ac_word=$2
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490 $as_echo_n "checking for $ac_word... " >&6; }
12491 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 if test -n "$OBJDUMP_FOR_TARGET"; then
12495 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12496 else
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12499 do
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508 done
12509 done
12510 IFS=$as_save_IFS
12511
12512 fi
12513 fi
12514 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12515 if test -n "$OBJDUMP_FOR_TARGET"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12517 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12521 fi
12522
12523
12524 done
12525 fi
12526
12527 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12528 for ncn_progname in objdump; do
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12530 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12531 if test -x $with_build_time_tools/${ncn_progname}; then
12532 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12534 $as_echo "yes" >&6; }
12535 break
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540 done
12541 fi
12542
12543 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12544 for ncn_progname in objdump; do
12545 if test -n "$ncn_target_tool_prefix"; then
12546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 if test -n "$OBJDUMP_FOR_TARGET"; then
12554 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12555 else
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12558 do
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12563 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 break 2
12566 fi
12567 done
12568 done
12569 IFS=$as_save_IFS
12570
12571 fi
12572 fi
12573 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12574 if test -n "$OBJDUMP_FOR_TARGET"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12576 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583 fi
12584 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12586 set dummy ${ncn_progname}; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 if test -n "$OBJDUMP_FOR_TARGET"; then
12593 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12594 else
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $PATH
12597 do
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12605 fi
12606 done
12607 done
12608 IFS=$as_save_IFS
12609
12610 fi
12611 fi
12612 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12613 if test -n "$OBJDUMP_FOR_TARGET"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12615 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12616 else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619 fi
12620
12621
12622 fi
12623 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12624 done
12625 fi
12626
12627 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12628 set dummy objdump
12629 if test $build = $target ; then
12630 OBJDUMP_FOR_TARGET="$2"
12631 else
12632 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12633 fi
12634 else
12635 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12636 fi
12637
12638 else
12639 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12640 fi
12641
12642
12643
12644
12645 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12646 if test -n "$with_build_time_tools"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12648 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12649 if test -x $with_build_time_tools/ranlib; then
12650 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12651 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12653 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12657 fi
12658 elif test $build != $host && test $have_gcc_for_target = yes; then
12659 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12660 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12661 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12662 fi
12663 fi
12664 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12665 # Extract the first word of "ranlib", so it can be a program name with args.
12666 set dummy ranlib; ac_word=$2
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668 $as_echo_n "checking for $ac_word... " >&6; }
12669 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 case $RANLIB_FOR_TARGET in
12673 [\\/]* | ?:[\\/]*)
12674 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12675 ;;
12676 *)
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $gcc_cv_tool_dirs
12679 do
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12684 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
12687 fi
12688 done
12689 done
12690 IFS=$as_save_IFS
12691
12692 ;;
12693 esac
12694 fi
12695 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12696 if test -n "$RANLIB_FOR_TARGET"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12698 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12702 fi
12703
12704
12705 fi
12706 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12707
12708
12709 if test -n "$RANLIB_FOR_TARGET"; then
12710 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12711 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12712 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12713 fi
12714
12715 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12716 for ncn_progname in ranlib; do
12717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12718 set dummy ${ncn_progname}; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 if test -n "$RANLIB_FOR_TARGET"; then
12725 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12726 else
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12729 do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12737 fi
12738 done
12739 done
12740 IFS=$as_save_IFS
12741
12742 fi
12743 fi
12744 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12745 if test -n "$RANLIB_FOR_TARGET"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12747 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752
12753
12754 done
12755 fi
12756
12757 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12758 for ncn_progname in ranlib; do
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12760 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12761 if test -x $with_build_time_tools/${ncn_progname}; then
12762 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764 $as_echo "yes" >&6; }
12765 break
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769 fi
12770 done
12771 fi
12772
12773 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12774 for ncn_progname in ranlib; do
12775 if test -n "$ncn_target_tool_prefix"; then
12776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12779 $as_echo_n "checking for $ac_word... " >&6; }
12780 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 if test -n "$RANLIB_FOR_TARGET"; then
12784 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12785 else
12786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787 for as_dir in $PATH
12788 do
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
12791 for ac_exec_ext in '' $ac_executable_extensions; do
12792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12793 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12795 break 2
12796 fi
12797 done
12798 done
12799 IFS=$as_save_IFS
12800
12801 fi
12802 fi
12803 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12804 if test -n "$RANLIB_FOR_TARGET"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12806 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811
12812
12813 fi
12814 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12816 set dummy ${ncn_progname}; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 if test -n "$RANLIB_FOR_TARGET"; then
12823 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12824 else
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12827 do
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12835 fi
12836 done
12837 done
12838 IFS=$as_save_IFS
12839
12840 fi
12841 fi
12842 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12843 if test -n "$RANLIB_FOR_TARGET"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12845 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 fi
12850
12851
12852 fi
12853 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12854 done
12855 fi
12856
12857 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12858 set dummy ranlib
12859 if test $build = $target ; then
12860 RANLIB_FOR_TARGET="$2"
12861 else
12862 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12863 fi
12864 else
12865 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12866 fi
12867
12868 else
12869 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12870 fi
12871
12872
12873
12874
12875 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12876 if test -n "$with_build_time_tools"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12878 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12879 if test -x $with_build_time_tools/readelf; then
12880 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12881 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12883 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12887 fi
12888 elif test $build != $host && test $have_gcc_for_target = yes; then
12889 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12890 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12891 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12892 fi
12893 fi
12894 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12895 # Extract the first word of "readelf", so it can be a program name with args.
12896 set dummy readelf; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 case $READELF_FOR_TARGET in
12903 [\\/]* | ?:[\\/]*)
12904 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12905 ;;
12906 *)
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $gcc_cv_tool_dirs
12909 do
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12914 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 break 2
12917 fi
12918 done
12919 done
12920 IFS=$as_save_IFS
12921
12922 ;;
12923 esac
12924 fi
12925 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12926 if test -n "$READELF_FOR_TARGET"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12928 $as_echo "$READELF_FOR_TARGET" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12932 fi
12933
12934
12935 fi
12936 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12937
12938
12939 if test -n "$READELF_FOR_TARGET"; then
12940 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12941 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12942 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12943 fi
12944
12945 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12946 for ncn_progname in readelf; do
12947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12948 set dummy ${ncn_progname}; ac_word=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 if test -n "$READELF_FOR_TARGET"; then
12955 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12956 else
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in $PATH
12959 do
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
12962 for ac_exec_ext in '' $ac_executable_extensions; do
12963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12964 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12966 break 2
12967 fi
12968 done
12969 done
12970 IFS=$as_save_IFS
12971
12972 fi
12973 fi
12974 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12975 if test -n "$READELF_FOR_TARGET"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12977 $as_echo "$READELF_FOR_TARGET" >&6; }
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12981 fi
12982
12983
12984 done
12985 fi
12986
12987 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12988 for ncn_progname in readelf; do
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12990 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12991 if test -x $with_build_time_tools/${ncn_progname}; then
12992 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12994 $as_echo "yes" >&6; }
12995 break
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
12999 fi
13000 done
13001 fi
13002
13003 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13004 for ncn_progname in readelf; do
13005 if test -n "$ncn_target_tool_prefix"; then
13006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009 $as_echo_n "checking for $ac_word... " >&6; }
13010 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 if test -n "$READELF_FOR_TARGET"; then
13014 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13015 else
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13018 do
13019 IFS=$as_save_IFS
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13023 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 break 2
13026 fi
13027 done
13028 done
13029 IFS=$as_save_IFS
13030
13031 fi
13032 fi
13033 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13034 if test -n "$READELF_FOR_TARGET"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13036 $as_echo "$READELF_FOR_TARGET" >&6; }
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041
13042
13043 fi
13044 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13046 set dummy ${ncn_progname}; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -n "$READELF_FOR_TARGET"; then
13053 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13057 do
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13065 fi
13066 done
13067 done
13068 IFS=$as_save_IFS
13069
13070 fi
13071 fi
13072 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13073 if test -n "$READELF_FOR_TARGET"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13075 $as_echo "$READELF_FOR_TARGET" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080
13081
13082 fi
13083 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13084 done
13085 fi
13086
13087 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13088 set dummy readelf
13089 if test $build = $target ; then
13090 READELF_FOR_TARGET="$2"
13091 else
13092 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13093 fi
13094 else
13095 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13096 fi
13097
13098 else
13099 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13100 fi
13101
13102
13103
13104
13105 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13106 if test -n "$with_build_time_tools"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13108 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13109 if test -x $with_build_time_tools/strip; then
13110 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13111 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13113 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117 fi
13118 elif test $build != $host && test $have_gcc_for_target = yes; then
13119 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13120 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13121 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13122 fi
13123 fi
13124 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13125 # Extract the first word of "strip", so it can be a program name with args.
13126 set dummy strip; ac_word=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 case $STRIP_FOR_TARGET in
13133 [\\/]* | ?:[\\/]*)
13134 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13135 ;;
13136 *)
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $gcc_cv_tool_dirs
13139 do
13140 IFS=$as_save_IFS
13141 test -z "$as_dir" && as_dir=.
13142 for ac_exec_ext in '' $ac_executable_extensions; do
13143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13144 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 break 2
13147 fi
13148 done
13149 done
13150 IFS=$as_save_IFS
13151
13152 ;;
13153 esac
13154 fi
13155 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13156 if test -n "$STRIP_FOR_TARGET"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13158 $as_echo "$STRIP_FOR_TARGET" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162 fi
13163
13164
13165 fi
13166 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13167
13168
13169 if test -n "$STRIP_FOR_TARGET"; then
13170 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13171 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13172 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13173 fi
13174
13175 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13176 for ncn_progname in strip; do
13177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13178 set dummy ${ncn_progname}; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 if test -n "$STRIP_FOR_TARGET"; then
13185 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13186 else
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13189 do
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13197 fi
13198 done
13199 done
13200 IFS=$as_save_IFS
13201
13202 fi
13203 fi
13204 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13205 if test -n "$STRIP_FOR_TARGET"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13207 $as_echo "$STRIP_FOR_TARGET" >&6; }
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13211 fi
13212
13213
13214 done
13215 fi
13216
13217 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13218 for ncn_progname in strip; do
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13220 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13221 if test -x $with_build_time_tools/${ncn_progname}; then
13222 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13224 $as_echo "yes" >&6; }
13225 break
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13229 fi
13230 done
13231 fi
13232
13233 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13234 for ncn_progname in strip; do
13235 if test -n "$ncn_target_tool_prefix"; then
13236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13237 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 if test -n "$STRIP_FOR_TARGET"; then
13244 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13245 else
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13248 do
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13256 fi
13257 done
13258 done
13259 IFS=$as_save_IFS
13260
13261 fi
13262 fi
13263 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13264 if test -n "$STRIP_FOR_TARGET"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13266 $as_echo "$STRIP_FOR_TARGET" >&6; }
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13270 fi
13271
13272
13273 fi
13274 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13276 set dummy ${ncn_progname}; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 if test -n "$STRIP_FOR_TARGET"; then
13283 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13295 fi
13296 done
13297 done
13298 IFS=$as_save_IFS
13299
13300 fi
13301 fi
13302 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13303 if test -n "$STRIP_FOR_TARGET"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13305 $as_echo "$STRIP_FOR_TARGET" >&6; }
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309 fi
13310
13311
13312 fi
13313 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13314 done
13315 fi
13316
13317 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13318 set dummy strip
13319 if test $build = $target ; then
13320 STRIP_FOR_TARGET="$2"
13321 else
13322 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13323 fi
13324 else
13325 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13326 fi
13327
13328 else
13329 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13330 fi
13331
13332
13333
13334
13335 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13336 if test -n "$with_build_time_tools"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13338 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13339 if test -x $with_build_time_tools/windres; then
13340 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13341 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13343 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 fi
13348 elif test $build != $host && test $have_gcc_for_target = yes; then
13349 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13350 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13351 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13352 fi
13353 fi
13354 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13355 # Extract the first word of "windres", so it can be a program name with args.
13356 set dummy windres; ac_word=$2
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358 $as_echo_n "checking for $ac_word... " >&6; }
13359 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 case $WINDRES_FOR_TARGET in
13363 [\\/]* | ?:[\\/]*)
13364 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13365 ;;
13366 *)
13367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368 for as_dir in $gcc_cv_tool_dirs
13369 do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 break 2
13377 fi
13378 done
13379 done
13380 IFS=$as_save_IFS
13381
13382 ;;
13383 esac
13384 fi
13385 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13386 if test -n "$WINDRES_FOR_TARGET"; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13388 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13389 else
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391 $as_echo "no" >&6; }
13392 fi
13393
13394
13395 fi
13396 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13397
13398
13399 if test -n "$WINDRES_FOR_TARGET"; then
13400 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13401 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13402 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13403 fi
13404
13405 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13406 for ncn_progname in windres; do
13407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13408 set dummy ${ncn_progname}; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 if test -n "$WINDRES_FOR_TARGET"; then
13415 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13416 else
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13419 do
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13427 fi
13428 done
13429 done
13430 IFS=$as_save_IFS
13431
13432 fi
13433 fi
13434 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13435 if test -n "$WINDRES_FOR_TARGET"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13437 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13438 else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13441 fi
13442
13443
13444 done
13445 fi
13446
13447 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13448 for ncn_progname in windres; do
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13450 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13451 if test -x $with_build_time_tools/${ncn_progname}; then
13452 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13454 $as_echo "yes" >&6; }
13455 break
13456 else
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13459 fi
13460 done
13461 fi
13462
13463 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13464 for ncn_progname in windres; do
13465 if test -n "$ncn_target_tool_prefix"; then
13466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13467 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13469 $as_echo_n "checking for $ac_word... " >&6; }
13470 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 if test -n "$WINDRES_FOR_TARGET"; then
13474 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13475 else
13476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477 for as_dir in $PATH
13478 do
13479 IFS=$as_save_IFS
13480 test -z "$as_dir" && as_dir=.
13481 for ac_exec_ext in '' $ac_executable_extensions; do
13482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13483 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485 break 2
13486 fi
13487 done
13488 done
13489 IFS=$as_save_IFS
13490
13491 fi
13492 fi
13493 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13494 if test -n "$WINDRES_FOR_TARGET"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13496 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13497 else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13500 fi
13501
13502
13503 fi
13504 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13506 set dummy ${ncn_progname}; ac_word=$2
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 $as_echo_n "checking for $ac_word... " >&6; }
13509 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 if test -n "$WINDRES_FOR_TARGET"; then
13513 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13514 else
13515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $PATH
13517 do
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13522 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13525 fi
13526 done
13527 done
13528 IFS=$as_save_IFS
13529
13530 fi
13531 fi
13532 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13533 if test -n "$WINDRES_FOR_TARGET"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13535 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13539 fi
13540
13541
13542 fi
13543 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13544 done
13545 fi
13546
13547 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13548 set dummy windres
13549 if test $build = $target ; then
13550 WINDRES_FOR_TARGET="$2"
13551 else
13552 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13553 fi
13554 else
13555 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13556 fi
13557
13558 else
13559 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13560 fi
13561
13562
13563
13564
13565 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13566 if test -n "$with_build_time_tools"; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13568 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13569 if test -x $with_build_time_tools/windmc; then
13570 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13571 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13573 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13574 else
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13577 fi
13578 elif test $build != $host && test $have_gcc_for_target = yes; then
13579 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13580 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13581 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13582 fi
13583 fi
13584 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13585 # Extract the first word of "windmc", so it can be a program name with args.
13586 set dummy windmc; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 case $WINDMC_FOR_TARGET in
13593 [\\/]* | ?:[\\/]*)
13594 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13595 ;;
13596 *)
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $gcc_cv_tool_dirs
13599 do
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
13603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13604 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13606 break 2
13607 fi
13608 done
13609 done
13610 IFS=$as_save_IFS
13611
13612 ;;
13613 esac
13614 fi
13615 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13616 if test -n "$WINDMC_FOR_TARGET"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13618 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622 fi
13623
13624
13625 fi
13626 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13627
13628
13629 if test -n "$WINDMC_FOR_TARGET"; then
13630 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13631 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13632 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13633 fi
13634
13635 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13636 for ncn_progname in windmc; do
13637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13638 set dummy ${ncn_progname}; ac_word=$2
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640 $as_echo_n "checking for $ac_word... " >&6; }
13641 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 if test -n "$WINDMC_FOR_TARGET"; then
13645 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13646 else
13647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648 for as_dir in $PATH
13649 do
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
13653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13654 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13657 fi
13658 done
13659 done
13660 IFS=$as_save_IFS
13661
13662 fi
13663 fi
13664 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13665 if test -n "$WINDMC_FOR_TARGET"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13667 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13668 else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13671 fi
13672
13673
13674 done
13675 fi
13676
13677 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13678 for ncn_progname in windmc; do
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13680 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13681 if test -x $with_build_time_tools/${ncn_progname}; then
13682 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13684 $as_echo "yes" >&6; }
13685 break
13686 else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13689 fi
13690 done
13691 fi
13692
13693 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13694 for ncn_progname in windmc; do
13695 if test -n "$ncn_target_tool_prefix"; then
13696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13699 $as_echo_n "checking for $ac_word... " >&6; }
13700 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 if test -n "$WINDMC_FOR_TARGET"; then
13704 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13705 else
13706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707 for as_dir in $PATH
13708 do
13709 IFS=$as_save_IFS
13710 test -z "$as_dir" && as_dir=.
13711 for ac_exec_ext in '' $ac_executable_extensions; do
13712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13713 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13715 break 2
13716 fi
13717 done
13718 done
13719 IFS=$as_save_IFS
13720
13721 fi
13722 fi
13723 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13724 if test -n "$WINDMC_FOR_TARGET"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13726 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13727 else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13730 fi
13731
13732
13733 fi
13734 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13736 set dummy ${ncn_progname}; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 if test -n "$WINDMC_FOR_TARGET"; then
13743 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13747 do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13752 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13755 fi
13756 done
13757 done
13758 IFS=$as_save_IFS
13759
13760 fi
13761 fi
13762 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13763 if test -n "$WINDMC_FOR_TARGET"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13765 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13766 else
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13769 fi
13770
13771
13772 fi
13773 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13774 done
13775 fi
13776
13777 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13778 set dummy windmc
13779 if test $build = $target ; then
13780 WINDMC_FOR_TARGET="$2"
13781 else
13782 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13783 fi
13784 else
13785 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13786 fi
13787
13788 else
13789 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13790 fi
13791
13792
13793 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13794
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13796 $as_echo_n "checking where to find the target ar... " >&6; }
13797 if test "x${build}" != "x${host}" ; then
13798 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13799 # We already found the complete path
13800 ac_dir=`dirname $AR_FOR_TARGET`
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802 $as_echo "pre-installed in $ac_dir" >&6; }
13803 else
13804 # Canadian cross, just use what we found
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806 $as_echo "pre-installed" >&6; }
13807 fi
13808 else
13809 ok=yes
13810 case " ${configdirs} " in
13811 *" binutils "*) ;;
13812 *) ok=no ;;
13813 esac
13814
13815 if test $ok = yes; then
13816 # An in-tree tool is available and we can use it
13817 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13819 $as_echo "just compiled" >&6; }
13820 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13821 # We already found the complete path
13822 ac_dir=`dirname $AR_FOR_TARGET`
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13824 $as_echo "pre-installed in $ac_dir" >&6; }
13825 elif test "x$target" = "x$host"; then
13826 # We can use an host tool
13827 AR_FOR_TARGET='$(AR)'
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13829 $as_echo "host tool" >&6; }
13830 else
13831 # We need a cross tool
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13833 $as_echo "pre-installed" >&6; }
13834 fi
13835 fi
13836
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13838 $as_echo_n "checking where to find the target as... " >&6; }
13839 if test "x${build}" != "x${host}" ; then
13840 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13841 # We already found the complete path
13842 ac_dir=`dirname $AS_FOR_TARGET`
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844 $as_echo "pre-installed in $ac_dir" >&6; }
13845 else
13846 # Canadian cross, just use what we found
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13848 $as_echo "pre-installed" >&6; }
13849 fi
13850 else
13851 ok=yes
13852 case " ${configdirs} " in
13853 *" gas "*) ;;
13854 *) ok=no ;;
13855 esac
13856
13857 if test $ok = yes; then
13858 # An in-tree tool is available and we can use it
13859 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13861 $as_echo "just compiled" >&6; }
13862 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13863 # We already found the complete path
13864 ac_dir=`dirname $AS_FOR_TARGET`
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13866 $as_echo "pre-installed in $ac_dir" >&6; }
13867 elif test "x$target" = "x$host"; then
13868 # We can use an host tool
13869 AS_FOR_TARGET='$(AS)'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13871 $as_echo "host tool" >&6; }
13872 else
13873 # We need a cross tool
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13875 $as_echo "pre-installed" >&6; }
13876 fi
13877 fi
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13880 $as_echo_n "checking where to find the target cc... " >&6; }
13881 if test "x${build}" != "x${host}" ; then
13882 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13883 # We already found the complete path
13884 ac_dir=`dirname $CC_FOR_TARGET`
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13886 $as_echo "pre-installed in $ac_dir" >&6; }
13887 else
13888 # Canadian cross, just use what we found
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890 $as_echo "pre-installed" >&6; }
13891 fi
13892 else
13893 ok=yes
13894 case " ${configdirs} " in
13895 *" gcc "*) ;;
13896 *) ok=no ;;
13897 esac
13898
13899 if test $ok = yes; then
13900 # An in-tree tool is available and we can use it
13901 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13903 $as_echo "just compiled" >&6; }
13904 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13905 # We already found the complete path
13906 ac_dir=`dirname $CC_FOR_TARGET`
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13908 $as_echo "pre-installed in $ac_dir" >&6; }
13909 elif test "x$target" = "x$host"; then
13910 # We can use an host tool
13911 CC_FOR_TARGET='$(CC)'
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13913 $as_echo "host tool" >&6; }
13914 else
13915 # We need a cross tool
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13917 $as_echo "pre-installed" >&6; }
13918 fi
13919 fi
13920
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13922 $as_echo_n "checking where to find the target c++... " >&6; }
13923 if test "x${build}" != "x${host}" ; then
13924 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13925 # We already found the complete path
13926 ac_dir=`dirname $CXX_FOR_TARGET`
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13928 $as_echo "pre-installed in $ac_dir" >&6; }
13929 else
13930 # Canadian cross, just use what we found
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13932 $as_echo "pre-installed" >&6; }
13933 fi
13934 else
13935 ok=yes
13936 case " ${configdirs} " in
13937 *" gcc "*) ;;
13938 *) ok=no ;;
13939 esac
13940 case ,${enable_languages}, in
13941 *,c++,*) ;;
13942 *) ok=no ;;
13943 esac
13944 if test $ok = yes; then
13945 # An in-tree tool is available and we can use it
13946 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'
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13948 $as_echo "just compiled" >&6; }
13949 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13950 # We already found the complete path
13951 ac_dir=`dirname $CXX_FOR_TARGET`
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13953 $as_echo "pre-installed in $ac_dir" >&6; }
13954 elif test "x$target" = "x$host"; then
13955 # We can use an host tool
13956 CXX_FOR_TARGET='$(CXX)'
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13958 $as_echo "host tool" >&6; }
13959 else
13960 # We need a cross tool
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13962 $as_echo "pre-installed" >&6; }
13963 fi
13964 fi
13965
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13967 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13968 if test "x${build}" != "x${host}" ; then
13969 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13970 # We already found the complete path
13971 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13973 $as_echo "pre-installed in $ac_dir" >&6; }
13974 else
13975 # Canadian cross, just use what we found
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13977 $as_echo "pre-installed" >&6; }
13978 fi
13979 else
13980 ok=yes
13981 case " ${configdirs} " in
13982 *" gcc "*) ;;
13983 *) ok=no ;;
13984 esac
13985 case ,${enable_languages}, in
13986 *,c++,*) ;;
13987 *) ok=no ;;
13988 esac
13989 if test $ok = yes; then
13990 # An in-tree tool is available and we can use it
13991 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'
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13993 $as_echo "just compiled" >&6; }
13994 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13995 # We already found the complete path
13996 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13998 $as_echo "pre-installed in $ac_dir" >&6; }
13999 elif test "x$target" = "x$host"; then
14000 # We can use an host tool
14001 RAW_CXX_FOR_TARGET='$(CXX)'
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14003 $as_echo "host tool" >&6; }
14004 else
14005 # We need a cross tool
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14007 $as_echo "pre-installed" >&6; }
14008 fi
14009 fi
14010
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14012 $as_echo_n "checking where to find the target dlltool... " >&6; }
14013 if test "x${build}" != "x${host}" ; then
14014 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14015 # We already found the complete path
14016 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14018 $as_echo "pre-installed in $ac_dir" >&6; }
14019 else
14020 # Canadian cross, just use what we found
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14022 $as_echo "pre-installed" >&6; }
14023 fi
14024 else
14025 ok=yes
14026 case " ${configdirs} " in
14027 *" binutils "*) ;;
14028 *) ok=no ;;
14029 esac
14030
14031 if test $ok = yes; then
14032 # An in-tree tool is available and we can use it
14033 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14035 $as_echo "just compiled" >&6; }
14036 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14037 # We already found the complete path
14038 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14040 $as_echo "pre-installed in $ac_dir" >&6; }
14041 elif test "x$target" = "x$host"; then
14042 # We can use an host tool
14043 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14045 $as_echo "host tool" >&6; }
14046 else
14047 # We need a cross tool
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14049 $as_echo "pre-installed" >&6; }
14050 fi
14051 fi
14052
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14054 $as_echo_n "checking where to find the target gcc... " >&6; }
14055 if test "x${build}" != "x${host}" ; then
14056 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14057 # We already found the complete path
14058 ac_dir=`dirname $GCC_FOR_TARGET`
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14060 $as_echo "pre-installed in $ac_dir" >&6; }
14061 else
14062 # Canadian cross, just use what we found
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064 $as_echo "pre-installed" >&6; }
14065 fi
14066 else
14067 ok=yes
14068 case " ${configdirs} " in
14069 *" gcc "*) ;;
14070 *) ok=no ;;
14071 esac
14072
14073 if test $ok = yes; then
14074 # An in-tree tool is available and we can use it
14075 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14077 $as_echo "just compiled" >&6; }
14078 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14079 # We already found the complete path
14080 ac_dir=`dirname $GCC_FOR_TARGET`
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14082 $as_echo "pre-installed in $ac_dir" >&6; }
14083 elif test "x$target" = "x$host"; then
14084 # We can use an host tool
14085 GCC_FOR_TARGET='$()'
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14087 $as_echo "host tool" >&6; }
14088 else
14089 # We need a cross tool
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14091 $as_echo "pre-installed" >&6; }
14092 fi
14093 fi
14094
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14096 $as_echo_n "checking where to find the target gfortran... " >&6; }
14097 if test "x${build}" != "x${host}" ; then
14098 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14099 # We already found the complete path
14100 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14102 $as_echo "pre-installed in $ac_dir" >&6; }
14103 else
14104 # Canadian cross, just use what we found
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14106 $as_echo "pre-installed" >&6; }
14107 fi
14108 else
14109 ok=yes
14110 case " ${configdirs} " in
14111 *" gcc "*) ;;
14112 *) ok=no ;;
14113 esac
14114 case ,${enable_languages}, in
14115 *,fortran,*) ;;
14116 *) ok=no ;;
14117 esac
14118 if test $ok = yes; then
14119 # An in-tree tool is available and we can use it
14120 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14122 $as_echo "just compiled" >&6; }
14123 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14124 # We already found the complete path
14125 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127 $as_echo "pre-installed in $ac_dir" >&6; }
14128 elif test "x$target" = "x$host"; then
14129 # We can use an host tool
14130 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14132 $as_echo "host tool" >&6; }
14133 else
14134 # We need a cross tool
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136 $as_echo "pre-installed" >&6; }
14137 fi
14138 fi
14139
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14141 $as_echo_n "checking where to find the target gccgo... " >&6; }
14142 if test "x${build}" != "x${host}" ; then
14143 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14144 # We already found the complete path
14145 ac_dir=`dirname $GOC_FOR_TARGET`
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14147 $as_echo "pre-installed in $ac_dir" >&6; }
14148 else
14149 # Canadian cross, just use what we found
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151 $as_echo "pre-installed" >&6; }
14152 fi
14153 else
14154 ok=yes
14155 case " ${configdirs} " in
14156 *" gcc "*) ;;
14157 *) ok=no ;;
14158 esac
14159 case ,${enable_languages}, in
14160 *,go,*) ;;
14161 *) ok=no ;;
14162 esac
14163 if test $ok = yes; then
14164 # An in-tree tool is available and we can use it
14165 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14167 $as_echo "just compiled" >&6; }
14168 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
14170 ac_dir=`dirname $GOC_FOR_TARGET`
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172 $as_echo "pre-installed in $ac_dir" >&6; }
14173 elif test "x$target" = "x$host"; then
14174 # We can use an host tool
14175 GOC_FOR_TARGET='$(GOC)'
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14177 $as_echo "host tool" >&6; }
14178 else
14179 # We need a cross tool
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181 $as_echo "pre-installed" >&6; }
14182 fi
14183 fi
14184
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14186 $as_echo_n "checking where to find the target ld... " >&6; }
14187 if test "x${build}" != "x${host}" ; then
14188 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $LD_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192 $as_echo "pre-installed in $ac_dir" >&6; }
14193 else
14194 # Canadian cross, just use what we found
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196 $as_echo "pre-installed" >&6; }
14197 fi
14198 else
14199 ok=yes
14200 case " ${configdirs} " in
14201 *" ld "*) ;;
14202 *) ok=no ;;
14203 esac
14204
14205 if test $ok = yes; then
14206 # An in-tree tool is available and we can use it
14207 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14209 $as_echo "just compiled" >&6; }
14210 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $LD_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214 $as_echo "pre-installed in $ac_dir" >&6; }
14215 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
14217 LD_FOR_TARGET='$(LD)'
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219 $as_echo "host tool" >&6; }
14220 else
14221 # We need a cross tool
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223 $as_echo "pre-installed" >&6; }
14224 fi
14225 fi
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14228 $as_echo_n "checking where to find the target lipo... " >&6; }
14229 if test "x${build}" != "x${host}" ; then
14230 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
14232 ac_dir=`dirname $LIPO_FOR_TARGET`
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234 $as_echo "pre-installed in $ac_dir" >&6; }
14235 else
14236 # Canadian cross, just use what we found
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238 $as_echo "pre-installed" >&6; }
14239 fi
14240 else
14241 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14242 # We already found the complete path
14243 ac_dir=`dirname $LIPO_FOR_TARGET`
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245 $as_echo "pre-installed in $ac_dir" >&6; }
14246 elif test "x$target" = "x$host"; then
14247 # We can use an host tool
14248 LIPO_FOR_TARGET='$(LIPO)'
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14250 $as_echo "host tool" >&6; }
14251 else
14252 # We need a cross tool
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254 $as_echo "pre-installed" >&6; }
14255 fi
14256 fi
14257
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14259 $as_echo_n "checking where to find the target nm... " >&6; }
14260 if test "x${build}" != "x${host}" ; then
14261 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
14263 ac_dir=`dirname $NM_FOR_TARGET`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265 $as_echo "pre-installed in $ac_dir" >&6; }
14266 else
14267 # Canadian cross, just use what we found
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14269 $as_echo "pre-installed" >&6; }
14270 fi
14271 else
14272 ok=yes
14273 case " ${configdirs} " in
14274 *" binutils "*) ;;
14275 *) ok=no ;;
14276 esac
14277
14278 if test $ok = yes; then
14279 # An in-tree tool is available and we can use it
14280 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14282 $as_echo "just compiled" >&6; }
14283 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14284 # We already found the complete path
14285 ac_dir=`dirname $NM_FOR_TARGET`
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14287 $as_echo "pre-installed in $ac_dir" >&6; }
14288 elif test "x$target" = "x$host"; then
14289 # We can use an host tool
14290 NM_FOR_TARGET='$(NM)'
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14292 $as_echo "host tool" >&6; }
14293 else
14294 # We need a cross tool
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14296 $as_echo "pre-installed" >&6; }
14297 fi
14298 fi
14299
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14301 $as_echo_n "checking where to find the target objcopy... " >&6; }
14302 if test "x${build}" != "x${host}" ; then
14303 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
14305 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307 $as_echo "pre-installed in $ac_dir" >&6; }
14308 else
14309 # Canadian cross, just use what we found
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14311 $as_echo "pre-installed" >&6; }
14312 fi
14313 else
14314 ok=yes
14315 case " ${configdirs} " in
14316 *" binutils "*) ;;
14317 *) ok=no ;;
14318 esac
14319
14320 if test $ok = yes; then
14321 # An in-tree tool is available and we can use it
14322 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14324 $as_echo "just compiled" >&6; }
14325 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329 $as_echo "pre-installed in $ac_dir" >&6; }
14330 elif test "x$target" = "x$host"; then
14331 # We can use an host tool
14332 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14334 $as_echo "host tool" >&6; }
14335 else
14336 # We need a cross tool
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14338 $as_echo "pre-installed" >&6; }
14339 fi
14340 fi
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14343 $as_echo_n "checking where to find the target objdump... " >&6; }
14344 if test "x${build}" != "x${host}" ; then
14345 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349 $as_echo "pre-installed in $ac_dir" >&6; }
14350 else
14351 # Canadian cross, just use what we found
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14353 $as_echo "pre-installed" >&6; }
14354 fi
14355 else
14356 ok=yes
14357 case " ${configdirs} " in
14358 *" binutils "*) ;;
14359 *) ok=no ;;
14360 esac
14361
14362 if test $ok = yes; then
14363 # An in-tree tool is available and we can use it
14364 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14366 $as_echo "just compiled" >&6; }
14367 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14368 # We already found the complete path
14369 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14371 $as_echo "pre-installed in $ac_dir" >&6; }
14372 elif test "x$target" = "x$host"; then
14373 # We can use an host tool
14374 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14376 $as_echo "host tool" >&6; }
14377 else
14378 # We need a cross tool
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380 $as_echo "pre-installed" >&6; }
14381 fi
14382 fi
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14385 $as_echo_n "checking where to find the target ranlib... " >&6; }
14386 if test "x${build}" != "x${host}" ; then
14387 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14388 # We already found the complete path
14389 ac_dir=`dirname $RANLIB_FOR_TARGET`
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391 $as_echo "pre-installed in $ac_dir" >&6; }
14392 else
14393 # Canadian cross, just use what we found
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14395 $as_echo "pre-installed" >&6; }
14396 fi
14397 else
14398 ok=yes
14399 case " ${configdirs} " in
14400 *" binutils "*) ;;
14401 *) ok=no ;;
14402 esac
14403
14404 if test $ok = yes; then
14405 # An in-tree tool is available and we can use it
14406 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14408 $as_echo "just compiled" >&6; }
14409 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14410 # We already found the complete path
14411 ac_dir=`dirname $RANLIB_FOR_TARGET`
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14413 $as_echo "pre-installed in $ac_dir" >&6; }
14414 elif test "x$target" = "x$host"; then
14415 # We can use an host tool
14416 RANLIB_FOR_TARGET='$(RANLIB)'
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14418 $as_echo "host tool" >&6; }
14419 else
14420 # We need a cross tool
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422 $as_echo "pre-installed" >&6; }
14423 fi
14424 fi
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14427 $as_echo_n "checking where to find the target readelf... " >&6; }
14428 if test "x${build}" != "x${host}" ; then
14429 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14430 # We already found the complete path
14431 ac_dir=`dirname $READELF_FOR_TARGET`
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14433 $as_echo "pre-installed in $ac_dir" >&6; }
14434 else
14435 # Canadian cross, just use what we found
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14437 $as_echo "pre-installed" >&6; }
14438 fi
14439 else
14440 ok=yes
14441 case " ${configdirs} " in
14442 *" binutils "*) ;;
14443 *) ok=no ;;
14444 esac
14445
14446 if test $ok = yes; then
14447 # An in-tree tool is available and we can use it
14448 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14450 $as_echo "just compiled" >&6; }
14451 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14452 # We already found the complete path
14453 ac_dir=`dirname $READELF_FOR_TARGET`
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14455 $as_echo "pre-installed in $ac_dir" >&6; }
14456 elif test "x$target" = "x$host"; then
14457 # We can use an host tool
14458 READELF_FOR_TARGET='$(READELF)'
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14460 $as_echo "host tool" >&6; }
14461 else
14462 # We need a cross tool
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14464 $as_echo "pre-installed" >&6; }
14465 fi
14466 fi
14467
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14469 $as_echo_n "checking where to find the target strip... " >&6; }
14470 if test "x${build}" != "x${host}" ; then
14471 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14472 # We already found the complete path
14473 ac_dir=`dirname $STRIP_FOR_TARGET`
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14475 $as_echo "pre-installed in $ac_dir" >&6; }
14476 else
14477 # Canadian cross, just use what we found
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14479 $as_echo "pre-installed" >&6; }
14480 fi
14481 else
14482 ok=yes
14483 case " ${configdirs} " in
14484 *" binutils "*) ;;
14485 *) ok=no ;;
14486 esac
14487
14488 if test $ok = yes; then
14489 # An in-tree tool is available and we can use it
14490 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14492 $as_echo "just compiled" >&6; }
14493 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14494 # We already found the complete path
14495 ac_dir=`dirname $STRIP_FOR_TARGET`
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14497 $as_echo "pre-installed in $ac_dir" >&6; }
14498 elif test "x$target" = "x$host"; then
14499 # We can use an host tool
14500 STRIP_FOR_TARGET='$(STRIP)'
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14502 $as_echo "host tool" >&6; }
14503 else
14504 # We need a cross tool
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14506 $as_echo "pre-installed" >&6; }
14507 fi
14508 fi
14509
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14511 $as_echo_n "checking where to find the target windres... " >&6; }
14512 if test "x${build}" != "x${host}" ; then
14513 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14514 # We already found the complete path
14515 ac_dir=`dirname $WINDRES_FOR_TARGET`
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14517 $as_echo "pre-installed in $ac_dir" >&6; }
14518 else
14519 # Canadian cross, just use what we found
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14521 $as_echo "pre-installed" >&6; }
14522 fi
14523 else
14524 ok=yes
14525 case " ${configdirs} " in
14526 *" binutils "*) ;;
14527 *) ok=no ;;
14528 esac
14529
14530 if test $ok = yes; then
14531 # An in-tree tool is available and we can use it
14532 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14534 $as_echo "just compiled" >&6; }
14535 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14536 # We already found the complete path
14537 ac_dir=`dirname $WINDRES_FOR_TARGET`
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14539 $as_echo "pre-installed in $ac_dir" >&6; }
14540 elif test "x$target" = "x$host"; then
14541 # We can use an host tool
14542 WINDRES_FOR_TARGET='$(WINDRES)'
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14544 $as_echo "host tool" >&6; }
14545 else
14546 # We need a cross tool
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14548 $as_echo "pre-installed" >&6; }
14549 fi
14550 fi
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14553 $as_echo_n "checking where to find the target windmc... " >&6; }
14554 if test "x${build}" != "x${host}" ; then
14555 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14556 # We already found the complete path
14557 ac_dir=`dirname $WINDMC_FOR_TARGET`
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14559 $as_echo "pre-installed in $ac_dir" >&6; }
14560 else
14561 # Canadian cross, just use what we found
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14563 $as_echo "pre-installed" >&6; }
14564 fi
14565 else
14566 ok=yes
14567 case " ${configdirs} " in
14568 *" binutils "*) ;;
14569 *) ok=no ;;
14570 esac
14571
14572 if test $ok = yes; then
14573 # An in-tree tool is available and we can use it
14574 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14576 $as_echo "just compiled" >&6; }
14577 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14578 # We already found the complete path
14579 ac_dir=`dirname $WINDMC_FOR_TARGET`
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14581 $as_echo "pre-installed in $ac_dir" >&6; }
14582 elif test "x$target" = "x$host"; then
14583 # We can use an host tool
14584 WINDMC_FOR_TARGET='$(WINDMC)'
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14586 $as_echo "host tool" >&6; }
14587 else
14588 # We need a cross tool
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14590 $as_echo "pre-installed" >&6; }
14591 fi
14592 fi
14593
14594
14595
14596
14597
14598 # Certain tools may need extra flags.
14599 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14600 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14601 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14602
14603 # When building target libraries, except in a Canadian cross, we use
14604 # the same toolchain as the compiler we just built.
14605 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14606 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14607 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14608 if test $host = $build; then
14609 case " $configdirs " in
14610 *" gcc "*)
14611 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14612 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14613 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14614 ;;
14615 esac
14616 fi
14617
14618
14619
14620
14621
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14623 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14624 # Check whether --enable-maintainer-mode was given.
14625 if test "${enable_maintainer_mode+set}" = set; then :
14626 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14627 else
14628 USE_MAINTAINER_MODE=no
14629 fi
14630
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14632 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14633
14634
14635 if test "$USE_MAINTAINER_MODE" = yes; then
14636 MAINTAINER_MODE_TRUE=
14637 MAINTAINER_MODE_FALSE='#'
14638 else
14639 MAINTAINER_MODE_TRUE='#'
14640 MAINTAINER_MODE_FALSE=
14641 fi
14642 MAINT=$MAINTAINER_MODE_TRUE
14643
14644 # ---------------------
14645 # GCC bootstrap support
14646 # ---------------------
14647
14648 # Stage specific cflags for build.
14649 stage1_cflags="-g"
14650 case $build in
14651 vax-*-*)
14652 case ${GCC} in
14653 yes) stage1_cflags="-g -Wa,-J" ;;
14654 *) stage1_cflags="-g -J" ;;
14655 esac ;;
14656 esac
14657
14658
14659
14660 # Enable --enable-checking in stage1 of the compiler.
14661 # Check whether --enable-stage1-checking was given.
14662 if test "${enable_stage1_checking+set}" = set; then :
14663 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14664 else
14665 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14666 # For --disable-checking or implicit --enable-checking=release, avoid
14667 # setting --enable-checking=gc in the default stage1 checking for LTO
14668 # bootstraps. See PR62077.
14669 case $BUILD_CONFIG in
14670 *lto*)
14671 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14672 *)
14673 stage1_checking=--enable-checking=yes,types;;
14674 esac
14675 if test "x$enable_checking" = x && \
14676 test -d ${srcdir}/gcc && \
14677 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14678 stage1_checking=--enable-checking=yes,types,extra
14679 fi
14680 else
14681 stage1_checking=--enable-checking=$enable_checking,types
14682 fi
14683 fi
14684
14685
14686
14687 # Enable -Werror in bootstrap stage2 and later.
14688 # Check whether --enable-werror was given.
14689 if test "${enable_werror+set}" = set; then :
14690 enableval=$enable_werror;
14691 case ${enable_werror} in
14692 yes) stage2_werror_flag="--enable-werror-always" ;;
14693 *) stage2_werror_flag="" ;;
14694 esac
14695
14696 else
14697
14698 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14699 case $BUILD_CONFIG in
14700 bootstrap-debug)
14701 stage2_werror_flag="--enable-werror-always" ;;
14702 "")
14703 stage2_werror_flag="--enable-werror-always" ;;
14704 esac
14705 fi
14706
14707 fi
14708
14709
14710
14711
14712 # Specify what files to not compare during bootstrap.
14713
14714 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14715 case "$target" in
14716 hppa*64*-*-hpux*) ;;
14717 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14718 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14719 esac
14720
14721
14722 ac_config_files="$ac_config_files Makefile"
14723
14724 cat >confcache <<\_ACEOF
14725 # This file is a shell script that caches the results of configure
14726 # tests run on this system so they can be shared between configure
14727 # scripts and configure runs, see configure's option --config-cache.
14728 # It is not useful on other systems. If it contains results you don't
14729 # want to keep, you may remove or edit it.
14730 #
14731 # config.status only pays attention to the cache file if you give it
14732 # the --recheck option to rerun configure.
14733 #
14734 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14735 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14736 # following values.
14737
14738 _ACEOF
14739
14740 # The following way of writing the cache mishandles newlines in values,
14741 # but we know of no workaround that is simple, portable, and efficient.
14742 # So, we kill variables containing newlines.
14743 # Ultrix sh set writes to stderr and can't be redirected directly,
14744 # and sets the high bit in the cache file unless we assign to the vars.
14745 (
14746 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14747 eval ac_val=\$$ac_var
14748 case $ac_val in #(
14749 *${as_nl}*)
14750 case $ac_var in #(
14751 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14752 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14753 esac
14754 case $ac_var in #(
14755 _ | IFS | as_nl) ;; #(
14756 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14757 *) { eval $ac_var=; unset $ac_var;} ;;
14758 esac ;;
14759 esac
14760 done
14761
14762 (set) 2>&1 |
14763 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14764 *${as_nl}ac_space=\ *)
14765 # `set' does not quote correctly, so add quotes: double-quote
14766 # substitution turns \\\\ into \\, and sed turns \\ into \.
14767 sed -n \
14768 "s/'/'\\\\''/g;
14769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14770 ;; #(
14771 *)
14772 # `set' quotes correctly as required by POSIX, so do not add quotes.
14773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14774 ;;
14775 esac |
14776 sort
14777 ) |
14778 sed '
14779 /^ac_cv_env_/b end
14780 t clear
14781 :clear
14782 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14783 t end
14784 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14785 :end' >>confcache
14786 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14787 if test -w "$cache_file"; then
14788 if test "x$cache_file" != "x/dev/null"; then
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14790 $as_echo "$as_me: updating cache $cache_file" >&6;}
14791 if test ! -f "$cache_file" || test -h "$cache_file"; then
14792 cat confcache >"$cache_file"
14793 else
14794 case $cache_file in #(
14795 */* | ?:*)
14796 mv -f confcache "$cache_file"$$ &&
14797 mv -f "$cache_file"$$ "$cache_file" ;; #(
14798 *)
14799 mv -f confcache "$cache_file" ;;
14800 esac
14801 fi
14802 fi
14803 else
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14805 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14806 fi
14807 fi
14808 rm -f confcache
14809
14810 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14811 # Let make expand exec_prefix.
14812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14813
14814 # Transform confdefs.h into DEFS.
14815 # Protect against shell expansion while executing Makefile rules.
14816 # Protect against Makefile macro expansion.
14817 #
14818 # If the first sed substitution is executed (which looks for macros that
14819 # take arguments), then branch to the quote section. Otherwise,
14820 # look for a macro that doesn't take arguments.
14821 ac_script='
14822 :mline
14823 /\\$/{
14824 N
14825 s,\\\n,,
14826 b mline
14827 }
14828 t clear
14829 :clear
14830 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14831 t quote
14832 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14833 t quote
14834 b any
14835 :quote
14836 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14837 s/\[/\\&/g
14838 s/\]/\\&/g
14839 s/\$/$$/g
14840 H
14841 :any
14842 ${
14843 g
14844 s/^\n//
14845 s/\n/ /g
14846 p
14847 }
14848 '
14849 DEFS=`sed -n "$ac_script" confdefs.h`
14850
14851
14852 ac_libobjs=
14853 ac_ltlibobjs=
14854 U=
14855 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14856 # 1. Remove the extension, and $U if already installed.
14857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14858 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14860 # will be set to the directory where LIBOBJS objects are built.
14861 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14862 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14863 done
14864 LIBOBJS=$ac_libobjs
14865
14866 LTLIBOBJS=$ac_ltlibobjs
14867
14868
14869
14870 : "${CONFIG_STATUS=./config.status}"
14871 ac_write_fail=0
14872 ac_clean_files_save=$ac_clean_files
14873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14876 as_write_fail=0
14877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14878 #! $SHELL
14879 # Generated by $as_me.
14880 # Run this file to recreate the current configuration.
14881 # Compiler output produced by configure, useful for debugging
14882 # configure, is in config.log if it exists.
14883
14884 debug=false
14885 ac_cs_recheck=false
14886 ac_cs_silent=false
14887
14888 SHELL=\${CONFIG_SHELL-$SHELL}
14889 export SHELL
14890 _ASEOF
14891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14892 ## -------------------- ##
14893 ## M4sh Initialization. ##
14894 ## -------------------- ##
14895
14896 # Be more Bourne compatible
14897 DUALCASE=1; export DUALCASE # for MKS sh
14898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14899 emulate sh
14900 NULLCMD=:
14901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14902 # is contrary to our usage. Disable this feature.
14903 alias -g '${1+"$@"}'='"$@"'
14904 setopt NO_GLOB_SUBST
14905 else
14906 case `(set -o) 2>/dev/null` in #(
14907 *posix*) :
14908 set -o posix ;; #(
14909 *) :
14910 ;;
14911 esac
14912 fi
14913
14914
14915 as_nl='
14916 '
14917 export as_nl
14918 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14919 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14922 # Prefer a ksh shell builtin over an external printf program on Solaris,
14923 # but without wasting forks for bash or zsh.
14924 if test -z "$BASH_VERSION$ZSH_VERSION" \
14925 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14926 as_echo='print -r --'
14927 as_echo_n='print -rn --'
14928 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14929 as_echo='printf %s\n'
14930 as_echo_n='printf %s'
14931 else
14932 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14933 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14934 as_echo_n='/usr/ucb/echo -n'
14935 else
14936 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14937 as_echo_n_body='eval
14938 arg=$1;
14939 case $arg in #(
14940 *"$as_nl"*)
14941 expr "X$arg" : "X\\(.*\\)$as_nl";
14942 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14943 esac;
14944 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14945 '
14946 export as_echo_n_body
14947 as_echo_n='sh -c $as_echo_n_body as_echo'
14948 fi
14949 export as_echo_body
14950 as_echo='sh -c $as_echo_body as_echo'
14951 fi
14952
14953 # The user is always right.
14954 if test "${PATH_SEPARATOR+set}" != set; then
14955 PATH_SEPARATOR=:
14956 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14957 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14958 PATH_SEPARATOR=';'
14959 }
14960 fi
14961
14962
14963 # IFS
14964 # We need space, tab and new line, in precisely that order. Quoting is
14965 # there to prevent editors from complaining about space-tab.
14966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14967 # splitting by setting IFS to empty value.)
14968 IFS=" "" $as_nl"
14969
14970 # Find who we are. Look in the path if we contain no directory separator.
14971 as_myself=
14972 case $0 in #((
14973 *[\\/]* ) as_myself=$0 ;;
14974 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14975 for as_dir in $PATH
14976 do
14977 IFS=$as_save_IFS
14978 test -z "$as_dir" && as_dir=.
14979 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14980 done
14981 IFS=$as_save_IFS
14982
14983 ;;
14984 esac
14985 # We did not find ourselves, most probably we were run as `sh COMMAND'
14986 # in which case we are not to be found in the path.
14987 if test "x$as_myself" = x; then
14988 as_myself=$0
14989 fi
14990 if test ! -f "$as_myself"; then
14991 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14992 exit 1
14993 fi
14994
14995 # Unset variables that we do not need and which cause bugs (e.g. in
14996 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14997 # suppresses any "Segmentation fault" message there. '((' could
14998 # trigger a bug in pdksh 5.2.14.
14999 for as_var in BASH_ENV ENV MAIL MAILPATH
15000 do eval test x\${$as_var+set} = xset \
15001 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15002 done
15003 PS1='$ '
15004 PS2='> '
15005 PS4='+ '
15006
15007 # NLS nuisances.
15008 LC_ALL=C
15009 export LC_ALL
15010 LANGUAGE=C
15011 export LANGUAGE
15012
15013 # CDPATH.
15014 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15015
15016
15017 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15018 # ----------------------------------------
15019 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15020 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15021 # script with STATUS, using 1 if that was 0.
15022 as_fn_error ()
15023 {
15024 as_status=$1; test $as_status -eq 0 && as_status=1
15025 if test "$4"; then
15026 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15027 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15028 fi
15029 $as_echo "$as_me: error: $2" >&2
15030 as_fn_exit $as_status
15031 } # as_fn_error
15032
15033
15034 # as_fn_set_status STATUS
15035 # -----------------------
15036 # Set $? to STATUS, without forking.
15037 as_fn_set_status ()
15038 {
15039 return $1
15040 } # as_fn_set_status
15041
15042 # as_fn_exit STATUS
15043 # -----------------
15044 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15045 as_fn_exit ()
15046 {
15047 set +e
15048 as_fn_set_status $1
15049 exit $1
15050 } # as_fn_exit
15051
15052 # as_fn_unset VAR
15053 # ---------------
15054 # Portably unset VAR.
15055 as_fn_unset ()
15056 {
15057 { eval $1=; unset $1;}
15058 }
15059 as_unset=as_fn_unset
15060 # as_fn_append VAR VALUE
15061 # ----------------------
15062 # Append the text in VALUE to the end of the definition contained in VAR. Take
15063 # advantage of any shell optimizations that allow amortized linear growth over
15064 # repeated appends, instead of the typical quadratic growth present in naive
15065 # implementations.
15066 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15067 eval 'as_fn_append ()
15068 {
15069 eval $1+=\$2
15070 }'
15071 else
15072 as_fn_append ()
15073 {
15074 eval $1=\$$1\$2
15075 }
15076 fi # as_fn_append
15077
15078 # as_fn_arith ARG...
15079 # ------------------
15080 # Perform arithmetic evaluation on the ARGs, and store the result in the
15081 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15082 # must be portable across $(()) and expr.
15083 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15084 eval 'as_fn_arith ()
15085 {
15086 as_val=$(( $* ))
15087 }'
15088 else
15089 as_fn_arith ()
15090 {
15091 as_val=`expr "$@" || test $? -eq 1`
15092 }
15093 fi # as_fn_arith
15094
15095
15096 if expr a : '\(a\)' >/dev/null 2>&1 &&
15097 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15098 as_expr=expr
15099 else
15100 as_expr=false
15101 fi
15102
15103 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15104 as_basename=basename
15105 else
15106 as_basename=false
15107 fi
15108
15109 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15110 as_dirname=dirname
15111 else
15112 as_dirname=false
15113 fi
15114
15115 as_me=`$as_basename -- "$0" ||
15116 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15117 X"$0" : 'X\(//\)$' \| \
15118 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15119 $as_echo X/"$0" |
15120 sed '/^.*\/\([^/][^/]*\)\/*$/{
15121 s//\1/
15122 q
15123 }
15124 /^X\/\(\/\/\)$/{
15125 s//\1/
15126 q
15127 }
15128 /^X\/\(\/\).*/{
15129 s//\1/
15130 q
15131 }
15132 s/.*/./; q'`
15133
15134 # Avoid depending upon Character Ranges.
15135 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15136 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15137 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15138 as_cr_digits='0123456789'
15139 as_cr_alnum=$as_cr_Letters$as_cr_digits
15140
15141 ECHO_C= ECHO_N= ECHO_T=
15142 case `echo -n x` in #(((((
15143 -n*)
15144 case `echo 'xy\c'` in
15145 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15146 xy) ECHO_C='\c';;
15147 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15148 ECHO_T=' ';;
15149 esac;;
15150 *)
15151 ECHO_N='-n';;
15152 esac
15153
15154 rm -f conf$$ conf$$.exe conf$$.file
15155 if test -d conf$$.dir; then
15156 rm -f conf$$.dir/conf$$.file
15157 else
15158 rm -f conf$$.dir
15159 mkdir conf$$.dir 2>/dev/null
15160 fi
15161 if (echo >conf$$.file) 2>/dev/null; then
15162 if ln -s conf$$.file conf$$ 2>/dev/null; then
15163 as_ln_s='ln -s'
15164 # ... but there are two gotchas:
15165 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15166 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15167 # In both cases, we have to default to `cp -pR'.
15168 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15169 as_ln_s='cp -pR'
15170 elif ln conf$$.file conf$$ 2>/dev/null; then
15171 as_ln_s=ln
15172 else
15173 as_ln_s='cp -pR'
15174 fi
15175 else
15176 as_ln_s='cp -pR'
15177 fi
15178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15179 rmdir conf$$.dir 2>/dev/null
15180
15181
15182 # as_fn_mkdir_p
15183 # -------------
15184 # Create "$as_dir" as a directory, including parents if necessary.
15185 as_fn_mkdir_p ()
15186 {
15187
15188 case $as_dir in #(
15189 -*) as_dir=./$as_dir;;
15190 esac
15191 test -d "$as_dir" || eval $as_mkdir_p || {
15192 as_dirs=
15193 while :; do
15194 case $as_dir in #(
15195 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15196 *) as_qdir=$as_dir;;
15197 esac
15198 as_dirs="'$as_qdir' $as_dirs"
15199 as_dir=`$as_dirname -- "$as_dir" ||
15200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15201 X"$as_dir" : 'X\(//\)[^/]' \| \
15202 X"$as_dir" : 'X\(//\)$' \| \
15203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15204 $as_echo X"$as_dir" |
15205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15206 s//\1/
15207 q
15208 }
15209 /^X\(\/\/\)[^/].*/{
15210 s//\1/
15211 q
15212 }
15213 /^X\(\/\/\)$/{
15214 s//\1/
15215 q
15216 }
15217 /^X\(\/\).*/{
15218 s//\1/
15219 q
15220 }
15221 s/.*/./; q'`
15222 test -d "$as_dir" && break
15223 done
15224 test -z "$as_dirs" || eval "mkdir $as_dirs"
15225 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15226
15227
15228 } # as_fn_mkdir_p
15229 if mkdir -p . 2>/dev/null; then
15230 as_mkdir_p='mkdir -p "$as_dir"'
15231 else
15232 test -d ./-p && rmdir ./-p
15233 as_mkdir_p=false
15234 fi
15235
15236
15237 # as_fn_executable_p FILE
15238 # -----------------------
15239 # Test if FILE is an executable regular file.
15240 as_fn_executable_p ()
15241 {
15242 test -f "$1" && test -x "$1"
15243 } # as_fn_executable_p
15244 as_test_x='test -x'
15245 as_executable_p=as_fn_executable_p
15246
15247 # Sed expression to map a string onto a valid CPP name.
15248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15249
15250 # Sed expression to map a string onto a valid variable name.
15251 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15252
15253
15254 exec 6>&1
15255 ## ----------------------------------- ##
15256 ## Main body of $CONFIG_STATUS script. ##
15257 ## ----------------------------------- ##
15258 _ASEOF
15259 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15260
15261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 # Save the log message, to keep $0 and so on meaningful, and to
15263 # report actual input values of CONFIG_FILES etc. instead of their
15264 # values after options handling.
15265 ac_log="
15266 This file was extended by $as_me, which was
15267 generated by GNU Autoconf 2.69. Invocation command line was
15268
15269 CONFIG_FILES = $CONFIG_FILES
15270 CONFIG_HEADERS = $CONFIG_HEADERS
15271 CONFIG_LINKS = $CONFIG_LINKS
15272 CONFIG_COMMANDS = $CONFIG_COMMANDS
15273 $ $0 $@
15274
15275 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15276 "
15277
15278 _ACEOF
15279
15280 case $ac_config_files in *"
15281 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15282 esac
15283
15284
15285
15286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15287 # Files that config.status was made for.
15288 config_files="$ac_config_files"
15289
15290 _ACEOF
15291
15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293 ac_cs_usage="\
15294 \`$as_me' instantiates files and other configuration actions
15295 from templates according to the current configuration. Unless the files
15296 and actions are specified as TAGs, all are instantiated by default.
15297
15298 Usage: $0 [OPTION]... [TAG]...
15299
15300 -h, --help print this help, then exit
15301 -V, --version print version number and configuration settings, then exit
15302 --config print configuration, then exit
15303 -q, --quiet, --silent
15304 do not print progress messages
15305 -d, --debug don't remove temporary files
15306 --recheck update $as_me by reconfiguring in the same conditions
15307 --file=FILE[:TEMPLATE]
15308 instantiate the configuration file FILE
15309
15310 Configuration files:
15311 $config_files
15312
15313 Report bugs to the package provider."
15314
15315 _ACEOF
15316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15317 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15318 ac_cs_version="\\
15319 config.status
15320 configured by $0, generated by GNU Autoconf 2.69,
15321 with options \\"\$ac_cs_config\\"
15322
15323 Copyright (C) 2012 Free Software Foundation, Inc.
15324 This config.status script is free software; the Free Software Foundation
15325 gives unlimited permission to copy, distribute and modify it."
15326
15327 ac_pwd='$ac_pwd'
15328 srcdir='$srcdir'
15329 INSTALL='$INSTALL'
15330 AWK='$AWK'
15331 test -n "\$AWK" || AWK=awk
15332 _ACEOF
15333
15334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335 # The default lists apply if the user does not specify any file.
15336 ac_need_defaults=:
15337 while test $# != 0
15338 do
15339 case $1 in
15340 --*=?*)
15341 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15342 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15343 ac_shift=:
15344 ;;
15345 --*=)
15346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15347 ac_optarg=
15348 ac_shift=:
15349 ;;
15350 *)
15351 ac_option=$1
15352 ac_optarg=$2
15353 ac_shift=shift
15354 ;;
15355 esac
15356
15357 case $ac_option in
15358 # Handling of the options.
15359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15360 ac_cs_recheck=: ;;
15361 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15362 $as_echo "$ac_cs_version"; exit ;;
15363 --config | --confi | --conf | --con | --co | --c )
15364 $as_echo "$ac_cs_config"; exit ;;
15365 --debug | --debu | --deb | --de | --d | -d )
15366 debug=: ;;
15367 --file | --fil | --fi | --f )
15368 $ac_shift
15369 case $ac_optarg in
15370 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15371 '') as_fn_error $? "missing file argument" ;;
15372 esac
15373 as_fn_append CONFIG_FILES " '$ac_optarg'"
15374 ac_need_defaults=false;;
15375 --he | --h | --help | --hel | -h )
15376 $as_echo "$ac_cs_usage"; exit ;;
15377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15378 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15379 ac_cs_silent=: ;;
15380
15381 # This is an error.
15382 -*) as_fn_error $? "unrecognized option: \`$1'
15383 Try \`$0 --help' for more information." ;;
15384
15385 *) as_fn_append ac_config_targets " $1"
15386 ac_need_defaults=false ;;
15387
15388 esac
15389 shift
15390 done
15391
15392 ac_configure_extra_args=
15393
15394 if $ac_cs_silent; then
15395 exec 6>/dev/null
15396 ac_configure_extra_args="$ac_configure_extra_args --silent"
15397 fi
15398
15399 _ACEOF
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 if \$ac_cs_recheck; then
15402 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15403 shift
15404 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15405 CONFIG_SHELL='$SHELL'
15406 export CONFIG_SHELL
15407 exec "\$@"
15408 fi
15409
15410 _ACEOF
15411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15412 exec 5>>config.log
15413 {
15414 echo
15415 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15416 ## Running $as_me. ##
15417 _ASBOX
15418 $as_echo "$ac_log"
15419 } >&5
15420
15421 _ACEOF
15422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15423 #
15424 # INIT-COMMANDS
15425 #
15426 extrasub_build="$extrasub_build"
15427 extrasub_host="$extrasub_host"
15428 extrasub_target="$extrasub_target"
15429
15430 _ACEOF
15431
15432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15433
15434 # Handling of arguments.
15435 for ac_config_target in $ac_config_targets
15436 do
15437 case $ac_config_target in
15438 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15439
15440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15441 esac
15442 done
15443
15444
15445 # If the user did not use the arguments to specify the items to instantiate,
15446 # then the envvar interface is used. Set only those that are not.
15447 # We use the long form for the default assignment because of an extremely
15448 # bizarre bug on SunOS 4.1.3.
15449 if $ac_need_defaults; then
15450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15451 fi
15452
15453 # Have a temporary directory for convenience. Make it in the build tree
15454 # simply because there is no reason against having it here, and in addition,
15455 # creating and moving files from /tmp can sometimes cause problems.
15456 # Hook for its removal unless debugging.
15457 # Note that there is a small window in which the directory will not be cleaned:
15458 # after its creation but before its name has been assigned to `$tmp'.
15459 $debug ||
15460 {
15461 tmp= ac_tmp=
15462 trap 'exit_status=$?
15463 : "${ac_tmp:=$tmp}"
15464 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15465 ' 0
15466 trap 'as_fn_exit 1' 1 2 13 15
15467 }
15468 # Create a (secure) tmp directory for tmp files.
15469
15470 {
15471 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15472 test -d "$tmp"
15473 } ||
15474 {
15475 tmp=./conf$$-$RANDOM
15476 (umask 077 && mkdir "$tmp")
15477 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15478 ac_tmp=$tmp
15479
15480 # Set up the scripts for CONFIG_FILES section.
15481 # No need to generate them if there are no CONFIG_FILES.
15482 # This happens for instance with `./config.status config.h'.
15483 if test -n "$CONFIG_FILES"; then
15484
15485 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15486 ac_cs_awk_getline=:
15487 ac_cs_awk_pipe_init=
15488 ac_cs_awk_read_file='
15489 while ((getline aline < (F[key])) > 0)
15490 print(aline)
15491 close(F[key])'
15492 ac_cs_awk_pipe_fini=
15493 else
15494 ac_cs_awk_getline=false
15495 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15496 ac_cs_awk_read_file='
15497 print "|#_!!_#|"
15498 print "cat " F[key] " &&"
15499 '$ac_cs_awk_pipe_init
15500 # The final `:' finishes the AND list.
15501 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15502 fi
15503 ac_cr=`echo X | tr X '\015'`
15504 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15505 # But we know of no other shell where ac_cr would be empty at this
15506 # point, so we can use a bashism as a fallback.
15507 if test "x$ac_cr" = x; then
15508 eval ac_cr=\$\'\\r\'
15509 fi
15510 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15511 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15512 ac_cs_awk_cr='\\r'
15513 else
15514 ac_cs_awk_cr=$ac_cr
15515 fi
15516
15517 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15518 _ACEOF
15519
15520 # Create commands to substitute file output variables.
15521 {
15522 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15523 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15524 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15525 echo "_ACAWK" &&
15526 echo "_ACEOF"
15527 } >conf$$files.sh &&
15528 . ./conf$$files.sh ||
15529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15530 rm -f conf$$files.sh
15531
15532 {
15533 echo "cat >conf$$subs.awk <<_ACEOF" &&
15534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15535 echo "_ACEOF"
15536 } >conf$$subs.sh ||
15537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15539 ac_delim='%!_!# '
15540 for ac_last_try in false false false false false :; do
15541 . ./conf$$subs.sh ||
15542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15543
15544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15545 if test $ac_delim_n = $ac_delim_num; then
15546 break
15547 elif $ac_last_try; then
15548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15549 else
15550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15551 fi
15552 done
15553 rm -f conf$$subs.sh
15554
15555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15556 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15557 _ACEOF
15558 sed -n '
15559 h
15560 s/^/S["/; s/!.*/"]=/
15561 p
15562 g
15563 s/^[^!]*!//
15564 :repl
15565 t repl
15566 s/'"$ac_delim"'$//
15567 t delim
15568 :nl
15569 h
15570 s/\(.\{148\}\)..*/\1/
15571 t more1
15572 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15573 p
15574 n
15575 b repl
15576 :more1
15577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15578 p
15579 g
15580 s/.\{148\}//
15581 t nl
15582 :delim
15583 h
15584 s/\(.\{148\}\)..*/\1/
15585 t more2
15586 s/["\\]/\\&/g; s/^/"/; s/$/"/
15587 p
15588 b
15589 :more2
15590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15591 p
15592 g
15593 s/.\{148\}//
15594 t delim
15595 ' <conf$$subs.awk | sed '
15596 /^[^""]/{
15597 N
15598 s/\n//
15599 }
15600 ' >>$CONFIG_STATUS || ac_write_fail=1
15601 rm -f conf$$subs.awk
15602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15603 _ACAWK
15604 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15605 for (key in S) S_is_set[key] = 1
15606 FS = "\a"
15607 \$ac_cs_awk_pipe_init
15608 }
15609 {
15610 line = $ 0
15611 nfields = split(line, field, "@")
15612 substed = 0
15613 len = length(field[1])
15614 for (i = 2; i < nfields; i++) {
15615 key = field[i]
15616 keylen = length(key)
15617 if (S_is_set[key]) {
15618 value = S[key]
15619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15620 len += length(value) + length(field[++i])
15621 substed = 1
15622 } else
15623 len += 1 + keylen
15624 }
15625 if (nfields == 3 && !substed) {
15626 key = field[2]
15627 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15628 \$ac_cs_awk_read_file
15629 next
15630 }
15631 }
15632 print line
15633 }
15634 \$ac_cs_awk_pipe_fini
15635 _ACAWK
15636 _ACEOF
15637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15638 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15639 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15640 else
15641 cat
15642 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15643 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15644 _ACEOF
15645
15646 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15647 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15648 # trailing colons and then remove the whole line if VPATH becomes empty
15649 # (actually we leave an empty line to preserve line numbers).
15650 if test "x$srcdir" = x.; then
15651 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15652 h
15653 s///
15654 s/^/:/
15655 s/[ ]*$/:/
15656 s/:\$(srcdir):/:/g
15657 s/:\${srcdir}:/:/g
15658 s/:@srcdir@:/:/g
15659 s/^:*//
15660 s/:*$//
15661 x
15662 s/\(=[ ]*\).*/\1/
15663 G
15664 s/\n//
15665 s/^[^=]*=[ ]*$//
15666 }'
15667 fi
15668
15669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15670 fi # test -n "$CONFIG_FILES"
15671
15672
15673 eval set X " :F $CONFIG_FILES "
15674 shift
15675 for ac_tag
15676 do
15677 case $ac_tag in
15678 :[FHLC]) ac_mode=$ac_tag; continue;;
15679 esac
15680 case $ac_mode$ac_tag in
15681 :[FHL]*:*);;
15682 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15683 :[FH]-) ac_tag=-:-;;
15684 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15685 esac
15686 ac_save_IFS=$IFS
15687 IFS=:
15688 set x $ac_tag
15689 IFS=$ac_save_IFS
15690 shift
15691 ac_file=$1
15692 shift
15693
15694 case $ac_mode in
15695 :L) ac_source=$1;;
15696 :[FH])
15697 ac_file_inputs=
15698 for ac_f
15699 do
15700 case $ac_f in
15701 -) ac_f="$ac_tmp/stdin";;
15702 *) # Look for the file first in the build tree, then in the source tree
15703 # (if the path is not absolute). The absolute path cannot be DOS-style,
15704 # because $ac_f cannot contain `:'.
15705 test -f "$ac_f" ||
15706 case $ac_f in
15707 [\\/$]*) false;;
15708 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15709 esac ||
15710 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15711 esac
15712 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15713 as_fn_append ac_file_inputs " '$ac_f'"
15714 done
15715
15716 # Let's still pretend it is `configure' which instantiates (i.e., don't
15717 # use $as_me), people would be surprised to read:
15718 # /* config.h. Generated by config.status. */
15719 configure_input='Generated from '`
15720 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15721 `' by configure.'
15722 if test x"$ac_file" != x-; then
15723 configure_input="$ac_file. $configure_input"
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15725 $as_echo "$as_me: creating $ac_file" >&6;}
15726 fi
15727 # Neutralize special characters interpreted by sed in replacement strings.
15728 case $configure_input in #(
15729 *\&* | *\|* | *\\* )
15730 ac_sed_conf_input=`$as_echo "$configure_input" |
15731 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15732 *) ac_sed_conf_input=$configure_input;;
15733 esac
15734
15735 case $ac_tag in
15736 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15738 esac
15739 ;;
15740 esac
15741
15742 ac_dir=`$as_dirname -- "$ac_file" ||
15743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15744 X"$ac_file" : 'X\(//\)[^/]' \| \
15745 X"$ac_file" : 'X\(//\)$' \| \
15746 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15747 $as_echo X"$ac_file" |
15748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15749 s//\1/
15750 q
15751 }
15752 /^X\(\/\/\)[^/].*/{
15753 s//\1/
15754 q
15755 }
15756 /^X\(\/\/\)$/{
15757 s//\1/
15758 q
15759 }
15760 /^X\(\/\).*/{
15761 s//\1/
15762 q
15763 }
15764 s/.*/./; q'`
15765 as_dir="$ac_dir"; as_fn_mkdir_p
15766 ac_builddir=.
15767
15768 case "$ac_dir" in
15769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15770 *)
15771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15772 # A ".." for each directory in $ac_dir_suffix.
15773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15774 case $ac_top_builddir_sub in
15775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15777 esac ;;
15778 esac
15779 ac_abs_top_builddir=$ac_pwd
15780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15781 # for backward compatibility:
15782 ac_top_builddir=$ac_top_build_prefix
15783
15784 case $srcdir in
15785 .) # We are building in place.
15786 ac_srcdir=.
15787 ac_top_srcdir=$ac_top_builddir_sub
15788 ac_abs_top_srcdir=$ac_pwd ;;
15789 [\\/]* | ?:[\\/]* ) # Absolute name.
15790 ac_srcdir=$srcdir$ac_dir_suffix;
15791 ac_top_srcdir=$srcdir
15792 ac_abs_top_srcdir=$srcdir ;;
15793 *) # Relative name.
15794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15795 ac_top_srcdir=$ac_top_build_prefix$srcdir
15796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15797 esac
15798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15799
15800
15801 case $ac_mode in
15802 :F)
15803 #
15804 # CONFIG_FILE
15805 #
15806
15807 case $INSTALL in
15808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15809 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15810 esac
15811 _ACEOF
15812
15813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15814 # If the template does not know about datarootdir, expand it.
15815 # FIXME: This hack should be removed a few years after 2.60.
15816 ac_datarootdir_hack=; ac_datarootdir_seen=
15817 ac_sed_dataroot='
15818 /datarootdir/ {
15819 p
15820 q
15821 }
15822 /@datadir@/p
15823 /@docdir@/p
15824 /@infodir@/p
15825 /@localedir@/p
15826 /@mandir@/p'
15827 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15828 *datarootdir*) ac_datarootdir_seen=yes;;
15829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15831 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15832 _ACEOF
15833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15834 ac_datarootdir_hack='
15835 s&@datadir@&$datadir&g
15836 s&@docdir@&$docdir&g
15837 s&@infodir@&$infodir&g
15838 s&@localedir@&$localedir&g
15839 s&@mandir@&$mandir&g
15840 s&\\\${datarootdir}&$datarootdir&g' ;;
15841 esac
15842 _ACEOF
15843
15844 # Neutralize VPATH when `$srcdir' = `.'.
15845 # Shell code in configure.ac might set extrasub.
15846 # FIXME: do we really want to maintain this feature?
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 ac_sed_extra="$ac_vpsub
15849 $extrasub
15850 _ACEOF
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852 :t
15853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15854 s|@configure_input@|$ac_sed_conf_input|;t t
15855 s&@top_builddir@&$ac_top_builddir_sub&;t t
15856 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15857 s&@srcdir@&$ac_srcdir&;t t
15858 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15859 s&@top_srcdir@&$ac_top_srcdir&;t t
15860 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15861 s&@builddir@&$ac_builddir&;t t
15862 s&@abs_builddir@&$ac_abs_builddir&;t t
15863 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15864 s&@INSTALL@&$ac_INSTALL&;t t
15865 $ac_datarootdir_hack
15866 "
15867 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15868 if $ac_cs_awk_getline; then
15869 $AWK -f "$ac_tmp/subs.awk"
15870 else
15871 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15872 fi \
15873 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15874
15875 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15876 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15877 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15878 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15880 which seems to be undefined. Please make sure it is defined" >&5
15881 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15882 which seems to be undefined. Please make sure it is defined" >&2;}
15883
15884 rm -f "$ac_tmp/stdin"
15885 case $ac_file in
15886 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15887 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15888 esac \
15889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15890 ;;
15891
15892
15893
15894 esac
15895
15896
15897 case $ac_file$ac_mode in
15898 "Makefile":F) sed "$extrasub_build" Makefile |
15899 sed "$extrasub_host" |
15900 sed "$extrasub_target" > mf$$
15901 mv -f mf$$ Makefile ;;
15902
15903 esac
15904 done # for ac_tag
15905
15906
15907 as_fn_exit 0
15908 _ACEOF
15909 ac_clean_files=$ac_clean_files_save
15910
15911 test $ac_write_fail = 0 ||
15912 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15913
15914
15915 # configure is writing to config.log, and then calls config.status.
15916 # config.status does its own redirection, appending to config.log.
15917 # Unfortunately, on DOS this fails, as config.log is still kept open
15918 # by configure, so config.status won't be able to write to it; its
15919 # output is simply discarded. So we exec the FD to /dev/null,
15920 # effectively closing config.log, so it can be properly (re)opened and
15921 # appended to by config.status. When coming back to configure, we
15922 # need to make the FD available again.
15923 if test "$no_create" != yes; then
15924 ac_cs_success=:
15925 ac_config_status_args=
15926 test "$silent" = yes &&
15927 ac_config_status_args="$ac_config_status_args --quiet"
15928 exec 5>/dev/null
15929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15930 exec 5>>config.log
15931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15932 # would make configure fail if this is the last instruction.
15933 $ac_cs_success || as_fn_exit 1
15934 fi
15935 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15937 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15938 fi
15939